]> sourceware.org Git - newlib-cygwin.git/blame - Makefile.in
* exceptions.c (sigpacket::process): Set tls on return since it is assumed to
[newlib-cygwin.git] / Makefile.in
CommitLineData
bba02726
NN
1
2# Makefile.in is generated from Makefile.tpl by 'autogen Makefile.def'.
a3acbf46
RH
3#
4# Makefile for directory with subdirs to build.
25688b70 5# Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
2b41ef78 6# 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation
a3acbf46
RH
7#
8# This file is free software; you can redistribute it and/or modify
9# it under the terms of the GNU General Public License as published by
10# the Free Software Foundation; either version 2 of the License, or
11# (at your option) any later version.
12#
13# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU General Public License for more details.
17#
18# You should have received a copy of the GNU General Public License
19# along with this program; if not, write to the Free Software
5fc585f6 20# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
a3acbf46
RH
21#
22
a7ff2096
HPN
23# First, test for a proper version of make, but only where one is required.
24
25@if gcc
26ifeq (,$(.VARIABLES)) # The variable .VARIABLES, new with 3.80, is never empty.
27$(error GNU make version 3.80 or newer is required.)
28endif
29@endif gcc
30
ff0592df
NN
31# -------------------------------
32# Standard Autoconf-set variables
33# -------------------------------
c002f9d3 34VPATH=@srcdir@
c002f9d3 35
b58b6ee1 36build_alias=@build_noncanonical@
42f55f77
PB
37build_vendor=@build_vendor@
38build_os=@build_os@
7e9ae190 39build=@build@
b58b6ee1 40host_alias=@host_noncanonical@
42f55f77
PB
41host_vendor=@host_vendor@
42host_os=@host_os@
7e9ae190 43host=@host@
b58b6ee1 44target_alias=@target_noncanonical@
42f55f77
PB
45target_vendor=@target_vendor@
46target_os=@target_os@
7e9ae190 47target=@target@
c002f9d3 48
ff0592df 49program_transform_name = @program_transform_name@
25bab762
NN
50
51prefix = @prefix@
52exec_prefix = @exec_prefix@
53
ff0592df
NN
54srcdir = @srcdir@
55
25bab762
NN
56bindir = @bindir@
57sbindir = @sbindir@
58libexecdir = @libexecdir@
59datadir = @datadir@
60sysconfdir = @sysconfdir@
61sharedstatedir = @sharedstatedir@
62localstatedir = @localstatedir@
63libdir = @libdir@
64includedir = @includedir@
65oldincludedir = @oldincludedir@
66infodir = @infodir@
83c9add4
CD
67datarootdir = @datarootdir@
68docdir = @docdir@
d4954b6d 69pdfdir = @pdfdir@
83c9add4 70htmldir = @htmldir@
25bab762 71mandir = @mandir@
a3acbf46
RH
72man1dir = $(mandir)/man1
73man2dir = $(mandir)/man2
74man3dir = $(mandir)/man3
75man4dir = $(mandir)/man4
76man5dir = $(mandir)/man5
77man6dir = $(mandir)/man6
78man7dir = $(mandir)/man7
79man8dir = $(mandir)/man8
80man9dir = $(mandir)/man9
6acce4b8 81
282c0e47
NN
82INSTALL = @INSTALL@
83INSTALL_PROGRAM = @INSTALL_PROGRAM@
84INSTALL_SCRIPT = @INSTALL_SCRIPT@
85INSTALL_DATA = @INSTALL_DATA@
21ff191e
PB
86LN = @LN@
87LN_S = @LN_S@
e53c5df0
AM
88MAINT = @MAINT@
89MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
90MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
a3acbf46 91
ff0592df
NN
92# -------------------------------------------------
93# Miscellaneous non-standard autoconf-set variables
94# -------------------------------------------------
a3acbf46 95
ff0592df
NN
96# The gcc driver likes to know the arguments it was configured with.
97TOPLEVEL_CONFIGURE_ARGUMENTS=@TOPLEVEL_CONFIGURE_ARGUMENTS@
a3acbf46 98
ff0592df
NN
99tooldir = @tooldir@
100build_tooldir = @build_tooldir@
a3acbf46 101
ff0592df 102GDB_NLM_DEPS =
a3acbf46 103
ff0592df
NN
104# This is the name of the environment variable used for the path to
105# the libraries.
106RPATH_ENVVAR = @RPATH_ENVVAR@
a3acbf46 107
8453fdba
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
ff0592df
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.
f0fdfd34 117BUILD_CONFIGARGS = @build_configargs@ --with-build-subdir="$(BUILD_SUBDIR)"
2cb47d68
PB
118
119# This is the list of variables to export in the environment when
120# configuring any subdirectory. It must also be exported whenever
121# recursing into a build directory in case that directory's Makefile
122# re-runs configure.
123BASE_EXPORTS = \
124 FLEX="$(FLEX)"; export FLEX; \
125 LEX="$(LEX)"; export LEX; \
126 BISON="$(BISON)"; export BISON; \
127 YACC="$(YACC)"; export YACC; \
128 M4="$(M4)"; export M4; \
129 MAKEINFO="$(MAKEINFO)"; export MAKEINFO;
130
a675b75a 131# This is the list of variables to export in the environment when
2cb47d68 132# configuring subdirectories for the build system.
a675b75a 133BUILD_EXPORTS = \
2cb47d68 134 $(BASE_EXPORTS) \
a675b75a
DD
135 AR="$(AR_FOR_BUILD)"; export AR; \
136 AS="$(AS_FOR_BUILD)"; export AS; \
137 CC="$(CC_FOR_BUILD)"; export CC; \
138 CFLAGS="$(CFLAGS_FOR_BUILD)"; export CFLAGS; \
139 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
140 CXX="$(CXX_FOR_BUILD)"; export CXX; \
141 CXXFLAGS="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS; \
142 GCJ="$(GCJ_FOR_BUILD)"; export GCJ; \
143 GFORTRAN="$(GFORTRAN_FOR_BUILD)"; export GFORTRAN; \
144 DLLTOOL="$(DLLTOOL_FOR_BUILD)"; export DLLTOOL; \
145 LD="$(LD_FOR_BUILD)"; export LD; \
146 LDFLAGS="$(LDFLAGS_FOR_BUILD)"; export LDFLAGS; \
147 NM="$(NM_FOR_BUILD)"; export NM; \
148 RANLIB="$(RANLIB_FOR_BUILD)"; export RANLIB; \
bffcbe34
NC
149 WINDRES="$(WINDRES_FOR_BUILD)"; export WINDRES; \
150 WINDMC="$(WINDMC_FOR_BUILD)"; export WINDMC;
ff0592df 151
7d6b567a 152# These variables must be set on the make command line for directories
d19b11bb 153# built for the build system to override those in BASE_FLAGS_TO_PASSS.
7d6b567a
JM
154EXTRA_BUILD_FLAGS = \
155 CFLAGS="$(CFLAGS_FOR_BUILD)" \
156 LDFLAGS="$(LDFLAGS_FOR_BUILD)"
157
ff0592df
NN
158# This is the list of directories to built for the host system.
159SUBDIRS = @configdirs@
160# This is set by the configure script to the arguments to use when configuring
161# directories built for the host system.
162HOST_CONFIGARGS = @host_configargs@
7fc2ca22
PB
163# Host programs are put under this directory, which is . except if building
164# with srcdir=..
165HOST_SUBDIR = @host_subdir@
a675b75a 166# This is the list of variables to export in the environment when
a7dc05b5
PB
167# configuring subdirectories for the host system. We need to pass
168# some to the GCC configure because of its hybrid host/target nature.
a675b75a 169HOST_EXPORTS = \
2cb47d68 170 $(BASE_EXPORTS) \
a675b75a 171 CC="$(CC)"; export CC; \
9ad2ea2f 172 ADA_CFLAGS="$(ADA_CFLAGS)"; export ADA_CFLAGS; \
a675b75a
DD
173 CFLAGS="$(CFLAGS)"; export CFLAGS; \
174 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
175 CXX="$(CXX)"; export CXX; \
176 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
177 AR="$(AR)"; export AR; \
178 AS="$(AS)"; export AS; \
179 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
180 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
181 LD="$(LD)"; export LD; \
182 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
183 NM="$(NM)"; export NM; \
184 RANLIB="$(RANLIB)"; export RANLIB; \
185 WINDRES="$(WINDRES)"; export WINDRES; \
bffcbe34 186 WINDMC="$(WINDMC)"; export WINDMC; \
a675b75a 187 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
ead1b9ae 188 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
a7dc05b5
PB
189 AR_FOR_TARGET="$(AR_FOR_TARGET)"; export AR_FOR_TARGET; \
190 AS_FOR_TARGET="$(AS_FOR_TARGET)"; export AS_FOR_TARGET; \
191 GCC_FOR_TARGET="$(GCC_FOR_TARGET)"; export GCC_FOR_TARGET; \
192 LD_FOR_TARGET="$(LD_FOR_TARGET)"; export LD_FOR_TARGET; \
193 NM_FOR_TARGET="$(NM_FOR_TARGET)"; export NM_FOR_TARGET; \
194 OBJDUMP_FOR_TARGET="$(OBJDUMP_FOR_TARGET)"; export OBJDUMP_FOR_TARGET; \
195 RANLIB_FOR_TARGET="$(RANLIB_FOR_TARGET)"; export RANLIB_FOR_TARGET; \
a675b75a
DD
196 TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \
197 GMPLIBS="$(HOST_GMPLIBS)"; export GMPLIBS; \
9ab64c4a 198 GMPINC="$(HOST_GMPINC)"; export GMPINC; \
311b6756
JM
199 PPLLIBS="$(HOST_PPLLIBS)"; export PPLLIBS; \
200 PPLINC="$(HOST_PPLINC)"; export PPLINC; \
201 CLOOGLIBS="$(HOST_CLOOGLIBS)"; export CLOOGLIBS; \
202 CLOOGINC="$(HOST_CLOOGINC)"; export CLOOGINC; \
168b158c
PB
203@if gcc-bootstrap
204 $(RPATH_ENVVAR)=`echo "$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \
205@endif gcc-bootstrap
f3fd76d4 206 $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR);
a675b75a
DD
207
208# Similar, for later GCC stages.
a8a96878 209POSTSTAGE1_HOST_EXPORTS = \
63673a5b 210 $(HOST_EXPORTS) \
7fc2ca22
PB
211 CC="$(STAGE_CC_WRAPPER) $$r/$(HOST_SUBDIR)/prev-gcc/xgcc$(exeext) \
212 -B$$r/$(HOST_SUBDIR)/prev-gcc/ -B$(build_tooldir)/bin/"; export CC; \
213 CC_FOR_BUILD="$(STAGE_CC_WRAPPER) \
214 $$r/$(HOST_SUBDIR)/prev-gcc/xgcc$(exeext) \
215 -B$$r/$(HOST_SUBDIR)/prev-gcc/ \
71205cf0 216 -B$(build_tooldir)/bin/"; export CC_FOR_BUILD; \
71205cf0 217 LDFLAGS="$(BOOT_LDFLAGS)"; export LDFLAGS;
ff0592df 218
ff0592df
NN
219# Target libraries are put under this directory:
220TARGET_SUBDIR = @target_subdir@
221# This is set by the configure script to the arguments to use when configuring
222# directories built for the target.
f0fdfd34 223TARGET_CONFIGARGS = @target_configargs@ --with-target-subdir="$(TARGET_SUBDIR)"
a675b75a 224# This is the list of variables to export in the environment when
2cb47d68 225# configuring subdirectories for the host system.
a675b75a 226BASE_TARGET_EXPORTS = \
2cb47d68 227 $(BASE_EXPORTS) \
a675b75a 228 AR="$(AR_FOR_TARGET)"; export AR; \
a7dc05b5 229 AS="$(COMPILER_AS_FOR_TARGET)"; export AS; \
a675b75a 230 CC="$(CC_FOR_TARGET)"; export CC; \
6532abb6 231 CFLAGS="$(CFLAGS_FOR_TARGET) $(SYSROOT_CFLAGS_FOR_TARGET) $(DEBUG_PREFIX_CFLAGS_FOR_TARGET)"; export CFLAGS; \
a675b75a 232 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
ec724188 233 CPPFLAGS="$(CPPFLAGS_FOR_TARGET)"; export CPPFLAGS; \
6532abb6 234 CXXFLAGS="$(CXXFLAGS_FOR_TARGET) $(SYSROOT_CFLAGS_FOR_TARGET) $(DEBUG_PREFIX_CFLAGS_FOR_TARGET)"; export CXXFLAGS; \
a675b75a
DD
235 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
236 GFORTRAN="$(GFORTRAN_FOR_TARGET)"; export GFORTRAN; \
237 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
a7dc05b5 238 LD="$(COMPILER_LD_FOR_TARGET)"; export LD; \
a675b75a 239 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
6a33f745 240 LIPO="$(LIPO_FOR_TARGET)"; export LIPO; \
a7dc05b5 241 NM="$(COMPILER_NM_FOR_TARGET)"; export NM; \
51c8a213 242 OBJDUMP="$(OBJDUMP_FOR_TARGET)"; export OBJDUMP; \
a675b75a 243 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
6a33f745 244 STRIP="$(STRIP_FOR_TARGET)"; export STRIP; \
9ab64c4a 245 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
bffcbe34 246 WINDMC="$(WINDMC_FOR_TARGET)"; export WINDMC; \
f3fd76d4 247 $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH)$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR);
a675b75a
DD
248
249RAW_CXX_TARGET_EXPORTS = \
250 $(BASE_TARGET_EXPORTS) \
251 CXX_FOR_TARGET="$(RAW_CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \
252 CXX="$(RAW_CXX_FOR_TARGET)"; export CXX;
253
254NORMAL_TARGET_EXPORTS = \
255 $(BASE_TARGET_EXPORTS) \
256 CXX="$(CXX_FOR_TARGET)"; export CXX;
ff0592df 257
cb2333e8
DD
258# Where to find GMP
259HOST_GMPLIBS = @gmplibs@
260HOST_GMPINC = @gmpinc@
261
311b6756
JM
262# Where to find PPL
263HOST_PPLLIBS = @ppllibs@
264HOST_PPLINC = @pplinc@
265
266# Where to find CLOOG
267HOST_CLOOGLIBS = @clooglibs@
268HOST_CLOOGINC = @clooginc@
269
ff0592df
NN
270# ----------------------------------------------
271# Programs producing files for the BUILD machine
272# ----------------------------------------------
273
274SHELL = @config_shell@
275
276# pwd command to use. Allow user to override default by setting PWDCMD in
277# the environment to account for automounters. The make variable must not
278# be called PWDCMD, otherwise the value set here is passed to make
279# subprocesses and overrides the setting from the user's environment.
5230d454
L
280# Don't use PWD since it is a common shell environment variable and we
281# don't want to corrupt it.
282PWD_COMMAND = $${PWDCMD-pwd}
ff0592df
NN
283
284# compilers to use to create programs which must be run in the build
285# environment.
c8d9da73
PB
286AR_FOR_BUILD = @AR_FOR_BUILD@
287AS_FOR_BUILD = @AS_FOR_BUILD@
ff0592df 288CC_FOR_BUILD = @CC_FOR_BUILD@
e9ea9dec 289CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
c8d9da73
PB
290CXXFLAGS_FOR_BUILD = @CXXFLAGS_FOR_BUILD@
291CXX_FOR_BUILD = @CXX_FOR_BUILD@
292DLLTOOL_FOR_BUILD = @DLLTOOL_FOR_BUILD@
293GCJ_FOR_BUILD = @GCJ_FOR_BUILD@
294GFORTRAN_FOR_BUILD = @GFORTRAN_FOR_BUILD@
295LDFLAGS_FOR_BUILD = @LDFLAGS_FOR_BUILD@
296LD_FOR_BUILD = @LD_FOR_BUILD@
297NM_FOR_BUILD = @NM_FOR_BUILD@
298RANLIB_FOR_BUILD = @RANLIB_FOR_BUILD@
299WINDMC_FOR_BUILD = @WINDMC_FOR_BUILD@
300WINDRES_FOR_BUILD = @WINDRES_FOR_BUILD@
ff0592df
NN
301
302# Special variables passed down in EXTRA_GCC_FLAGS. They are defined
303# here so that they can be overridden by Makefile fragments.
ff0592df
NN
304BUILD_PREFIX = @BUILD_PREFIX@
305BUILD_PREFIX_1 = @BUILD_PREFIX_1@
a3acbf46 306
99df82b9
PB
307# Flags to pass to stage2 and later makes. They are defined
308# here so that they can be overridden by Makefile fragments.
309BOOT_CFLAGS= -g -O2
7e958b2e 310BOOT_LDFLAGS=
7e1645ce 311BOOT_ADAFLAGS=-gnatpg -gnata
99df82b9 312
a7dc05b5
PB
313BISON = @BISON@
314YACC = @YACC@
315FLEX = @FLEX@
316LEX = @LEX@
317M4 = @M4@
318MAKEINFO = @MAKEINFO@
319EXPECT = @EXPECT@
320RUNTEST = @RUNTEST@
a3acbf46
RH
321
322# This just becomes part of the MAKEINFO definition passed down to
323# sub-makes. It lets flags be given on the command line while still
324# using the makeinfo from the object tree.
8997bae8
DD
325# (Default to avoid splitting info files by setting the threshold high.)
326MAKEINFOFLAGS = --split-size=5000000
a3acbf46 327
ff0592df
NN
328# ---------------------------------------------
329# Programs producing files for the HOST machine
330# ---------------------------------------------
a3acbf46 331
ff0592df 332AS = @AS@
ff0592df
NN
333AR = @AR@
334AR_FLAGS = rc
ff0592df 335CC = @CC@
ff0592df 336CXX = @CXX@
ff0592df 337DLLTOOL = @DLLTOOL@
ff0592df 338LD = @LD@
a7dc05b5
PB
339LIPO = @LIPO@
340NM = @NM@
e3c08f94 341OBJDUMP = @OBJDUMP@
ff0592df 342RANLIB = @RANLIB@
a7dc05b5 343STRIP = @STRIP@
ff0592df 344WINDRES = @WINDRES@
bffcbe34 345WINDMC = @WINDMC@
a3acbf46 346
e6659c00
PB
347GNATBIND = @GNATBIND@
348GNATMAKE = @GNATMAKE@
349
a7dc05b5 350CFLAGS = @CFLAGS@
07846b16 351LDFLAGS = @LDFLAGS@
a7dc05b5
PB
352LIBCFLAGS = $(CFLAGS)
353CXXFLAGS = @CXXFLAGS@
354LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates
ff0592df 355
14a1406e
PB
356# Only build the C compiler for stage1, because that is the only one that
357# we can guarantee will build with the native compiler, and also it is the
358# only thing useful for building stage2. STAGE1_CFLAGS (via CFLAGS),
359# MAKEINFO and MAKEINFOFLAGS are explicitly passed here to make them
360# overrideable (for a bootstrap build stage1 also builds gcc.info).
361
14a1406e
PB
362STAGE1_CHECKING=@stage1_checking@
363STAGE1_LANGUAGES=@stage1_languages@
364
6532abb6 365STAGE1_CFLAGS=@stage1_cflags@
2b41ef78
AO
366STAGE2_CFLAGS=$(BOOT_CFLAGS)
367STAGE3_CFLAGS=$(BOOT_CFLAGS)
368STAGE4_CFLAGS=$(BOOT_CFLAGS)
369
455b4f90 370STAGE1_LIBCFLAGS=$(CFLAGS_FOR_TARGET)
6532abb6
PB
371STAGE2_LIBCFLAGS=$(CFLAGS_FOR_TARGET)
372STAGE3_LIBCFLAGS=$(CFLAGS_FOR_TARGET)
373STAGE4_LIBCFLAGS=$(CFLAGS_FOR_TARGET)
374
2b41ef78
AO
375do-compare = @do_compare@
376do-compare3 = $(do-compare)
377do-compare-debug = $(SHELL) $(srcdir)/contrib/compare-debug $$f1 $$f2
378
ff0592df
NN
379# -----------------------------------------------
380# Programs producing files for the TARGET machine
381# -----------------------------------------------
bb19e2ea 382
426ce14a 383FLAGS_FOR_TARGET = @FLAGS_FOR_TARGET@
a3acbf46 384
ff0592df 385AR_FOR_TARGET=@AR_FOR_TARGET@
712e2a32 386AS_FOR_TARGET=@AS_FOR_TARGET@
5fb28bcc 387CC_FOR_TARGET=$(STAGE_CC_WRAPPER) @CC_FOR_TARGET@ $(FLAGS_FOR_TARGET)
5fb28bcc 388
ff0592df
NN
389# If GCC_FOR_TARGET is not overriden on the command line, then this
390# variable is passed down to the gcc Makefile, where it is used to
391# build libgcc2.a. We define it here so that it can itself be
392# overridden on the command line.
a7dc05b5 393GCC_FOR_TARGET=$(STAGE_CC_WRAPPER) @GCC_FOR_TARGET@ $(FLAGS_FOR_TARGET)
5fb28bcc 394CXX_FOR_TARGET=$(STAGE_CC_WRAPPER) @CXX_FOR_TARGET@ $(FLAGS_FOR_TARGET)
5fb28bcc 395RAW_CXX_FOR_TARGET=$(STAGE_CC_WRAPPER) @RAW_CXX_FOR_TARGET@ $(FLAGS_FOR_TARGET)
5fb28bcc 396GCJ_FOR_TARGET=$(STAGE_CC_WRAPPER) @GCJ_FOR_TARGET@ $(FLAGS_FOR_TARGET)
5fb28bcc 397GFORTRAN_FOR_TARGET=$(STAGE_CC_WRAPPER) @GFORTRAN_FOR_TARGET@ $(FLAGS_FOR_TARGET)
712e2a32 398DLLTOOL_FOR_TARGET=@DLLTOOL_FOR_TARGET@
ff0592df 399LD_FOR_TARGET=@LD_FOR_TARGET@
ff0592df 400
6a33f745 401LIPO_FOR_TARGET=@LIPO_FOR_TARGET@
ff0592df 402NM_FOR_TARGET=@NM_FOR_TARGET@
51c8a213 403OBJDUMP_FOR_TARGET=@OBJDUMP_FOR_TARGET@
712e2a32 404RANLIB_FOR_TARGET=@RANLIB_FOR_TARGET@
6a33f745 405STRIP_FOR_TARGET=@STRIP_FOR_TARGET@
ff0592df 406WINDRES_FOR_TARGET=@WINDRES_FOR_TARGET@
bffcbe34 407WINDMC_FOR_TARGET=@WINDMC_FOR_TARGET@
a3acbf46 408
a7dc05b5
PB
409COMPILER_AS_FOR_TARGET=@COMPILER_AS_FOR_TARGET@
410COMPILER_LD_FOR_TARGET=@COMPILER_LD_FOR_TARGET@
411COMPILER_NM_FOR_TARGET=@COMPILER_NM_FOR_TARGET@
412
6532abb6
PB
413CFLAGS_FOR_TARGET = @CFLAGS_FOR_TARGET@
414CXXFLAGS_FOR_TARGET = @CXXFLAGS_FOR_TARGET@
a7dc05b5 415SYSROOT_CFLAGS_FOR_TARGET = @SYSROOT_CFLAGS_FOR_TARGET@
fcc5fef0 416DEBUG_PREFIX_CFLAGS_FOR_TARGET = @DEBUG_PREFIX_CFLAGS_FOR_TARGET@
6532abb6 417
a7dc05b5
PB
418LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
419LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
d19b11bb 420LDFLAGS_FOR_TARGET =
ff0592df
NN
421
422# ------------------------------------
423# Miscellaneous targets and flag lists
424# ------------------------------------
425
a3acbf46
RH
426# The first rule in the file had better be this one. Don't put any above it.
427# This lives here to allow makefile fragments to contain dependencies.
168b158c 428all:
a3acbf46 429
a3acbf46 430#### host and target specific makefile fragments come in here.
bafecfd6
NN
431@target_makefile_frag@
432@alphaieee_frag@
433@ospace_frag@
434@host_makefile_frag@
a3acbf46
RH
435###
436
f3fd76d4
PB
437# This is the list of directories that may be needed in RPATH_ENVVAR
438# so that prorgams built for the target machine work.
e1e5148c 439TARGET_LIB_PATH = $(TARGET_LIB_PATH_libstdc++-v3)$(TARGET_LIB_PATH_libmudflap)$(TARGET_LIB_PATH_libssp)$(TARGET_LIB_PATH_libgomp)$(HOST_LIB_PATH_gcc)
f3fd76d4
PB
440
441@if target-libstdc++-v3
442TARGET_LIB_PATH_libstdc++-v3 = $$r/$(TARGET_SUBDIR)/libstdc++-v3/.libs:
443@endif target-libstdc++-v3
444
445@if target-libmudflap
446TARGET_LIB_PATH_libmudflap = $$r/$(TARGET_SUBDIR)/libmudflap/.libs:
447@endif target-libmudflap
448
4c3e061c
PB
449@if target-libssp
450TARGET_LIB_PATH_libssp = $$r/$(TARGET_SUBDIR)/libssp/.libs:
451@endif target-libssp
452
00bc9d7f
PB
453@if target-libgomp
454TARGET_LIB_PATH_libgomp = $$r/$(TARGET_SUBDIR)/libgomp/.libs:
455@endif target-libgomp
456
f3fd76d4
PB
457
458
459# This is the list of directories that may be needed in RPATH_ENVVAR
460# so that programs built for the host machine work.
311b6756 461HOST_LIB_PATH = $(HOST_LIB_PATH_bfd)$(HOST_LIB_PATH_opcodes)$(HOST_LIB_PATH_gmp)$(HOST_LIB_PATH_mpfr)$(HOST_LIB_PATH_ppl)$(HOST_LIB_PATH_cloog)
f3fd76d4
PB
462
463# Define HOST_LIB_PATH_gcc here, for the sake of TARGET_LIB_PATH, ouch
464@if gcc
8453fdba 465HOST_LIB_PATH_gcc = $$r/$(HOST_SUBDIR)/gcc$(GCC_SHLIB_SUBDIR):$$r/$(HOST_SUBDIR)/prev-gcc$(GCC_SHLIB_SUBDIR):
f3fd76d4
PB
466@endif gcc
467
468
469@if bfd
470HOST_LIB_PATH_bfd = \
5544eee7 471 $$r/$(HOST_SUBDIR)/bfd/.libs:$$r/$(HOST_SUBDIR)/prev-bfd/.libs:
f3fd76d4
PB
472@endif bfd
473
474@if opcodes
475HOST_LIB_PATH_opcodes = \
5544eee7 476 $$r/$(HOST_SUBDIR)/opcodes/.libs:$$r/$(HOST_SUBDIR)/prev-opcodes/.libs:
f3fd76d4
PB
477@endif opcodes
478
42f55f77
PB
479@if gmp
480HOST_LIB_PATH_gmp = \
481 $$r/$(HOST_SUBDIR)/gmp/.libs:$$r/$(HOST_SUBDIR)/prev-gmp/.libs:
482@endif gmp
483
484@if mpfr
485HOST_LIB_PATH_mpfr = \
486 $$r/$(HOST_SUBDIR)/mpfr/.libs:$$r/$(HOST_SUBDIR)/prev-mpfr/.libs:
487@endif mpfr
488
311b6756
JM
489@if ppl
490HOST_LIB_PATH_ppl = \
491 $$r/$(HOST_SUBDIR)/ppl/.libs:$$r/$(HOST_SUBDIR)/prev-ppl/.libs:
492@endif ppl
493
494@if cloog
495HOST_LIB_PATH_cloog = \
496 $$r/$(HOST_SUBDIR)/cloog/.libs:$$r/$(HOST_SUBDIR)/prev-cloog/.libs:
497@endif cloog
498
f3fd76d4 499
a3acbf46 500# Flags to pass down to all sub-makes.
a3acbf46 501BASE_FLAGS_TO_PASS = \
8ccfe116 502 "DESTDIR=$(DESTDIR)" \
a3acbf46 503 "RPATH_ENVVAR=$(RPATH_ENVVAR)" \
a3acbf46 504 "TARGET_SUBDIR=$(TARGET_SUBDIR)" \
a3acbf46
RH
505 "bindir=$(bindir)" \
506 "datadir=$(datadir)" \
507 "exec_prefix=$(exec_prefix)" \
508 "includedir=$(includedir)" \
83c9add4
CD
509 "datarootdir=$(datarootdir)" \
510 "docdir=$(docdir)" \
a3acbf46 511 "infodir=$(infodir)" \
d4954b6d 512 "pdfdir=$(pdfdir)" \
83c9add4 513 "htmldir=$(htmldir)" \
a3acbf46
RH
514 "libdir=$(libdir)" \
515 "libexecdir=$(libexecdir)" \
516 "lispdir=$(lispdir)" \
517 "localstatedir=$(localstatedir)" \
518 "mandir=$(mandir)" \
519 "oldincludedir=$(oldincludedir)" \
520 "prefix=$(prefix)" \
521 "sbindir=$(sbindir)" \
522 "sharedstatedir=$(sharedstatedir)" \
523 "sysconfdir=$(sysconfdir)" \
524 "tooldir=$(tooldir)" \
2ff6d12f 525 "build_tooldir=$(build_tooldir)" \
47cd8327
NN
526 "target_alias=$(target_alias)" \
527 "BISON=$(BISON)" \
528 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
469b4895 529 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
47cd8327
NN
530 "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
531 "EXPECT=$(EXPECT)" \
2cb47d68 532 "FLEX=$(FLEX)" \
47cd8327
NN
533 "INSTALL=$(INSTALL)" \
534 "INSTALL_DATA=$(INSTALL_DATA)" \
535 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
536 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
7d6b567a 537 "LDFLAGS_FOR_BUILD=$(LDFLAGS_FOR_BUILD)" \
47cd8327
NN
538 "LEX=$(LEX)" \
539 "M4=$(M4)" \
540 "MAKE=$(MAKE)" \
541 "RUNTEST=$(RUNTEST)" \
542 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
543 "SHELL=$(SHELL)" \
544 "YACC=$(YACC)" \
ec92c4d6 545 "`echo 'ADAFLAGS=$(ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
9ad2ea2f 546 "ADA_CFLAGS=$(ADA_CFLAGS)" \
47cd8327 547 "AR_FLAGS=$(AR_FLAGS)" \
ec92c4d6 548 "`echo 'BOOT_ADAFLAGS=$(BOOT_ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
7e958b2e
PB
549 "BOOT_CFLAGS=$(BOOT_CFLAGS)" \
550 "BOOT_LDFLAGS=$(BOOT_LDFLAGS)" \
47cd8327
NN
551 "CFLAGS=$(CFLAGS)" \
552 "CXXFLAGS=$(CXXFLAGS)" \
553 "LDFLAGS=$(LDFLAGS)" \
554 "LIBCFLAGS=$(LIBCFLAGS)" \
555 "LIBCXXFLAGS=$(LIBCXXFLAGS)" \
e3c08f94 556 "STAGE1_CFLAGS=$(STAGE1_CFLAGS)" \
14a1406e 557 "STAGE1_CHECKING=$(STAGE1_CHECKING)" \
e3c08f94 558 "STAGE1_LANGUAGES=$(STAGE1_LANGUAGES)" \
2b41ef78
AO
559 "STAGE2_CFLAGS=$(STAGE2_CFLAGS)" \
560 "STAGE3_CFLAGS=$(STAGE3_CFLAGS)" \
561 "STAGE4_CFLAGS=$(STAGE4_CFLAGS)" \
e6659c00
PB
562 "GNATBIND=$(GNATBIND)" \
563 "GNATMAKE=$(GNATMAKE)" \
47cd8327
NN
564 "AR_FOR_TARGET=$(AR_FOR_TARGET)" \
565 "AS_FOR_TARGET=$(AS_FOR_TARGET)" \
566 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
567 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
ec724188 568 "CPPFLAGS_FOR_TARGET=$(CPPFLAGS_FOR_TARGET)" \
47cd8327
NN
569 "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
570 "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \
571 "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \
572 "GCJ_FOR_TARGET=$(GCJ_FOR_TARGET)" \
cb2333e8 573 "GFORTRAN_FOR_TARGET=$(GFORTRAN_FOR_TARGET)" \
47cd8327 574 "LD_FOR_TARGET=$(LD_FOR_TARGET)" \
6a33f745 575 "LIPO_FOR_TARGET=$(LIPO_FOR_TARGET)" \
ece7e564 576 "LDFLAGS_FOR_TARGET=$(LDFLAGS_FOR_TARGET)" \
47cd8327
NN
577 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
578 "LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \
579 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
51c8a213 580 "OBJDUMP_FOR_TARGET=$(OBJDUMP_FOR_TARGET)" \
47cd8327 581 "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
6a33f745 582 "STRIP_FOR_TARGET=$(STRIP_FOR_TARGET)" \
47cd8327 583 "WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \
bffcbe34 584 "WINDMC_FOR_TARGET=$(WINDMC_FOR_TARGET)" \
ec92c4d6 585 "`echo 'LANGUAGES=$(LANGUAGES)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
e3c08f94 586 "LEAN=$(LEAN)" \
08bf2e60 587 "CONFIG_SHELL=$(SHELL)" \
47cd8327 588 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)"
a3acbf46 589
5fb28bcc
PB
590# We leave this in just in case, but it is not needed anymore.
591RECURSE_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS)
21ff191e 592
a3acbf46
RH
593# Flags to pass down to most sub-makes, in which we're building with
594# the host environment.
a3acbf46
RH
595EXTRA_HOST_FLAGS = \
596 'AR=$(AR)' \
597 'AS=$(AS)' \
598 'CC=$(CC)' \
599 'CXX=$(CXX)' \
600 'DLLTOOL=$(DLLTOOL)' \
601 'LD=$(LD)' \
a7dc05b5 602 'LIPO=$(LIPO)' \
a3acbf46 603 'NM=$(NM)' \
e3c08f94 604 'OBJDUMP=$(OBJDUMP)' \
76ab491a 605 'RANLIB=$(RANLIB)' \
a7dc05b5 606 'STRIP=$(STRIP)' \
bffcbe34
NC
607 'WINDRES=$(WINDRES)' \
608 'WINDMC=$(WINDMC)'
a3acbf46
RH
609
610FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)
611
612# Flags that are concerned with the location of the X11 include files
613# and library files
614#
615# NOTE: until the top-level is getting the values via autoconf, it only
616# causes problems to have this top-level Makefile overriding the autoconf-set
617# values in child directories. Only variables that don't conflict with
618# autoconf'ed ones should be passed by X11_FLAGS_TO_PASS for now.
619#
620X11_FLAGS_TO_PASS = \
621 'X11_EXTRA_CFLAGS=$(X11_EXTRA_CFLAGS)' \
622 'X11_EXTRA_LIBS=$(X11_EXTRA_LIBS)'
623
14a1406e
PB
624# Flags to pass to stage2 and later makes.
625
626POSTSTAGE1_FLAGS_TO_PASS = \
627 CC="$${CC}" CC_FOR_BUILD="$${CC_FOR_BUILD}" \
e6659c00 628 GNATBIND="$$r/$(HOST_SUBDIR)/prev-gcc/gnatbind" \
14a1406e
PB
629 LDFLAGS="$(BOOT_LDFLAGS)" \
630 "`echo 'ADAFLAGS=$(BOOT_ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`"
631
a3acbf46 632# Flags to pass down to makes which are built with the target environment.
15b527ca
PB
633# The double $ decreases the length of the command line; those variables
634# are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them. The
6532abb6
PB
635# *_CFLAGS_FOR_TARGET variables are not passed down and most often empty,
636# so we expand them here.
a3acbf46
RH
637EXTRA_TARGET_FLAGS = \
638 'AR=$$(AR_FOR_TARGET)' \
15b527ca 639 'AS=$(COMPILER_AS_FOR_TARGET)' \
a3acbf46 640 'CC=$$(CC_FOR_TARGET)' \
6532abb6 641 'CFLAGS=$$(CFLAGS_FOR_TARGET) $(SYSROOT_CFLAGS_FOR_TARGET) $(DEBUG_PREFIX_CFLAGS_FOR_TARGET)' \
a3acbf46 642 'CXX=$$(CXX_FOR_TARGET)' \
6532abb6 643 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET) $(SYSROOT_CFLAGS_FOR_TARGET) $(DEBUG_PREFIX_CFLAGS_FOR_TARGET)' \
a3acbf46 644 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
15b527ca 645 'LD=$(COMPILER_LD_FOR_TARGET)' \
ece7e564 646 'LDFLAGS=$$(LDFLAGS_FOR_TARGET)' \
6532abb6
PB
647 'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET) $(SYSROOT_CFLAGS_FOR_TARGET) $(DEBUG_PREFIX_CFLAGS_FOR_TARGET)' \
648 'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET) $(SYSROOT_CFLAGS_FOR_TARGET) $(DEBUG_PREFIX_CFLAGS_FOR_TARGET)' \
15b527ca 649 'NM=$(COMPILER_NM_FOR_TARGET)' \
51c8a213 650 'OBJDUMP=$$(OBJDUMP_FOR_TARGET)' \
a3acbf46 651 'RANLIB=$$(RANLIB_FOR_TARGET)' \
bffcbe34
NC
652 'WINDRES=$$(WINDRES_FOR_TARGET)' \
653 'WINDMC=$$(WINDMC_FOR_TARGET)'
a3acbf46
RH
654
655TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)
656
657# Flags to pass down to gcc. gcc builds a library, libgcc.a, so it
658# unfortunately needs the native compiler and the target ar and
659# ranlib.
660# If any variables are added here, they must be added to do-*, below.
657b58f4 661# The BUILD_* variables are a special case, which are used for the gcc
a3acbf46
RH
662# cross-building scheme.
663EXTRA_GCC_FLAGS = \
a3acbf46 664 "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
07bc9e41
NN
665 "`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
666 "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
667 "`echo 'LIBGCC2_CFLAGS=$(LIBGCC2_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
668 "`echo 'LIBGCC2_DEBUG_CFLAGS=$(LIBGCC2_DEBUG_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
ec92c4d6 669 "`echo 'LIBGCC2_INCLUDES=$(LIBGCC2_INCLUDES)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`"
a3acbf46 670
2286046e 671GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS)
a3acbf46 672
9b520963 673.PHONY: configure-host
d5eec917 674configure-host: \
9b520963
NN
675 maybe-configure-ash \
676 maybe-configure-autoconf \
677 maybe-configure-automake \
678 maybe-configure-bash \
679 maybe-configure-bfd \
680 maybe-configure-opcodes \
681 maybe-configure-binutils \
682 maybe-configure-bison \
683 maybe-configure-byacc \
684 maybe-configure-bzip2 \
685 maybe-configure-dejagnu \
686 maybe-configure-diff \
687 maybe-configure-dosutils \
688 maybe-configure-etc \
689 maybe-configure-fastjar \
690 maybe-configure-fileutils \
691 maybe-configure-findutils \
692 maybe-configure-find \
5350aa8b 693 maybe-configure-fixincludes \
9b520963
NN
694 maybe-configure-flex \
695 maybe-configure-gas \
d5eec917 696 maybe-configure-gcc \
9b520963
NN
697 maybe-configure-gawk \
698 maybe-configure-gettext \
42f55f77
PB
699 maybe-configure-gmp \
700 maybe-configure-mpfr \
311b6756
JM
701 maybe-configure-ppl \
702 maybe-configure-cloog \
9b520963 703 maybe-configure-gnuserv \
b916272a 704 maybe-configure-gold \
9b520963
NN
705 maybe-configure-gprof \
706 maybe-configure-gzip \
707 maybe-configure-hello \
708 maybe-configure-indent \
709 maybe-configure-intl \
710 maybe-configure-tcl \
711 maybe-configure-itcl \
712 maybe-configure-ld \
c580d516 713 maybe-configure-libcpp \
a7dc05b5 714 maybe-configure-libdecnumber \
9b520963
NN
715 maybe-configure-libgui \
716 maybe-configure-libiberty \
717 maybe-configure-libtool \
718 maybe-configure-m4 \
719 maybe-configure-make \
720 maybe-configure-mmalloc \
721 maybe-configure-patch \
722 maybe-configure-perl \
723 maybe-configure-prms \
724 maybe-configure-rcs \
725 maybe-configure-readline \
726 maybe-configure-release \
727 maybe-configure-recode \
728 maybe-configure-sed \
729 maybe-configure-send-pr \
730 maybe-configure-shellutils \
731 maybe-configure-sid \
732 maybe-configure-sim \
733 maybe-configure-tar \
734 maybe-configure-texinfo \
735 maybe-configure-textutils \
736 maybe-configure-time \
737 maybe-configure-uudecode \
738 maybe-configure-wdiff \
739 maybe-configure-zip \
740 maybe-configure-zlib \
741 maybe-configure-gdb \
742 maybe-configure-expect \
743 maybe-configure-guile \
744 maybe-configure-tk \
9b520963 745 maybe-configure-libtermcap \
7fc2ca22
PB
746 maybe-configure-utils \
747 maybe-configure-gnattools
9b520963
NN
748.PHONY: configure-target
749configure-target: \
750 maybe-configure-target-libstdc++-v3 \
cb2333e8 751 maybe-configure-target-libmudflap \
4c3e061c 752 maybe-configure-target-libssp \
9b520963 753 maybe-configure-target-newlib \
1f316156 754 maybe-configure-target-libgcc \
cb2333e8 755 maybe-configure-target-libgfortran \
9b520963
NN
756 maybe-configure-target-libobjc \
757 maybe-configure-target-libtermcap \
758 maybe-configure-target-winsup \
759 maybe-configure-target-libgloss \
760 maybe-configure-target-libiberty \
761 maybe-configure-target-gperf \
762 maybe-configure-target-examples \
763 maybe-configure-target-libffi \
764 maybe-configure-target-libjava \
765 maybe-configure-target-zlib \
766 maybe-configure-target-boehm-gc \
767 maybe-configure-target-qthreads \
d832a288 768 maybe-configure-target-rda \
00bc9d7f
PB
769 maybe-configure-target-libada \
770 maybe-configure-target-libgomp
a3acbf46 771
e1666221
PB
772# The target built for a native non-bootstrap build.
773.PHONY: all
168b158c
PB
774all:
775@if gcc-bootstrap
a7dc05b5 776 [ -f stage_final ] || echo stage3 > stage_final
168b158c
PB
777 @r=`${PWD_COMMAND}`; export r; \
778 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15b527ca 779 $(MAKE) $(RECURSE_FLAGS_TO_PASS) `cat stage_final`-bubble
168b158c 780@endif gcc-bootstrap
15b527ca 781 @: $(MAKE); $(unstage)
168b158c
PB
782 @r=`${PWD_COMMAND}`; export r; \
783 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
784 if [ -f stage_last ]; then \
a7dc05b5 785 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target; \
168b158c 786 else \
a7dc05b5 787 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-host all-target; \
168b158c 788 fi
2cb47d68
PB
789
790.PHONY: all-build
ec92c4d6
PB
791
792all-build: maybe-all-build-libiberty
793all-build: maybe-all-build-bison
794all-build: maybe-all-build-byacc
795all-build: maybe-all-build-flex
796all-build: maybe-all-build-m4
797all-build: maybe-all-build-texinfo
798all-build: maybe-all-build-fixincludes
799
9b520963 800.PHONY: all-host
ec92c4d6
PB
801
802all-host: maybe-all-ash
803all-host: maybe-all-autoconf
804all-host: maybe-all-automake
805all-host: maybe-all-bash
806@if bfd-no-bootstrap
807all-host: maybe-all-bfd
808@endif bfd-no-bootstrap
809@if opcodes-no-bootstrap
810all-host: maybe-all-opcodes
811@endif opcodes-no-bootstrap
812@if binutils-no-bootstrap
813all-host: maybe-all-binutils
814@endif binutils-no-bootstrap
815all-host: maybe-all-bison
816all-host: maybe-all-byacc
817all-host: maybe-all-bzip2
818all-host: maybe-all-dejagnu
819all-host: maybe-all-diff
820all-host: maybe-all-dosutils
821all-host: maybe-all-etc
822all-host: maybe-all-fastjar
823all-host: maybe-all-fileutils
824all-host: maybe-all-findutils
825all-host: maybe-all-find
826all-host: maybe-all-fixincludes
827all-host: maybe-all-flex
828@if gas-no-bootstrap
829all-host: maybe-all-gas
830@endif gas-no-bootstrap
831@if gcc-no-bootstrap
832all-host: maybe-all-gcc
833@endif gcc-no-bootstrap
834all-host: maybe-all-gawk
835all-host: maybe-all-gettext
42f55f77
PB
836@if gmp-no-bootstrap
837all-host: maybe-all-gmp
838@endif gmp-no-bootstrap
839@if mpfr-no-bootstrap
840all-host: maybe-all-mpfr
841@endif mpfr-no-bootstrap
311b6756
JM
842@if ppl-no-bootstrap
843all-host: maybe-all-ppl
844@endif ppl-no-bootstrap
845@if cloog-no-bootstrap
846all-host: maybe-all-cloog
847@endif cloog-no-bootstrap
ec92c4d6 848all-host: maybe-all-gnuserv
b916272a
ILT
849@if gold-no-bootstrap
850all-host: maybe-all-gold
851@endif gold-no-bootstrap
ec92c4d6
PB
852all-host: maybe-all-gprof
853all-host: maybe-all-gzip
854all-host: maybe-all-hello
855all-host: maybe-all-indent
856@if intl-no-bootstrap
857all-host: maybe-all-intl
858@endif intl-no-bootstrap
859all-host: maybe-all-tcl
860all-host: maybe-all-itcl
861@if ld-no-bootstrap
862all-host: maybe-all-ld
863@endif ld-no-bootstrap
864@if libcpp-no-bootstrap
865all-host: maybe-all-libcpp
866@endif libcpp-no-bootstrap
867@if libdecnumber-no-bootstrap
868all-host: maybe-all-libdecnumber
869@endif libdecnumber-no-bootstrap
870all-host: maybe-all-libgui
871@if libiberty-no-bootstrap
872all-host: maybe-all-libiberty
873@endif libiberty-no-bootstrap
874all-host: maybe-all-libtool
875all-host: maybe-all-m4
876all-host: maybe-all-make
877all-host: maybe-all-mmalloc
878all-host: maybe-all-patch
879all-host: maybe-all-perl
880all-host: maybe-all-prms
881all-host: maybe-all-rcs
882all-host: maybe-all-readline
883all-host: maybe-all-release
884all-host: maybe-all-recode
885all-host: maybe-all-sed
886all-host: maybe-all-send-pr
887all-host: maybe-all-shellutils
888all-host: maybe-all-sid
889all-host: maybe-all-sim
890all-host: maybe-all-tar
891all-host: maybe-all-texinfo
892all-host: maybe-all-textutils
893all-host: maybe-all-time
894all-host: maybe-all-uudecode
895all-host: maybe-all-wdiff
896all-host: maybe-all-zip
897@if zlib-no-bootstrap
898all-host: maybe-all-zlib
899@endif zlib-no-bootstrap
900all-host: maybe-all-gdb
901all-host: maybe-all-expect
902all-host: maybe-all-guile
903all-host: maybe-all-tk
904all-host: maybe-all-libtermcap
905all-host: maybe-all-utils
906all-host: maybe-all-gnattools
907
9b520963 908.PHONY: all-target
ec92c4d6
PB
909
910all-target: maybe-all-target-libstdc++-v3
911all-target: maybe-all-target-libmudflap
912all-target: maybe-all-target-libssp
ec92c4d6 913all-target: maybe-all-target-newlib
a1c408a1 914@if target-libgcc-no-bootstrap
1f316156 915all-target: maybe-all-target-libgcc
a1c408a1 916@endif target-libgcc-no-bootstrap
ec92c4d6
PB
917all-target: maybe-all-target-libgfortran
918all-target: maybe-all-target-libobjc
919all-target: maybe-all-target-libtermcap
920all-target: maybe-all-target-winsup
921all-target: maybe-all-target-libgloss
922all-target: maybe-all-target-libiberty
923all-target: maybe-all-target-gperf
924all-target: maybe-all-target-examples
925all-target: maybe-all-target-libffi
926all-target: maybe-all-target-libjava
927all-target: maybe-all-target-zlib
928all-target: maybe-all-target-boehm-gc
929all-target: maybe-all-target-qthreads
930all-target: maybe-all-target-rda
931all-target: maybe-all-target-libada
932all-target: maybe-all-target-libgomp
a3acbf46
RH
933
934# Do a target for all the subdirectories. A ``make do-X'' will do a
935# ``make X'' in all subdirectories (because, in general, there is a
936# dependency (below) of X upon do-X, a ``make X'' will also do this,
937# but it may do additional work as well).
d6ebd419 938
657b58f4 939.PHONY: do-info
168b158c 940do-info:
15b527ca 941 @: $(MAKE); $(unstage)
ecebee48
PB
942 @r=`${PWD_COMMAND}`; export r; \
943 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
944 $(MAKE) $(RECURSE_FLAGS_TO_PASS) info-host \
168b158c 945 info-target
168b158c 946
d6ebd419 947
657b58f4 948.PHONY: info-host
ec92c4d6
PB
949
950info-host: maybe-info-ash
951info-host: maybe-info-autoconf
952info-host: maybe-info-automake
953info-host: maybe-info-bash
954info-host: maybe-info-bfd
955info-host: maybe-info-opcodes
956info-host: maybe-info-binutils
957info-host: maybe-info-bison
958info-host: maybe-info-byacc
959info-host: maybe-info-bzip2
960info-host: maybe-info-dejagnu
961info-host: maybe-info-diff
962info-host: maybe-info-dosutils
963info-host: maybe-info-etc
964info-host: maybe-info-fastjar
965info-host: maybe-info-fileutils
966info-host: maybe-info-findutils
967info-host: maybe-info-find
968info-host: maybe-info-fixincludes
969info-host: maybe-info-flex
970info-host: maybe-info-gas
971info-host: maybe-info-gcc
972info-host: maybe-info-gawk
973info-host: maybe-info-gettext
42f55f77
PB
974info-host: maybe-info-gmp
975info-host: maybe-info-mpfr
311b6756
JM
976info-host: maybe-info-ppl
977info-host: maybe-info-cloog
ec92c4d6 978info-host: maybe-info-gnuserv
b916272a 979info-host: maybe-info-gold
ec92c4d6
PB
980info-host: maybe-info-gprof
981info-host: maybe-info-gzip
982info-host: maybe-info-hello
983info-host: maybe-info-indent
984info-host: maybe-info-intl
985info-host: maybe-info-tcl
986info-host: maybe-info-itcl
987info-host: maybe-info-ld
988info-host: maybe-info-libcpp
989info-host: maybe-info-libdecnumber
990info-host: maybe-info-libgui
991info-host: maybe-info-libiberty
992info-host: maybe-info-libtool
993info-host: maybe-info-m4
994info-host: maybe-info-make
995info-host: maybe-info-mmalloc
996info-host: maybe-info-patch
997info-host: maybe-info-perl
998info-host: maybe-info-prms
999info-host: maybe-info-rcs
1000info-host: maybe-info-readline
1001info-host: maybe-info-release
1002info-host: maybe-info-recode
1003info-host: maybe-info-sed
1004info-host: maybe-info-send-pr
1005info-host: maybe-info-shellutils
1006info-host: maybe-info-sid
1007info-host: maybe-info-sim
1008info-host: maybe-info-tar
1009info-host: maybe-info-texinfo
1010info-host: maybe-info-textutils
1011info-host: maybe-info-time
1012info-host: maybe-info-uudecode
1013info-host: maybe-info-wdiff
1014info-host: maybe-info-zip
1015info-host: maybe-info-zlib
1016info-host: maybe-info-gdb
1017info-host: maybe-info-expect
1018info-host: maybe-info-guile
1019info-host: maybe-info-tk
1020info-host: maybe-info-libtermcap
1021info-host: maybe-info-utils
1022info-host: maybe-info-gnattools
a3acbf46 1023
657b58f4 1024.PHONY: info-target
ec92c4d6
PB
1025
1026info-target: maybe-info-target-libstdc++-v3
1027info-target: maybe-info-target-libmudflap
1028info-target: maybe-info-target-libssp
ec92c4d6 1029info-target: maybe-info-target-newlib
1f316156 1030info-target: maybe-info-target-libgcc
ec92c4d6
PB
1031info-target: maybe-info-target-libgfortran
1032info-target: maybe-info-target-libobjc
1033info-target: maybe-info-target-libtermcap
1034info-target: maybe-info-target-winsup
1035info-target: maybe-info-target-libgloss
1036info-target: maybe-info-target-libiberty
1037info-target: maybe-info-target-gperf
1038info-target: maybe-info-target-examples
1039info-target: maybe-info-target-libffi
1040info-target: maybe-info-target-libjava
1041info-target: maybe-info-target-zlib
1042info-target: maybe-info-target-boehm-gc
1043info-target: maybe-info-target-qthreads
1044info-target: maybe-info-target-rda
1045info-target: maybe-info-target-libada
1046info-target: maybe-info-target-libgomp
a3acbf46 1047
8ec98d6c 1048.PHONY: do-dvi
168b158c 1049do-dvi:
15b527ca 1050 @: $(MAKE); $(unstage)
ecebee48
PB
1051 @r=`${PWD_COMMAND}`; export r; \
1052 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1053 $(MAKE) $(RECURSE_FLAGS_TO_PASS) dvi-host \
168b158c 1054 dvi-target
168b158c 1055
657b58f4 1056
8ec98d6c 1057.PHONY: dvi-host
ec92c4d6
PB
1058
1059dvi-host: maybe-dvi-ash
1060dvi-host: maybe-dvi-autoconf
1061dvi-host: maybe-dvi-automake
1062dvi-host: maybe-dvi-bash
1063dvi-host: maybe-dvi-bfd
1064dvi-host: maybe-dvi-opcodes
1065dvi-host: maybe-dvi-binutils
1066dvi-host: maybe-dvi-bison
1067dvi-host: maybe-dvi-byacc
1068dvi-host: maybe-dvi-bzip2
1069dvi-host: maybe-dvi-dejagnu
1070dvi-host: maybe-dvi-diff
1071dvi-host: maybe-dvi-dosutils
1072dvi-host: maybe-dvi-etc
1073dvi-host: maybe-dvi-fastjar
1074dvi-host: maybe-dvi-fileutils
1075dvi-host: maybe-dvi-findutils
1076dvi-host: maybe-dvi-find
1077dvi-host: maybe-dvi-fixincludes
1078dvi-host: maybe-dvi-flex
1079dvi-host: maybe-dvi-gas
1080dvi-host: maybe-dvi-gcc
1081dvi-host: maybe-dvi-gawk
1082dvi-host: maybe-dvi-gettext
42f55f77
PB
1083dvi-host: maybe-dvi-gmp
1084dvi-host: maybe-dvi-mpfr
311b6756
JM
1085dvi-host: maybe-dvi-ppl
1086dvi-host: maybe-dvi-cloog
ec92c4d6 1087dvi-host: maybe-dvi-gnuserv
b916272a 1088dvi-host: maybe-dvi-gold
ec92c4d6
PB
1089dvi-host: maybe-dvi-gprof
1090dvi-host: maybe-dvi-gzip
1091dvi-host: maybe-dvi-hello
1092dvi-host: maybe-dvi-indent
1093dvi-host: maybe-dvi-intl
1094dvi-host: maybe-dvi-tcl
1095dvi-host: maybe-dvi-itcl
1096dvi-host: maybe-dvi-ld
1097dvi-host: maybe-dvi-libcpp
1098dvi-host: maybe-dvi-libdecnumber
1099dvi-host: maybe-dvi-libgui
1100dvi-host: maybe-dvi-libiberty
1101dvi-host: maybe-dvi-libtool
1102dvi-host: maybe-dvi-m4
1103dvi-host: maybe-dvi-make
1104dvi-host: maybe-dvi-mmalloc
1105dvi-host: maybe-dvi-patch
1106dvi-host: maybe-dvi-perl
1107dvi-host: maybe-dvi-prms
1108dvi-host: maybe-dvi-rcs
1109dvi-host: maybe-dvi-readline
1110dvi-host: maybe-dvi-release
1111dvi-host: maybe-dvi-recode
1112dvi-host: maybe-dvi-sed
1113dvi-host: maybe-dvi-send-pr
1114dvi-host: maybe-dvi-shellutils
1115dvi-host: maybe-dvi-sid
1116dvi-host: maybe-dvi-sim
1117dvi-host: maybe-dvi-tar
1118dvi-host: maybe-dvi-texinfo
1119dvi-host: maybe-dvi-textutils
1120dvi-host: maybe-dvi-time
1121dvi-host: maybe-dvi-uudecode
1122dvi-host: maybe-dvi-wdiff
1123dvi-host: maybe-dvi-zip
1124dvi-host: maybe-dvi-zlib
1125dvi-host: maybe-dvi-gdb
1126dvi-host: maybe-dvi-expect
1127dvi-host: maybe-dvi-guile
1128dvi-host: maybe-dvi-tk
1129dvi-host: maybe-dvi-libtermcap
1130dvi-host: maybe-dvi-utils
1131dvi-host: maybe-dvi-gnattools
657b58f4 1132
8ec98d6c 1133.PHONY: dvi-target
ec92c4d6
PB
1134
1135dvi-target: maybe-dvi-target-libstdc++-v3
1136dvi-target: maybe-dvi-target-libmudflap
1137dvi-target: maybe-dvi-target-libssp
ec92c4d6 1138dvi-target: maybe-dvi-target-newlib
1f316156 1139dvi-target: maybe-dvi-target-libgcc
ec92c4d6
PB
1140dvi-target: maybe-dvi-target-libgfortran
1141dvi-target: maybe-dvi-target-libobjc
1142dvi-target: maybe-dvi-target-libtermcap
1143dvi-target: maybe-dvi-target-winsup
1144dvi-target: maybe-dvi-target-libgloss
1145dvi-target: maybe-dvi-target-libiberty
1146dvi-target: maybe-dvi-target-gperf
1147dvi-target: maybe-dvi-target-examples
1148dvi-target: maybe-dvi-target-libffi
1149dvi-target: maybe-dvi-target-libjava
1150dvi-target: maybe-dvi-target-zlib
1151dvi-target: maybe-dvi-target-boehm-gc
1152dvi-target: maybe-dvi-target-qthreads
1153dvi-target: maybe-dvi-target-rda
1154dvi-target: maybe-dvi-target-libada
1155dvi-target: maybe-dvi-target-libgomp
657b58f4 1156
39bbbb69
DD
1157.PHONY: do-pdf
1158do-pdf:
1159 @: $(MAKE); $(unstage)
1160 @r=`${PWD_COMMAND}`; export r; \
1161 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1162 $(MAKE) $(RECURSE_FLAGS_TO_PASS) pdf-host \
1163 pdf-target
1164
1165
1166.PHONY: pdf-host
1167
1168pdf-host: maybe-pdf-ash
1169pdf-host: maybe-pdf-autoconf
1170pdf-host: maybe-pdf-automake
1171pdf-host: maybe-pdf-bash
1172pdf-host: maybe-pdf-bfd
1173pdf-host: maybe-pdf-opcodes
1174pdf-host: maybe-pdf-binutils
1175pdf-host: maybe-pdf-bison
1176pdf-host: maybe-pdf-byacc
1177pdf-host: maybe-pdf-bzip2
1178pdf-host: maybe-pdf-dejagnu
1179pdf-host: maybe-pdf-diff
1180pdf-host: maybe-pdf-dosutils
1181pdf-host: maybe-pdf-etc
1182pdf-host: maybe-pdf-fastjar
1183pdf-host: maybe-pdf-fileutils
1184pdf-host: maybe-pdf-findutils
1185pdf-host: maybe-pdf-find
1186pdf-host: maybe-pdf-fixincludes
1187pdf-host: maybe-pdf-flex
1188pdf-host: maybe-pdf-gas
1189pdf-host: maybe-pdf-gcc
1190pdf-host: maybe-pdf-gawk
1191pdf-host: maybe-pdf-gettext
42f55f77
PB
1192pdf-host: maybe-pdf-gmp
1193pdf-host: maybe-pdf-mpfr
311b6756
JM
1194pdf-host: maybe-pdf-ppl
1195pdf-host: maybe-pdf-cloog
39bbbb69 1196pdf-host: maybe-pdf-gnuserv
b916272a 1197pdf-host: maybe-pdf-gold
39bbbb69
DD
1198pdf-host: maybe-pdf-gprof
1199pdf-host: maybe-pdf-gzip
1200pdf-host: maybe-pdf-hello
1201pdf-host: maybe-pdf-indent
1202pdf-host: maybe-pdf-intl
1203pdf-host: maybe-pdf-tcl
1204pdf-host: maybe-pdf-itcl
1205pdf-host: maybe-pdf-ld
1206pdf-host: maybe-pdf-libcpp
1207pdf-host: maybe-pdf-libdecnumber
1208pdf-host: maybe-pdf-libgui
1209pdf-host: maybe-pdf-libiberty
1210pdf-host: maybe-pdf-libtool
1211pdf-host: maybe-pdf-m4
1212pdf-host: maybe-pdf-make
1213pdf-host: maybe-pdf-mmalloc
1214pdf-host: maybe-pdf-patch
1215pdf-host: maybe-pdf-perl
1216pdf-host: maybe-pdf-prms
1217pdf-host: maybe-pdf-rcs
1218pdf-host: maybe-pdf-readline
1219pdf-host: maybe-pdf-release
1220pdf-host: maybe-pdf-recode
1221pdf-host: maybe-pdf-sed
1222pdf-host: maybe-pdf-send-pr
1223pdf-host: maybe-pdf-shellutils
1224pdf-host: maybe-pdf-sid
1225pdf-host: maybe-pdf-sim
1226pdf-host: maybe-pdf-tar
1227pdf-host: maybe-pdf-texinfo
1228pdf-host: maybe-pdf-textutils
1229pdf-host: maybe-pdf-time
1230pdf-host: maybe-pdf-uudecode
1231pdf-host: maybe-pdf-wdiff
1232pdf-host: maybe-pdf-zip
1233pdf-host: maybe-pdf-zlib
1234pdf-host: maybe-pdf-gdb
1235pdf-host: maybe-pdf-expect
1236pdf-host: maybe-pdf-guile
1237pdf-host: maybe-pdf-tk
1238pdf-host: maybe-pdf-libtermcap
1239pdf-host: maybe-pdf-utils
1240pdf-host: maybe-pdf-gnattools
1241
1242.PHONY: pdf-target
1243
1244pdf-target: maybe-pdf-target-libstdc++-v3
1245pdf-target: maybe-pdf-target-libmudflap
1246pdf-target: maybe-pdf-target-libssp
1247pdf-target: maybe-pdf-target-newlib
1f316156 1248pdf-target: maybe-pdf-target-libgcc
39bbbb69
DD
1249pdf-target: maybe-pdf-target-libgfortran
1250pdf-target: maybe-pdf-target-libobjc
1251pdf-target: maybe-pdf-target-libtermcap
1252pdf-target: maybe-pdf-target-winsup
1253pdf-target: maybe-pdf-target-libgloss
1254pdf-target: maybe-pdf-target-libiberty
1255pdf-target: maybe-pdf-target-gperf
1256pdf-target: maybe-pdf-target-examples
1257pdf-target: maybe-pdf-target-libffi
1258pdf-target: maybe-pdf-target-libjava
1259pdf-target: maybe-pdf-target-zlib
1260pdf-target: maybe-pdf-target-boehm-gc
1261pdf-target: maybe-pdf-target-qthreads
1262pdf-target: maybe-pdf-target-rda
1263pdf-target: maybe-pdf-target-libada
1264pdf-target: maybe-pdf-target-libgomp
1265
b6fb961f 1266.PHONY: do-html
168b158c 1267do-html:
15b527ca 1268 @: $(MAKE); $(unstage)
ecebee48
PB
1269 @r=`${PWD_COMMAND}`; export r; \
1270 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1271 $(MAKE) $(RECURSE_FLAGS_TO_PASS) html-host \
168b158c 1272 html-target
168b158c 1273
b6fb961f
MS
1274
1275.PHONY: html-host
ec92c4d6
PB
1276
1277html-host: maybe-html-ash
1278html-host: maybe-html-autoconf
1279html-host: maybe-html-automake
1280html-host: maybe-html-bash
1281html-host: maybe-html-bfd
1282html-host: maybe-html-opcodes
1283html-host: maybe-html-binutils
1284html-host: maybe-html-bison
1285html-host: maybe-html-byacc
1286html-host: maybe-html-bzip2
1287html-host: maybe-html-dejagnu
1288html-host: maybe-html-diff
1289html-host: maybe-html-dosutils
1290html-host: maybe-html-etc
1291html-host: maybe-html-fastjar
1292html-host: maybe-html-fileutils
1293html-host: maybe-html-findutils
1294html-host: maybe-html-find
1295html-host: maybe-html-fixincludes
1296html-host: maybe-html-flex
1297html-host: maybe-html-gas
1298html-host: maybe-html-gcc
1299html-host: maybe-html-gawk
1300html-host: maybe-html-gettext
42f55f77
PB
1301html-host: maybe-html-gmp
1302html-host: maybe-html-mpfr
311b6756
JM
1303html-host: maybe-html-ppl
1304html-host: maybe-html-cloog
ec92c4d6 1305html-host: maybe-html-gnuserv
b916272a 1306html-host: maybe-html-gold
ec92c4d6
PB
1307html-host: maybe-html-gprof
1308html-host: maybe-html-gzip
1309html-host: maybe-html-hello
1310html-host: maybe-html-indent
1311html-host: maybe-html-intl
1312html-host: maybe-html-tcl
1313html-host: maybe-html-itcl
1314html-host: maybe-html-ld
1315html-host: maybe-html-libcpp
1316html-host: maybe-html-libdecnumber
1317html-host: maybe-html-libgui
1318html-host: maybe-html-libiberty
1319html-host: maybe-html-libtool
1320html-host: maybe-html-m4
1321html-host: maybe-html-make
1322html-host: maybe-html-mmalloc
1323html-host: maybe-html-patch
1324html-host: maybe-html-perl
1325html-host: maybe-html-prms
1326html-host: maybe-html-rcs
1327html-host: maybe-html-readline
1328html-host: maybe-html-release
1329html-host: maybe-html-recode
1330html-host: maybe-html-sed
1331html-host: maybe-html-send-pr
1332html-host: maybe-html-shellutils
1333html-host: maybe-html-sid
1334html-host: maybe-html-sim
1335html-host: maybe-html-tar
1336html-host: maybe-html-texinfo
1337html-host: maybe-html-textutils
1338html-host: maybe-html-time
1339html-host: maybe-html-uudecode
1340html-host: maybe-html-wdiff
1341html-host: maybe-html-zip
1342html-host: maybe-html-zlib
1343html-host: maybe-html-gdb
1344html-host: maybe-html-expect
1345html-host: maybe-html-guile
1346html-host: maybe-html-tk
1347html-host: maybe-html-libtermcap
1348html-host: maybe-html-utils
1349html-host: maybe-html-gnattools
b6fb961f
MS
1350
1351.PHONY: html-target
ec92c4d6
PB
1352
1353html-target: maybe-html-target-libstdc++-v3
1354html-target: maybe-html-target-libmudflap
1355html-target: maybe-html-target-libssp
ec92c4d6 1356html-target: maybe-html-target-newlib
1f316156 1357html-target: maybe-html-target-libgcc
ec92c4d6
PB
1358html-target: maybe-html-target-libgfortran
1359html-target: maybe-html-target-libobjc
1360html-target: maybe-html-target-libtermcap
1361html-target: maybe-html-target-winsup
1362html-target: maybe-html-target-libgloss
1363html-target: maybe-html-target-libiberty
1364html-target: maybe-html-target-gperf
1365html-target: maybe-html-target-examples
1366html-target: maybe-html-target-libffi
1367html-target: maybe-html-target-libjava
1368html-target: maybe-html-target-zlib
1369html-target: maybe-html-target-boehm-gc
1370html-target: maybe-html-target-qthreads
1371html-target: maybe-html-target-rda
1372html-target: maybe-html-target-libada
1373html-target: maybe-html-target-libgomp
b6fb961f 1374
8ec98d6c 1375.PHONY: do-TAGS
168b158c 1376do-TAGS:
15b527ca 1377 @: $(MAKE); $(unstage)
ecebee48
PB
1378 @r=`${PWD_COMMAND}`; export r; \
1379 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1380 $(MAKE) $(RECURSE_FLAGS_TO_PASS) TAGS-host \
168b158c 1381 TAGS-target
168b158c 1382
657b58f4 1383
8ec98d6c 1384.PHONY: TAGS-host
ec92c4d6
PB
1385
1386TAGS-host: maybe-TAGS-ash
1387TAGS-host: maybe-TAGS-autoconf
1388TAGS-host: maybe-TAGS-automake
1389TAGS-host: maybe-TAGS-bash
1390TAGS-host: maybe-TAGS-bfd
1391TAGS-host: maybe-TAGS-opcodes
1392TAGS-host: maybe-TAGS-binutils
1393TAGS-host: maybe-TAGS-bison
1394TAGS-host: maybe-TAGS-byacc
1395TAGS-host: maybe-TAGS-bzip2
1396TAGS-host: maybe-TAGS-dejagnu
1397TAGS-host: maybe-TAGS-diff
1398TAGS-host: maybe-TAGS-dosutils
1399TAGS-host: maybe-TAGS-etc
1400TAGS-host: maybe-TAGS-fastjar
1401TAGS-host: maybe-TAGS-fileutils
1402TAGS-host: maybe-TAGS-findutils
1403TAGS-host: maybe-TAGS-find
1404TAGS-host: maybe-TAGS-fixincludes
1405TAGS-host: maybe-TAGS-flex
1406TAGS-host: maybe-TAGS-gas
1407TAGS-host: maybe-TAGS-gcc
1408TAGS-host: maybe-TAGS-gawk
1409TAGS-host: maybe-TAGS-gettext
42f55f77
PB
1410TAGS-host: maybe-TAGS-gmp
1411TAGS-host: maybe-TAGS-mpfr
311b6756
JM
1412TAGS-host: maybe-TAGS-ppl
1413TAGS-host: maybe-TAGS-cloog
ec92c4d6 1414TAGS-host: maybe-TAGS-gnuserv
b916272a 1415TAGS-host: maybe-TAGS-gold
ec92c4d6
PB
1416TAGS-host: maybe-TAGS-gprof
1417TAGS-host: maybe-TAGS-gzip
1418TAGS-host: maybe-TAGS-hello
1419TAGS-host: maybe-TAGS-indent
1420TAGS-host: maybe-TAGS-intl
1421TAGS-host: maybe-TAGS-tcl
1422TAGS-host: maybe-TAGS-itcl
1423TAGS-host: maybe-TAGS-ld
1424TAGS-host: maybe-TAGS-libcpp
1425TAGS-host: maybe-TAGS-libdecnumber
1426TAGS-host: maybe-TAGS-libgui
1427TAGS-host: maybe-TAGS-libiberty
1428TAGS-host: maybe-TAGS-libtool
1429TAGS-host: maybe-TAGS-m4
1430TAGS-host: maybe-TAGS-make
1431TAGS-host: maybe-TAGS-mmalloc
1432TAGS-host: maybe-TAGS-patch
1433TAGS-host: maybe-TAGS-perl
1434TAGS-host: maybe-TAGS-prms
1435TAGS-host: maybe-TAGS-rcs
1436TAGS-host: maybe-TAGS-readline
1437TAGS-host: maybe-TAGS-release
1438TAGS-host: maybe-TAGS-recode
1439TAGS-host: maybe-TAGS-sed
1440TAGS-host: maybe-TAGS-send-pr
1441TAGS-host: maybe-TAGS-shellutils
1442TAGS-host: maybe-TAGS-sid
1443TAGS-host: maybe-TAGS-sim
1444TAGS-host: maybe-TAGS-tar
1445TAGS-host: maybe-TAGS-texinfo
1446TAGS-host: maybe-TAGS-textutils
1447TAGS-host: maybe-TAGS-time
1448TAGS-host: maybe-TAGS-uudecode
1449TAGS-host: maybe-TAGS-wdiff
1450TAGS-host: maybe-TAGS-zip
1451TAGS-host: maybe-TAGS-zlib
1452TAGS-host: maybe-TAGS-gdb
1453TAGS-host: maybe-TAGS-expect
1454TAGS-host: maybe-TAGS-guile
1455TAGS-host: maybe-TAGS-tk
1456TAGS-host: maybe-TAGS-libtermcap
1457TAGS-host: maybe-TAGS-utils
1458TAGS-host: maybe-TAGS-gnattools
657b58f4 1459
8ec98d6c 1460.PHONY: TAGS-target
ec92c4d6
PB
1461
1462TAGS-target: maybe-TAGS-target-libstdc++-v3
1463TAGS-target: maybe-TAGS-target-libmudflap
1464TAGS-target: maybe-TAGS-target-libssp
ec92c4d6 1465TAGS-target: maybe-TAGS-target-newlib
1f316156 1466TAGS-target: maybe-TAGS-target-libgcc
ec92c4d6
PB
1467TAGS-target: maybe-TAGS-target-libgfortran
1468TAGS-target: maybe-TAGS-target-libobjc
1469TAGS-target: maybe-TAGS-target-libtermcap
1470TAGS-target: maybe-TAGS-target-winsup
1471TAGS-target: maybe-TAGS-target-libgloss
1472TAGS-target: maybe-TAGS-target-libiberty
1473TAGS-target: maybe-TAGS-target-gperf
1474TAGS-target: maybe-TAGS-target-examples
1475TAGS-target: maybe-TAGS-target-libffi
1476TAGS-target: maybe-TAGS-target-libjava
1477TAGS-target: maybe-TAGS-target-zlib
1478TAGS-target: maybe-TAGS-target-boehm-gc
1479TAGS-target: maybe-TAGS-target-qthreads
1480TAGS-target: maybe-TAGS-target-rda
1481TAGS-target: maybe-TAGS-target-libada
1482TAGS-target: maybe-TAGS-target-libgomp
d832a288 1483
8ec98d6c 1484.PHONY: do-install-info
168b158c 1485do-install-info:
15b527ca 1486 @: $(MAKE); $(unstage)
ecebee48
PB
1487 @r=`${PWD_COMMAND}`; export r; \
1488 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1489 $(MAKE) $(RECURSE_FLAGS_TO_PASS) install-info-host \
168b158c 1490 install-info-target
168b158c 1491
d832a288 1492
8ec98d6c 1493.PHONY: install-info-host
ec92c4d6
PB
1494
1495install-info-host: maybe-install-info-ash
1496install-info-host: maybe-install-info-autoconf
1497install-info-host: maybe-install-info-automake
1498install-info-host: maybe-install-info-bash
1499install-info-host: maybe-install-info-bfd
1500install-info-host: maybe-install-info-opcodes
1501install-info-host: maybe-install-info-binutils
1502install-info-host: maybe-install-info-bison
1503install-info-host: maybe-install-info-byacc
1504install-info-host: maybe-install-info-bzip2
1505install-info-host: maybe-install-info-dejagnu
1506install-info-host: maybe-install-info-diff
1507install-info-host: maybe-install-info-dosutils
1508install-info-host: maybe-install-info-etc
1509install-info-host: maybe-install-info-fastjar
1510install-info-host: maybe-install-info-fileutils
1511install-info-host: maybe-install-info-findutils
1512install-info-host: maybe-install-info-find
1513install-info-host: maybe-install-info-fixincludes
1514install-info-host: maybe-install-info-flex
1515install-info-host: maybe-install-info-gas
1516install-info-host: maybe-install-info-gcc
1517install-info-host: maybe-install-info-gawk
1518install-info-host: maybe-install-info-gettext
42f55f77
PB
1519install-info-host: maybe-install-info-gmp
1520install-info-host: maybe-install-info-mpfr
311b6756
JM
1521install-info-host: maybe-install-info-ppl
1522install-info-host: maybe-install-info-cloog
ec92c4d6 1523install-info-host: maybe-install-info-gnuserv
b916272a 1524install-info-host: maybe-install-info-gold
ec92c4d6
PB
1525install-info-host: maybe-install-info-gprof
1526install-info-host: maybe-install-info-gzip
1527install-info-host: maybe-install-info-hello
1528install-info-host: maybe-install-info-indent
1529install-info-host: maybe-install-info-intl
1530install-info-host: maybe-install-info-tcl
1531install-info-host: maybe-install-info-itcl
1532install-info-host: maybe-install-info-ld
1533install-info-host: maybe-install-info-libcpp
1534install-info-host: maybe-install-info-libdecnumber
1535install-info-host: maybe-install-info-libgui
1536install-info-host: maybe-install-info-libiberty
1537install-info-host: maybe-install-info-libtool
1538install-info-host: maybe-install-info-m4
1539install-info-host: maybe-install-info-make
1540install-info-host: maybe-install-info-mmalloc
1541install-info-host: maybe-install-info-patch
1542install-info-host: maybe-install-info-perl
1543install-info-host: maybe-install-info-prms
1544install-info-host: maybe-install-info-rcs
1545install-info-host: maybe-install-info-readline
1546install-info-host: maybe-install-info-release
1547install-info-host: maybe-install-info-recode
1548install-info-host: maybe-install-info-sed
1549install-info-host: maybe-install-info-send-pr
1550install-info-host: maybe-install-info-shellutils
1551install-info-host: maybe-install-info-sid
1552install-info-host: maybe-install-info-sim
1553install-info-host: maybe-install-info-tar
1554install-info-host: maybe-install-info-texinfo
1555install-info-host: maybe-install-info-textutils
1556install-info-host: maybe-install-info-time
1557install-info-host: maybe-install-info-uudecode
1558install-info-host: maybe-install-info-wdiff
1559install-info-host: maybe-install-info-zip
1560install-info-host: maybe-install-info-zlib
1561install-info-host: maybe-install-info-gdb
1562install-info-host: maybe-install-info-expect
1563install-info-host: maybe-install-info-guile
1564install-info-host: maybe-install-info-tk
1565install-info-host: maybe-install-info-libtermcap
1566install-info-host: maybe-install-info-utils
1567install-info-host: maybe-install-info-gnattools
d832a288 1568
8ec98d6c 1569.PHONY: install-info-target
ec92c4d6
PB
1570
1571install-info-target: maybe-install-info-target-libstdc++-v3
1572install-info-target: maybe-install-info-target-libmudflap
1573install-info-target: maybe-install-info-target-libssp
ec92c4d6 1574install-info-target: maybe-install-info-target-newlib
1f316156 1575install-info-target: maybe-install-info-target-libgcc
ec92c4d6
PB
1576install-info-target: maybe-install-info-target-libgfortran
1577install-info-target: maybe-install-info-target-libobjc
1578install-info-target: maybe-install-info-target-libtermcap
1579install-info-target: maybe-install-info-target-winsup
1580install-info-target: maybe-install-info-target-libgloss
1581install-info-target: maybe-install-info-target-libiberty
1582install-info-target: maybe-install-info-target-gperf
1583install-info-target: maybe-install-info-target-examples
1584install-info-target: maybe-install-info-target-libffi
1585install-info-target: maybe-install-info-target-libjava
1586install-info-target: maybe-install-info-target-zlib
1587install-info-target: maybe-install-info-target-boehm-gc
1588install-info-target: maybe-install-info-target-qthreads
1589install-info-target: maybe-install-info-target-rda
1590install-info-target: maybe-install-info-target-libada
1591install-info-target: maybe-install-info-target-libgomp
657b58f4 1592
d4954b6d
DD
1593.PHONY: do-install-pdf
1594do-install-pdf:
1595 @: $(MAKE); $(unstage)
1596 @r=`${PWD_COMMAND}`; export r; \
1597 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1598 $(MAKE) $(RECURSE_FLAGS_TO_PASS) install-pdf-host \
1599 install-pdf-target
1600
1601
1602.PHONY: install-pdf-host
1603
1604install-pdf-host: maybe-install-pdf-ash
1605install-pdf-host: maybe-install-pdf-autoconf
1606install-pdf-host: maybe-install-pdf-automake
1607install-pdf-host: maybe-install-pdf-bash
1608install-pdf-host: maybe-install-pdf-bfd
1609install-pdf-host: maybe-install-pdf-opcodes
1610install-pdf-host: maybe-install-pdf-binutils
1611install-pdf-host: maybe-install-pdf-bison
1612install-pdf-host: maybe-install-pdf-byacc
1613install-pdf-host: maybe-install-pdf-bzip2
1614install-pdf-host: maybe-install-pdf-dejagnu
1615install-pdf-host: maybe-install-pdf-diff
1616install-pdf-host: maybe-install-pdf-dosutils
1617install-pdf-host: maybe-install-pdf-etc
1618install-pdf-host: maybe-install-pdf-fastjar
1619install-pdf-host: maybe-install-pdf-fileutils
1620install-pdf-host: maybe-install-pdf-findutils
1621install-pdf-host: maybe-install-pdf-find
1622install-pdf-host: maybe-install-pdf-fixincludes
1623install-pdf-host: maybe-install-pdf-flex
1624install-pdf-host: maybe-install-pdf-gas
1625install-pdf-host: maybe-install-pdf-gcc
1626install-pdf-host: maybe-install-pdf-gawk
1627install-pdf-host: maybe-install-pdf-gettext
1628install-pdf-host: maybe-install-pdf-gmp
1629install-pdf-host: maybe-install-pdf-mpfr
311b6756
JM
1630install-pdf-host: maybe-install-pdf-ppl
1631install-pdf-host: maybe-install-pdf-cloog
d4954b6d 1632install-pdf-host: maybe-install-pdf-gnuserv
b916272a 1633install-pdf-host: maybe-install-pdf-gold
d4954b6d
DD
1634install-pdf-host: maybe-install-pdf-gprof
1635install-pdf-host: maybe-install-pdf-gzip
1636install-pdf-host: maybe-install-pdf-hello
1637install-pdf-host: maybe-install-pdf-indent
1638install-pdf-host: maybe-install-pdf-intl
1639install-pdf-host: maybe-install-pdf-tcl
1640install-pdf-host: maybe-install-pdf-itcl
1641install-pdf-host: maybe-install-pdf-ld
1642install-pdf-host: maybe-install-pdf-libcpp
1643install-pdf-host: maybe-install-pdf-libdecnumber
1644install-pdf-host: maybe-install-pdf-libgui
1645install-pdf-host: maybe-install-pdf-libiberty
1646install-pdf-host: maybe-install-pdf-libtool
1647install-pdf-host: maybe-install-pdf-m4
1648install-pdf-host: maybe-install-pdf-make
1649install-pdf-host: maybe-install-pdf-mmalloc
1650install-pdf-host: maybe-install-pdf-patch
1651install-pdf-host: maybe-install-pdf-perl
1652install-pdf-host: maybe-install-pdf-prms
1653install-pdf-host: maybe-install-pdf-rcs
1654install-pdf-host: maybe-install-pdf-readline
1655install-pdf-host: maybe-install-pdf-release
1656install-pdf-host: maybe-install-pdf-recode
1657install-pdf-host: maybe-install-pdf-sed
1658install-pdf-host: maybe-install-pdf-send-pr
1659install-pdf-host: maybe-install-pdf-shellutils
1660install-pdf-host: maybe-install-pdf-sid
1661install-pdf-host: maybe-install-pdf-sim
1662install-pdf-host: maybe-install-pdf-tar
1663install-pdf-host: maybe-install-pdf-texinfo
1664install-pdf-host: maybe-install-pdf-textutils
1665install-pdf-host: maybe-install-pdf-time
1666install-pdf-host: maybe-install-pdf-uudecode
1667install-pdf-host: maybe-install-pdf-wdiff
1668install-pdf-host: maybe-install-pdf-zip
1669install-pdf-host: maybe-install-pdf-zlib
1670install-pdf-host: maybe-install-pdf-gdb
1671install-pdf-host: maybe-install-pdf-expect
1672install-pdf-host: maybe-install-pdf-guile
1673install-pdf-host: maybe-install-pdf-tk
1674install-pdf-host: maybe-install-pdf-libtermcap
1675install-pdf-host: maybe-install-pdf-utils
1676install-pdf-host: maybe-install-pdf-gnattools
1677
1678.PHONY: install-pdf-target
1679
1680install-pdf-target: maybe-install-pdf-target-libstdc++-v3
1681install-pdf-target: maybe-install-pdf-target-libmudflap
1682install-pdf-target: maybe-install-pdf-target-libssp
1683install-pdf-target: maybe-install-pdf-target-newlib
1684install-pdf-target: maybe-install-pdf-target-libgcc
1685install-pdf-target: maybe-install-pdf-target-libgfortran
1686install-pdf-target: maybe-install-pdf-target-libobjc
1687install-pdf-target: maybe-install-pdf-target-libtermcap
1688install-pdf-target: maybe-install-pdf-target-winsup
1689install-pdf-target: maybe-install-pdf-target-libgloss
1690install-pdf-target: maybe-install-pdf-target-libiberty
1691install-pdf-target: maybe-install-pdf-target-gperf
1692install-pdf-target: maybe-install-pdf-target-examples
1693install-pdf-target: maybe-install-pdf-target-libffi
1694install-pdf-target: maybe-install-pdf-target-libjava
1695install-pdf-target: maybe-install-pdf-target-zlib
1696install-pdf-target: maybe-install-pdf-target-boehm-gc
1697install-pdf-target: maybe-install-pdf-target-qthreads
1698install-pdf-target: maybe-install-pdf-target-rda
1699install-pdf-target: maybe-install-pdf-target-libada
1700install-pdf-target: maybe-install-pdf-target-libgomp
1701
83c9add4
CD
1702.PHONY: do-install-html
1703do-install-html:
1704 @: $(MAKE); $(unstage)
1705 @r=`${PWD_COMMAND}`; export r; \
1706 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1707 $(MAKE) $(RECURSE_FLAGS_TO_PASS) install-html-host \
1708 install-html-target
1709
1710
1711.PHONY: install-html-host
1712
1713install-html-host: maybe-install-html-ash
1714install-html-host: maybe-install-html-autoconf
1715install-html-host: maybe-install-html-automake
1716install-html-host: maybe-install-html-bash
1717install-html-host: maybe-install-html-bfd
1718install-html-host: maybe-install-html-opcodes
1719install-html-host: maybe-install-html-binutils
1720install-html-host: maybe-install-html-bison
1721install-html-host: maybe-install-html-byacc
1722install-html-host: maybe-install-html-bzip2
1723install-html-host: maybe-install-html-dejagnu
1724install-html-host: maybe-install-html-diff
1725install-html-host: maybe-install-html-dosutils
1726install-html-host: maybe-install-html-etc
1727install-html-host: maybe-install-html-fastjar
1728install-html-host: maybe-install-html-fileutils
1729install-html-host: maybe-install-html-findutils
1730install-html-host: maybe-install-html-find
1731install-html-host: maybe-install-html-fixincludes
1732install-html-host: maybe-install-html-flex
1733install-html-host: maybe-install-html-gas
1734install-html-host: maybe-install-html-gcc
1735install-html-host: maybe-install-html-gawk
1736install-html-host: maybe-install-html-gettext
42f55f77
PB
1737install-html-host: maybe-install-html-gmp
1738install-html-host: maybe-install-html-mpfr
311b6756
JM
1739install-html-host: maybe-install-html-ppl
1740install-html-host: maybe-install-html-cloog
83c9add4 1741install-html-host: maybe-install-html-gnuserv
b916272a 1742install-html-host: maybe-install-html-gold
83c9add4
CD
1743install-html-host: maybe-install-html-gprof
1744install-html-host: maybe-install-html-gzip
1745install-html-host: maybe-install-html-hello
1746install-html-host: maybe-install-html-indent
1747install-html-host: maybe-install-html-intl
1748install-html-host: maybe-install-html-tcl
1749install-html-host: maybe-install-html-itcl
1750install-html-host: maybe-install-html-ld
1751install-html-host: maybe-install-html-libcpp
1752install-html-host: maybe-install-html-libdecnumber
1753install-html-host: maybe-install-html-libgui
1754install-html-host: maybe-install-html-libiberty
1755install-html-host: maybe-install-html-libtool
1756install-html-host: maybe-install-html-m4
1757install-html-host: maybe-install-html-make
1758install-html-host: maybe-install-html-mmalloc
1759install-html-host: maybe-install-html-patch
1760install-html-host: maybe-install-html-perl
1761install-html-host: maybe-install-html-prms
1762install-html-host: maybe-install-html-rcs
1763install-html-host: maybe-install-html-readline
1764install-html-host: maybe-install-html-release
1765install-html-host: maybe-install-html-recode
1766install-html-host: maybe-install-html-sed
1767install-html-host: maybe-install-html-send-pr
1768install-html-host: maybe-install-html-shellutils
1769install-html-host: maybe-install-html-sid
1770install-html-host: maybe-install-html-sim
1771install-html-host: maybe-install-html-tar
1772install-html-host: maybe-install-html-texinfo
1773install-html-host: maybe-install-html-textutils
1774install-html-host: maybe-install-html-time
1775install-html-host: maybe-install-html-uudecode
1776install-html-host: maybe-install-html-wdiff
1777install-html-host: maybe-install-html-zip
1778install-html-host: maybe-install-html-zlib
1779install-html-host: maybe-install-html-gdb
1780install-html-host: maybe-install-html-expect
1781install-html-host: maybe-install-html-guile
1782install-html-host: maybe-install-html-tk
1783install-html-host: maybe-install-html-libtermcap
1784install-html-host: maybe-install-html-utils
1785install-html-host: maybe-install-html-gnattools
1786
1787.PHONY: install-html-target
1788
1789install-html-target: maybe-install-html-target-libstdc++-v3
1790install-html-target: maybe-install-html-target-libmudflap
1791install-html-target: maybe-install-html-target-libssp
83c9add4 1792install-html-target: maybe-install-html-target-newlib
1f316156 1793install-html-target: maybe-install-html-target-libgcc
83c9add4
CD
1794install-html-target: maybe-install-html-target-libgfortran
1795install-html-target: maybe-install-html-target-libobjc
1796install-html-target: maybe-install-html-target-libtermcap
1797install-html-target: maybe-install-html-target-winsup
1798install-html-target: maybe-install-html-target-libgloss
1799install-html-target: maybe-install-html-target-libiberty
1800install-html-target: maybe-install-html-target-gperf
1801install-html-target: maybe-install-html-target-examples
1802install-html-target: maybe-install-html-target-libffi
1803install-html-target: maybe-install-html-target-libjava
1804install-html-target: maybe-install-html-target-zlib
1805install-html-target: maybe-install-html-target-boehm-gc
1806install-html-target: maybe-install-html-target-qthreads
1807install-html-target: maybe-install-html-target-rda
1808install-html-target: maybe-install-html-target-libada
1809install-html-target: maybe-install-html-target-libgomp
1810
657b58f4 1811.PHONY: do-installcheck
168b158c 1812do-installcheck:
15b527ca 1813 @: $(MAKE); $(unstage)
ecebee48
PB
1814 @r=`${PWD_COMMAND}`; export r; \
1815 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1816 $(MAKE) $(RECURSE_FLAGS_TO_PASS) installcheck-host \
168b158c 1817 installcheck-target
168b158c 1818
657b58f4
NN
1819
1820.PHONY: installcheck-host
ec92c4d6
PB
1821
1822installcheck-host: maybe-installcheck-ash
1823installcheck-host: maybe-installcheck-autoconf
1824installcheck-host: maybe-installcheck-automake
1825installcheck-host: maybe-installcheck-bash
1826installcheck-host: maybe-installcheck-bfd
1827installcheck-host: maybe-installcheck-opcodes
1828installcheck-host: maybe-installcheck-binutils
1829installcheck-host: maybe-installcheck-bison
1830installcheck-host: maybe-installcheck-byacc
1831installcheck-host: maybe-installcheck-bzip2
1832installcheck-host: maybe-installcheck-dejagnu
1833installcheck-host: maybe-installcheck-diff
1834installcheck-host: maybe-installcheck-dosutils
1835installcheck-host: maybe-installcheck-etc
1836installcheck-host: maybe-installcheck-fastjar
1837installcheck-host: maybe-installcheck-fileutils
1838installcheck-host: maybe-installcheck-findutils
1839installcheck-host: maybe-installcheck-find
1840installcheck-host: maybe-installcheck-fixincludes
1841installcheck-host: maybe-installcheck-flex
1842installcheck-host: maybe-installcheck-gas
1843installcheck-host: maybe-installcheck-gcc
1844installcheck-host: maybe-installcheck-gawk
1845installcheck-host: maybe-installcheck-gettext
42f55f77
PB
1846installcheck-host: maybe-installcheck-gmp
1847installcheck-host: maybe-installcheck-mpfr
311b6756
JM
1848installcheck-host: maybe-installcheck-ppl
1849installcheck-host: maybe-installcheck-cloog
ec92c4d6 1850installcheck-host: maybe-installcheck-gnuserv
b916272a 1851installcheck-host: maybe-installcheck-gold
ec92c4d6
PB
1852installcheck-host: maybe-installcheck-gprof
1853installcheck-host: maybe-installcheck-gzip
1854installcheck-host: maybe-installcheck-hello
1855installcheck-host: maybe-installcheck-indent
1856installcheck-host: maybe-installcheck-intl
1857installcheck-host: maybe-installcheck-tcl
1858installcheck-host: maybe-installcheck-itcl
1859installcheck-host: maybe-installcheck-ld
1860installcheck-host: maybe-installcheck-libcpp
1861installcheck-host: maybe-installcheck-libdecnumber
1862installcheck-host: maybe-installcheck-libgui
1863installcheck-host: maybe-installcheck-libiberty
1864installcheck-host: maybe-installcheck-libtool
1865installcheck-host: maybe-installcheck-m4
1866installcheck-host: maybe-installcheck-make
1867installcheck-host: maybe-installcheck-mmalloc
1868installcheck-host: maybe-installcheck-patch
1869installcheck-host: maybe-installcheck-perl
1870installcheck-host: maybe-installcheck-prms
1871installcheck-host: maybe-installcheck-rcs
1872installcheck-host: maybe-installcheck-readline
1873installcheck-host: maybe-installcheck-release
1874installcheck-host: maybe-installcheck-recode
1875installcheck-host: maybe-installcheck-sed
1876installcheck-host: maybe-installcheck-send-pr
1877installcheck-host: maybe-installcheck-shellutils
1878installcheck-host: maybe-installcheck-sid
1879installcheck-host: maybe-installcheck-sim
1880installcheck-host: maybe-installcheck-tar
1881installcheck-host: maybe-installcheck-texinfo
1882installcheck-host: maybe-installcheck-textutils
1883installcheck-host: maybe-installcheck-time
1884installcheck-host: maybe-installcheck-uudecode
1885installcheck-host: maybe-installcheck-wdiff
1886installcheck-host: maybe-installcheck-zip
1887installcheck-host: maybe-installcheck-zlib
1888installcheck-host: maybe-installcheck-gdb
1889installcheck-host: maybe-installcheck-expect
1890installcheck-host: maybe-installcheck-guile
1891installcheck-host: maybe-installcheck-tk
1892installcheck-host: maybe-installcheck-libtermcap
1893installcheck-host: maybe-installcheck-utils
1894installcheck-host: maybe-installcheck-gnattools
657b58f4
NN
1895
1896.PHONY: installcheck-target
ec92c4d6
PB
1897
1898installcheck-target: maybe-installcheck-target-libstdc++-v3
1899installcheck-target: maybe-installcheck-target-libmudflap
1900installcheck-target: maybe-installcheck-target-libssp
ec92c4d6 1901installcheck-target: maybe-installcheck-target-newlib
1f316156 1902installcheck-target: maybe-installcheck-target-libgcc
ec92c4d6
PB
1903installcheck-target: maybe-installcheck-target-libgfortran
1904installcheck-target: maybe-installcheck-target-libobjc
1905installcheck-target: maybe-installcheck-target-libtermcap
1906installcheck-target: maybe-installcheck-target-winsup
1907installcheck-target: maybe-installcheck-target-libgloss
1908installcheck-target: maybe-installcheck-target-libiberty
1909installcheck-target: maybe-installcheck-target-gperf
1910installcheck-target: maybe-installcheck-target-examples
1911installcheck-target: maybe-installcheck-target-libffi
1912installcheck-target: maybe-installcheck-target-libjava
1913installcheck-target: maybe-installcheck-target-zlib
1914installcheck-target: maybe-installcheck-target-boehm-gc
1915installcheck-target: maybe-installcheck-target-qthreads
1916installcheck-target: maybe-installcheck-target-rda
1917installcheck-target: maybe-installcheck-target-libada
1918installcheck-target: maybe-installcheck-target-libgomp
657b58f4 1919
8ec98d6c 1920.PHONY: do-mostlyclean
168b158c 1921do-mostlyclean:
15b527ca 1922 @: $(MAKE); $(unstage)
ecebee48
PB
1923 @r=`${PWD_COMMAND}`; export r; \
1924 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1925 $(MAKE) $(RECURSE_FLAGS_TO_PASS) mostlyclean-host \
168b158c 1926 mostlyclean-target
168b158c 1927
657b58f4 1928
8ec98d6c 1929.PHONY: mostlyclean-host
ec92c4d6
PB
1930
1931mostlyclean-host: maybe-mostlyclean-ash
1932mostlyclean-host: maybe-mostlyclean-autoconf
1933mostlyclean-host: maybe-mostlyclean-automake
1934mostlyclean-host: maybe-mostlyclean-bash
1935mostlyclean-host: maybe-mostlyclean-bfd
1936mostlyclean-host: maybe-mostlyclean-opcodes
1937mostlyclean-host: maybe-mostlyclean-binutils
1938mostlyclean-host: maybe-mostlyclean-bison
1939mostlyclean-host: maybe-mostlyclean-byacc
1940mostlyclean-host: maybe-mostlyclean-bzip2
1941mostlyclean-host: maybe-mostlyclean-dejagnu
1942mostlyclean-host: maybe-mostlyclean-diff
1943mostlyclean-host: maybe-mostlyclean-dosutils
1944mostlyclean-host: maybe-mostlyclean-etc
1945mostlyclean-host: maybe-mostlyclean-fastjar
1946mostlyclean-host: maybe-mostlyclean-fileutils
1947mostlyclean-host: maybe-mostlyclean-findutils
1948mostlyclean-host: maybe-mostlyclean-find
1949mostlyclean-host: maybe-mostlyclean-fixincludes
1950mostlyclean-host: maybe-mostlyclean-flex
1951mostlyclean-host: maybe-mostlyclean-gas
1952mostlyclean-host: maybe-mostlyclean-gcc
1953mostlyclean-host: maybe-mostlyclean-gawk
1954mostlyclean-host: maybe-mostlyclean-gettext
42f55f77
PB
1955mostlyclean-host: maybe-mostlyclean-gmp
1956mostlyclean-host: maybe-mostlyclean-mpfr
311b6756
JM
1957mostlyclean-host: maybe-mostlyclean-ppl
1958mostlyclean-host: maybe-mostlyclean-cloog
ec92c4d6 1959mostlyclean-host: maybe-mostlyclean-gnuserv
b916272a 1960mostlyclean-host: maybe-mostlyclean-gold
ec92c4d6
PB
1961mostlyclean-host: maybe-mostlyclean-gprof
1962mostlyclean-host: maybe-mostlyclean-gzip
1963mostlyclean-host: maybe-mostlyclean-hello
1964mostlyclean-host: maybe-mostlyclean-indent
1965mostlyclean-host: maybe-mostlyclean-intl
1966mostlyclean-host: maybe-mostlyclean-tcl
1967mostlyclean-host: maybe-mostlyclean-itcl
1968mostlyclean-host: maybe-mostlyclean-ld
1969mostlyclean-host: maybe-mostlyclean-libcpp
1970mostlyclean-host: maybe-mostlyclean-libdecnumber
1971mostlyclean-host: maybe-mostlyclean-libgui
1972mostlyclean-host: maybe-mostlyclean-libiberty
1973mostlyclean-host: maybe-mostlyclean-libtool
1974mostlyclean-host: maybe-mostlyclean-m4
1975mostlyclean-host: maybe-mostlyclean-make
1976mostlyclean-host: maybe-mostlyclean-mmalloc
1977mostlyclean-host: maybe-mostlyclean-patch
1978mostlyclean-host: maybe-mostlyclean-perl
1979mostlyclean-host: maybe-mostlyclean-prms
1980mostlyclean-host: maybe-mostlyclean-rcs
1981mostlyclean-host: maybe-mostlyclean-readline
1982mostlyclean-host: maybe-mostlyclean-release
1983mostlyclean-host: maybe-mostlyclean-recode
1984mostlyclean-host: maybe-mostlyclean-sed
1985mostlyclean-host: maybe-mostlyclean-send-pr
1986mostlyclean-host: maybe-mostlyclean-shellutils
1987mostlyclean-host: maybe-mostlyclean-sid
1988mostlyclean-host: maybe-mostlyclean-sim
1989mostlyclean-host: maybe-mostlyclean-tar
1990mostlyclean-host: maybe-mostlyclean-texinfo
1991mostlyclean-host: maybe-mostlyclean-textutils
1992mostlyclean-host: maybe-mostlyclean-time
1993mostlyclean-host: maybe-mostlyclean-uudecode
1994mostlyclean-host: maybe-mostlyclean-wdiff
1995mostlyclean-host: maybe-mostlyclean-zip
1996mostlyclean-host: maybe-mostlyclean-zlib
1997mostlyclean-host: maybe-mostlyclean-gdb
1998mostlyclean-host: maybe-mostlyclean-expect
1999mostlyclean-host: maybe-mostlyclean-guile
2000mostlyclean-host: maybe-mostlyclean-tk
2001mostlyclean-host: maybe-mostlyclean-libtermcap
2002mostlyclean-host: maybe-mostlyclean-utils
2003mostlyclean-host: maybe-mostlyclean-gnattools
657b58f4 2004
8ec98d6c 2005.PHONY: mostlyclean-target
ec92c4d6
PB
2006
2007mostlyclean-target: maybe-mostlyclean-target-libstdc++-v3
2008mostlyclean-target: maybe-mostlyclean-target-libmudflap
2009mostlyclean-target: maybe-mostlyclean-target-libssp
ec92c4d6 2010mostlyclean-target: maybe-mostlyclean-target-newlib
1f316156 2011mostlyclean-target: maybe-mostlyclean-target-libgcc
ec92c4d6
PB
2012mostlyclean-target: maybe-mostlyclean-target-libgfortran
2013mostlyclean-target: maybe-mostlyclean-target-libobjc
2014mostlyclean-target: maybe-mostlyclean-target-libtermcap
2015mostlyclean-target: maybe-mostlyclean-target-winsup
2016mostlyclean-target: maybe-mostlyclean-target-libgloss
2017mostlyclean-target: maybe-mostlyclean-target-libiberty
2018mostlyclean-target: maybe-mostlyclean-target-gperf
2019mostlyclean-target: maybe-mostlyclean-target-examples
2020mostlyclean-target: maybe-mostlyclean-target-libffi
2021mostlyclean-target: maybe-mostlyclean-target-libjava
2022mostlyclean-target: maybe-mostlyclean-target-zlib
2023mostlyclean-target: maybe-mostlyclean-target-boehm-gc
2024mostlyclean-target: maybe-mostlyclean-target-qthreads
2025mostlyclean-target: maybe-mostlyclean-target-rda
2026mostlyclean-target: maybe-mostlyclean-target-libada
2027mostlyclean-target: maybe-mostlyclean-target-libgomp
657b58f4 2028
8ec98d6c 2029.PHONY: do-clean
168b158c 2030do-clean:
15b527ca 2031 @: $(MAKE); $(unstage)
ecebee48
PB
2032 @r=`${PWD_COMMAND}`; export r; \
2033 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2034 $(MAKE) $(RECURSE_FLAGS_TO_PASS) clean-host \
168b158c 2035 clean-target
168b158c 2036
657b58f4 2037
8ec98d6c 2038.PHONY: clean-host
ec92c4d6
PB
2039
2040clean-host: maybe-clean-ash
2041clean-host: maybe-clean-autoconf
2042clean-host: maybe-clean-automake
2043clean-host: maybe-clean-bash
2044clean-host: maybe-clean-bfd
2045clean-host: maybe-clean-opcodes
2046clean-host: maybe-clean-binutils
2047clean-host: maybe-clean-bison
2048clean-host: maybe-clean-byacc
2049clean-host: maybe-clean-bzip2
2050clean-host: maybe-clean-dejagnu
2051clean-host: maybe-clean-diff
2052clean-host: maybe-clean-dosutils
2053clean-host: maybe-clean-etc
2054clean-host: maybe-clean-fastjar
2055clean-host: maybe-clean-fileutils
2056clean-host: maybe-clean-findutils
2057clean-host: maybe-clean-find
2058clean-host: maybe-clean-fixincludes
2059clean-host: maybe-clean-flex
2060clean-host: maybe-clean-gas
2061clean-host: maybe-clean-gcc
2062clean-host: maybe-clean-gawk
2063clean-host: maybe-clean-gettext
42f55f77
PB
2064clean-host: maybe-clean-gmp
2065clean-host: maybe-clean-mpfr
311b6756
JM
2066clean-host: maybe-clean-ppl
2067clean-host: maybe-clean-cloog
ec92c4d6 2068clean-host: maybe-clean-gnuserv
b916272a 2069clean-host: maybe-clean-gold
ec92c4d6
PB
2070clean-host: maybe-clean-gprof
2071clean-host: maybe-clean-gzip
2072clean-host: maybe-clean-hello
2073clean-host: maybe-clean-indent
2074clean-host: maybe-clean-intl
2075clean-host: maybe-clean-tcl
2076clean-host: maybe-clean-itcl
2077clean-host: maybe-clean-ld
2078clean-host: maybe-clean-libcpp
2079clean-host: maybe-clean-libdecnumber
2080clean-host: maybe-clean-libgui
2081clean-host: maybe-clean-libiberty
2082clean-host: maybe-clean-libtool
2083clean-host: maybe-clean-m4
2084clean-host: maybe-clean-make
2085clean-host: maybe-clean-mmalloc
2086clean-host: maybe-clean-patch
2087clean-host: maybe-clean-perl
2088clean-host: maybe-clean-prms
2089clean-host: maybe-clean-rcs
2090clean-host: maybe-clean-readline
2091clean-host: maybe-clean-release
2092clean-host: maybe-clean-recode
2093clean-host: maybe-clean-sed
2094clean-host: maybe-clean-send-pr
2095clean-host: maybe-clean-shellutils
2096clean-host: maybe-clean-sid
2097clean-host: maybe-clean-sim
2098clean-host: maybe-clean-tar
2099clean-host: maybe-clean-texinfo
2100clean-host: maybe-clean-textutils
2101clean-host: maybe-clean-time
2102clean-host: maybe-clean-uudecode
2103clean-host: maybe-clean-wdiff
2104clean-host: maybe-clean-zip
2105clean-host: maybe-clean-zlib
2106clean-host: maybe-clean-gdb
2107clean-host: maybe-clean-expect
2108clean-host: maybe-clean-guile
2109clean-host: maybe-clean-tk
2110clean-host: maybe-clean-libtermcap
2111clean-host: maybe-clean-utils
2112clean-host: maybe-clean-gnattools
657b58f4 2113
8ec98d6c 2114.PHONY: clean-target
ec92c4d6
PB
2115
2116clean-target: maybe-clean-target-libstdc++-v3
2117clean-target: maybe-clean-target-libmudflap
2118clean-target: maybe-clean-target-libssp
ec92c4d6 2119clean-target: maybe-clean-target-newlib
1f316156 2120clean-target: maybe-clean-target-libgcc
ec92c4d6
PB
2121clean-target: maybe-clean-target-libgfortran
2122clean-target: maybe-clean-target-libobjc
2123clean-target: maybe-clean-target-libtermcap
2124clean-target: maybe-clean-target-winsup
2125clean-target: maybe-clean-target-libgloss
2126clean-target: maybe-clean-target-libiberty
2127clean-target: maybe-clean-target-gperf
2128clean-target: maybe-clean-target-examples
2129clean-target: maybe-clean-target-libffi
2130clean-target: maybe-clean-target-libjava
2131clean-target: maybe-clean-target-zlib
2132clean-target: maybe-clean-target-boehm-gc
2133clean-target: maybe-clean-target-qthreads
2134clean-target: maybe-clean-target-rda
2135clean-target: maybe-clean-target-libada
2136clean-target: maybe-clean-target-libgomp
657b58f4 2137
8ec98d6c 2138.PHONY: do-distclean
168b158c 2139do-distclean:
15b527ca 2140 @: $(MAKE); $(unstage)
ecebee48
PB
2141 @r=`${PWD_COMMAND}`; export r; \
2142 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2143 $(MAKE) $(RECURSE_FLAGS_TO_PASS) distclean-host \
168b158c 2144 distclean-target
168b158c 2145
657b58f4 2146
8ec98d6c 2147.PHONY: distclean-host
ec92c4d6
PB
2148
2149distclean-host: maybe-distclean-ash
2150distclean-host: maybe-distclean-autoconf
2151distclean-host: maybe-distclean-automake
2152distclean-host: maybe-distclean-bash
2153distclean-host: maybe-distclean-bfd
2154distclean-host: maybe-distclean-opcodes
2155distclean-host: maybe-distclean-binutils
2156distclean-host: maybe-distclean-bison
2157distclean-host: maybe-distclean-byacc
2158distclean-host: maybe-distclean-bzip2
2159distclean-host: maybe-distclean-dejagnu
2160distclean-host: maybe-distclean-diff
2161distclean-host: maybe-distclean-dosutils
2162distclean-host: maybe-distclean-etc
2163distclean-host: maybe-distclean-fastjar
2164distclean-host: maybe-distclean-fileutils
2165distclean-host: maybe-distclean-findutils
2166distclean-host: maybe-distclean-find
2167distclean-host: maybe-distclean-fixincludes
2168distclean-host: maybe-distclean-flex
2169distclean-host: maybe-distclean-gas
2170distclean-host: maybe-distclean-gcc
2171distclean-host: maybe-distclean-gawk
2172distclean-host: maybe-distclean-gettext
42f55f77
PB
2173distclean-host: maybe-distclean-gmp
2174distclean-host: maybe-distclean-mpfr
311b6756
JM
2175distclean-host: maybe-distclean-ppl
2176distclean-host: maybe-distclean-cloog
ec92c4d6 2177distclean-host: maybe-distclean-gnuserv
b916272a 2178distclean-host: maybe-distclean-gold
ec92c4d6
PB
2179distclean-host: maybe-distclean-gprof
2180distclean-host: maybe-distclean-gzip
2181distclean-host: maybe-distclean-hello
2182distclean-host: maybe-distclean-indent
2183distclean-host: maybe-distclean-intl
2184distclean-host: maybe-distclean-tcl
2185distclean-host: maybe-distclean-itcl
2186distclean-host: maybe-distclean-ld
2187distclean-host: maybe-distclean-libcpp
2188distclean-host: maybe-distclean-libdecnumber
2189distclean-host: maybe-distclean-libgui
2190distclean-host: maybe-distclean-libiberty
2191distclean-host: maybe-distclean-libtool
2192distclean-host: maybe-distclean-m4
2193distclean-host: maybe-distclean-make
2194distclean-host: maybe-distclean-mmalloc
2195distclean-host: maybe-distclean-patch
2196distclean-host: maybe-distclean-perl
2197distclean-host: maybe-distclean-prms
2198distclean-host: maybe-distclean-rcs
2199distclean-host: maybe-distclean-readline
2200distclean-host: maybe-distclean-release
2201distclean-host: maybe-distclean-recode
2202distclean-host: maybe-distclean-sed
2203distclean-host: maybe-distclean-send-pr
2204distclean-host: maybe-distclean-shellutils
2205distclean-host: maybe-distclean-sid
2206distclean-host: maybe-distclean-sim
2207distclean-host: maybe-distclean-tar
2208distclean-host: maybe-distclean-texinfo
2209distclean-host: maybe-distclean-textutils
2210distclean-host: maybe-distclean-time
2211distclean-host: maybe-distclean-uudecode
2212distclean-host: maybe-distclean-wdiff
2213distclean-host: maybe-distclean-zip
2214distclean-host: maybe-distclean-zlib
2215distclean-host: maybe-distclean-gdb
2216distclean-host: maybe-distclean-expect
2217distclean-host: maybe-distclean-guile
2218distclean-host: maybe-distclean-tk
2219distclean-host: maybe-distclean-libtermcap
2220distclean-host: maybe-distclean-utils
2221distclean-host: maybe-distclean-gnattools
657b58f4 2222
8ec98d6c 2223.PHONY: distclean-target
ec92c4d6
PB
2224
2225distclean-target: maybe-distclean-target-libstdc++-v3
2226distclean-target: maybe-distclean-target-libmudflap
2227distclean-target: maybe-distclean-target-libssp
ec92c4d6 2228distclean-target: maybe-distclean-target-newlib
1f316156 2229distclean-target: maybe-distclean-target-libgcc
ec92c4d6
PB
2230distclean-target: maybe-distclean-target-libgfortran
2231distclean-target: maybe-distclean-target-libobjc
2232distclean-target: maybe-distclean-target-libtermcap
2233distclean-target: maybe-distclean-target-winsup
2234distclean-target: maybe-distclean-target-libgloss
2235distclean-target: maybe-distclean-target-libiberty
2236distclean-target: maybe-distclean-target-gperf
2237distclean-target: maybe-distclean-target-examples
2238distclean-target: maybe-distclean-target-libffi
2239distclean-target: maybe-distclean-target-libjava
2240distclean-target: maybe-distclean-target-zlib
2241distclean-target: maybe-distclean-target-boehm-gc
2242distclean-target: maybe-distclean-target-qthreads
2243distclean-target: maybe-distclean-target-rda
2244distclean-target: maybe-distclean-target-libada
2245distclean-target: maybe-distclean-target-libgomp
657b58f4 2246
8ec98d6c 2247.PHONY: do-maintainer-clean
168b158c 2248do-maintainer-clean:
15b527ca 2249 @: $(MAKE); $(unstage)
ecebee48
PB
2250 @r=`${PWD_COMMAND}`; export r; \
2251 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2252 $(MAKE) $(RECURSE_FLAGS_TO_PASS) maintainer-clean-host \
168b158c 2253 maintainer-clean-target
168b158c 2254
657b58f4 2255
8ec98d6c 2256.PHONY: maintainer-clean-host
ec92c4d6
PB
2257
2258maintainer-clean-host: maybe-maintainer-clean-ash
2259maintainer-clean-host: maybe-maintainer-clean-autoconf
2260maintainer-clean-host: maybe-maintainer-clean-automake
2261maintainer-clean-host: maybe-maintainer-clean-bash
2262maintainer-clean-host: maybe-maintainer-clean-bfd
2263maintainer-clean-host: maybe-maintainer-clean-opcodes
2264maintainer-clean-host: maybe-maintainer-clean-binutils
2265maintainer-clean-host: maybe-maintainer-clean-bison
2266maintainer-clean-host: maybe-maintainer-clean-byacc
2267maintainer-clean-host: maybe-maintainer-clean-bzip2
2268maintainer-clean-host: maybe-maintainer-clean-dejagnu
2269maintainer-clean-host: maybe-maintainer-clean-diff
2270maintainer-clean-host: maybe-maintainer-clean-dosutils
2271maintainer-clean-host: maybe-maintainer-clean-etc
2272maintainer-clean-host: maybe-maintainer-clean-fastjar
2273maintainer-clean-host: maybe-maintainer-clean-fileutils
2274maintainer-clean-host: maybe-maintainer-clean-findutils
2275maintainer-clean-host: maybe-maintainer-clean-find
2276maintainer-clean-host: maybe-maintainer-clean-fixincludes
2277maintainer-clean-host: maybe-maintainer-clean-flex
2278maintainer-clean-host: maybe-maintainer-clean-gas
2279maintainer-clean-host: maybe-maintainer-clean-gcc
2280maintainer-clean-host: maybe-maintainer-clean-gawk
2281maintainer-clean-host: maybe-maintainer-clean-gettext
42f55f77
PB
2282maintainer-clean-host: maybe-maintainer-clean-gmp
2283maintainer-clean-host: maybe-maintainer-clean-mpfr
311b6756
JM
2284maintainer-clean-host: maybe-maintainer-clean-ppl
2285maintainer-clean-host: maybe-maintainer-clean-cloog
ec92c4d6 2286maintainer-clean-host: maybe-maintainer-clean-gnuserv
b916272a 2287maintainer-clean-host: maybe-maintainer-clean-gold
ec92c4d6
PB
2288maintainer-clean-host: maybe-maintainer-clean-gprof
2289maintainer-clean-host: maybe-maintainer-clean-gzip
2290maintainer-clean-host: maybe-maintainer-clean-hello
2291maintainer-clean-host: maybe-maintainer-clean-indent
2292maintainer-clean-host: maybe-maintainer-clean-intl
2293maintainer-clean-host: maybe-maintainer-clean-tcl
2294maintainer-clean-host: maybe-maintainer-clean-itcl
2295maintainer-clean-host: maybe-maintainer-clean-ld
2296maintainer-clean-host: maybe-maintainer-clean-libcpp
2297maintainer-clean-host: maybe-maintainer-clean-libdecnumber
2298maintainer-clean-host: maybe-maintainer-clean-libgui
2299maintainer-clean-host: maybe-maintainer-clean-libiberty
2300maintainer-clean-host: maybe-maintainer-clean-libtool
2301maintainer-clean-host: maybe-maintainer-clean-m4
2302maintainer-clean-host: maybe-maintainer-clean-make
2303maintainer-clean-host: maybe-maintainer-clean-mmalloc
2304maintainer-clean-host: maybe-maintainer-clean-patch
2305maintainer-clean-host: maybe-maintainer-clean-perl
2306maintainer-clean-host: maybe-maintainer-clean-prms
2307maintainer-clean-host: maybe-maintainer-clean-rcs
2308maintainer-clean-host: maybe-maintainer-clean-readline
2309maintainer-clean-host: maybe-maintainer-clean-release
2310maintainer-clean-host: maybe-maintainer-clean-recode
2311maintainer-clean-host: maybe-maintainer-clean-sed
2312maintainer-clean-host: maybe-maintainer-clean-send-pr
2313maintainer-clean-host: maybe-maintainer-clean-shellutils
2314maintainer-clean-host: maybe-maintainer-clean-sid
2315maintainer-clean-host: maybe-maintainer-clean-sim
2316maintainer-clean-host: maybe-maintainer-clean-tar
2317maintainer-clean-host: maybe-maintainer-clean-texinfo
2318maintainer-clean-host: maybe-maintainer-clean-textutils
2319maintainer-clean-host: maybe-maintainer-clean-time
2320maintainer-clean-host: maybe-maintainer-clean-uudecode
2321maintainer-clean-host: maybe-maintainer-clean-wdiff
2322maintainer-clean-host: maybe-maintainer-clean-zip
2323maintainer-clean-host: maybe-maintainer-clean-zlib
2324maintainer-clean-host: maybe-maintainer-clean-gdb
2325maintainer-clean-host: maybe-maintainer-clean-expect
2326maintainer-clean-host: maybe-maintainer-clean-guile
2327maintainer-clean-host: maybe-maintainer-clean-tk
2328maintainer-clean-host: maybe-maintainer-clean-libtermcap
2329maintainer-clean-host: maybe-maintainer-clean-utils
2330maintainer-clean-host: maybe-maintainer-clean-gnattools
657b58f4 2331
8ec98d6c 2332.PHONY: maintainer-clean-target
ec92c4d6
PB
2333
2334maintainer-clean-target: maybe-maintainer-clean-target-libstdc++-v3
2335maintainer-clean-target: maybe-maintainer-clean-target-libmudflap
2336maintainer-clean-target: maybe-maintainer-clean-target-libssp
ec92c4d6 2337maintainer-clean-target: maybe-maintainer-clean-target-newlib
1f316156 2338maintainer-clean-target: maybe-maintainer-clean-target-libgcc
ec92c4d6
PB
2339maintainer-clean-target: maybe-maintainer-clean-target-libgfortran
2340maintainer-clean-target: maybe-maintainer-clean-target-libobjc
2341maintainer-clean-target: maybe-maintainer-clean-target-libtermcap
2342maintainer-clean-target: maybe-maintainer-clean-target-winsup
2343maintainer-clean-target: maybe-maintainer-clean-target-libgloss
2344maintainer-clean-target: maybe-maintainer-clean-target-libiberty
2345maintainer-clean-target: maybe-maintainer-clean-target-gperf
2346maintainer-clean-target: maybe-maintainer-clean-target-examples
2347maintainer-clean-target: maybe-maintainer-clean-target-libffi
2348maintainer-clean-target: maybe-maintainer-clean-target-libjava
2349maintainer-clean-target: maybe-maintainer-clean-target-zlib
2350maintainer-clean-target: maybe-maintainer-clean-target-boehm-gc
2351maintainer-clean-target: maybe-maintainer-clean-target-qthreads
2352maintainer-clean-target: maybe-maintainer-clean-target-rda
2353maintainer-clean-target: maybe-maintainer-clean-target-libada
2354maintainer-clean-target: maybe-maintainer-clean-target-libgomp
657b58f4 2355
657b58f4 2356
8ec98d6c 2357# Here are the targets which correspond to the do-X targets.
657b58f4 2358
d4954b6d
DD
2359.PHONY: info installcheck dvi pdf html
2360.PHONY: install-info install-pdf install-html
8ec98d6c
NN
2361.PHONY: clean distclean mostlyclean maintainer-clean realclean
2362.PHONY: local-clean local-distclean local-maintainer-clean
2363info: do-info
2364installcheck: do-installcheck
2365dvi: do-dvi
39bbbb69 2366pdf: do-pdf
b6fb961f 2367html: do-html
657b58f4 2368
8ec98d6c
NN
2369# Make sure makeinfo is built before we do a `make info', if we're
2370# in fact building texinfo.
2371do-info: maybe-all-texinfo
657b58f4 2372
8ec98d6c 2373install-info: do-install-info dir.info
5230d454 2374 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8ec98d6c
NN
2375 if [ -f dir.info ] ; then \
2376 $(INSTALL_DATA) dir.info $(DESTDIR)$(infodir)/dir.info ; \
2377 else true ; fi
657b58f4 2378
d4954b6d
DD
2379install-pdf: do-install-pdf
2380
83c9add4
CD
2381install-html: do-install-html
2382
8ec98d6c
NN
2383local-clean:
2384 -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
657b58f4 2385
8ec98d6c
NN
2386local-distclean:
2387 -rm -f Makefile config.status config.cache mh-frag mt-frag
15b527ca 2388 -rm -f maybedep.tmp serdep.tmp
8ec98d6c
NN
2389 -if [ "$(TARGET_SUBDIR)" != "." ]; then \
2390 rm -rf $(TARGET_SUBDIR); \
2391 else true; fi
2392 -rm -rf $(BUILD_SUBDIR)
7fc2ca22
PB
2393 -if [ "$(HOST_SUBDIR)" != "." ]; then \
2394 rm -rf $(HOST_SUBDIR); \
2395 else true; fi
8ec98d6c
NN
2396 -rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile
2397 -rm -f texinfo/doc/Makefile texinfo/po/POTFILES
2398 -rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null
2399 -rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null
2400 -rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null
657b58f4 2401
8ec98d6c
NN
2402local-maintainer-clean:
2403 @echo "This command is intended for maintainers to use;"
2404 @echo "it deletes files that may require special tools to rebuild."
657b58f4 2405
8ec98d6c
NN
2406clean: do-clean local-clean
2407mostlyclean: do-mostlyclean local-clean
2408distclean: do-distclean local-clean local-distclean
2409maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean
2410maintainer-clean: local-distclean
2411realclean: maintainer-clean
657b58f4 2412
8ec98d6c 2413# Check target.
657b58f4 2414
8ec98d6c
NN
2415.PHONY: check do-check
2416check: do-check
657b58f4 2417
8ec98d6c 2418# Only include modules actually being configured and built.
168b158c
PB
2419.PHONY: check-host
2420check-host: \
8ec98d6c
NN
2421 maybe-check-ash \
2422 maybe-check-autoconf \
2423 maybe-check-automake \
2424 maybe-check-bash \
2425 maybe-check-bfd \
2426 maybe-check-opcodes \
2427 maybe-check-binutils \
2428 maybe-check-bison \
2429 maybe-check-byacc \
2430 maybe-check-bzip2 \
2431 maybe-check-dejagnu \
2432 maybe-check-diff \
2433 maybe-check-dosutils \
2434 maybe-check-etc \
2435 maybe-check-fastjar \
2436 maybe-check-fileutils \
2437 maybe-check-findutils \
2438 maybe-check-find \
5350aa8b 2439 maybe-check-fixincludes \
8ec98d6c
NN
2440 maybe-check-flex \
2441 maybe-check-gas \
d5eec917 2442 maybe-check-gcc \
8ec98d6c
NN
2443 maybe-check-gawk \
2444 maybe-check-gettext \
42f55f77
PB
2445 maybe-check-gmp \
2446 maybe-check-mpfr \
311b6756
JM
2447 maybe-check-ppl \
2448 maybe-check-cloog \
8ec98d6c 2449 maybe-check-gnuserv \
b916272a 2450 maybe-check-gold \
8ec98d6c
NN
2451 maybe-check-gprof \
2452 maybe-check-gzip \
2453 maybe-check-hello \
2454 maybe-check-indent \
2455 maybe-check-intl \
2456 maybe-check-tcl \
2457 maybe-check-itcl \
2458 maybe-check-ld \
c580d516 2459 maybe-check-libcpp \
a7dc05b5 2460 maybe-check-libdecnumber \
8ec98d6c
NN
2461 maybe-check-libgui \
2462 maybe-check-libiberty \
2463 maybe-check-libtool \
2464 maybe-check-m4 \
2465 maybe-check-make \
2466 maybe-check-mmalloc \
2467 maybe-check-patch \
2468 maybe-check-perl \
2469 maybe-check-prms \
2470 maybe-check-rcs \
2471 maybe-check-readline \
2472 maybe-check-release \
2473 maybe-check-recode \
2474 maybe-check-sed \
2475 maybe-check-send-pr \
2476 maybe-check-shellutils \
2477 maybe-check-sid \
2478 maybe-check-sim \
2479 maybe-check-tar \
2480 maybe-check-texinfo \
2481 maybe-check-textutils \
2482 maybe-check-time \
2483 maybe-check-uudecode \
2484 maybe-check-wdiff \
2485 maybe-check-zip \
2486 maybe-check-zlib \
2487 maybe-check-gdb \
2488 maybe-check-expect \
2489 maybe-check-guile \
2490 maybe-check-tk \
8ec98d6c
NN
2491 maybe-check-libtermcap \
2492 maybe-check-utils \
168b158c
PB
2493 maybe-check-gnattools
2494
2495.PHONY: check-target
2496check-target: \
8ec98d6c 2497 maybe-check-target-libstdc++-v3 \
cb2333e8 2498 maybe-check-target-libmudflap \
4c3e061c 2499 maybe-check-target-libssp \
8ec98d6c 2500 maybe-check-target-newlib \
1f316156 2501 maybe-check-target-libgcc \
cb2333e8 2502 maybe-check-target-libgfortran \
8ec98d6c
NN
2503 maybe-check-target-libobjc \
2504 maybe-check-target-libtermcap \
2505 maybe-check-target-winsup \
2506 maybe-check-target-libgloss \
2507 maybe-check-target-libiberty \
2508 maybe-check-target-gperf \
2509 maybe-check-target-examples \
2510 maybe-check-target-libffi \
2511 maybe-check-target-libjava \
2512 maybe-check-target-zlib \
2513 maybe-check-target-boehm-gc \
2514 maybe-check-target-qthreads \
2515 maybe-check-target-rda \
00bc9d7f
PB
2516 maybe-check-target-libada \
2517 maybe-check-target-libgomp
168b158c
PB
2518
2519do-check:
15b527ca 2520 @: $(MAKE); $(unstage)
ecebee48
PB
2521 @r=`${PWD_COMMAND}`; export r; \
2522 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2523 $(MAKE) $(RECURSE_FLAGS_TO_PASS) check-host check-target
657b58f4 2524
8ec98d6c 2525# Automated reporting of test results.
657b58f4 2526
8ec98d6c
NN
2527warning.log: build.log
2528 $(srcdir)/contrib/warn_summary build.log > $@
657b58f4 2529
8ec98d6c
NN
2530mail-report.log:
2531 if test x'$(BOOT_CFLAGS)' != x''; then \
2532 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
2533 fi; \
2534 $(srcdir)/contrib/test_summary -t >$@
2535 chmod +x $@
2536 echo If you really want to send e-mail, run ./$@ now
657b58f4 2537
8ec98d6c
NN
2538mail-report-with-warnings.log: warning.log
2539 if test x'$(BOOT_CFLAGS)' != x''; then \
2540 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
2541 fi; \
2542 $(srcdir)/contrib/test_summary -t -i warning.log >$@
2543 chmod +x $@
2544 echo If you really want to send e-mail, run ./$@ now
657b58f4 2545
8ec98d6c 2546# Installation targets.
657b58f4 2547
8ec98d6c 2548.PHONY: install uninstall
168b158c 2549install:
15b527ca 2550 @: $(MAKE); $(unstage)
ecebee48
PB
2551 @r=`${PWD_COMMAND}`; export r; \
2552 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2553 $(MAKE) $(RECURSE_FLAGS_TO_PASS) installdirs install-host install-target
657b58f4 2554
8ec98d6c
NN
2555.PHONY: install-host-nogcc
2556install-host-nogcc: \
2557 maybe-install-ash \
2558 maybe-install-autoconf \
2559 maybe-install-automake \
2560 maybe-install-bash \
2561 maybe-install-bfd \
2562 maybe-install-opcodes \
2563 maybe-install-binutils \
2564 maybe-install-bison \
2565 maybe-install-byacc \
2566 maybe-install-bzip2 \
2567 maybe-install-dejagnu \
2568 maybe-install-diff \
2569 maybe-install-dosutils \
2570 maybe-install-etc \
2571 maybe-install-fastjar \
2572 maybe-install-fileutils \
2573 maybe-install-findutils \
2574 maybe-install-find \
5350aa8b 2575 maybe-install-fixincludes \
8ec98d6c
NN
2576 maybe-install-flex \
2577 maybe-install-gas \
2578 maybe-install-gawk \
2579 maybe-install-gettext \
42f55f77
PB
2580 maybe-install-gmp \
2581 maybe-install-mpfr \
311b6756
JM
2582 maybe-install-ppl \
2583 maybe-install-cloog \
8ec98d6c 2584 maybe-install-gnuserv \
b916272a 2585 maybe-install-gold \
8ec98d6c
NN
2586 maybe-install-gprof \
2587 maybe-install-gzip \
2588 maybe-install-hello \
2589 maybe-install-indent \
2590 maybe-install-intl \
2591 maybe-install-tcl \
2592 maybe-install-itcl \
2593 maybe-install-ld \
c580d516 2594 maybe-install-libcpp \
a7dc05b5 2595 maybe-install-libdecnumber \
8ec98d6c
NN
2596 maybe-install-libgui \
2597 maybe-install-libiberty \
2598 maybe-install-libtool \
2599 maybe-install-m4 \
2600 maybe-install-make \
2601 maybe-install-mmalloc \
2602 maybe-install-patch \
2603 maybe-install-perl \
2604 maybe-install-prms \
2605 maybe-install-rcs \
2606 maybe-install-readline \
2607 maybe-install-release \
2608 maybe-install-recode \
2609 maybe-install-sed \
2610 maybe-install-send-pr \
2611 maybe-install-shellutils \
2612 maybe-install-sid \
2613 maybe-install-sim \
2614 maybe-install-tar \
2615 maybe-install-texinfo \
2616 maybe-install-textutils \
2617 maybe-install-time \
2618 maybe-install-uudecode \
2619 maybe-install-wdiff \
2620 maybe-install-zip \
2621 maybe-install-zlib \
2622 maybe-install-gdb \
2623 maybe-install-expect \
2624 maybe-install-guile \
2625 maybe-install-tk \
8ec98d6c 2626 maybe-install-libtermcap \
7fc2ca22
PB
2627 maybe-install-utils \
2628 maybe-install-gnattools
657b58f4 2629
8ec98d6c 2630.PHONY: install-host
d5eec917 2631install-host: \
8ec98d6c
NN
2632 maybe-install-ash \
2633 maybe-install-autoconf \
2634 maybe-install-automake \
2635 maybe-install-bash \
2636 maybe-install-bfd \
2637 maybe-install-opcodes \
2638 maybe-install-binutils \
2639 maybe-install-bison \
2640 maybe-install-byacc \
2641 maybe-install-bzip2 \
2642 maybe-install-dejagnu \
2643 maybe-install-diff \
2644 maybe-install-dosutils \
2645 maybe-install-etc \
2646 maybe-install-fastjar \
2647 maybe-install-fileutils \
2648 maybe-install-findutils \
2649 maybe-install-find \
5350aa8b 2650 maybe-install-fixincludes \
8ec98d6c
NN
2651 maybe-install-flex \
2652 maybe-install-gas \
d5eec917 2653 maybe-install-gcc \
8ec98d6c
NN
2654 maybe-install-gawk \
2655 maybe-install-gettext \
42f55f77
PB
2656 maybe-install-gmp \
2657 maybe-install-mpfr \
311b6756
JM
2658 maybe-install-ppl \
2659 maybe-install-cloog \
8ec98d6c 2660 maybe-install-gnuserv \
b916272a 2661 maybe-install-gold \
8ec98d6c
NN
2662 maybe-install-gprof \
2663 maybe-install-gzip \
2664 maybe-install-hello \
2665 maybe-install-indent \
2666 maybe-install-intl \
2667 maybe-install-tcl \
2668 maybe-install-itcl \
2669 maybe-install-ld \
c580d516 2670 maybe-install-libcpp \
a7dc05b5 2671 maybe-install-libdecnumber \
8ec98d6c
NN
2672 maybe-install-libgui \
2673 maybe-install-libiberty \
2674 maybe-install-libtool \
2675 maybe-install-m4 \
2676 maybe-install-make \
2677 maybe-install-mmalloc \
2678 maybe-install-patch \
2679 maybe-install-perl \
2680 maybe-install-prms \
2681 maybe-install-rcs \
2682 maybe-install-readline \
2683 maybe-install-release \
2684 maybe-install-recode \
2685 maybe-install-sed \
2686 maybe-install-send-pr \
2687 maybe-install-shellutils \
2688 maybe-install-sid \
2689 maybe-install-sim \
2690 maybe-install-tar \
2691 maybe-install-texinfo \
2692 maybe-install-textutils \
2693 maybe-install-time \
2694 maybe-install-uudecode \
2695 maybe-install-wdiff \
2696 maybe-install-zip \
2697 maybe-install-zlib \
2698 maybe-install-gdb \
2699 maybe-install-expect \
2700 maybe-install-guile \
2701 maybe-install-tk \
8ec98d6c 2702 maybe-install-libtermcap \
7fc2ca22
PB
2703 maybe-install-utils \
2704 maybe-install-gnattools
657b58f4 2705
8ec98d6c
NN
2706.PHONY: install-target
2707install-target: \
2708 maybe-install-target-libstdc++-v3 \
cb2333e8 2709 maybe-install-target-libmudflap \
4c3e061c 2710 maybe-install-target-libssp \
8ec98d6c 2711 maybe-install-target-newlib \
1f316156 2712 maybe-install-target-libgcc \
cb2333e8 2713 maybe-install-target-libgfortran \
8ec98d6c
NN
2714 maybe-install-target-libobjc \
2715 maybe-install-target-libtermcap \
2716 maybe-install-target-winsup \
2717 maybe-install-target-libgloss \
2718 maybe-install-target-libiberty \
2719 maybe-install-target-gperf \
2720 maybe-install-target-examples \
2721 maybe-install-target-libffi \
2722 maybe-install-target-libjava \
2723 maybe-install-target-zlib \
2724 maybe-install-target-boehm-gc \
2725 maybe-install-target-qthreads \
2726 maybe-install-target-rda \
00bc9d7f
PB
2727 maybe-install-target-libada \
2728 maybe-install-target-libgomp
657b58f4 2729
8ec98d6c
NN
2730uninstall:
2731 @echo "the uninstall target is not supported in this tree"
657b58f4 2732
8ec98d6c
NN
2733.PHONY: install.all
2734install.all: install-no-fixedincludes
2735 @if [ -f ./gcc/Makefile ] ; then \
2736 r=`${PWD_COMMAND}` ; export r ; \
15b527ca 2737 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
63673a5b 2738 $(HOST_EXPORTS) \
8ec98d6c
NN
2739 (cd ./gcc && \
2740 $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \
2741 else \
2742 true ; \
2743 fi
657b58f4 2744
8ec98d6c
NN
2745# install-no-fixedincludes is used because Cygnus can not distribute
2746# the fixed header files.
2747.PHONY: install-no-fixedincludes
2748install-no-fixedincludes: installdirs install-host-nogcc \
2749 install-target gcc-no-fixedincludes
657b58f4 2750
8ec98d6c 2751### other supporting targets
657b58f4 2752
8ec98d6c
NN
2753MAKEDIRS= \
2754 $(DESTDIR)$(prefix) \
2755 $(DESTDIR)$(exec_prefix)
2756.PHONY: installdirs
2757installdirs: mkinstalldirs
2758 $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS)
657b58f4 2759
8ec98d6c
NN
2760dir.info: do-install-info
2761 if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \
2762 $(srcdir)/texinfo/gen-info-dir $(DESTDIR)$(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \
2763 mv -f dir.info.new dir.info ; \
2764 else true ; \
2765 fi
657b58f4 2766
8ec98d6c
NN
2767dist:
2768 @echo "Building a full distribution of this tree isn't done"
2769 @echo "via 'make dist'. Check out the etc/ subdirectory"
657b58f4 2770
8ec98d6c 2771etags tags: TAGS
657b58f4 2772
8ec98d6c
NN
2773# Right now this just builds TAGS in each subdirectory. emacs19 has the
2774# ability to use several tags files at once, so there is probably no need
2775# to combine them into one big TAGS file (like CVS 1.3 does). We could
2776# (if we felt like it) have this Makefile write a piece of elisp which
2777# the user could load to tell emacs19 where all the TAGS files we just
2778# built are.
2779TAGS: do-TAGS
657b58f4 2780
f0fdfd34
PB
2781# ------------------------------------
2782# Macros for configure and all targets
2783# ------------------------------------
2784
2785
2786
2787
2788
8ec98d6c
NN
2789# --------------------------------------
2790# Modules which run on the build machine
2791# --------------------------------------
2792
f0fdfd34 2793
8ec98d6c
NN
2794.PHONY: configure-build-libiberty maybe-configure-build-libiberty
2795maybe-configure-build-libiberty:
e1e5148c
CD
2796@if gcc-bootstrap
2797configure-build-libiberty: stage_current
2798@endif gcc-bootstrap
a7e609d6
PB
2799@if build-libiberty
2800maybe-configure-build-libiberty: configure-build-libiberty
ec92c4d6 2801configure-build-libiberty:
15b527ca 2802 @: $(MAKE); $(unstage)
ec92c4d6 2803 @r=`${PWD_COMMAND}`; export r; \
5230d454 2804 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
2805 test ! -f $(BUILD_SUBDIR)/libiberty/Makefile || exit 0; \
2806 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/libiberty ; \
a675b75a 2807 $(BUILD_EXPORTS) \
8ec98d6c
NN
2808 echo Configuring in $(BUILD_SUBDIR)/libiberty; \
2809 cd "$(BUILD_SUBDIR)/libiberty" || exit 1; \
2810 case $(srcdir) in \
7fc2ca22
PB
2811 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2812 *) topdir=`echo $(BUILD_SUBDIR)/libiberty/ | \
2813 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 2814 esac; \
7fc2ca22
PB
2815 srcdiroption="--srcdir=$${topdir}/libiberty"; \
2816 libsrcdir="$$s/libiberty"; \
8ec98d6c
NN
2817 rm -f no-such-file || : ; \
2818 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
2819 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
2820 --target=${target_alias} $${srcdiroption} \
657b58f4 2821 || exit 1
a7e609d6 2822@endif build-libiberty
657b58f4 2823
f0fdfd34
PB
2824
2825
a8a96878
PB
2826
2827
8ec98d6c
NN
2828.PHONY: all-build-libiberty maybe-all-build-libiberty
2829maybe-all-build-libiberty:
e1e5148c
CD
2830@if gcc-bootstrap
2831all-build-libiberty: stage_current
2832@endif gcc-bootstrap
a7e609d6 2833@if build-libiberty
6a19fd82 2834TARGET-build-libiberty=all
a7e609d6 2835maybe-all-build-libiberty: all-build-libiberty
8ec98d6c 2836all-build-libiberty: configure-build-libiberty
15b527ca 2837 @: $(MAKE); $(unstage)
8ec98d6c 2838 @r=`${PWD_COMMAND}`; export r; \
5230d454 2839 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 2840 $(BUILD_EXPORTS) \
6a19fd82 2841 (cd $(BUILD_SUBDIR)/libiberty && \
7d6b567a 2842 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
6532abb6 2843 $(TARGET-build-libiberty))
a7e609d6 2844@endif build-libiberty
657b58f4 2845
f0fdfd34
PB
2846
2847
a8a96878
PB
2848
2849
2cb47d68
PB
2850.PHONY: configure-build-bison maybe-configure-build-bison
2851maybe-configure-build-bison:
e1e5148c
CD
2852@if gcc-bootstrap
2853configure-build-bison: stage_current
2854@endif gcc-bootstrap
2cb47d68
PB
2855@if build-bison
2856maybe-configure-build-bison: configure-build-bison
ec92c4d6 2857configure-build-bison:
15b527ca 2858 @: $(MAKE); $(unstage)
ec92c4d6 2859 @r=`${PWD_COMMAND}`; export r; \
2cb47d68 2860 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
2861 test ! -f $(BUILD_SUBDIR)/bison/Makefile || exit 0; \
2862 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/bison ; \
2cb47d68
PB
2863 $(BUILD_EXPORTS) \
2864 echo Configuring in $(BUILD_SUBDIR)/bison; \
2865 cd "$(BUILD_SUBDIR)/bison" || exit 1; \
2866 case $(srcdir) in \
7fc2ca22
PB
2867 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2868 *) topdir=`echo $(BUILD_SUBDIR)/bison/ | \
2869 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2cb47d68 2870 esac; \
7fc2ca22
PB
2871 srcdiroption="--srcdir=$${topdir}/bison"; \
2872 libsrcdir="$$s/bison"; \
2cb47d68
PB
2873 rm -f no-such-file || : ; \
2874 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
2875 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
2876 --target=${target_alias} $${srcdiroption} \
2cb47d68
PB
2877 || exit 1
2878@endif build-bison
2879
f0fdfd34
PB
2880
2881
a8a96878
PB
2882
2883
2cb47d68
PB
2884.PHONY: all-build-bison maybe-all-build-bison
2885maybe-all-build-bison:
e1e5148c
CD
2886@if gcc-bootstrap
2887all-build-bison: stage_current
2888@endif gcc-bootstrap
2cb47d68 2889@if build-bison
6a19fd82 2890TARGET-build-bison=all
2cb47d68
PB
2891maybe-all-build-bison: all-build-bison
2892all-build-bison: configure-build-bison
15b527ca 2893 @: $(MAKE); $(unstage)
2cb47d68
PB
2894 @r=`${PWD_COMMAND}`; export r; \
2895 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2896 $(BUILD_EXPORTS) \
6a19fd82 2897 (cd $(BUILD_SUBDIR)/bison && \
7d6b567a 2898 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
6532abb6 2899 $(TARGET-build-bison))
2cb47d68
PB
2900@endif build-bison
2901
f0fdfd34
PB
2902
2903
a8a96878
PB
2904
2905
2cb47d68
PB
2906.PHONY: configure-build-byacc maybe-configure-build-byacc
2907maybe-configure-build-byacc:
e1e5148c
CD
2908@if gcc-bootstrap
2909configure-build-byacc: stage_current
2910@endif gcc-bootstrap
2cb47d68
PB
2911@if build-byacc
2912maybe-configure-build-byacc: configure-build-byacc
ec92c4d6 2913configure-build-byacc:
15b527ca 2914 @: $(MAKE); $(unstage)
ec92c4d6 2915 @r=`${PWD_COMMAND}`; export r; \
2cb47d68 2916 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
2917 test ! -f $(BUILD_SUBDIR)/byacc/Makefile || exit 0; \
2918 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/byacc ; \
2cb47d68
PB
2919 $(BUILD_EXPORTS) \
2920 echo Configuring in $(BUILD_SUBDIR)/byacc; \
2921 cd "$(BUILD_SUBDIR)/byacc" || exit 1; \
2922 case $(srcdir) in \
7fc2ca22
PB
2923 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2924 *) topdir=`echo $(BUILD_SUBDIR)/byacc/ | \
2925 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2cb47d68 2926 esac; \
7fc2ca22
PB
2927 srcdiroption="--srcdir=$${topdir}/byacc"; \
2928 libsrcdir="$$s/byacc"; \
2cb47d68
PB
2929 rm -f no-such-file || : ; \
2930 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
2931 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
2932 --target=${target_alias} $${srcdiroption} \
2cb47d68
PB
2933 || exit 1
2934@endif build-byacc
2935
f0fdfd34
PB
2936
2937
a8a96878
PB
2938
2939
2cb47d68
PB
2940.PHONY: all-build-byacc maybe-all-build-byacc
2941maybe-all-build-byacc:
e1e5148c
CD
2942@if gcc-bootstrap
2943all-build-byacc: stage_current
2944@endif gcc-bootstrap
2cb47d68 2945@if build-byacc
6a19fd82 2946TARGET-build-byacc=all
2cb47d68
PB
2947maybe-all-build-byacc: all-build-byacc
2948all-build-byacc: configure-build-byacc
15b527ca 2949 @: $(MAKE); $(unstage)
2cb47d68
PB
2950 @r=`${PWD_COMMAND}`; export r; \
2951 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2952 $(BUILD_EXPORTS) \
6a19fd82 2953 (cd $(BUILD_SUBDIR)/byacc && \
7d6b567a 2954 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
6532abb6 2955 $(TARGET-build-byacc))
2cb47d68
PB
2956@endif build-byacc
2957
f0fdfd34
PB
2958
2959
a8a96878
PB
2960
2961
2cb47d68
PB
2962.PHONY: configure-build-flex maybe-configure-build-flex
2963maybe-configure-build-flex:
e1e5148c
CD
2964@if gcc-bootstrap
2965configure-build-flex: stage_current
2966@endif gcc-bootstrap
2cb47d68
PB
2967@if build-flex
2968maybe-configure-build-flex: configure-build-flex
ec92c4d6 2969configure-build-flex:
15b527ca 2970 @: $(MAKE); $(unstage)
ec92c4d6 2971 @r=`${PWD_COMMAND}`; export r; \
2cb47d68 2972 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
2973 test ! -f $(BUILD_SUBDIR)/flex/Makefile || exit 0; \
2974 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/flex ; \
2cb47d68
PB
2975 $(BUILD_EXPORTS) \
2976 echo Configuring in $(BUILD_SUBDIR)/flex; \
2977 cd "$(BUILD_SUBDIR)/flex" || exit 1; \
2978 case $(srcdir) in \
7fc2ca22
PB
2979 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2980 *) topdir=`echo $(BUILD_SUBDIR)/flex/ | \
2981 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2cb47d68 2982 esac; \
7fc2ca22
PB
2983 srcdiroption="--srcdir=$${topdir}/flex"; \
2984 libsrcdir="$$s/flex"; \
2cb47d68
PB
2985 rm -f no-such-file || : ; \
2986 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
2987 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
2988 --target=${target_alias} $${srcdiroption} \
2cb47d68
PB
2989 || exit 1
2990@endif build-flex
2991
f0fdfd34
PB
2992
2993
a8a96878
PB
2994
2995
2cb47d68
PB
2996.PHONY: all-build-flex maybe-all-build-flex
2997maybe-all-build-flex:
e1e5148c
CD
2998@if gcc-bootstrap
2999all-build-flex: stage_current
3000@endif gcc-bootstrap
2cb47d68 3001@if build-flex
6a19fd82 3002TARGET-build-flex=all
2cb47d68
PB
3003maybe-all-build-flex: all-build-flex
3004all-build-flex: configure-build-flex
15b527ca 3005 @: $(MAKE); $(unstage)
2cb47d68
PB
3006 @r=`${PWD_COMMAND}`; export r; \
3007 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3008 $(BUILD_EXPORTS) \
6a19fd82 3009 (cd $(BUILD_SUBDIR)/flex && \
7d6b567a 3010 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
6532abb6 3011 $(TARGET-build-flex))
2cb47d68
PB
3012@endif build-flex
3013
f0fdfd34
PB
3014
3015
a8a96878
PB
3016
3017
2cb47d68
PB
3018.PHONY: configure-build-m4 maybe-configure-build-m4
3019maybe-configure-build-m4:
e1e5148c
CD
3020@if gcc-bootstrap
3021configure-build-m4: stage_current
3022@endif gcc-bootstrap
2cb47d68
PB
3023@if build-m4
3024maybe-configure-build-m4: configure-build-m4
ec92c4d6 3025configure-build-m4:
15b527ca 3026 @: $(MAKE); $(unstage)
ec92c4d6 3027 @r=`${PWD_COMMAND}`; export r; \
2cb47d68 3028 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
3029 test ! -f $(BUILD_SUBDIR)/m4/Makefile || exit 0; \
3030 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/m4 ; \
2cb47d68
PB
3031 $(BUILD_EXPORTS) \
3032 echo Configuring in $(BUILD_SUBDIR)/m4; \
3033 cd "$(BUILD_SUBDIR)/m4" || exit 1; \
3034 case $(srcdir) in \
7fc2ca22
PB
3035 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3036 *) topdir=`echo $(BUILD_SUBDIR)/m4/ | \
3037 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2cb47d68 3038 esac; \
7fc2ca22
PB
3039 srcdiroption="--srcdir=$${topdir}/m4"; \
3040 libsrcdir="$$s/m4"; \
2cb47d68
PB
3041 rm -f no-such-file || : ; \
3042 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
3043 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
3044 --target=${target_alias} $${srcdiroption} \
2cb47d68
PB
3045 || exit 1
3046@endif build-m4
3047
f0fdfd34
PB
3048
3049
a8a96878
PB
3050
3051
2cb47d68
PB
3052.PHONY: all-build-m4 maybe-all-build-m4
3053maybe-all-build-m4:
e1e5148c
CD
3054@if gcc-bootstrap
3055all-build-m4: stage_current
3056@endif gcc-bootstrap
2cb47d68 3057@if build-m4
6a19fd82 3058TARGET-build-m4=all
2cb47d68
PB
3059maybe-all-build-m4: all-build-m4
3060all-build-m4: configure-build-m4
15b527ca 3061 @: $(MAKE); $(unstage)
2cb47d68
PB
3062 @r=`${PWD_COMMAND}`; export r; \
3063 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3064 $(BUILD_EXPORTS) \
6a19fd82 3065 (cd $(BUILD_SUBDIR)/m4 && \
7d6b567a 3066 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
6532abb6 3067 $(TARGET-build-m4))
2cb47d68
PB
3068@endif build-m4
3069
f0fdfd34
PB
3070
3071
a8a96878
PB
3072
3073
2cb47d68
PB
3074.PHONY: configure-build-texinfo maybe-configure-build-texinfo
3075maybe-configure-build-texinfo:
e1e5148c
CD
3076@if gcc-bootstrap
3077configure-build-texinfo: stage_current
3078@endif gcc-bootstrap
2cb47d68
PB
3079@if build-texinfo
3080maybe-configure-build-texinfo: configure-build-texinfo
ec92c4d6 3081configure-build-texinfo:
15b527ca 3082 @: $(MAKE); $(unstage)
ec92c4d6 3083 @r=`${PWD_COMMAND}`; export r; \
2cb47d68 3084 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
3085 test ! -f $(BUILD_SUBDIR)/texinfo/Makefile || exit 0; \
3086 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/texinfo ; \
2cb47d68
PB
3087 $(BUILD_EXPORTS) \
3088 echo Configuring in $(BUILD_SUBDIR)/texinfo; \
3089 cd "$(BUILD_SUBDIR)/texinfo" || exit 1; \
3090 case $(srcdir) in \
7fc2ca22
PB
3091 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3092 *) topdir=`echo $(BUILD_SUBDIR)/texinfo/ | \
3093 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2cb47d68 3094 esac; \
7fc2ca22
PB
3095 srcdiroption="--srcdir=$${topdir}/texinfo"; \
3096 libsrcdir="$$s/texinfo"; \
2cb47d68
PB
3097 rm -f no-such-file || : ; \
3098 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
3099 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
3100 --target=${target_alias} $${srcdiroption} \
2cb47d68
PB
3101 || exit 1
3102@endif build-texinfo
3103
f0fdfd34
PB
3104
3105
a8a96878
PB
3106
3107
2cb47d68
PB
3108.PHONY: all-build-texinfo maybe-all-build-texinfo
3109maybe-all-build-texinfo:
e1e5148c
CD
3110@if gcc-bootstrap
3111all-build-texinfo: stage_current
3112@endif gcc-bootstrap
2cb47d68 3113@if build-texinfo
6a19fd82 3114TARGET-build-texinfo=all
2cb47d68
PB
3115maybe-all-build-texinfo: all-build-texinfo
3116all-build-texinfo: configure-build-texinfo
15b527ca 3117 @: $(MAKE); $(unstage)
2cb47d68
PB
3118 @r=`${PWD_COMMAND}`; export r; \
3119 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3120 $(BUILD_EXPORTS) \
6a19fd82 3121 (cd $(BUILD_SUBDIR)/texinfo && \
7d6b567a 3122 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
6532abb6 3123 $(TARGET-build-texinfo))
2cb47d68
PB
3124@endif build-texinfo
3125
f0fdfd34
PB
3126
3127
a8a96878
PB
3128
3129
607d4caf
PB
3130.PHONY: configure-build-fixincludes maybe-configure-build-fixincludes
3131maybe-configure-build-fixincludes:
e1e5148c
CD
3132@if gcc-bootstrap
3133configure-build-fixincludes: stage_current
3134@endif gcc-bootstrap
607d4caf
PB
3135@if build-fixincludes
3136maybe-configure-build-fixincludes: configure-build-fixincludes
ec92c4d6 3137configure-build-fixincludes:
15b527ca 3138 @: $(MAKE); $(unstage)
ec92c4d6 3139 @r=`${PWD_COMMAND}`; export r; \
607d4caf 3140 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
3141 test ! -f $(BUILD_SUBDIR)/fixincludes/Makefile || exit 0; \
3142 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/fixincludes ; \
607d4caf
PB
3143 $(BUILD_EXPORTS) \
3144 echo Configuring in $(BUILD_SUBDIR)/fixincludes; \
3145 cd "$(BUILD_SUBDIR)/fixincludes" || exit 1; \
3146 case $(srcdir) in \
7fc2ca22
PB
3147 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3148 *) topdir=`echo $(BUILD_SUBDIR)/fixincludes/ | \
3149 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
607d4caf 3150 esac; \
7fc2ca22
PB
3151 srcdiroption="--srcdir=$${topdir}/fixincludes"; \
3152 libsrcdir="$$s/fixincludes"; \
607d4caf
PB
3153 rm -f no-such-file || : ; \
3154 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
3155 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
3156 --target=${target_alias} $${srcdiroption} \
607d4caf
PB
3157 || exit 1
3158@endif build-fixincludes
3159
f0fdfd34
PB
3160
3161
a8a96878
PB
3162
3163
607d4caf
PB
3164.PHONY: all-build-fixincludes maybe-all-build-fixincludes
3165maybe-all-build-fixincludes:
e1e5148c
CD
3166@if gcc-bootstrap
3167all-build-fixincludes: stage_current
3168@endif gcc-bootstrap
607d4caf
PB
3169@if build-fixincludes
3170TARGET-build-fixincludes=all
3171maybe-all-build-fixincludes: all-build-fixincludes
3172all-build-fixincludes: configure-build-fixincludes
15b527ca 3173 @: $(MAKE); $(unstage)
607d4caf
PB
3174 @r=`${PWD_COMMAND}`; export r; \
3175 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3176 $(BUILD_EXPORTS) \
3177 (cd $(BUILD_SUBDIR)/fixincludes && \
7d6b567a 3178 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
6532abb6 3179 $(TARGET-build-fixincludes))
607d4caf
PB
3180@endif build-fixincludes
3181
657b58f4 3182
f0fdfd34 3183
a8a96878
PB
3184
3185
8ec98d6c
NN
3186# --------------------------------------
3187# Modules which run on the host machine
3188# --------------------------------------
657b58f4 3189
f0fdfd34 3190
8ec98d6c
NN
3191.PHONY: configure-ash maybe-configure-ash
3192maybe-configure-ash:
e1e5148c
CD
3193@if gcc-bootstrap
3194configure-ash: stage_current
3195@endif gcc-bootstrap
a7e609d6
PB
3196@if ash
3197maybe-configure-ash: configure-ash
ec92c4d6 3198configure-ash:
15b527ca 3199 @: $(MAKE); $(unstage)
ec92c4d6 3200 @r=`${PWD_COMMAND}`; export r; \
5230d454 3201 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
3202 test ! -f $(HOST_SUBDIR)/ash/Makefile || exit 0; \
3203 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ash ; \
a675b75a 3204 $(HOST_EXPORTS) \
f0fdfd34
PB
3205 echo Configuring in $(HOST_SUBDIR)/ash; \
3206 cd "$(HOST_SUBDIR)/ash" || exit 1; \
8ec98d6c 3207 case $(srcdir) in \
7fc2ca22
PB
3208 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3209 *) topdir=`echo $(HOST_SUBDIR)/ash/ | \
3210 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 3211 esac; \
7fc2ca22
PB
3212 srcdiroption="--srcdir=$${topdir}/ash"; \
3213 libsrcdir="$$s/ash"; \
8ec98d6c 3214 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
3215 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
3216 --target=${target_alias} $${srcdiroption} \
657b58f4 3217 || exit 1
a7e609d6 3218@endif ash
657b58f4 3219
f0fdfd34
PB
3220
3221
a8a96878
PB
3222
3223
8ec98d6c
NN
3224.PHONY: all-ash maybe-all-ash
3225maybe-all-ash:
e1e5148c
CD
3226@if gcc-bootstrap
3227all-ash: stage_current
3228@endif gcc-bootstrap
a7e609d6 3229@if ash
5e6b1f07 3230TARGET-ash=all
a7e609d6 3231maybe-all-ash: all-ash
8ec98d6c 3232all-ash: configure-ash
15b527ca 3233 @: $(MAKE); $(unstage)
8ec98d6c
NN
3234 @r=`${PWD_COMMAND}`; export r; \
3235 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 3236 $(HOST_EXPORTS) \
7fc2ca22 3237 (cd $(HOST_SUBDIR)/ash && \
6532abb6
PB
3238 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
3239 $(TARGET-ash))
a7e609d6 3240@endif ash
657b58f4 3241
f0fdfd34 3242
a8a96878
PB
3243
3244
8ec98d6c
NN
3245.PHONY: check-ash maybe-check-ash
3246maybe-check-ash:
a7e609d6
PB
3247@if ash
3248maybe-check-ash: check-ash
657b58f4 3249
8ec98d6c 3250check-ash:
15b527ca 3251 @: $(MAKE); $(unstage)
8ec98d6c 3252 @r=`${PWD_COMMAND}`; export r; \
5230d454 3253 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 3254 $(HOST_EXPORTS) \
7fc2ca22
PB
3255 (cd $(HOST_SUBDIR)/ash && \
3256 $(MAKE) $(FLAGS_TO_PASS) check)
657b58f4 3257
a7e609d6 3258@endif ash
657b58f4 3259
8ec98d6c
NN
3260.PHONY: install-ash maybe-install-ash
3261maybe-install-ash:
a7e609d6
PB
3262@if ash
3263maybe-install-ash: install-ash
657b58f4 3264
8ec98d6c 3265install-ash: installdirs
15b527ca 3266 @: $(MAKE); $(unstage)
8ec98d6c 3267 @r=`${PWD_COMMAND}`; export r; \
5230d454 3268 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 3269 $(HOST_EXPORTS) \
7fc2ca22 3270 (cd $(HOST_SUBDIR)/ash && \
93c60b6d 3271 $(MAKE) $(FLAGS_TO_PASS) install)
657b58f4 3272
a7e609d6 3273@endif ash
657b58f4 3274
39bbbb69 3275# Other targets (info, dvi, pdf, etc.)
657b58f4 3276
8ec98d6c
NN
3277.PHONY: maybe-info-ash info-ash
3278maybe-info-ash:
a7e609d6
PB
3279@if ash
3280maybe-info-ash: info-ash
8ec98d6c
NN
3281
3282info-ash: \
3283 configure-ash
15b527ca 3284 @: $(MAKE); $(unstage)
8ec98d6c 3285 @[ -f ./ash/Makefile ] || exit 0; \
5230d454
L
3286 r=`${PWD_COMMAND}`; export r; \
3287 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 3288 $(HOST_EXPORTS) \
d5eec917 3289 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
3290 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3291 done; \
8ec98d6c 3292 echo "Doing info in ash" ; \
7fc2ca22 3293 (cd $(HOST_SUBDIR)/ash && \
657b58f4
NN
3294 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3295 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3296 "RANLIB=$${RANLIB}" \
bffcbe34 3297 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 3298 info) \
657b58f4
NN
3299 || exit 1
3300
a7e609d6 3301@endif ash
657b58f4 3302
8ec98d6c
NN
3303.PHONY: maybe-dvi-ash dvi-ash
3304maybe-dvi-ash:
a7e609d6
PB
3305@if ash
3306maybe-dvi-ash: dvi-ash
657b58f4 3307
8ec98d6c
NN
3308dvi-ash: \
3309 configure-ash
15b527ca 3310 @: $(MAKE); $(unstage)
8ec98d6c 3311 @[ -f ./ash/Makefile ] || exit 0; \
5230d454
L
3312 r=`${PWD_COMMAND}`; export r; \
3313 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 3314 $(HOST_EXPORTS) \
d5eec917 3315 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
3316 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3317 done; \
8ec98d6c 3318 echo "Doing dvi in ash" ; \
7fc2ca22 3319 (cd $(HOST_SUBDIR)/ash && \
657b58f4
NN
3320 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3321 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3322 "RANLIB=$${RANLIB}" \
bffcbe34 3323 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 3324 dvi) \
657b58f4
NN
3325 || exit 1
3326
a7e609d6 3327@endif ash
657b58f4 3328
39bbbb69
DD
3329.PHONY: maybe-pdf-ash pdf-ash
3330maybe-pdf-ash:
3331@if ash
3332maybe-pdf-ash: pdf-ash
3333
3334pdf-ash: \
3335 configure-ash
3336 @: $(MAKE); $(unstage)
3337 @[ -f ./ash/Makefile ] || exit 0; \
3338 r=`${PWD_COMMAND}`; export r; \
3339 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3340 $(HOST_EXPORTS) \
3341 for flag in $(EXTRA_HOST_FLAGS) ; do \
3342 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3343 done; \
3344 echo "Doing pdf in ash" ; \
3345 (cd $(HOST_SUBDIR)/ash && \
3346 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3347 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3348 "RANLIB=$${RANLIB}" \
bffcbe34 3349 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
3350 pdf) \
3351 || exit 1
3352
3353@endif ash
3354
b6fb961f
MS
3355.PHONY: maybe-html-ash html-ash
3356maybe-html-ash:
3357@if ash
3358maybe-html-ash: html-ash
3359
3360html-ash: \
3361 configure-ash
15b527ca 3362 @: $(MAKE); $(unstage)
b6fb961f
MS
3363 @[ -f ./ash/Makefile ] || exit 0; \
3364 r=`${PWD_COMMAND}`; export r; \
3365 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
3366 $(HOST_EXPORTS) \
3367 for flag in $(EXTRA_HOST_FLAGS) ; do \
3368 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3369 done; \
3370 echo "Doing html in ash" ; \
7fc2ca22 3371 (cd $(HOST_SUBDIR)/ash && \
b6fb961f
MS
3372 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3373 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3374 "RANLIB=$${RANLIB}" \
bffcbe34 3375 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
3376 html) \
3377 || exit 1
3378
3379@endif ash
3380
8ec98d6c
NN
3381.PHONY: maybe-TAGS-ash TAGS-ash
3382maybe-TAGS-ash:
a7e609d6
PB
3383@if ash
3384maybe-TAGS-ash: TAGS-ash
657b58f4 3385
8ec98d6c
NN
3386TAGS-ash: \
3387 configure-ash
15b527ca 3388 @: $(MAKE); $(unstage)
8ec98d6c 3389 @[ -f ./ash/Makefile ] || exit 0; \
5230d454
L
3390 r=`${PWD_COMMAND}`; export r; \
3391 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 3392 $(HOST_EXPORTS) \
d5eec917 3393 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
3394 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3395 done; \
8ec98d6c 3396 echo "Doing TAGS in ash" ; \
7fc2ca22 3397 (cd $(HOST_SUBDIR)/ash && \
657b58f4
NN
3398 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3399 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3400 "RANLIB=$${RANLIB}" \
bffcbe34 3401 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 3402 TAGS) \
657b58f4
NN
3403 || exit 1
3404
a7e609d6 3405@endif ash
657b58f4 3406
8ec98d6c
NN
3407.PHONY: maybe-install-info-ash install-info-ash
3408maybe-install-info-ash:
a7e609d6
PB
3409@if ash
3410maybe-install-info-ash: install-info-ash
657b58f4 3411
8ec98d6c
NN
3412install-info-ash: \
3413 configure-ash \
3414 info-ash
15b527ca 3415 @: $(MAKE); $(unstage)
8ec98d6c 3416 @[ -f ./ash/Makefile ] || exit 0; \
5230d454
L
3417 r=`${PWD_COMMAND}`; export r; \
3418 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 3419 $(HOST_EXPORTS) \
d5eec917 3420 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
3421 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3422 done; \
8ec98d6c 3423 echo "Doing install-info in ash" ; \
7fc2ca22 3424 (cd $(HOST_SUBDIR)/ash && \
657b58f4
NN
3425 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3426 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3427 "RANLIB=$${RANLIB}" \
bffcbe34 3428 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 3429 install-info) \
657b58f4
NN
3430 || exit 1
3431
a7e609d6 3432@endif ash
657b58f4 3433
d4954b6d
DD
3434.PHONY: maybe-install-pdf-ash install-pdf-ash
3435maybe-install-pdf-ash:
3436@if ash
3437maybe-install-pdf-ash: install-pdf-ash
3438
3439install-pdf-ash: \
3440 configure-ash \
3441 pdf-ash
3442 @: $(MAKE); $(unstage)
3443 @[ -f ./ash/Makefile ] || exit 0; \
3444 r=`${PWD_COMMAND}`; export r; \
3445 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3446 $(HOST_EXPORTS) \
3447 for flag in $(EXTRA_HOST_FLAGS) ; do \
3448 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3449 done; \
3450 echo "Doing install-pdf in ash" ; \
3451 (cd $(HOST_SUBDIR)/ash && \
3452 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3453 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3454 "RANLIB=$${RANLIB}" \
bffcbe34 3455 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
3456 install-pdf) \
3457 || exit 1
3458
3459@endif ash
3460
83c9add4
CD
3461.PHONY: maybe-install-html-ash install-html-ash
3462maybe-install-html-ash:
3463@if ash
3464maybe-install-html-ash: install-html-ash
3465
3466install-html-ash: \
3467 configure-ash \
3468 html-ash
3469 @: $(MAKE); $(unstage)
3470 @[ -f ./ash/Makefile ] || exit 0; \
3471 r=`${PWD_COMMAND}`; export r; \
3472 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3473 $(HOST_EXPORTS) \
3474 for flag in $(EXTRA_HOST_FLAGS) ; do \
3475 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3476 done; \
3477 echo "Doing install-html in ash" ; \
3478 (cd $(HOST_SUBDIR)/ash && \
3479 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3480 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3481 "RANLIB=$${RANLIB}" \
bffcbe34 3482 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
3483 install-html) \
3484 || exit 1
3485
3486@endif ash
3487
8ec98d6c
NN
3488.PHONY: maybe-installcheck-ash installcheck-ash
3489maybe-installcheck-ash:
a7e609d6
PB
3490@if ash
3491maybe-installcheck-ash: installcheck-ash
657b58f4 3492
8ec98d6c
NN
3493installcheck-ash: \
3494 configure-ash
15b527ca 3495 @: $(MAKE); $(unstage)
8ec98d6c 3496 @[ -f ./ash/Makefile ] || exit 0; \
5230d454
L
3497 r=`${PWD_COMMAND}`; export r; \
3498 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 3499 $(HOST_EXPORTS) \
d5eec917 3500 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
3501 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3502 done; \
8ec98d6c 3503 echo "Doing installcheck in ash" ; \
7fc2ca22 3504 (cd $(HOST_SUBDIR)/ash && \
657b58f4
NN
3505 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3506 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3507 "RANLIB=$${RANLIB}" \
bffcbe34 3508 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 3509 installcheck) \
657b58f4
NN
3510 || exit 1
3511
a7e609d6 3512@endif ash
657b58f4 3513
8ec98d6c
NN
3514.PHONY: maybe-mostlyclean-ash mostlyclean-ash
3515maybe-mostlyclean-ash:
a7e609d6
PB
3516@if ash
3517maybe-mostlyclean-ash: mostlyclean-ash
657b58f4 3518
8ec98d6c 3519mostlyclean-ash:
15b527ca 3520 @: $(MAKE); $(unstage)
8ec98d6c 3521 @[ -f ./ash/Makefile ] || exit 0; \
5230d454
L
3522 r=`${PWD_COMMAND}`; export r; \
3523 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 3524 $(HOST_EXPORTS) \
d5eec917 3525 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
3526 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3527 done; \
8ec98d6c 3528 echo "Doing mostlyclean in ash" ; \
7fc2ca22 3529 (cd $(HOST_SUBDIR)/ash && \
657b58f4
NN
3530 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3531 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3532 "RANLIB=$${RANLIB}" \
bffcbe34 3533 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 3534 mostlyclean) \
657b58f4
NN
3535 || exit 1
3536
a7e609d6 3537@endif ash
657b58f4 3538
8ec98d6c
NN
3539.PHONY: maybe-clean-ash clean-ash
3540maybe-clean-ash:
a7e609d6
PB
3541@if ash
3542maybe-clean-ash: clean-ash
657b58f4 3543
8ec98d6c 3544clean-ash:
15b527ca 3545 @: $(MAKE); $(unstage)
8ec98d6c 3546 @[ -f ./ash/Makefile ] || exit 0; \
5230d454
L
3547 r=`${PWD_COMMAND}`; export r; \
3548 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 3549 $(HOST_EXPORTS) \
d5eec917 3550 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
3551 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3552 done; \
8ec98d6c 3553 echo "Doing clean in ash" ; \
7fc2ca22 3554 (cd $(HOST_SUBDIR)/ash && \
657b58f4
NN
3555 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3556 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3557 "RANLIB=$${RANLIB}" \
bffcbe34 3558 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 3559 clean) \
657b58f4
NN
3560 || exit 1
3561
a7e609d6 3562@endif ash
657b58f4 3563
8ec98d6c
NN
3564.PHONY: maybe-distclean-ash distclean-ash
3565maybe-distclean-ash:
a7e609d6
PB
3566@if ash
3567maybe-distclean-ash: distclean-ash
657b58f4 3568
8ec98d6c 3569distclean-ash:
15b527ca 3570 @: $(MAKE); $(unstage)
8ec98d6c 3571 @[ -f ./ash/Makefile ] || exit 0; \
5230d454
L
3572 r=`${PWD_COMMAND}`; export r; \
3573 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 3574 $(HOST_EXPORTS) \
d5eec917 3575 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
3576 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3577 done; \
8ec98d6c 3578 echo "Doing distclean in ash" ; \
7fc2ca22 3579 (cd $(HOST_SUBDIR)/ash && \
657b58f4
NN
3580 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3581 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3582 "RANLIB=$${RANLIB}" \
bffcbe34 3583 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 3584 distclean) \
657b58f4
NN
3585 || exit 1
3586
a7e609d6 3587@endif ash
657b58f4 3588
8ec98d6c
NN
3589.PHONY: maybe-maintainer-clean-ash maintainer-clean-ash
3590maybe-maintainer-clean-ash:
a7e609d6
PB
3591@if ash
3592maybe-maintainer-clean-ash: maintainer-clean-ash
657b58f4 3593
8ec98d6c 3594maintainer-clean-ash:
15b527ca 3595 @: $(MAKE); $(unstage)
8ec98d6c 3596 @[ -f ./ash/Makefile ] || exit 0; \
5230d454
L
3597 r=`${PWD_COMMAND}`; export r; \
3598 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 3599 $(HOST_EXPORTS) \
d5eec917 3600 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
3601 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3602 done; \
8ec98d6c 3603 echo "Doing maintainer-clean in ash" ; \
7fc2ca22 3604 (cd $(HOST_SUBDIR)/ash && \
657b58f4
NN
3605 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3606 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3607 "RANLIB=$${RANLIB}" \
bffcbe34 3608 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 3609 maintainer-clean) \
657b58f4
NN
3610 || exit 1
3611
a7e609d6 3612@endif ash
657b58f4 3613
657b58f4 3614
f0fdfd34 3615
8ec98d6c
NN
3616.PHONY: configure-autoconf maybe-configure-autoconf
3617maybe-configure-autoconf:
e1e5148c
CD
3618@if gcc-bootstrap
3619configure-autoconf: stage_current
3620@endif gcc-bootstrap
a7e609d6
PB
3621@if autoconf
3622maybe-configure-autoconf: configure-autoconf
ec92c4d6 3623configure-autoconf:
15b527ca 3624 @: $(MAKE); $(unstage)
ec92c4d6 3625 @r=`${PWD_COMMAND}`; export r; \
5230d454 3626 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
3627 test ! -f $(HOST_SUBDIR)/autoconf/Makefile || exit 0; \
3628 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/autoconf ; \
a675b75a 3629 $(HOST_EXPORTS) \
f0fdfd34
PB
3630 echo Configuring in $(HOST_SUBDIR)/autoconf; \
3631 cd "$(HOST_SUBDIR)/autoconf" || exit 1; \
8ec98d6c 3632 case $(srcdir) in \
7fc2ca22
PB
3633 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3634 *) topdir=`echo $(HOST_SUBDIR)/autoconf/ | \
3635 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 3636 esac; \
7fc2ca22
PB
3637 srcdiroption="--srcdir=$${topdir}/autoconf"; \
3638 libsrcdir="$$s/autoconf"; \
8ec98d6c 3639 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
3640 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
3641 --target=${target_alias} $${srcdiroption} \
657b58f4 3642 || exit 1
a7e609d6 3643@endif autoconf
657b58f4 3644
f0fdfd34
PB
3645
3646
a8a96878
PB
3647
3648
8ec98d6c
NN
3649.PHONY: all-autoconf maybe-all-autoconf
3650maybe-all-autoconf:
e1e5148c
CD
3651@if gcc-bootstrap
3652all-autoconf: stage_current
3653@endif gcc-bootstrap
a7e609d6 3654@if autoconf
5e6b1f07 3655TARGET-autoconf=all
a7e609d6 3656maybe-all-autoconf: all-autoconf
8ec98d6c 3657all-autoconf: configure-autoconf
15b527ca 3658 @: $(MAKE); $(unstage)
8ec98d6c
NN
3659 @r=`${PWD_COMMAND}`; export r; \
3660 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 3661 $(HOST_EXPORTS) \
7fc2ca22 3662 (cd $(HOST_SUBDIR)/autoconf && \
6532abb6
PB
3663 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
3664 $(TARGET-autoconf))
a7e609d6 3665@endif autoconf
657b58f4 3666
f0fdfd34 3667
a8a96878
PB
3668
3669
8ec98d6c
NN
3670.PHONY: check-autoconf maybe-check-autoconf
3671maybe-check-autoconf:
a7e609d6
PB
3672@if autoconf
3673maybe-check-autoconf: check-autoconf
657b58f4 3674
8ec98d6c 3675check-autoconf:
15b527ca 3676 @: $(MAKE); $(unstage)
8ec98d6c 3677 @r=`${PWD_COMMAND}`; export r; \
5230d454 3678 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 3679 $(HOST_EXPORTS) \
7fc2ca22
PB
3680 (cd $(HOST_SUBDIR)/autoconf && \
3681 $(MAKE) $(FLAGS_TO_PASS) check)
657b58f4 3682
a7e609d6 3683@endif autoconf
657b58f4 3684
8ec98d6c
NN
3685.PHONY: install-autoconf maybe-install-autoconf
3686maybe-install-autoconf:
a7e609d6
PB
3687@if autoconf
3688maybe-install-autoconf: install-autoconf
657b58f4 3689
8ec98d6c 3690install-autoconf: installdirs
15b527ca 3691 @: $(MAKE); $(unstage)
8ec98d6c 3692 @r=`${PWD_COMMAND}`; export r; \
5230d454 3693 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 3694 $(HOST_EXPORTS) \
7fc2ca22 3695 (cd $(HOST_SUBDIR)/autoconf && \
93c60b6d 3696 $(MAKE) $(FLAGS_TO_PASS) install)
657b58f4 3697
a7e609d6 3698@endif autoconf
657b58f4 3699
39bbbb69 3700# Other targets (info, dvi, pdf, etc.)
657b58f4 3701
8ec98d6c
NN
3702.PHONY: maybe-info-autoconf info-autoconf
3703maybe-info-autoconf:
a7e609d6
PB
3704@if autoconf
3705maybe-info-autoconf: info-autoconf
8ec98d6c
NN
3706
3707info-autoconf: \
3708 configure-autoconf
15b527ca 3709 @: $(MAKE); $(unstage)
8ec98d6c 3710 @[ -f ./autoconf/Makefile ] || exit 0; \
5230d454
L
3711 r=`${PWD_COMMAND}`; export r; \
3712 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 3713 $(HOST_EXPORTS) \
d5eec917 3714 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
3715 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3716 done; \
8ec98d6c 3717 echo "Doing info in autoconf" ; \
7fc2ca22 3718 (cd $(HOST_SUBDIR)/autoconf && \
657b58f4
NN
3719 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3720 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3721 "RANLIB=$${RANLIB}" \
bffcbe34 3722 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 3723 info) \
657b58f4
NN
3724 || exit 1
3725
a7e609d6 3726@endif autoconf
657b58f4 3727
8ec98d6c
NN
3728.PHONY: maybe-dvi-autoconf dvi-autoconf
3729maybe-dvi-autoconf:
a7e609d6
PB
3730@if autoconf
3731maybe-dvi-autoconf: dvi-autoconf
657b58f4 3732
8ec98d6c
NN
3733dvi-autoconf: \
3734 configure-autoconf
15b527ca 3735 @: $(MAKE); $(unstage)
8ec98d6c 3736 @[ -f ./autoconf/Makefile ] || exit 0; \
5230d454
L
3737 r=`${PWD_COMMAND}`; export r; \
3738 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 3739 $(HOST_EXPORTS) \
d5eec917 3740 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
3741 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3742 done; \
8ec98d6c 3743 echo "Doing dvi in autoconf" ; \
7fc2ca22 3744 (cd $(HOST_SUBDIR)/autoconf && \
657b58f4
NN
3745 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3746 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3747 "RANLIB=$${RANLIB}" \
bffcbe34 3748 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 3749 dvi) \
657b58f4
NN
3750 || exit 1
3751
a7e609d6 3752@endif autoconf
657b58f4 3753
39bbbb69
DD
3754.PHONY: maybe-pdf-autoconf pdf-autoconf
3755maybe-pdf-autoconf:
3756@if autoconf
3757maybe-pdf-autoconf: pdf-autoconf
3758
3759pdf-autoconf: \
3760 configure-autoconf
3761 @: $(MAKE); $(unstage)
3762 @[ -f ./autoconf/Makefile ] || exit 0; \
3763 r=`${PWD_COMMAND}`; export r; \
3764 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3765 $(HOST_EXPORTS) \
3766 for flag in $(EXTRA_HOST_FLAGS) ; do \
3767 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3768 done; \
3769 echo "Doing pdf in autoconf" ; \
3770 (cd $(HOST_SUBDIR)/autoconf && \
3771 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3772 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3773 "RANLIB=$${RANLIB}" \
bffcbe34 3774 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
3775 pdf) \
3776 || exit 1
3777
3778@endif autoconf
3779
b6fb961f
MS
3780.PHONY: maybe-html-autoconf html-autoconf
3781maybe-html-autoconf:
3782@if autoconf
3783maybe-html-autoconf: html-autoconf
3784
3785html-autoconf: \
3786 configure-autoconf
15b527ca 3787 @: $(MAKE); $(unstage)
b6fb961f
MS
3788 @[ -f ./autoconf/Makefile ] || exit 0; \
3789 r=`${PWD_COMMAND}`; export r; \
3790 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
3791 $(HOST_EXPORTS) \
3792 for flag in $(EXTRA_HOST_FLAGS) ; do \
3793 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3794 done; \
3795 echo "Doing html in autoconf" ; \
7fc2ca22 3796 (cd $(HOST_SUBDIR)/autoconf && \
b6fb961f
MS
3797 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3798 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3799 "RANLIB=$${RANLIB}" \
bffcbe34 3800 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
3801 html) \
3802 || exit 1
3803
3804@endif autoconf
3805
8ec98d6c
NN
3806.PHONY: maybe-TAGS-autoconf TAGS-autoconf
3807maybe-TAGS-autoconf:
a7e609d6
PB
3808@if autoconf
3809maybe-TAGS-autoconf: TAGS-autoconf
657b58f4 3810
8ec98d6c
NN
3811TAGS-autoconf: \
3812 configure-autoconf
15b527ca 3813 @: $(MAKE); $(unstage)
8ec98d6c 3814 @[ -f ./autoconf/Makefile ] || exit 0; \
5230d454
L
3815 r=`${PWD_COMMAND}`; export r; \
3816 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 3817 $(HOST_EXPORTS) \
d5eec917 3818 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
3819 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3820 done; \
8ec98d6c 3821 echo "Doing TAGS in autoconf" ; \
7fc2ca22 3822 (cd $(HOST_SUBDIR)/autoconf && \
657b58f4
NN
3823 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3824 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3825 "RANLIB=$${RANLIB}" \
bffcbe34 3826 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 3827 TAGS) \
657b58f4
NN
3828 || exit 1
3829
a7e609d6 3830@endif autoconf
657b58f4 3831
8ec98d6c
NN
3832.PHONY: maybe-install-info-autoconf install-info-autoconf
3833maybe-install-info-autoconf:
a7e609d6
PB
3834@if autoconf
3835maybe-install-info-autoconf: install-info-autoconf
657b58f4 3836
8ec98d6c
NN
3837install-info-autoconf: \
3838 configure-autoconf \
3839 info-autoconf
15b527ca 3840 @: $(MAKE); $(unstage)
8ec98d6c 3841 @[ -f ./autoconf/Makefile ] || exit 0; \
5230d454
L
3842 r=`${PWD_COMMAND}`; export r; \
3843 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 3844 $(HOST_EXPORTS) \
d5eec917 3845 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
3846 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3847 done; \
8ec98d6c 3848 echo "Doing install-info in autoconf" ; \
7fc2ca22 3849 (cd $(HOST_SUBDIR)/autoconf && \
657b58f4
NN
3850 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3851 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3852 "RANLIB=$${RANLIB}" \
bffcbe34 3853 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 3854 install-info) \
657b58f4
NN
3855 || exit 1
3856
a7e609d6 3857@endif autoconf
657b58f4 3858
d4954b6d
DD
3859.PHONY: maybe-install-pdf-autoconf install-pdf-autoconf
3860maybe-install-pdf-autoconf:
3861@if autoconf
3862maybe-install-pdf-autoconf: install-pdf-autoconf
3863
3864install-pdf-autoconf: \
3865 configure-autoconf \
3866 pdf-autoconf
3867 @: $(MAKE); $(unstage)
3868 @[ -f ./autoconf/Makefile ] || exit 0; \
3869 r=`${PWD_COMMAND}`; export r; \
3870 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3871 $(HOST_EXPORTS) \
3872 for flag in $(EXTRA_HOST_FLAGS) ; do \
3873 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3874 done; \
3875 echo "Doing install-pdf in autoconf" ; \
3876 (cd $(HOST_SUBDIR)/autoconf && \
3877 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3878 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3879 "RANLIB=$${RANLIB}" \
bffcbe34 3880 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
3881 install-pdf) \
3882 || exit 1
3883
3884@endif autoconf
3885
83c9add4
CD
3886.PHONY: maybe-install-html-autoconf install-html-autoconf
3887maybe-install-html-autoconf:
3888@if autoconf
3889maybe-install-html-autoconf: install-html-autoconf
3890
3891install-html-autoconf: \
3892 configure-autoconf \
3893 html-autoconf
3894 @: $(MAKE); $(unstage)
3895 @[ -f ./autoconf/Makefile ] || exit 0; \
3896 r=`${PWD_COMMAND}`; export r; \
3897 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3898 $(HOST_EXPORTS) \
3899 for flag in $(EXTRA_HOST_FLAGS) ; do \
3900 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3901 done; \
3902 echo "Doing install-html in autoconf" ; \
3903 (cd $(HOST_SUBDIR)/autoconf && \
3904 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3905 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3906 "RANLIB=$${RANLIB}" \
bffcbe34 3907 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
3908 install-html) \
3909 || exit 1
3910
3911@endif autoconf
3912
8ec98d6c
NN
3913.PHONY: maybe-installcheck-autoconf installcheck-autoconf
3914maybe-installcheck-autoconf:
a7e609d6
PB
3915@if autoconf
3916maybe-installcheck-autoconf: installcheck-autoconf
657b58f4 3917
8ec98d6c
NN
3918installcheck-autoconf: \
3919 configure-autoconf
15b527ca 3920 @: $(MAKE); $(unstage)
8ec98d6c 3921 @[ -f ./autoconf/Makefile ] || exit 0; \
5230d454
L
3922 r=`${PWD_COMMAND}`; export r; \
3923 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 3924 $(HOST_EXPORTS) \
d5eec917 3925 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
3926 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3927 done; \
8ec98d6c 3928 echo "Doing installcheck in autoconf" ; \
7fc2ca22 3929 (cd $(HOST_SUBDIR)/autoconf && \
657b58f4
NN
3930 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3931 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3932 "RANLIB=$${RANLIB}" \
bffcbe34 3933 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 3934 installcheck) \
657b58f4
NN
3935 || exit 1
3936
a7e609d6 3937@endif autoconf
657b58f4 3938
8ec98d6c
NN
3939.PHONY: maybe-mostlyclean-autoconf mostlyclean-autoconf
3940maybe-mostlyclean-autoconf:
a7e609d6
PB
3941@if autoconf
3942maybe-mostlyclean-autoconf: mostlyclean-autoconf
657b58f4 3943
8ec98d6c 3944mostlyclean-autoconf:
15b527ca 3945 @: $(MAKE); $(unstage)
8ec98d6c 3946 @[ -f ./autoconf/Makefile ] || exit 0; \
5230d454
L
3947 r=`${PWD_COMMAND}`; export r; \
3948 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 3949 $(HOST_EXPORTS) \
d5eec917 3950 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
3951 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3952 done; \
8ec98d6c 3953 echo "Doing mostlyclean in autoconf" ; \
7fc2ca22 3954 (cd $(HOST_SUBDIR)/autoconf && \
657b58f4
NN
3955 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3956 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3957 "RANLIB=$${RANLIB}" \
bffcbe34 3958 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 3959 mostlyclean) \
657b58f4
NN
3960 || exit 1
3961
a7e609d6 3962@endif autoconf
657b58f4 3963
8ec98d6c
NN
3964.PHONY: maybe-clean-autoconf clean-autoconf
3965maybe-clean-autoconf:
a7e609d6
PB
3966@if autoconf
3967maybe-clean-autoconf: clean-autoconf
657b58f4 3968
8ec98d6c 3969clean-autoconf:
15b527ca 3970 @: $(MAKE); $(unstage)
8ec98d6c 3971 @[ -f ./autoconf/Makefile ] || exit 0; \
5230d454
L
3972 r=`${PWD_COMMAND}`; export r; \
3973 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 3974 $(HOST_EXPORTS) \
d5eec917 3975 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
3976 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3977 done; \
8ec98d6c 3978 echo "Doing clean in autoconf" ; \
7fc2ca22 3979 (cd $(HOST_SUBDIR)/autoconf && \
657b58f4
NN
3980 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3981 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3982 "RANLIB=$${RANLIB}" \
bffcbe34 3983 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 3984 clean) \
657b58f4
NN
3985 || exit 1
3986
a7e609d6 3987@endif autoconf
657b58f4 3988
8ec98d6c
NN
3989.PHONY: maybe-distclean-autoconf distclean-autoconf
3990maybe-distclean-autoconf:
a7e609d6
PB
3991@if autoconf
3992maybe-distclean-autoconf: distclean-autoconf
657b58f4 3993
8ec98d6c 3994distclean-autoconf:
15b527ca 3995 @: $(MAKE); $(unstage)
8ec98d6c 3996 @[ -f ./autoconf/Makefile ] || exit 0; \
5230d454
L
3997 r=`${PWD_COMMAND}`; export r; \
3998 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 3999 $(HOST_EXPORTS) \
d5eec917 4000 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
4001 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4002 done; \
8ec98d6c 4003 echo "Doing distclean in autoconf" ; \
7fc2ca22 4004 (cd $(HOST_SUBDIR)/autoconf && \
657b58f4
NN
4005 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4006 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4007 "RANLIB=$${RANLIB}" \
bffcbe34 4008 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 4009 distclean) \
657b58f4
NN
4010 || exit 1
4011
a7e609d6 4012@endif autoconf
657b58f4 4013
8ec98d6c
NN
4014.PHONY: maybe-maintainer-clean-autoconf maintainer-clean-autoconf
4015maybe-maintainer-clean-autoconf:
a7e609d6
PB
4016@if autoconf
4017maybe-maintainer-clean-autoconf: maintainer-clean-autoconf
657b58f4 4018
8ec98d6c 4019maintainer-clean-autoconf:
15b527ca 4020 @: $(MAKE); $(unstage)
8ec98d6c 4021 @[ -f ./autoconf/Makefile ] || exit 0; \
5230d454
L
4022 r=`${PWD_COMMAND}`; export r; \
4023 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 4024 $(HOST_EXPORTS) \
d5eec917 4025 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
4026 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4027 done; \
8ec98d6c 4028 echo "Doing maintainer-clean in autoconf" ; \
7fc2ca22 4029 (cd $(HOST_SUBDIR)/autoconf && \
657b58f4
NN
4030 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4031 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4032 "RANLIB=$${RANLIB}" \
bffcbe34 4033 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 4034 maintainer-clean) \
657b58f4
NN
4035 || exit 1
4036
a7e609d6 4037@endif autoconf
657b58f4 4038
657b58f4 4039
f0fdfd34 4040
8ec98d6c
NN
4041.PHONY: configure-automake maybe-configure-automake
4042maybe-configure-automake:
e1e5148c
CD
4043@if gcc-bootstrap
4044configure-automake: stage_current
4045@endif gcc-bootstrap
a7e609d6
PB
4046@if automake
4047maybe-configure-automake: configure-automake
ec92c4d6 4048configure-automake:
15b527ca 4049 @: $(MAKE); $(unstage)
ec92c4d6 4050 @r=`${PWD_COMMAND}`; export r; \
5230d454 4051 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
4052 test ! -f $(HOST_SUBDIR)/automake/Makefile || exit 0; \
4053 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/automake ; \
a675b75a 4054 $(HOST_EXPORTS) \
f0fdfd34
PB
4055 echo Configuring in $(HOST_SUBDIR)/automake; \
4056 cd "$(HOST_SUBDIR)/automake" || exit 1; \
8ec98d6c 4057 case $(srcdir) in \
7fc2ca22
PB
4058 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4059 *) topdir=`echo $(HOST_SUBDIR)/automake/ | \
4060 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 4061 esac; \
7fc2ca22
PB
4062 srcdiroption="--srcdir=$${topdir}/automake"; \
4063 libsrcdir="$$s/automake"; \
8ec98d6c 4064 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
4065 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
4066 --target=${target_alias} $${srcdiroption} \
657b58f4 4067 || exit 1
a7e609d6 4068@endif automake
657b58f4 4069
f0fdfd34
PB
4070
4071
a8a96878
PB
4072
4073
8ec98d6c
NN
4074.PHONY: all-automake maybe-all-automake
4075maybe-all-automake:
e1e5148c
CD
4076@if gcc-bootstrap
4077all-automake: stage_current
4078@endif gcc-bootstrap
a7e609d6 4079@if automake
5e6b1f07 4080TARGET-automake=all
a7e609d6 4081maybe-all-automake: all-automake
8ec98d6c 4082all-automake: configure-automake
15b527ca 4083 @: $(MAKE); $(unstage)
8ec98d6c
NN
4084 @r=`${PWD_COMMAND}`; export r; \
4085 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 4086 $(HOST_EXPORTS) \
7fc2ca22 4087 (cd $(HOST_SUBDIR)/automake && \
6532abb6
PB
4088 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
4089 $(TARGET-automake))
a7e609d6 4090@endif automake
657b58f4 4091
f0fdfd34 4092
a8a96878
PB
4093
4094
8ec98d6c
NN
4095.PHONY: check-automake maybe-check-automake
4096maybe-check-automake:
a7e609d6
PB
4097@if automake
4098maybe-check-automake: check-automake
657b58f4 4099
8ec98d6c 4100check-automake:
15b527ca 4101 @: $(MAKE); $(unstage)
8ec98d6c 4102 @r=`${PWD_COMMAND}`; export r; \
5230d454 4103 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 4104 $(HOST_EXPORTS) \
7fc2ca22
PB
4105 (cd $(HOST_SUBDIR)/automake && \
4106 $(MAKE) $(FLAGS_TO_PASS) check)
8ec98d6c 4107
a7e609d6 4108@endif automake
8ec98d6c
NN
4109
4110.PHONY: install-automake maybe-install-automake
4111maybe-install-automake:
a7e609d6
PB
4112@if automake
4113maybe-install-automake: install-automake
657b58f4 4114
8ec98d6c 4115install-automake: installdirs
15b527ca 4116 @: $(MAKE); $(unstage)
8ec98d6c
NN
4117 @r=`${PWD_COMMAND}`; export r; \
4118 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 4119 $(HOST_EXPORTS) \
7fc2ca22 4120 (cd $(HOST_SUBDIR)/automake && \
93c60b6d 4121 $(MAKE) $(FLAGS_TO_PASS) install)
657b58f4 4122
a7e609d6 4123@endif automake
657b58f4 4124
39bbbb69 4125# Other targets (info, dvi, pdf, etc.)
8ec98d6c
NN
4126
4127.PHONY: maybe-info-automake info-automake
4128maybe-info-automake:
a7e609d6
PB
4129@if automake
4130maybe-info-automake: info-automake
8ec98d6c
NN
4131
4132info-automake: \
4133 configure-automake
15b527ca 4134 @: $(MAKE); $(unstage)
8ec98d6c 4135 @[ -f ./automake/Makefile ] || exit 0; \
5230d454
L
4136 r=`${PWD_COMMAND}`; export r; \
4137 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 4138 $(HOST_EXPORTS) \
d5eec917 4139 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
4140 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4141 done; \
8ec98d6c 4142 echo "Doing info in automake" ; \
7fc2ca22 4143 (cd $(HOST_SUBDIR)/automake && \
657b58f4
NN
4144 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4145 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4146 "RANLIB=$${RANLIB}" \
bffcbe34 4147 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 4148 info) \
657b58f4
NN
4149 || exit 1
4150
a7e609d6 4151@endif automake
657b58f4 4152
8ec98d6c
NN
4153.PHONY: maybe-dvi-automake dvi-automake
4154maybe-dvi-automake:
a7e609d6
PB
4155@if automake
4156maybe-dvi-automake: dvi-automake
657b58f4 4157
8ec98d6c
NN
4158dvi-automake: \
4159 configure-automake
15b527ca 4160 @: $(MAKE); $(unstage)
8ec98d6c 4161 @[ -f ./automake/Makefile ] || exit 0; \
5230d454
L
4162 r=`${PWD_COMMAND}`; export r; \
4163 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 4164 $(HOST_EXPORTS) \
d5eec917 4165 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
4166 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4167 done; \
8ec98d6c 4168 echo "Doing dvi in automake" ; \
7fc2ca22 4169 (cd $(HOST_SUBDIR)/automake && \
657b58f4
NN
4170 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4171 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4172 "RANLIB=$${RANLIB}" \
bffcbe34 4173 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 4174 dvi) \
657b58f4
NN
4175 || exit 1
4176
a7e609d6 4177@endif automake
657b58f4 4178
39bbbb69
DD
4179.PHONY: maybe-pdf-automake pdf-automake
4180maybe-pdf-automake:
4181@if automake
4182maybe-pdf-automake: pdf-automake
4183
4184pdf-automake: \
4185 configure-automake
4186 @: $(MAKE); $(unstage)
4187 @[ -f ./automake/Makefile ] || exit 0; \
4188 r=`${PWD_COMMAND}`; export r; \
4189 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4190 $(HOST_EXPORTS) \
4191 for flag in $(EXTRA_HOST_FLAGS) ; do \
4192 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4193 done; \
4194 echo "Doing pdf in automake" ; \
4195 (cd $(HOST_SUBDIR)/automake && \
4196 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4197 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4198 "RANLIB=$${RANLIB}" \
bffcbe34 4199 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
4200 pdf) \
4201 || exit 1
4202
4203@endif automake
4204
b6fb961f
MS
4205.PHONY: maybe-html-automake html-automake
4206maybe-html-automake:
4207@if automake
4208maybe-html-automake: html-automake
4209
4210html-automake: \
4211 configure-automake
15b527ca 4212 @: $(MAKE); $(unstage)
b6fb961f
MS
4213 @[ -f ./automake/Makefile ] || exit 0; \
4214 r=`${PWD_COMMAND}`; export r; \
4215 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
4216 $(HOST_EXPORTS) \
4217 for flag in $(EXTRA_HOST_FLAGS) ; do \
4218 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4219 done; \
4220 echo "Doing html in automake" ; \
7fc2ca22 4221 (cd $(HOST_SUBDIR)/automake && \
b6fb961f
MS
4222 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4223 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4224 "RANLIB=$${RANLIB}" \
bffcbe34 4225 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
4226 html) \
4227 || exit 1
4228
4229@endif automake
4230
8ec98d6c
NN
4231.PHONY: maybe-TAGS-automake TAGS-automake
4232maybe-TAGS-automake:
a7e609d6
PB
4233@if automake
4234maybe-TAGS-automake: TAGS-automake
657b58f4 4235
8ec98d6c
NN
4236TAGS-automake: \
4237 configure-automake
15b527ca 4238 @: $(MAKE); $(unstage)
8ec98d6c 4239 @[ -f ./automake/Makefile ] || exit 0; \
5230d454
L
4240 r=`${PWD_COMMAND}`; export r; \
4241 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 4242 $(HOST_EXPORTS) \
d5eec917 4243 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
4244 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4245 done; \
8ec98d6c 4246 echo "Doing TAGS in automake" ; \
7fc2ca22 4247 (cd $(HOST_SUBDIR)/automake && \
657b58f4
NN
4248 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4249 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4250 "RANLIB=$${RANLIB}" \
bffcbe34 4251 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 4252 TAGS) \
657b58f4
NN
4253 || exit 1
4254
a7e609d6 4255@endif automake
657b58f4 4256
8ec98d6c
NN
4257.PHONY: maybe-install-info-automake install-info-automake
4258maybe-install-info-automake:
a7e609d6
PB
4259@if automake
4260maybe-install-info-automake: install-info-automake
657b58f4 4261
8ec98d6c
NN
4262install-info-automake: \
4263 configure-automake \
4264 info-automake
15b527ca 4265 @: $(MAKE); $(unstage)
8ec98d6c 4266 @[ -f ./automake/Makefile ] || exit 0; \
5230d454
L
4267 r=`${PWD_COMMAND}`; export r; \
4268 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 4269 $(HOST_EXPORTS) \
d5eec917 4270 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
4271 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4272 done; \
8ec98d6c 4273 echo "Doing install-info in automake" ; \
7fc2ca22 4274 (cd $(HOST_SUBDIR)/automake && \
657b58f4
NN
4275 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4276 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4277 "RANLIB=$${RANLIB}" \
bffcbe34 4278 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 4279 install-info) \
657b58f4
NN
4280 || exit 1
4281
a7e609d6 4282@endif automake
657b58f4 4283
d4954b6d
DD
4284.PHONY: maybe-install-pdf-automake install-pdf-automake
4285maybe-install-pdf-automake:
4286@if automake
4287maybe-install-pdf-automake: install-pdf-automake
4288
4289install-pdf-automake: \
4290 configure-automake \
4291 pdf-automake
4292 @: $(MAKE); $(unstage)
4293 @[ -f ./automake/Makefile ] || exit 0; \
4294 r=`${PWD_COMMAND}`; export r; \
4295 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4296 $(HOST_EXPORTS) \
4297 for flag in $(EXTRA_HOST_FLAGS) ; do \
4298 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4299 done; \
4300 echo "Doing install-pdf in automake" ; \
4301 (cd $(HOST_SUBDIR)/automake && \
4302 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4303 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4304 "RANLIB=$${RANLIB}" \
bffcbe34 4305 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
4306 install-pdf) \
4307 || exit 1
4308
4309@endif automake
4310
83c9add4
CD
4311.PHONY: maybe-install-html-automake install-html-automake
4312maybe-install-html-automake:
4313@if automake
4314maybe-install-html-automake: install-html-automake
4315
4316install-html-automake: \
4317 configure-automake \
4318 html-automake
4319 @: $(MAKE); $(unstage)
4320 @[ -f ./automake/Makefile ] || exit 0; \
4321 r=`${PWD_COMMAND}`; export r; \
4322 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4323 $(HOST_EXPORTS) \
4324 for flag in $(EXTRA_HOST_FLAGS) ; do \
4325 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4326 done; \
4327 echo "Doing install-html in automake" ; \
4328 (cd $(HOST_SUBDIR)/automake && \
4329 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4330 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4331 "RANLIB=$${RANLIB}" \
bffcbe34 4332 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
4333 install-html) \
4334 || exit 1
4335
4336@endif automake
4337
8ec98d6c
NN
4338.PHONY: maybe-installcheck-automake installcheck-automake
4339maybe-installcheck-automake:
a7e609d6
PB
4340@if automake
4341maybe-installcheck-automake: installcheck-automake
657b58f4 4342
8ec98d6c
NN
4343installcheck-automake: \
4344 configure-automake
15b527ca 4345 @: $(MAKE); $(unstage)
8ec98d6c 4346 @[ -f ./automake/Makefile ] || exit 0; \
5230d454
L
4347 r=`${PWD_COMMAND}`; export r; \
4348 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 4349 $(HOST_EXPORTS) \
d5eec917 4350 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
4351 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4352 done; \
8ec98d6c 4353 echo "Doing installcheck in automake" ; \
7fc2ca22 4354 (cd $(HOST_SUBDIR)/automake && \
657b58f4
NN
4355 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4356 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4357 "RANLIB=$${RANLIB}" \
bffcbe34 4358 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 4359 installcheck) \
657b58f4
NN
4360 || exit 1
4361
a7e609d6 4362@endif automake
657b58f4 4363
8ec98d6c
NN
4364.PHONY: maybe-mostlyclean-automake mostlyclean-automake
4365maybe-mostlyclean-automake:
a7e609d6
PB
4366@if automake
4367maybe-mostlyclean-automake: mostlyclean-automake
657b58f4 4368
8ec98d6c 4369mostlyclean-automake:
15b527ca 4370 @: $(MAKE); $(unstage)
8ec98d6c 4371 @[ -f ./automake/Makefile ] || exit 0; \
5230d454
L
4372 r=`${PWD_COMMAND}`; export r; \
4373 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 4374 $(HOST_EXPORTS) \
d5eec917 4375 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
4376 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4377 done; \
8ec98d6c 4378 echo "Doing mostlyclean in automake" ; \
7fc2ca22 4379 (cd $(HOST_SUBDIR)/automake && \
657b58f4
NN
4380 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4381 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4382 "RANLIB=$${RANLIB}" \
bffcbe34 4383 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 4384 mostlyclean) \
657b58f4
NN
4385 || exit 1
4386
a7e609d6 4387@endif automake
657b58f4 4388
8ec98d6c
NN
4389.PHONY: maybe-clean-automake clean-automake
4390maybe-clean-automake:
a7e609d6
PB
4391@if automake
4392maybe-clean-automake: clean-automake
657b58f4 4393
8ec98d6c 4394clean-automake:
15b527ca 4395 @: $(MAKE); $(unstage)
8ec98d6c 4396 @[ -f ./automake/Makefile ] || exit 0; \
5230d454
L
4397 r=`${PWD_COMMAND}`; export r; \
4398 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 4399 $(HOST_EXPORTS) \
d5eec917 4400 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
4401 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4402 done; \
8ec98d6c 4403 echo "Doing clean in automake" ; \
7fc2ca22 4404 (cd $(HOST_SUBDIR)/automake && \
657b58f4
NN
4405 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4406 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4407 "RANLIB=$${RANLIB}" \
bffcbe34 4408 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 4409 clean) \
657b58f4
NN
4410 || exit 1
4411
a7e609d6 4412@endif automake
657b58f4 4413
8ec98d6c
NN
4414.PHONY: maybe-distclean-automake distclean-automake
4415maybe-distclean-automake:
a7e609d6
PB
4416@if automake
4417maybe-distclean-automake: distclean-automake
657b58f4 4418
8ec98d6c 4419distclean-automake:
15b527ca 4420 @: $(MAKE); $(unstage)
8ec98d6c 4421 @[ -f ./automake/Makefile ] || exit 0; \
5230d454
L
4422 r=`${PWD_COMMAND}`; export r; \
4423 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 4424 $(HOST_EXPORTS) \
d5eec917 4425 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
4426 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4427 done; \
8ec98d6c 4428 echo "Doing distclean in automake" ; \
7fc2ca22 4429 (cd $(HOST_SUBDIR)/automake && \
657b58f4
NN
4430 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4431 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4432 "RANLIB=$${RANLIB}" \
bffcbe34 4433 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 4434 distclean) \
657b58f4
NN
4435 || exit 1
4436
a7e609d6 4437@endif automake
657b58f4 4438
8ec98d6c
NN
4439.PHONY: maybe-maintainer-clean-automake maintainer-clean-automake
4440maybe-maintainer-clean-automake:
a7e609d6
PB
4441@if automake
4442maybe-maintainer-clean-automake: maintainer-clean-automake
657b58f4 4443
8ec98d6c 4444maintainer-clean-automake:
15b527ca 4445 @: $(MAKE); $(unstage)
8ec98d6c 4446 @[ -f ./automake/Makefile ] || exit 0; \
5230d454
L
4447 r=`${PWD_COMMAND}`; export r; \
4448 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 4449 $(HOST_EXPORTS) \
d5eec917 4450 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
4451 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4452 done; \
8ec98d6c 4453 echo "Doing maintainer-clean in automake" ; \
7fc2ca22 4454 (cd $(HOST_SUBDIR)/automake && \
657b58f4
NN
4455 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4456 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4457 "RANLIB=$${RANLIB}" \
bffcbe34 4458 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 4459 maintainer-clean) \
657b58f4
NN
4460 || exit 1
4461
a7e609d6 4462@endif automake
657b58f4 4463
657b58f4 4464
f0fdfd34 4465
8ec98d6c
NN
4466.PHONY: configure-bash maybe-configure-bash
4467maybe-configure-bash:
e1e5148c
CD
4468@if gcc-bootstrap
4469configure-bash: stage_current
4470@endif gcc-bootstrap
a7e609d6
PB
4471@if bash
4472maybe-configure-bash: configure-bash
ec92c4d6 4473configure-bash:
15b527ca 4474 @: $(MAKE); $(unstage)
ec92c4d6 4475 @r=`${PWD_COMMAND}`; export r; \
5230d454 4476 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
4477 test ! -f $(HOST_SUBDIR)/bash/Makefile || exit 0; \
4478 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bash ; \
a675b75a 4479 $(HOST_EXPORTS) \
f0fdfd34
PB
4480 echo Configuring in $(HOST_SUBDIR)/bash; \
4481 cd "$(HOST_SUBDIR)/bash" || exit 1; \
8ec98d6c 4482 case $(srcdir) in \
7fc2ca22
PB
4483 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4484 *) topdir=`echo $(HOST_SUBDIR)/bash/ | \
4485 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 4486 esac; \
7fc2ca22
PB
4487 srcdiroption="--srcdir=$${topdir}/bash"; \
4488 libsrcdir="$$s/bash"; \
8ec98d6c 4489 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
4490 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
4491 --target=${target_alias} $${srcdiroption} \
657b58f4 4492 || exit 1
a7e609d6 4493@endif bash
657b58f4 4494
f0fdfd34
PB
4495
4496
a8a96878
PB
4497
4498
8ec98d6c
NN
4499.PHONY: all-bash maybe-all-bash
4500maybe-all-bash:
e1e5148c
CD
4501@if gcc-bootstrap
4502all-bash: stage_current
4503@endif gcc-bootstrap
a7e609d6 4504@if bash
5e6b1f07 4505TARGET-bash=all
a7e609d6 4506maybe-all-bash: all-bash
8ec98d6c 4507all-bash: configure-bash
15b527ca 4508 @: $(MAKE); $(unstage)
8ec98d6c
NN
4509 @r=`${PWD_COMMAND}`; export r; \
4510 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 4511 $(HOST_EXPORTS) \
7fc2ca22 4512 (cd $(HOST_SUBDIR)/bash && \
6532abb6
PB
4513 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
4514 $(TARGET-bash))
a7e609d6 4515@endif bash
657b58f4 4516
f0fdfd34 4517
a8a96878
PB
4518
4519
8ec98d6c
NN
4520.PHONY: check-bash maybe-check-bash
4521maybe-check-bash:
a7e609d6
PB
4522@if bash
4523maybe-check-bash: check-bash
657b58f4 4524
8ec98d6c 4525check-bash:
15b527ca 4526 @: $(MAKE); $(unstage)
8ec98d6c 4527 @r=`${PWD_COMMAND}`; export r; \
5230d454 4528 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 4529 $(HOST_EXPORTS) \
7fc2ca22
PB
4530 (cd $(HOST_SUBDIR)/bash && \
4531 $(MAKE) $(FLAGS_TO_PASS) check)
657b58f4 4532
a7e609d6 4533@endif bash
657b58f4 4534
8ec98d6c
NN
4535.PHONY: install-bash maybe-install-bash
4536maybe-install-bash:
a7e609d6
PB
4537@if bash
4538maybe-install-bash: install-bash
657b58f4 4539
8ec98d6c 4540install-bash: installdirs
15b527ca 4541 @: $(MAKE); $(unstage)
8ec98d6c 4542 @r=`${PWD_COMMAND}`; export r; \
5230d454 4543 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 4544 $(HOST_EXPORTS) \
7fc2ca22 4545 (cd $(HOST_SUBDIR)/bash && \
93c60b6d 4546 $(MAKE) $(FLAGS_TO_PASS) install)
657b58f4 4547
a7e609d6 4548@endif bash
657b58f4 4549
39bbbb69 4550# Other targets (info, dvi, pdf, etc.)
657b58f4 4551
8ec98d6c
NN
4552.PHONY: maybe-info-bash info-bash
4553maybe-info-bash:
a7e609d6
PB
4554@if bash
4555maybe-info-bash: info-bash
8ec98d6c
NN
4556
4557info-bash: \
4558 configure-bash
15b527ca 4559 @: $(MAKE); $(unstage)
8ec98d6c 4560 @[ -f ./bash/Makefile ] || exit 0; \
5230d454
L
4561 r=`${PWD_COMMAND}`; export r; \
4562 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 4563 $(HOST_EXPORTS) \
d5eec917 4564 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
4565 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4566 done; \
8ec98d6c 4567 echo "Doing info in bash" ; \
7fc2ca22 4568 (cd $(HOST_SUBDIR)/bash && \
657b58f4
NN
4569 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4570 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4571 "RANLIB=$${RANLIB}" \
bffcbe34 4572 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 4573 info) \
657b58f4
NN
4574 || exit 1
4575
a7e609d6 4576@endif bash
657b58f4 4577
8ec98d6c
NN
4578.PHONY: maybe-dvi-bash dvi-bash
4579maybe-dvi-bash:
a7e609d6
PB
4580@if bash
4581maybe-dvi-bash: dvi-bash
657b58f4 4582
8ec98d6c
NN
4583dvi-bash: \
4584 configure-bash
15b527ca 4585 @: $(MAKE); $(unstage)
8ec98d6c 4586 @[ -f ./bash/Makefile ] || exit 0; \
5230d454
L
4587 r=`${PWD_COMMAND}`; export r; \
4588 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 4589 $(HOST_EXPORTS) \
d5eec917 4590 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
4591 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4592 done; \
8ec98d6c 4593 echo "Doing dvi in bash" ; \
7fc2ca22 4594 (cd $(HOST_SUBDIR)/bash && \
657b58f4
NN
4595 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4596 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4597 "RANLIB=$${RANLIB}" \
bffcbe34 4598 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 4599 dvi) \
657b58f4
NN
4600 || exit 1
4601
a7e609d6 4602@endif bash
657b58f4 4603
39bbbb69
DD
4604.PHONY: maybe-pdf-bash pdf-bash
4605maybe-pdf-bash:
4606@if bash
4607maybe-pdf-bash: pdf-bash
4608
4609pdf-bash: \
4610 configure-bash
4611 @: $(MAKE); $(unstage)
4612 @[ -f ./bash/Makefile ] || exit 0; \
4613 r=`${PWD_COMMAND}`; export r; \
4614 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4615 $(HOST_EXPORTS) \
4616 for flag in $(EXTRA_HOST_FLAGS) ; do \
4617 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4618 done; \
4619 echo "Doing pdf in bash" ; \
4620 (cd $(HOST_SUBDIR)/bash && \
4621 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4622 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4623 "RANLIB=$${RANLIB}" \
bffcbe34 4624 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
4625 pdf) \
4626 || exit 1
4627
4628@endif bash
4629
b6fb961f
MS
4630.PHONY: maybe-html-bash html-bash
4631maybe-html-bash:
4632@if bash
4633maybe-html-bash: html-bash
4634
4635html-bash: \
4636 configure-bash
15b527ca 4637 @: $(MAKE); $(unstage)
b6fb961f
MS
4638 @[ -f ./bash/Makefile ] || exit 0; \
4639 r=`${PWD_COMMAND}`; export r; \
4640 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
4641 $(HOST_EXPORTS) \
4642 for flag in $(EXTRA_HOST_FLAGS) ; do \
4643 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4644 done; \
4645 echo "Doing html in bash" ; \
7fc2ca22 4646 (cd $(HOST_SUBDIR)/bash && \
b6fb961f
MS
4647 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4648 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4649 "RANLIB=$${RANLIB}" \
bffcbe34 4650 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
4651 html) \
4652 || exit 1
4653
4654@endif bash
4655
8ec98d6c
NN
4656.PHONY: maybe-TAGS-bash TAGS-bash
4657maybe-TAGS-bash:
a7e609d6
PB
4658@if bash
4659maybe-TAGS-bash: TAGS-bash
657b58f4 4660
8ec98d6c
NN
4661TAGS-bash: \
4662 configure-bash
15b527ca 4663 @: $(MAKE); $(unstage)
8ec98d6c 4664 @[ -f ./bash/Makefile ] || exit 0; \
5230d454
L
4665 r=`${PWD_COMMAND}`; export r; \
4666 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 4667 $(HOST_EXPORTS) \
d5eec917 4668 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
4669 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4670 done; \
8ec98d6c 4671 echo "Doing TAGS in bash" ; \
7fc2ca22 4672 (cd $(HOST_SUBDIR)/bash && \
657b58f4
NN
4673 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4674 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4675 "RANLIB=$${RANLIB}" \
bffcbe34 4676 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 4677 TAGS) \
657b58f4
NN
4678 || exit 1
4679
a7e609d6 4680@endif bash
657b58f4 4681
8ec98d6c
NN
4682.PHONY: maybe-install-info-bash install-info-bash
4683maybe-install-info-bash:
a7e609d6
PB
4684@if bash
4685maybe-install-info-bash: install-info-bash
657b58f4 4686
8ec98d6c
NN
4687install-info-bash: \
4688 configure-bash \
4689 info-bash
15b527ca 4690 @: $(MAKE); $(unstage)
8ec98d6c 4691 @[ -f ./bash/Makefile ] || exit 0; \
5230d454
L
4692 r=`${PWD_COMMAND}`; export r; \
4693 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 4694 $(HOST_EXPORTS) \
d5eec917 4695 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
4696 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4697 done; \
8ec98d6c 4698 echo "Doing install-info in bash" ; \
7fc2ca22 4699 (cd $(HOST_SUBDIR)/bash && \
657b58f4
NN
4700 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4701 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4702 "RANLIB=$${RANLIB}" \
bffcbe34 4703 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 4704 install-info) \
657b58f4
NN
4705 || exit 1
4706
a7e609d6 4707@endif bash
657b58f4 4708
d4954b6d
DD
4709.PHONY: maybe-install-pdf-bash install-pdf-bash
4710maybe-install-pdf-bash:
4711@if bash
4712maybe-install-pdf-bash: install-pdf-bash
4713
4714install-pdf-bash: \
4715 configure-bash \
4716 pdf-bash
4717 @: $(MAKE); $(unstage)
4718 @[ -f ./bash/Makefile ] || exit 0; \
4719 r=`${PWD_COMMAND}`; export r; \
4720 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4721 $(HOST_EXPORTS) \
4722 for flag in $(EXTRA_HOST_FLAGS) ; do \
4723 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4724 done; \
4725 echo "Doing install-pdf in bash" ; \
4726 (cd $(HOST_SUBDIR)/bash && \
4727 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4728 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4729 "RANLIB=$${RANLIB}" \
bffcbe34 4730 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
4731 install-pdf) \
4732 || exit 1
4733
4734@endif bash
4735
83c9add4
CD
4736.PHONY: maybe-install-html-bash install-html-bash
4737maybe-install-html-bash:
4738@if bash
4739maybe-install-html-bash: install-html-bash
4740
4741install-html-bash: \
4742 configure-bash \
4743 html-bash
4744 @: $(MAKE); $(unstage)
4745 @[ -f ./bash/Makefile ] || exit 0; \
4746 r=`${PWD_COMMAND}`; export r; \
4747 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4748 $(HOST_EXPORTS) \
4749 for flag in $(EXTRA_HOST_FLAGS) ; do \
4750 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4751 done; \
4752 echo "Doing install-html in bash" ; \
4753 (cd $(HOST_SUBDIR)/bash && \
4754 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4755 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4756 "RANLIB=$${RANLIB}" \
bffcbe34 4757 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
4758 install-html) \
4759 || exit 1
4760
4761@endif bash
4762
8ec98d6c
NN
4763.PHONY: maybe-installcheck-bash installcheck-bash
4764maybe-installcheck-bash:
a7e609d6
PB
4765@if bash
4766maybe-installcheck-bash: installcheck-bash
657b58f4 4767
8ec98d6c
NN
4768installcheck-bash: \
4769 configure-bash
15b527ca 4770 @: $(MAKE); $(unstage)
8ec98d6c 4771 @[ -f ./bash/Makefile ] || exit 0; \
5230d454
L
4772 r=`${PWD_COMMAND}`; export r; \
4773 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 4774 $(HOST_EXPORTS) \
d5eec917 4775 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
4776 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4777 done; \
8ec98d6c 4778 echo "Doing installcheck in bash" ; \
7fc2ca22 4779 (cd $(HOST_SUBDIR)/bash && \
657b58f4
NN
4780 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4781 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4782 "RANLIB=$${RANLIB}" \
bffcbe34 4783 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 4784 installcheck) \
657b58f4
NN
4785 || exit 1
4786
a7e609d6 4787@endif bash
657b58f4 4788
8ec98d6c
NN
4789.PHONY: maybe-mostlyclean-bash mostlyclean-bash
4790maybe-mostlyclean-bash:
a7e609d6
PB
4791@if bash
4792maybe-mostlyclean-bash: mostlyclean-bash
657b58f4 4793
8ec98d6c 4794mostlyclean-bash:
15b527ca 4795 @: $(MAKE); $(unstage)
8ec98d6c 4796 @[ -f ./bash/Makefile ] || exit 0; \
5230d454
L
4797 r=`${PWD_COMMAND}`; export r; \
4798 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 4799 $(HOST_EXPORTS) \
d5eec917 4800 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
4801 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4802 done; \
8ec98d6c 4803 echo "Doing mostlyclean in bash" ; \
7fc2ca22 4804 (cd $(HOST_SUBDIR)/bash && \
657b58f4
NN
4805 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4806 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4807 "RANLIB=$${RANLIB}" \
bffcbe34 4808 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 4809 mostlyclean) \
657b58f4
NN
4810 || exit 1
4811
a7e609d6 4812@endif bash
657b58f4 4813
8ec98d6c
NN
4814.PHONY: maybe-clean-bash clean-bash
4815maybe-clean-bash:
a7e609d6
PB
4816@if bash
4817maybe-clean-bash: clean-bash
657b58f4 4818
8ec98d6c 4819clean-bash:
15b527ca 4820 @: $(MAKE); $(unstage)
8ec98d6c 4821 @[ -f ./bash/Makefile ] || exit 0; \
5230d454
L
4822 r=`${PWD_COMMAND}`; export r; \
4823 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 4824 $(HOST_EXPORTS) \
d5eec917 4825 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
4826 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4827 done; \
8ec98d6c 4828 echo "Doing clean in bash" ; \
7fc2ca22 4829 (cd $(HOST_SUBDIR)/bash && \
657b58f4
NN
4830 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4831 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4832 "RANLIB=$${RANLIB}" \
bffcbe34 4833 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 4834 clean) \
657b58f4
NN
4835 || exit 1
4836
a7e609d6 4837@endif bash
657b58f4 4838
8ec98d6c
NN
4839.PHONY: maybe-distclean-bash distclean-bash
4840maybe-distclean-bash:
a7e609d6
PB
4841@if bash
4842maybe-distclean-bash: distclean-bash
657b58f4 4843
8ec98d6c 4844distclean-bash:
15b527ca 4845 @: $(MAKE); $(unstage)
8ec98d6c 4846 @[ -f ./bash/Makefile ] || exit 0; \
5230d454
L
4847 r=`${PWD_COMMAND}`; export r; \
4848 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 4849 $(HOST_EXPORTS) \
d5eec917 4850 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
4851 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4852 done; \
8ec98d6c 4853 echo "Doing distclean in bash" ; \
7fc2ca22 4854 (cd $(HOST_SUBDIR)/bash && \
657b58f4
NN
4855 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4856 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4857 "RANLIB=$${RANLIB}" \
bffcbe34 4858 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 4859 distclean) \
657b58f4
NN
4860 || exit 1
4861
a7e609d6 4862@endif bash
657b58f4 4863
8ec98d6c
NN
4864.PHONY: maybe-maintainer-clean-bash maintainer-clean-bash
4865maybe-maintainer-clean-bash:
a7e609d6
PB
4866@if bash
4867maybe-maintainer-clean-bash: maintainer-clean-bash
657b58f4 4868
8ec98d6c 4869maintainer-clean-bash:
15b527ca 4870 @: $(MAKE); $(unstage)
8ec98d6c 4871 @[ -f ./bash/Makefile ] || exit 0; \
5230d454
L
4872 r=`${PWD_COMMAND}`; export r; \
4873 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 4874 $(HOST_EXPORTS) \
d5eec917 4875 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
4876 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4877 done; \
8ec98d6c 4878 echo "Doing maintainer-clean in bash" ; \
7fc2ca22 4879 (cd $(HOST_SUBDIR)/bash && \
657b58f4
NN
4880 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4881 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4882 "RANLIB=$${RANLIB}" \
bffcbe34 4883 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 4884 maintainer-clean) \
657b58f4
NN
4885 || exit 1
4886
a7e609d6 4887@endif bash
657b58f4 4888
657b58f4 4889
f0fdfd34 4890
8ec98d6c
NN
4891.PHONY: configure-bfd maybe-configure-bfd
4892maybe-configure-bfd:
e1e5148c
CD
4893@if gcc-bootstrap
4894configure-bfd: stage_current
4895@endif gcc-bootstrap
a7e609d6
PB
4896@if bfd
4897maybe-configure-bfd: configure-bfd
ec92c4d6 4898configure-bfd:
ec92c4d6
PB
4899 @r=`${PWD_COMMAND}`; export r; \
4900 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7fc2ca22
PB
4901 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
4902 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
a675b75a 4903 $(HOST_EXPORTS) \
f0fdfd34
PB
4904 echo Configuring in $(HOST_SUBDIR)/bfd; \
4905 cd "$(HOST_SUBDIR)/bfd" || exit 1; \
8ec98d6c 4906 case $(srcdir) in \
7fc2ca22
PB
4907 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4908 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
4909 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 4910 esac; \
7fc2ca22
PB
4911 srcdiroption="--srcdir=$${topdir}/bfd"; \
4912 libsrcdir="$$s/bfd"; \
8ec98d6c 4913 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
4914 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
4915 --target=${target_alias} $${srcdiroption} \
657b58f4 4916 || exit 1
a7e609d6 4917@endif bfd
657b58f4 4918
f0fdfd34
PB
4919
4920
a8a96878
PB
4921.PHONY: configure-stage1-bfd maybe-configure-stage1-bfd
4922maybe-configure-stage1-bfd:
4923@if bfd-bootstrap
4924maybe-configure-stage1-bfd: configure-stage1-bfd
15b527ca 4925configure-stage1-bfd:
ec92c4d6 4926 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
15b527ca 4927 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
ec92c4d6
PB
4928 @r=`${PWD_COMMAND}`; export r; \
4929 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15b527ca 4930 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
6532abb6 4931 $(HOST_EXPORTS) \
2ba09444 4932 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
6532abb6 4933 CXXFLAGS="$(STAGE1_CFLAGS)"; export CXXFLAGS; \
a8a96878 4934 echo Configuring stage 1 in $(HOST_SUBDIR)/bfd ; \
15b527ca 4935 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
a8a96878
PB
4936 cd $(HOST_SUBDIR)/bfd || exit 1; \
4937 case $(srcdir) in \
4938 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4939 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
4940 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4941 esac; \
4942 srcdiroption="--srcdir=$${topdir}/bfd"; \
4943 libsrcdir="$$s/bfd"; \
4944 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
4945 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
4946 --target=${target_alias} $${srcdiroption} \
380e48e5 4947 \
14a1406e 4948 --disable-intermodule $(STAGE1_CHECKING) --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
a8a96878
PB
4949@endif bfd-bootstrap
4950
4951.PHONY: configure-stage2-bfd maybe-configure-stage2-bfd
4952maybe-configure-stage2-bfd:
4953@if bfd-bootstrap
4954maybe-configure-stage2-bfd: configure-stage2-bfd
15b527ca 4955configure-stage2-bfd:
ec92c4d6 4956 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
15b527ca 4957 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
ec92c4d6
PB
4958 @r=`${PWD_COMMAND}`; export r; \
4959 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15b527ca 4960 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
a8a96878 4961 $(HOST_EXPORTS) \
6532abb6 4962 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 4963 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
6532abb6 4964 CXXFLAGS="$(STAGE2_CFLAGS)"; export CXXFLAGS; \
a8a96878 4965 echo Configuring stage 2 in $(HOST_SUBDIR)/bfd ; \
15b527ca 4966 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
a8a96878
PB
4967 cd $(HOST_SUBDIR)/bfd || exit 1; \
4968 case $(srcdir) in \
4969 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4970 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
4971 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4972 esac; \
4973 srcdiroption="--srcdir=$${topdir}/bfd"; \
4974 libsrcdir="$$s/bfd"; \
4975 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
4976 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
4977 --target=${target_alias} $${srcdiroption} \
380e48e5 4978 --with-build-libsubdir=$(HOST_SUBDIR) \
a8a96878
PB
4979 @stage2_werror_flag@
4980@endif bfd-bootstrap
4981
2b41ef78
AO
4982.PHONY: configure-stageb2g0-bfd maybe-configure-stageb2g0-bfd
4983maybe-configure-stageb2g0-bfd:
4984@if bfd-bootstrap
4985maybe-configure-stageb2g0-bfd: configure-stageb2g0-bfd
4986configure-stageb2g0-bfd:
4987 @[ $(current_stage) = stageb2g0 ] || $(MAKE) stageb2g0-start
4988 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
4989 @r=`${PWD_COMMAND}`; export r; \
4990 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4991 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
4992 $(HOST_EXPORTS) \
6532abb6 4993 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 4994 CFLAGS="$(STAGE2_CFLAGS) -g0"; export CFLAGS; \
6532abb6 4995 CXXFLAGS="$(STAGE2_CFLAGS) -g0"; export CXXFLAGS; \
2b41ef78
AO
4996 echo Configuring stage b2g0 in $(HOST_SUBDIR)/bfd ; \
4997 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
4998 cd $(HOST_SUBDIR)/bfd || exit 1; \
4999 case $(srcdir) in \
5000 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
5001 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
5002 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5003 esac; \
5004 srcdiroption="--srcdir=$${topdir}/bfd"; \
5005 libsrcdir="$$s/bfd"; \
5006 $(SHELL) $${libsrcdir}/configure \
5007 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
5008 --target=${target_alias} $${srcdiroption} \
5009 --with-build-libsubdir=$(HOST_SUBDIR) \
5010 @stage2_werror_flag@
5011@endif bfd-bootstrap
5012
a8a96878
PB
5013.PHONY: configure-stage3-bfd maybe-configure-stage3-bfd
5014maybe-configure-stage3-bfd:
5015@if bfd-bootstrap
5016maybe-configure-stage3-bfd: configure-stage3-bfd
15b527ca 5017configure-stage3-bfd:
ec92c4d6 5018 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
15b527ca 5019 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
ec92c4d6
PB
5020 @r=`${PWD_COMMAND}`; export r; \
5021 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15b527ca 5022 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
a8a96878 5023 $(HOST_EXPORTS) \
6532abb6 5024 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 5025 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
6532abb6 5026 CXXFLAGS="$(STAGE3_CFLAGS)"; export CXXFLAGS; \
a8a96878 5027 echo Configuring stage 3 in $(HOST_SUBDIR)/bfd ; \
15b527ca 5028 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
a8a96878
PB
5029 cd $(HOST_SUBDIR)/bfd || exit 1; \
5030 case $(srcdir) in \
5031 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
5032 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
5033 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5034 esac; \
5035 srcdiroption="--srcdir=$${topdir}/bfd"; \
5036 libsrcdir="$$s/bfd"; \
5037 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
5038 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
5039 --target=${target_alias} $${srcdiroption} \
380e48e5 5040 --with-build-libsubdir=$(HOST_SUBDIR) \
a8a96878
PB
5041 @stage2_werror_flag@
5042@endif bfd-bootstrap
5043
2b41ef78
AO
5044.PHONY: configure-stageb3g2-bfd maybe-configure-stageb3g2-bfd
5045maybe-configure-stageb3g2-bfd:
5046@if bfd-bootstrap
5047maybe-configure-stageb3g2-bfd: configure-stageb3g2-bfd
5048configure-stageb3g2-bfd:
5049 @[ $(current_stage) = stageb3g2 ] || $(MAKE) stageb3g2-start
5050 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
5051 @r=`${PWD_COMMAND}`; export r; \
5052 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5053 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
5054 $(HOST_EXPORTS) \
6532abb6 5055 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 5056 CFLAGS="$(STAGE3_CFLAGS) -g2"; export CFLAGS; \
6532abb6 5057 CXXFLAGS="$(STAGE3_CFLAGS) -g2"; export CXXFLAGS; \
2b41ef78
AO
5058 echo Configuring stage b3g2 in $(HOST_SUBDIR)/bfd ; \
5059 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
5060 cd $(HOST_SUBDIR)/bfd || exit 1; \
5061 case $(srcdir) in \
5062 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
5063 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
5064 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5065 esac; \
5066 srcdiroption="--srcdir=$${topdir}/bfd"; \
5067 libsrcdir="$$s/bfd"; \
5068 $(SHELL) $${libsrcdir}/configure \
5069 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
5070 --target=${target_alias} $${srcdiroption} \
5071 --with-build-libsubdir=$(HOST_SUBDIR) \
5072 @stage2_werror_flag@
5073@endif bfd-bootstrap
5074
a8a96878
PB
5075.PHONY: configure-stage4-bfd maybe-configure-stage4-bfd
5076maybe-configure-stage4-bfd:
5077@if bfd-bootstrap
5078maybe-configure-stage4-bfd: configure-stage4-bfd
15b527ca 5079configure-stage4-bfd:
ec92c4d6 5080 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
15b527ca 5081 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
ec92c4d6
PB
5082 @r=`${PWD_COMMAND}`; export r; \
5083 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15b527ca 5084 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
a8a96878 5085 $(HOST_EXPORTS) \
6532abb6 5086 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 5087 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
6532abb6 5088 CXXFLAGS="$(STAGE4_CFLAGS)"; export CXXFLAGS; \
a8a96878 5089 echo Configuring stage 4 in $(HOST_SUBDIR)/bfd ; \
15b527ca 5090 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
a8a96878
PB
5091 cd $(HOST_SUBDIR)/bfd || exit 1; \
5092 case $(srcdir) in \
5093 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
5094 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
5095 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5096 esac; \
5097 srcdiroption="--srcdir=$${topdir}/bfd"; \
5098 libsrcdir="$$s/bfd"; \
5099 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
5100 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
5101 --target=${target_alias} $${srcdiroption} \
380e48e5 5102 --with-build-libsubdir=$(HOST_SUBDIR) \
a8a96878
PB
5103 @stage2_werror_flag@
5104@endif bfd-bootstrap
5105
5106.PHONY: configure-stageprofile-bfd maybe-configure-stageprofile-bfd
5107maybe-configure-stageprofile-bfd:
5108@if bfd-bootstrap
5109maybe-configure-stageprofile-bfd: configure-stageprofile-bfd
15b527ca 5110configure-stageprofile-bfd:
ec92c4d6 5111 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
15b527ca 5112 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
ec92c4d6
PB
5113 @r=`${PWD_COMMAND}`; export r; \
5114 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15b527ca 5115 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
a8a96878 5116 $(HOST_EXPORTS) \
6532abb6 5117 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 5118 CFLAGS="$(STAGE2_CFLAGS) -fprofile-generate"; export CFLAGS; \
6532abb6 5119 CXXFLAGS="$(STAGE2_CFLAGS) -fprofile-generate"; export CXXFLAGS; \
a8a96878 5120 echo Configuring stage profile in $(HOST_SUBDIR)/bfd ; \
15b527ca 5121 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
a8a96878
PB
5122 cd $(HOST_SUBDIR)/bfd || exit 1; \
5123 case $(srcdir) in \
5124 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
5125 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
5126 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5127 esac; \
5128 srcdiroption="--srcdir=$${topdir}/bfd"; \
5129 libsrcdir="$$s/bfd"; \
5130 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
5131 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
5132 --target=${target_alias} $${srcdiroption} \
380e48e5 5133 --with-build-libsubdir=$(HOST_SUBDIR) \
a8a96878
PB
5134 @stage2_werror_flag@
5135@endif bfd-bootstrap
5136
5137.PHONY: configure-stagefeedback-bfd maybe-configure-stagefeedback-bfd
5138maybe-configure-stagefeedback-bfd:
5139@if bfd-bootstrap
5140maybe-configure-stagefeedback-bfd: configure-stagefeedback-bfd
15b527ca 5141configure-stagefeedback-bfd:
ec92c4d6 5142 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
15b527ca 5143 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
ec92c4d6
PB
5144 @r=`${PWD_COMMAND}`; export r; \
5145 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15b527ca 5146 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
a8a96878 5147 $(HOST_EXPORTS) \
6532abb6 5148 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 5149 CFLAGS="$(STAGE3_CFLAGS) -fprofile-use"; export CFLAGS; \
6532abb6 5150 CXXFLAGS="$(STAGE3_CFLAGS) -fprofile-use"; export CXXFLAGS; \
a8a96878 5151 echo Configuring stage feedback in $(HOST_SUBDIR)/bfd ; \
15b527ca 5152 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
a8a96878
PB
5153 cd $(HOST_SUBDIR)/bfd || exit 1; \
5154 case $(srcdir) in \
5155 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
5156 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
5157 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5158 esac; \
5159 srcdiroption="--srcdir=$${topdir}/bfd"; \
5160 libsrcdir="$$s/bfd"; \
5161 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
5162 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
5163 --target=${target_alias} $${srcdiroption} \
380e48e5 5164 --with-build-libsubdir=$(HOST_SUBDIR) \
a8a96878
PB
5165 @stage2_werror_flag@
5166@endif bfd-bootstrap
5167
5168
5169
5170
5171
8ec98d6c
NN
5172.PHONY: all-bfd maybe-all-bfd
5173maybe-all-bfd:
e1e5148c
CD
5174@if gcc-bootstrap
5175all-bfd: stage_current
5176@endif gcc-bootstrap
a7e609d6 5177@if bfd
5e6b1f07 5178TARGET-bfd=all
a7e609d6 5179maybe-all-bfd: all-bfd
8ec98d6c 5180all-bfd: configure-bfd
ec92c4d6 5181 @r=`${PWD_COMMAND}`; export r; \
8ec98d6c 5182 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 5183 $(HOST_EXPORTS) \
7fc2ca22 5184 (cd $(HOST_SUBDIR)/bfd && \
6532abb6
PB
5185 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
5186 $(TARGET-bfd))
a7e609d6 5187@endif bfd
657b58f4 5188
f0fdfd34 5189
a8a96878
PB
5190
5191.PHONY: all-stage1-bfd maybe-all-stage1-bfd
5192.PHONY: clean-stage1-bfd maybe-clean-stage1-bfd
5193maybe-all-stage1-bfd:
5194maybe-clean-stage1-bfd:
5195@if bfd-bootstrap
5196maybe-all-stage1-bfd: all-stage1-bfd
5197all-stage1: all-stage1-bfd
168b158c 5198TARGET-stage1-bfd = $(TARGET-bfd)
a8a96878 5199all-stage1-bfd: configure-stage1-bfd
ec92c4d6 5200 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a8a96878
PB
5201 @r=`${PWD_COMMAND}`; export r; \
5202 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5203 $(HOST_EXPORTS) \
5204 cd $(HOST_SUBDIR)/bfd && \
6532abb6
PB
5205 $(MAKE) $(BASE_FLAGS_TO_PASS) \
5206 CFLAGS="$(STAGE1_CFLAGS)" CXXFLAGS="$(STAGE1_CFLAGS)" \
5207 LIBCFLAGS="$(STAGE1_LIBCFLAGS)" \
5208 CFLAGS_FOR_TARGET="$(STAGE1_LIBCFLAGS)" \
5209 CXXFLAGS_FOR_TARGET="$(STAGE1_LIBCFLAGS)" $(EXTRA_HOST_FLAGS) \
168b158c 5210 $(TARGET-stage1-bfd)
a8a96878
PB
5211
5212maybe-clean-stage1-bfd: clean-stage1-bfd
5213clean-stage1: clean-stage1-bfd
5214clean-stage1-bfd:
a6a4e782
DD
5215 @if [ $(current_stage) = stage1 ]; then \
5216 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
5217 else \
5218 [ -f $(HOST_SUBDIR)/stage1-bfd/Makefile ] || exit 0; \
5219 $(MAKE) stage1-start; \
5220 fi; \
a8a96878 5221 cd $(HOST_SUBDIR)/bfd && \
6532abb6 5222 $(MAKE) $(EXTRA_HOST_FLAGS) \
2ba09444 5223 clean
a8a96878
PB
5224@endif bfd-bootstrap
5225
5226
5227.PHONY: all-stage2-bfd maybe-all-stage2-bfd
5228.PHONY: clean-stage2-bfd maybe-clean-stage2-bfd
5229maybe-all-stage2-bfd:
5230maybe-clean-stage2-bfd:
5231@if bfd-bootstrap
5232maybe-all-stage2-bfd: all-stage2-bfd
5233all-stage2: all-stage2-bfd
168b158c 5234TARGET-stage2-bfd = $(TARGET-bfd)
a8a96878 5235all-stage2-bfd: configure-stage2-bfd
ec92c4d6 5236 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a8a96878
PB
5237 @r=`${PWD_COMMAND}`; export r; \
5238 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5239 $(HOST_EXPORTS) \
5240 $(POSTSTAGE1_HOST_EXPORTS) \
5241 cd $(HOST_SUBDIR)/bfd && \
6532abb6
PB
5242 $(MAKE) $(BASE_FLAGS_TO_PASS) \
5243 CFLAGS="$(STAGE2_CFLAGS)" CXXFLAGS="$(STAGE2_CFLAGS)" \
5244 LIBCFLAGS="$(STAGE2_LIBCFLAGS)" \
5245 CFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)" \
5246 CXXFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
168b158c 5247 $(TARGET-stage2-bfd)
a8a96878
PB
5248
5249maybe-clean-stage2-bfd: clean-stage2-bfd
5250clean-stage2: clean-stage2-bfd
5251clean-stage2-bfd:
a6a4e782
DD
5252 @if [ $(current_stage) = stage2 ]; then \
5253 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
5254 else \
5255 [ -f $(HOST_SUBDIR)/stage2-bfd/Makefile ] || exit 0; \
5256 $(MAKE) stage2-start; \
5257 fi; \
a8a96878 5258 cd $(HOST_SUBDIR)/bfd && \
6532abb6 5259 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 5260 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 5261 clean
a8a96878
PB
5262@endif bfd-bootstrap
5263
5264
2b41ef78
AO
5265.PHONY: all-stageb2g0-bfd maybe-all-stageb2g0-bfd
5266.PHONY: clean-stageb2g0-bfd maybe-clean-stageb2g0-bfd
5267maybe-all-stageb2g0-bfd:
5268maybe-clean-stageb2g0-bfd:
5269@if bfd-bootstrap
5270maybe-all-stageb2g0-bfd: all-stageb2g0-bfd
5271all-stageb2g0: all-stageb2g0-bfd
5272TARGET-stageb2g0-bfd = $(TARGET-bfd)
5273all-stageb2g0-bfd: configure-stageb2g0-bfd
5274 @[ $(current_stage) = stageb2g0 ] || $(MAKE) stageb2g0-start
5275 @r=`${PWD_COMMAND}`; export r; \
5276 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5277 $(HOST_EXPORTS) \
5278 $(POSTSTAGE1_HOST_EXPORTS) \
5279 cd $(HOST_SUBDIR)/bfd && \
6532abb6
PB
5280 $(MAKE) $(BASE_FLAGS_TO_PASS) \
5281 CFLAGS="$(STAGE2_CFLAGS) -g0" CXXFLAGS="$(STAGE2_CFLAGS) -g0" \
5282 LIBCFLAGS="$(STAGE2_LIBCFLAGS) -g0" \
5283 CFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS) -g0" \
5284 CXXFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS) -g0" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
2b41ef78
AO
5285 $(TARGET-stageb2g0-bfd)
5286
5287maybe-clean-stageb2g0-bfd: clean-stageb2g0-bfd
5288clean-stageb2g0: clean-stageb2g0-bfd
5289clean-stageb2g0-bfd:
5290 @if [ $(current_stage) = stageb2g0 ]; then \
5291 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
5292 else \
5293 [ -f $(HOST_SUBDIR)/stageb2g0-bfd/Makefile ] || exit 0; \
5294 $(MAKE) stageb2g0-start; \
5295 fi; \
5296 cd $(HOST_SUBDIR)/bfd && \
6532abb6 5297 $(MAKE) $(EXTRA_HOST_FLAGS) \
2b41ef78
AO
5298 $(POSTSTAGE1_FLAGS_TO_PASS) \
5299 clean
5300@endif bfd-bootstrap
5301
5302
a8a96878
PB
5303.PHONY: all-stage3-bfd maybe-all-stage3-bfd
5304.PHONY: clean-stage3-bfd maybe-clean-stage3-bfd
5305maybe-all-stage3-bfd:
5306maybe-clean-stage3-bfd:
5307@if bfd-bootstrap
5308maybe-all-stage3-bfd: all-stage3-bfd
5309all-stage3: all-stage3-bfd
168b158c 5310TARGET-stage3-bfd = $(TARGET-bfd)
a8a96878 5311all-stage3-bfd: configure-stage3-bfd
ec92c4d6 5312 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a8a96878
PB
5313 @r=`${PWD_COMMAND}`; export r; \
5314 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5315 $(HOST_EXPORTS) \
5316 $(POSTSTAGE1_HOST_EXPORTS) \
5317 cd $(HOST_SUBDIR)/bfd && \
6532abb6
PB
5318 $(MAKE) $(BASE_FLAGS_TO_PASS) \
5319 CFLAGS="$(STAGE3_CFLAGS)" CXXFLAGS="$(STAGE3_CFLAGS)" \
5320 LIBCFLAGS="$(STAGE3_LIBCFLAGS)" \
5321 CFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS)" \
5322 CXXFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS)" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
168b158c 5323 $(TARGET-stage3-bfd)
a8a96878
PB
5324
5325maybe-clean-stage3-bfd: clean-stage3-bfd
5326clean-stage3: clean-stage3-bfd
5327clean-stage3-bfd:
a6a4e782
DD
5328 @if [ $(current_stage) = stage3 ]; then \
5329 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
5330 else \
5331 [ -f $(HOST_SUBDIR)/stage3-bfd/Makefile ] || exit 0; \
5332 $(MAKE) stage3-start; \
5333 fi; \
a8a96878 5334 cd $(HOST_SUBDIR)/bfd && \
6532abb6 5335 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 5336 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 5337 clean
a8a96878
PB
5338@endif bfd-bootstrap
5339
5340
2b41ef78
AO
5341.PHONY: all-stageb3g2-bfd maybe-all-stageb3g2-bfd
5342.PHONY: clean-stageb3g2-bfd maybe-clean-stageb3g2-bfd
5343maybe-all-stageb3g2-bfd:
5344maybe-clean-stageb3g2-bfd:
5345@if bfd-bootstrap
5346maybe-all-stageb3g2-bfd: all-stageb3g2-bfd
5347all-stageb3g2: all-stageb3g2-bfd
5348TARGET-stageb3g2-bfd = $(TARGET-bfd)
5349all-stageb3g2-bfd: configure-stageb3g2-bfd
5350 @[ $(current_stage) = stageb3g2 ] || $(MAKE) stageb3g2-start
5351 @r=`${PWD_COMMAND}`; export r; \
5352 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5353 $(HOST_EXPORTS) \
5354 $(POSTSTAGE1_HOST_EXPORTS) \
5355 cd $(HOST_SUBDIR)/bfd && \
6532abb6
PB
5356 $(MAKE) $(BASE_FLAGS_TO_PASS) \
5357 CFLAGS="$(STAGE3_CFLAGS) -g2" CXXFLAGS="$(STAGE3_CFLAGS) -g2" \
5358 LIBCFLAGS="$(STAGE3_LIBCFLAGS) -g2" \
5359 CFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS) -g2" \
5360 CXXFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS) -g2" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
2b41ef78
AO
5361 $(TARGET-stageb3g2-bfd)
5362
5363maybe-clean-stageb3g2-bfd: clean-stageb3g2-bfd
5364clean-stageb3g2: clean-stageb3g2-bfd
5365clean-stageb3g2-bfd:
5366 @if [ $(current_stage) = stageb3g2 ]; then \
5367 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
5368 else \
5369 [ -f $(HOST_SUBDIR)/stageb3g2-bfd/Makefile ] || exit 0; \
5370 $(MAKE) stageb3g2-start; \
5371 fi; \
5372 cd $(HOST_SUBDIR)/bfd && \
6532abb6 5373 $(MAKE) $(EXTRA_HOST_FLAGS) \
2b41ef78
AO
5374 $(POSTSTAGE1_FLAGS_TO_PASS) \
5375 clean
5376@endif bfd-bootstrap
5377
5378
a8a96878
PB
5379.PHONY: all-stage4-bfd maybe-all-stage4-bfd
5380.PHONY: clean-stage4-bfd maybe-clean-stage4-bfd
5381maybe-all-stage4-bfd:
5382maybe-clean-stage4-bfd:
5383@if bfd-bootstrap
5384maybe-all-stage4-bfd: all-stage4-bfd
5385all-stage4: all-stage4-bfd
168b158c 5386TARGET-stage4-bfd = $(TARGET-bfd)
a8a96878 5387all-stage4-bfd: configure-stage4-bfd
ec92c4d6 5388 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a8a96878
PB
5389 @r=`${PWD_COMMAND}`; export r; \
5390 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5391 $(HOST_EXPORTS) \
5392 $(POSTSTAGE1_HOST_EXPORTS) \
5393 cd $(HOST_SUBDIR)/bfd && \
6532abb6
PB
5394 $(MAKE) $(BASE_FLAGS_TO_PASS) \
5395 CFLAGS="$(STAGE4_CFLAGS)" CXXFLAGS="$(STAGE4_CFLAGS)" \
5396 LIBCFLAGS="$(STAGE4_CFLAGS)" \
5397 CFLAGS_FOR_TARGET="$(STAGE4_CFLAGS)" \
5398 CXXFLAGS_FOR_TARGET="$(STAGE4_CFLAGS)" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
168b158c 5399 $(TARGET-stage4-bfd)
a8a96878
PB
5400
5401maybe-clean-stage4-bfd: clean-stage4-bfd
5402clean-stage4: clean-stage4-bfd
5403clean-stage4-bfd:
a6a4e782
DD
5404 @if [ $(current_stage) = stage4 ]; then \
5405 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
5406 else \
5407 [ -f $(HOST_SUBDIR)/stage4-bfd/Makefile ] || exit 0; \
5408 $(MAKE) stage4-start; \
5409 fi; \
a8a96878 5410 cd $(HOST_SUBDIR)/bfd && \
6532abb6 5411 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 5412 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 5413 clean
a8a96878
PB
5414@endif bfd-bootstrap
5415
5416
5417.PHONY: all-stageprofile-bfd maybe-all-stageprofile-bfd
5418.PHONY: clean-stageprofile-bfd maybe-clean-stageprofile-bfd
5419maybe-all-stageprofile-bfd:
5420maybe-clean-stageprofile-bfd:
5421@if bfd-bootstrap
5422maybe-all-stageprofile-bfd: all-stageprofile-bfd
5423all-stageprofile: all-stageprofile-bfd
168b158c 5424TARGET-stageprofile-bfd = $(TARGET-bfd)
a8a96878 5425all-stageprofile-bfd: configure-stageprofile-bfd
ec92c4d6 5426 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a8a96878
PB
5427 @r=`${PWD_COMMAND}`; export r; \
5428 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5429 $(HOST_EXPORTS) \
5430 $(POSTSTAGE1_HOST_EXPORTS) \
5431 cd $(HOST_SUBDIR)/bfd && \
6532abb6
PB
5432 $(MAKE) $(BASE_FLAGS_TO_PASS) \
5433 CFLAGS="$(STAGE2_CFLAGS) -fprofile-generate" CXXFLAGS="$(STAGE2_CFLAGS) -fprofile-generate" \
455b4f90
PB
5434 LIBCFLAGS="$(STAGE2_LIBCFLAGS)" \
5435 CFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)" \
5436 CXXFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
168b158c 5437 $(TARGET-stageprofile-bfd)
a8a96878
PB
5438
5439maybe-clean-stageprofile-bfd: clean-stageprofile-bfd
5440clean-stageprofile: clean-stageprofile-bfd
5441clean-stageprofile-bfd:
a6a4e782
DD
5442 @if [ $(current_stage) = stageprofile ]; then \
5443 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
5444 else \
5445 [ -f $(HOST_SUBDIR)/stageprofile-bfd/Makefile ] || exit 0; \
5446 $(MAKE) stageprofile-start; \
5447 fi; \
a8a96878 5448 cd $(HOST_SUBDIR)/bfd && \
6532abb6 5449 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 5450 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 5451 clean
a8a96878
PB
5452@endif bfd-bootstrap
5453
5454
5455.PHONY: all-stagefeedback-bfd maybe-all-stagefeedback-bfd
5456.PHONY: clean-stagefeedback-bfd maybe-clean-stagefeedback-bfd
5457maybe-all-stagefeedback-bfd:
5458maybe-clean-stagefeedback-bfd:
5459@if bfd-bootstrap
5460maybe-all-stagefeedback-bfd: all-stagefeedback-bfd
5461all-stagefeedback: all-stagefeedback-bfd
168b158c 5462TARGET-stagefeedback-bfd = $(TARGET-bfd)
a8a96878 5463all-stagefeedback-bfd: configure-stagefeedback-bfd
ec92c4d6 5464 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a8a96878
PB
5465 @r=`${PWD_COMMAND}`; export r; \
5466 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5467 $(HOST_EXPORTS) \
5468 $(POSTSTAGE1_HOST_EXPORTS) \
5469 cd $(HOST_SUBDIR)/bfd && \
6532abb6
PB
5470 $(MAKE) $(BASE_FLAGS_TO_PASS) \
5471 CFLAGS="$(STAGE3_CFLAGS) -fprofile-use" CXXFLAGS="$(STAGE3_CFLAGS) -fprofile-use" \
5472 LIBCFLAGS="$(STAGE3_LIBCFLAGS) -fprofile-use" \
5473 CFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS) -fprofile-use" \
5474 CXXFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS) -fprofile-use" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
168b158c 5475 $(TARGET-stagefeedback-bfd)
a8a96878
PB
5476
5477maybe-clean-stagefeedback-bfd: clean-stagefeedback-bfd
5478clean-stagefeedback: clean-stagefeedback-bfd
5479clean-stagefeedback-bfd:
a6a4e782
DD
5480 @if [ $(current_stage) = stagefeedback ]; then \
5481 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
5482 else \
5483 [ -f $(HOST_SUBDIR)/stagefeedback-bfd/Makefile ] || exit 0; \
5484 $(MAKE) stagefeedback-start; \
5485 fi; \
a8a96878 5486 cd $(HOST_SUBDIR)/bfd && \
6532abb6 5487 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 5488 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 5489 clean
a8a96878
PB
5490@endif bfd-bootstrap
5491
5492
5493
5494
5495
8ec98d6c
NN
5496.PHONY: check-bfd maybe-check-bfd
5497maybe-check-bfd:
a7e609d6
PB
5498@if bfd
5499maybe-check-bfd: check-bfd
657b58f4 5500
8ec98d6c 5501check-bfd:
15b527ca 5502 @: $(MAKE); $(unstage)
8ec98d6c 5503 @r=`${PWD_COMMAND}`; export r; \
5230d454 5504 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 5505 $(HOST_EXPORTS) \
7fc2ca22
PB
5506 (cd $(HOST_SUBDIR)/bfd && \
5507 $(MAKE) $(FLAGS_TO_PASS) check)
657b58f4 5508
a7e609d6 5509@endif bfd
657b58f4 5510
8ec98d6c
NN
5511.PHONY: install-bfd maybe-install-bfd
5512maybe-install-bfd:
a7e609d6
PB
5513@if bfd
5514maybe-install-bfd: install-bfd
657b58f4 5515
8ec98d6c 5516install-bfd: installdirs
15b527ca 5517 @: $(MAKE); $(unstage)
8ec98d6c 5518 @r=`${PWD_COMMAND}`; export r; \
5230d454 5519 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 5520 $(HOST_EXPORTS) \
7fc2ca22 5521 (cd $(HOST_SUBDIR)/bfd && \
93c60b6d 5522 $(MAKE) $(FLAGS_TO_PASS) install)
657b58f4 5523
a7e609d6 5524@endif bfd
657b58f4 5525
39bbbb69 5526# Other targets (info, dvi, pdf, etc.)
657b58f4 5527
8ec98d6c
NN
5528.PHONY: maybe-info-bfd info-bfd
5529maybe-info-bfd:
a7e609d6
PB
5530@if bfd
5531maybe-info-bfd: info-bfd
8ec98d6c
NN
5532
5533info-bfd: \
5534 configure-bfd
5535 @[ -f ./bfd/Makefile ] || exit 0; \
5230d454
L
5536 r=`${PWD_COMMAND}`; export r; \
5537 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 5538 $(HOST_EXPORTS) \
d5eec917 5539 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
5540 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5541 done; \
8ec98d6c 5542 echo "Doing info in bfd" ; \
7fc2ca22 5543 (cd $(HOST_SUBDIR)/bfd && \
657b58f4
NN
5544 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5545 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5546 "RANLIB=$${RANLIB}" \
bffcbe34 5547 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 5548 info) \
657b58f4
NN
5549 || exit 1
5550
a7e609d6 5551@endif bfd
657b58f4 5552
8ec98d6c
NN
5553.PHONY: maybe-dvi-bfd dvi-bfd
5554maybe-dvi-bfd:
a7e609d6
PB
5555@if bfd
5556maybe-dvi-bfd: dvi-bfd
657b58f4 5557
8ec98d6c
NN
5558dvi-bfd: \
5559 configure-bfd
5560 @[ -f ./bfd/Makefile ] || exit 0; \
5230d454
L
5561 r=`${PWD_COMMAND}`; export r; \
5562 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 5563 $(HOST_EXPORTS) \
d5eec917 5564 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
5565 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5566 done; \
8ec98d6c 5567 echo "Doing dvi in bfd" ; \
7fc2ca22 5568 (cd $(HOST_SUBDIR)/bfd && \
657b58f4
NN
5569 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5570 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5571 "RANLIB=$${RANLIB}" \
bffcbe34 5572 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 5573 dvi) \
657b58f4
NN
5574 || exit 1
5575
a7e609d6 5576@endif bfd
657b58f4 5577
39bbbb69
DD
5578.PHONY: maybe-pdf-bfd pdf-bfd
5579maybe-pdf-bfd:
5580@if bfd
5581maybe-pdf-bfd: pdf-bfd
5582
5583pdf-bfd: \
5584 configure-bfd
5585 @[ -f ./bfd/Makefile ] || exit 0; \
5586 r=`${PWD_COMMAND}`; export r; \
5587 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5588 $(HOST_EXPORTS) \
5589 for flag in $(EXTRA_HOST_FLAGS) ; do \
5590 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5591 done; \
5592 echo "Doing pdf in bfd" ; \
5593 (cd $(HOST_SUBDIR)/bfd && \
5594 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5595 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5596 "RANLIB=$${RANLIB}" \
bffcbe34 5597 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
5598 pdf) \
5599 || exit 1
5600
5601@endif bfd
5602
b6fb961f
MS
5603.PHONY: maybe-html-bfd html-bfd
5604maybe-html-bfd:
5605@if bfd
5606maybe-html-bfd: html-bfd
5607
5608html-bfd: \
5609 configure-bfd
5610 @[ -f ./bfd/Makefile ] || exit 0; \
5611 r=`${PWD_COMMAND}`; export r; \
5612 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
5613 $(HOST_EXPORTS) \
5614 for flag in $(EXTRA_HOST_FLAGS) ; do \
5615 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5616 done; \
5617 echo "Doing html in bfd" ; \
7fc2ca22 5618 (cd $(HOST_SUBDIR)/bfd && \
b6fb961f
MS
5619 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5620 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5621 "RANLIB=$${RANLIB}" \
bffcbe34 5622 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
5623 html) \
5624 || exit 1
5625
5626@endif bfd
5627
8ec98d6c
NN
5628.PHONY: maybe-TAGS-bfd TAGS-bfd
5629maybe-TAGS-bfd:
a7e609d6
PB
5630@if bfd
5631maybe-TAGS-bfd: TAGS-bfd
657b58f4 5632
8ec98d6c
NN
5633TAGS-bfd: \
5634 configure-bfd
5635 @[ -f ./bfd/Makefile ] || exit 0; \
5230d454
L
5636 r=`${PWD_COMMAND}`; export r; \
5637 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 5638 $(HOST_EXPORTS) \
d5eec917 5639 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
5640 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5641 done; \
8ec98d6c 5642 echo "Doing TAGS in bfd" ; \
7fc2ca22 5643 (cd $(HOST_SUBDIR)/bfd && \
657b58f4
NN
5644 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5645 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5646 "RANLIB=$${RANLIB}" \
bffcbe34 5647 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 5648 TAGS) \
657b58f4
NN
5649 || exit 1
5650
a7e609d6 5651@endif bfd
657b58f4 5652
8ec98d6c
NN
5653.PHONY: maybe-install-info-bfd install-info-bfd
5654maybe-install-info-bfd:
a7e609d6
PB
5655@if bfd
5656maybe-install-info-bfd: install-info-bfd
657b58f4 5657
8ec98d6c
NN
5658install-info-bfd: \
5659 configure-bfd \
5660 info-bfd
5661 @[ -f ./bfd/Makefile ] || exit 0; \
5230d454
L
5662 r=`${PWD_COMMAND}`; export r; \
5663 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 5664 $(HOST_EXPORTS) \
d5eec917 5665 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
5666 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5667 done; \
8ec98d6c 5668 echo "Doing install-info in bfd" ; \
7fc2ca22 5669 (cd $(HOST_SUBDIR)/bfd && \
657b58f4
NN
5670 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5671 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5672 "RANLIB=$${RANLIB}" \
bffcbe34 5673 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 5674 install-info) \
657b58f4
NN
5675 || exit 1
5676
a7e609d6 5677@endif bfd
657b58f4 5678
d4954b6d
DD
5679.PHONY: maybe-install-pdf-bfd install-pdf-bfd
5680maybe-install-pdf-bfd:
5681@if bfd
5682maybe-install-pdf-bfd: install-pdf-bfd
5683
5684install-pdf-bfd: \
5685 configure-bfd \
5686 pdf-bfd
5687 @[ -f ./bfd/Makefile ] || exit 0; \
5688 r=`${PWD_COMMAND}`; export r; \
5689 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5690 $(HOST_EXPORTS) \
5691 for flag in $(EXTRA_HOST_FLAGS) ; do \
5692 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5693 done; \
5694 echo "Doing install-pdf in bfd" ; \
5695 (cd $(HOST_SUBDIR)/bfd && \
5696 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5697 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5698 "RANLIB=$${RANLIB}" \
bffcbe34 5699 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
5700 install-pdf) \
5701 || exit 1
5702
5703@endif bfd
5704
83c9add4
CD
5705.PHONY: maybe-install-html-bfd install-html-bfd
5706maybe-install-html-bfd:
5707@if bfd
5708maybe-install-html-bfd: install-html-bfd
5709
5710install-html-bfd: \
5711 configure-bfd \
5712 html-bfd
5713 @[ -f ./bfd/Makefile ] || exit 0; \
5714 r=`${PWD_COMMAND}`; export r; \
5715 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5716 $(HOST_EXPORTS) \
5717 for flag in $(EXTRA_HOST_FLAGS) ; do \
5718 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5719 done; \
5720 echo "Doing install-html in bfd" ; \
5721 (cd $(HOST_SUBDIR)/bfd && \
5722 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5723 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5724 "RANLIB=$${RANLIB}" \
bffcbe34 5725 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
5726 install-html) \
5727 || exit 1
5728
5729@endif bfd
5730
8ec98d6c
NN
5731.PHONY: maybe-installcheck-bfd installcheck-bfd
5732maybe-installcheck-bfd:
a7e609d6
PB
5733@if bfd
5734maybe-installcheck-bfd: installcheck-bfd
657b58f4 5735
8ec98d6c
NN
5736installcheck-bfd: \
5737 configure-bfd
5738 @[ -f ./bfd/Makefile ] || exit 0; \
5230d454
L
5739 r=`${PWD_COMMAND}`; export r; \
5740 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 5741 $(HOST_EXPORTS) \
d5eec917 5742 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
5743 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5744 done; \
8ec98d6c 5745 echo "Doing installcheck in bfd" ; \
7fc2ca22 5746 (cd $(HOST_SUBDIR)/bfd && \
657b58f4
NN
5747 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5748 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5749 "RANLIB=$${RANLIB}" \
bffcbe34 5750 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 5751 installcheck) \
657b58f4
NN
5752 || exit 1
5753
a7e609d6 5754@endif bfd
657b58f4 5755
8ec98d6c
NN
5756.PHONY: maybe-mostlyclean-bfd mostlyclean-bfd
5757maybe-mostlyclean-bfd:
a7e609d6
PB
5758@if bfd
5759maybe-mostlyclean-bfd: mostlyclean-bfd
657b58f4 5760
8ec98d6c
NN
5761mostlyclean-bfd:
5762 @[ -f ./bfd/Makefile ] || exit 0; \
5230d454
L
5763 r=`${PWD_COMMAND}`; export r; \
5764 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 5765 $(HOST_EXPORTS) \
d5eec917 5766 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
5767 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5768 done; \
8ec98d6c 5769 echo "Doing mostlyclean in bfd" ; \
7fc2ca22 5770 (cd $(HOST_SUBDIR)/bfd && \
657b58f4
NN
5771 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5772 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5773 "RANLIB=$${RANLIB}" \
bffcbe34 5774 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 5775 mostlyclean) \
657b58f4
NN
5776 || exit 1
5777
a7e609d6 5778@endif bfd
657b58f4 5779
8ec98d6c
NN
5780.PHONY: maybe-clean-bfd clean-bfd
5781maybe-clean-bfd:
a7e609d6
PB
5782@if bfd
5783maybe-clean-bfd: clean-bfd
657b58f4 5784
8ec98d6c
NN
5785clean-bfd:
5786 @[ -f ./bfd/Makefile ] || exit 0; \
5230d454
L
5787 r=`${PWD_COMMAND}`; export r; \
5788 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 5789 $(HOST_EXPORTS) \
d5eec917 5790 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
5791 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5792 done; \
8ec98d6c 5793 echo "Doing clean in bfd" ; \
7fc2ca22 5794 (cd $(HOST_SUBDIR)/bfd && \
657b58f4
NN
5795 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5796 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5797 "RANLIB=$${RANLIB}" \
bffcbe34 5798 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 5799 clean) \
657b58f4
NN
5800 || exit 1
5801
a7e609d6 5802@endif bfd
657b58f4 5803
8ec98d6c
NN
5804.PHONY: maybe-distclean-bfd distclean-bfd
5805maybe-distclean-bfd:
a7e609d6
PB
5806@if bfd
5807maybe-distclean-bfd: distclean-bfd
657b58f4 5808
8ec98d6c
NN
5809distclean-bfd:
5810 @[ -f ./bfd/Makefile ] || exit 0; \
5230d454
L
5811 r=`${PWD_COMMAND}`; export r; \
5812 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 5813 $(HOST_EXPORTS) \
d5eec917 5814 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
5815 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5816 done; \
8ec98d6c 5817 echo "Doing distclean in bfd" ; \
7fc2ca22 5818 (cd $(HOST_SUBDIR)/bfd && \
657b58f4
NN
5819 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5820 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5821 "RANLIB=$${RANLIB}" \
bffcbe34 5822 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 5823 distclean) \
657b58f4
NN
5824 || exit 1
5825
a7e609d6 5826@endif bfd
657b58f4 5827
8ec98d6c
NN
5828.PHONY: maybe-maintainer-clean-bfd maintainer-clean-bfd
5829maybe-maintainer-clean-bfd:
a7e609d6
PB
5830@if bfd
5831maybe-maintainer-clean-bfd: maintainer-clean-bfd
d832a288 5832
8ec98d6c
NN
5833maintainer-clean-bfd:
5834 @[ -f ./bfd/Makefile ] || exit 0; \
d832a288
DD
5835 r=`${PWD_COMMAND}`; export r; \
5836 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 5837 $(HOST_EXPORTS) \
d5eec917 5838 for flag in $(EXTRA_HOST_FLAGS) ; do \
d832a288
DD
5839 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5840 done; \
8ec98d6c 5841 echo "Doing maintainer-clean in bfd" ; \
7fc2ca22 5842 (cd $(HOST_SUBDIR)/bfd && \
d832a288
DD
5843 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5844 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5845 "RANLIB=$${RANLIB}" \
bffcbe34 5846 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 5847 maintainer-clean) \
d832a288
DD
5848 || exit 1
5849
a7e609d6 5850@endif bfd
d832a288 5851
657b58f4 5852
f0fdfd34 5853
8ec98d6c
NN
5854.PHONY: configure-opcodes maybe-configure-opcodes
5855maybe-configure-opcodes:
e1e5148c
CD
5856@if gcc-bootstrap
5857configure-opcodes: stage_current
5858@endif gcc-bootstrap
a7e609d6
PB
5859@if opcodes
5860maybe-configure-opcodes: configure-opcodes
ec92c4d6 5861configure-opcodes:
ec92c4d6
PB
5862 @r=`${PWD_COMMAND}`; export r; \
5863 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7fc2ca22
PB
5864 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
5865 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
a675b75a 5866 $(HOST_EXPORTS) \
f0fdfd34
PB
5867 echo Configuring in $(HOST_SUBDIR)/opcodes; \
5868 cd "$(HOST_SUBDIR)/opcodes" || exit 1; \
8ec98d6c 5869 case $(srcdir) in \
7fc2ca22
PB
5870 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
5871 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
5872 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 5873 esac; \
7fc2ca22
PB
5874 srcdiroption="--srcdir=$${topdir}/opcodes"; \
5875 libsrcdir="$$s/opcodes"; \
8ec98d6c 5876 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
5877 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
5878 --target=${target_alias} $${srcdiroption} \
8ec98d6c 5879 || exit 1
a7e609d6 5880@endif opcodes
657b58f4 5881
f0fdfd34
PB
5882
5883
a8a96878
PB
5884.PHONY: configure-stage1-opcodes maybe-configure-stage1-opcodes
5885maybe-configure-stage1-opcodes:
5886@if opcodes-bootstrap
5887maybe-configure-stage1-opcodes: configure-stage1-opcodes
15b527ca 5888configure-stage1-opcodes:
ec92c4d6 5889 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
15b527ca 5890 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
ec92c4d6
PB
5891 @r=`${PWD_COMMAND}`; export r; \
5892 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15b527ca 5893 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
6532abb6 5894 $(HOST_EXPORTS) \
2ba09444 5895 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
6532abb6 5896 CXXFLAGS="$(STAGE1_CFLAGS)"; export CXXFLAGS; \
a8a96878 5897 echo Configuring stage 1 in $(HOST_SUBDIR)/opcodes ; \
15b527ca 5898 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
a8a96878
PB
5899 cd $(HOST_SUBDIR)/opcodes || exit 1; \
5900 case $(srcdir) in \
5901 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
5902 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
5903 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5904 esac; \
5905 srcdiroption="--srcdir=$${topdir}/opcodes"; \
5906 libsrcdir="$$s/opcodes"; \
5907 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
5908 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
5909 --target=${target_alias} $${srcdiroption} \
380e48e5 5910 \
14a1406e 5911 --disable-intermodule $(STAGE1_CHECKING) --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
a8a96878
PB
5912@endif opcodes-bootstrap
5913
5914.PHONY: configure-stage2-opcodes maybe-configure-stage2-opcodes
5915maybe-configure-stage2-opcodes:
5916@if opcodes-bootstrap
5917maybe-configure-stage2-opcodes: configure-stage2-opcodes
15b527ca 5918configure-stage2-opcodes:
ec92c4d6 5919 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
15b527ca 5920 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
ec92c4d6
PB
5921 @r=`${PWD_COMMAND}`; export r; \
5922 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15b527ca 5923 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
a8a96878 5924 $(HOST_EXPORTS) \
6532abb6 5925 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 5926 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
6532abb6 5927 CXXFLAGS="$(STAGE2_CFLAGS)"; export CXXFLAGS; \
a8a96878 5928 echo Configuring stage 2 in $(HOST_SUBDIR)/opcodes ; \
15b527ca 5929 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
a8a96878
PB
5930 cd $(HOST_SUBDIR)/opcodes || exit 1; \
5931 case $(srcdir) in \
5932 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
5933 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
5934 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5935 esac; \
5936 srcdiroption="--srcdir=$${topdir}/opcodes"; \
5937 libsrcdir="$$s/opcodes"; \
5938 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
5939 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
5940 --target=${target_alias} $${srcdiroption} \
380e48e5 5941 --with-build-libsubdir=$(HOST_SUBDIR) \
a8a96878
PB
5942 @stage2_werror_flag@
5943@endif opcodes-bootstrap
5944
2b41ef78
AO
5945.PHONY: configure-stageb2g0-opcodes maybe-configure-stageb2g0-opcodes
5946maybe-configure-stageb2g0-opcodes:
5947@if opcodes-bootstrap
5948maybe-configure-stageb2g0-opcodes: configure-stageb2g0-opcodes
5949configure-stageb2g0-opcodes:
5950 @[ $(current_stage) = stageb2g0 ] || $(MAKE) stageb2g0-start
5951 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
5952 @r=`${PWD_COMMAND}`; export r; \
5953 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5954 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
5955 $(HOST_EXPORTS) \
6532abb6 5956 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 5957 CFLAGS="$(STAGE2_CFLAGS) -g0"; export CFLAGS; \
6532abb6 5958 CXXFLAGS="$(STAGE2_CFLAGS) -g0"; export CXXFLAGS; \
2b41ef78
AO
5959 echo Configuring stage b2g0 in $(HOST_SUBDIR)/opcodes ; \
5960 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
5961 cd $(HOST_SUBDIR)/opcodes || exit 1; \
5962 case $(srcdir) in \
5963 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
5964 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
5965 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5966 esac; \
5967 srcdiroption="--srcdir=$${topdir}/opcodes"; \
5968 libsrcdir="$$s/opcodes"; \
5969 $(SHELL) $${libsrcdir}/configure \
5970 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
5971 --target=${target_alias} $${srcdiroption} \
5972 --with-build-libsubdir=$(HOST_SUBDIR) \
5973 @stage2_werror_flag@
5974@endif opcodes-bootstrap
5975
a8a96878
PB
5976.PHONY: configure-stage3-opcodes maybe-configure-stage3-opcodes
5977maybe-configure-stage3-opcodes:
5978@if opcodes-bootstrap
5979maybe-configure-stage3-opcodes: configure-stage3-opcodes
15b527ca 5980configure-stage3-opcodes:
ec92c4d6 5981 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
15b527ca 5982 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
ec92c4d6
PB
5983 @r=`${PWD_COMMAND}`; export r; \
5984 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15b527ca 5985 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
a8a96878 5986 $(HOST_EXPORTS) \
6532abb6 5987 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 5988 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
6532abb6 5989 CXXFLAGS="$(STAGE3_CFLAGS)"; export CXXFLAGS; \
a8a96878 5990 echo Configuring stage 3 in $(HOST_SUBDIR)/opcodes ; \
15b527ca 5991 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
a8a96878
PB
5992 cd $(HOST_SUBDIR)/opcodes || exit 1; \
5993 case $(srcdir) in \
5994 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
5995 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
5996 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5997 esac; \
5998 srcdiroption="--srcdir=$${topdir}/opcodes"; \
5999 libsrcdir="$$s/opcodes"; \
6000 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
6001 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
6002 --target=${target_alias} $${srcdiroption} \
380e48e5 6003 --with-build-libsubdir=$(HOST_SUBDIR) \
a8a96878
PB
6004 @stage2_werror_flag@
6005@endif opcodes-bootstrap
6006
2b41ef78
AO
6007.PHONY: configure-stageb3g2-opcodes maybe-configure-stageb3g2-opcodes
6008maybe-configure-stageb3g2-opcodes:
6009@if opcodes-bootstrap
6010maybe-configure-stageb3g2-opcodes: configure-stageb3g2-opcodes
6011configure-stageb3g2-opcodes:
6012 @[ $(current_stage) = stageb3g2 ] || $(MAKE) stageb3g2-start
6013 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
6014 @r=`${PWD_COMMAND}`; export r; \
6015 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6016 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
6017 $(HOST_EXPORTS) \
6532abb6 6018 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 6019 CFLAGS="$(STAGE3_CFLAGS) -g2"; export CFLAGS; \
6532abb6 6020 CXXFLAGS="$(STAGE3_CFLAGS) -g2"; export CXXFLAGS; \
2b41ef78
AO
6021 echo Configuring stage b3g2 in $(HOST_SUBDIR)/opcodes ; \
6022 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
6023 cd $(HOST_SUBDIR)/opcodes || exit 1; \
6024 case $(srcdir) in \
6025 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
6026 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
6027 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6028 esac; \
6029 srcdiroption="--srcdir=$${topdir}/opcodes"; \
6030 libsrcdir="$$s/opcodes"; \
6031 $(SHELL) $${libsrcdir}/configure \
6032 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
6033 --target=${target_alias} $${srcdiroption} \
6034 --with-build-libsubdir=$(HOST_SUBDIR) \
6035 @stage2_werror_flag@
6036@endif opcodes-bootstrap
6037
a8a96878
PB
6038.PHONY: configure-stage4-opcodes maybe-configure-stage4-opcodes
6039maybe-configure-stage4-opcodes:
6040@if opcodes-bootstrap
6041maybe-configure-stage4-opcodes: configure-stage4-opcodes
15b527ca 6042configure-stage4-opcodes:
ec92c4d6 6043 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
15b527ca 6044 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
ec92c4d6
PB
6045 @r=`${PWD_COMMAND}`; export r; \
6046 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15b527ca 6047 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
a8a96878 6048 $(HOST_EXPORTS) \
6532abb6 6049 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 6050 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
6532abb6 6051 CXXFLAGS="$(STAGE4_CFLAGS)"; export CXXFLAGS; \
a8a96878 6052 echo Configuring stage 4 in $(HOST_SUBDIR)/opcodes ; \
15b527ca 6053 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
a8a96878
PB
6054 cd $(HOST_SUBDIR)/opcodes || exit 1; \
6055 case $(srcdir) in \
6056 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
6057 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
6058 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6059 esac; \
6060 srcdiroption="--srcdir=$${topdir}/opcodes"; \
6061 libsrcdir="$$s/opcodes"; \
6062 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
6063 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
6064 --target=${target_alias} $${srcdiroption} \
380e48e5 6065 --with-build-libsubdir=$(HOST_SUBDIR) \
a8a96878
PB
6066 @stage2_werror_flag@
6067@endif opcodes-bootstrap
6068
6069.PHONY: configure-stageprofile-opcodes maybe-configure-stageprofile-opcodes
6070maybe-configure-stageprofile-opcodes:
6071@if opcodes-bootstrap
6072maybe-configure-stageprofile-opcodes: configure-stageprofile-opcodes
15b527ca 6073configure-stageprofile-opcodes:
ec92c4d6 6074 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
15b527ca 6075 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
ec92c4d6
PB
6076 @r=`${PWD_COMMAND}`; export r; \
6077 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15b527ca 6078 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
a8a96878 6079 $(HOST_EXPORTS) \
6532abb6 6080 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 6081 CFLAGS="$(STAGE2_CFLAGS) -fprofile-generate"; export CFLAGS; \
6532abb6 6082 CXXFLAGS="$(STAGE2_CFLAGS) -fprofile-generate"; export CXXFLAGS; \
a8a96878 6083 echo Configuring stage profile in $(HOST_SUBDIR)/opcodes ; \
15b527ca 6084 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
a8a96878
PB
6085 cd $(HOST_SUBDIR)/opcodes || exit 1; \
6086 case $(srcdir) in \
6087 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
6088 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
6089 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6090 esac; \
6091 srcdiroption="--srcdir=$${topdir}/opcodes"; \
6092 libsrcdir="$$s/opcodes"; \
6093 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
6094 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
6095 --target=${target_alias} $${srcdiroption} \
380e48e5 6096 --with-build-libsubdir=$(HOST_SUBDIR) \
a8a96878
PB
6097 @stage2_werror_flag@
6098@endif opcodes-bootstrap
6099
6100.PHONY: configure-stagefeedback-opcodes maybe-configure-stagefeedback-opcodes
6101maybe-configure-stagefeedback-opcodes:
6102@if opcodes-bootstrap
6103maybe-configure-stagefeedback-opcodes: configure-stagefeedback-opcodes
15b527ca 6104configure-stagefeedback-opcodes:
ec92c4d6 6105 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
15b527ca 6106 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
ec92c4d6
PB
6107 @r=`${PWD_COMMAND}`; export r; \
6108 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15b527ca 6109 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
a8a96878 6110 $(HOST_EXPORTS) \
6532abb6 6111 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 6112 CFLAGS="$(STAGE3_CFLAGS) -fprofile-use"; export CFLAGS; \
6532abb6 6113 CXXFLAGS="$(STAGE3_CFLAGS) -fprofile-use"; export CXXFLAGS; \
a8a96878 6114 echo Configuring stage feedback in $(HOST_SUBDIR)/opcodes ; \
15b527ca 6115 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
a8a96878
PB
6116 cd $(HOST_SUBDIR)/opcodes || exit 1; \
6117 case $(srcdir) in \
6118 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
6119 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
6120 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6121 esac; \
6122 srcdiroption="--srcdir=$${topdir}/opcodes"; \
6123 libsrcdir="$$s/opcodes"; \
6124 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
6125 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
6126 --target=${target_alias} $${srcdiroption} \
380e48e5 6127 --with-build-libsubdir=$(HOST_SUBDIR) \
a8a96878
PB
6128 @stage2_werror_flag@
6129@endif opcodes-bootstrap
6130
6131
6132
6133
6134
8ec98d6c
NN
6135.PHONY: all-opcodes maybe-all-opcodes
6136maybe-all-opcodes:
e1e5148c
CD
6137@if gcc-bootstrap
6138all-opcodes: stage_current
6139@endif gcc-bootstrap
a7e609d6 6140@if opcodes
5e6b1f07 6141TARGET-opcodes=all
a7e609d6 6142maybe-all-opcodes: all-opcodes
8ec98d6c 6143all-opcodes: configure-opcodes
ec92c4d6 6144 @r=`${PWD_COMMAND}`; export r; \
8ec98d6c 6145 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 6146 $(HOST_EXPORTS) \
7fc2ca22 6147 (cd $(HOST_SUBDIR)/opcodes && \
6532abb6
PB
6148 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
6149 $(TARGET-opcodes))
a7e609d6 6150@endif opcodes
657b58f4 6151
f0fdfd34 6152
a8a96878
PB
6153
6154.PHONY: all-stage1-opcodes maybe-all-stage1-opcodes
6155.PHONY: clean-stage1-opcodes maybe-clean-stage1-opcodes
6156maybe-all-stage1-opcodes:
6157maybe-clean-stage1-opcodes:
6158@if opcodes-bootstrap
6159maybe-all-stage1-opcodes: all-stage1-opcodes
6160all-stage1: all-stage1-opcodes
168b158c 6161TARGET-stage1-opcodes = $(TARGET-opcodes)
a8a96878 6162all-stage1-opcodes: configure-stage1-opcodes
ec92c4d6 6163 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a8a96878
PB
6164 @r=`${PWD_COMMAND}`; export r; \
6165 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6166 $(HOST_EXPORTS) \
6167 cd $(HOST_SUBDIR)/opcodes && \
6532abb6
PB
6168 $(MAKE) $(BASE_FLAGS_TO_PASS) \
6169 CFLAGS="$(STAGE1_CFLAGS)" CXXFLAGS="$(STAGE1_CFLAGS)" \
6170 LIBCFLAGS="$(STAGE1_LIBCFLAGS)" \
6171 CFLAGS_FOR_TARGET="$(STAGE1_LIBCFLAGS)" \
6172 CXXFLAGS_FOR_TARGET="$(STAGE1_LIBCFLAGS)" $(EXTRA_HOST_FLAGS) \
168b158c 6173 $(TARGET-stage1-opcodes)
a8a96878
PB
6174
6175maybe-clean-stage1-opcodes: clean-stage1-opcodes
6176clean-stage1: clean-stage1-opcodes
6177clean-stage1-opcodes:
a6a4e782
DD
6178 @if [ $(current_stage) = stage1 ]; then \
6179 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
6180 else \
6181 [ -f $(HOST_SUBDIR)/stage1-opcodes/Makefile ] || exit 0; \
6182 $(MAKE) stage1-start; \
6183 fi; \
a8a96878 6184 cd $(HOST_SUBDIR)/opcodes && \
6532abb6 6185 $(MAKE) $(EXTRA_HOST_FLAGS) \
2ba09444 6186 clean
a8a96878
PB
6187@endif opcodes-bootstrap
6188
6189
6190.PHONY: all-stage2-opcodes maybe-all-stage2-opcodes
6191.PHONY: clean-stage2-opcodes maybe-clean-stage2-opcodes
6192maybe-all-stage2-opcodes:
6193maybe-clean-stage2-opcodes:
6194@if opcodes-bootstrap
6195maybe-all-stage2-opcodes: all-stage2-opcodes
6196all-stage2: all-stage2-opcodes
168b158c 6197TARGET-stage2-opcodes = $(TARGET-opcodes)
a8a96878 6198all-stage2-opcodes: configure-stage2-opcodes
ec92c4d6 6199 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a8a96878
PB
6200 @r=`${PWD_COMMAND}`; export r; \
6201 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6202 $(HOST_EXPORTS) \
6203 $(POSTSTAGE1_HOST_EXPORTS) \
6204 cd $(HOST_SUBDIR)/opcodes && \
6532abb6
PB
6205 $(MAKE) $(BASE_FLAGS_TO_PASS) \
6206 CFLAGS="$(STAGE2_CFLAGS)" CXXFLAGS="$(STAGE2_CFLAGS)" \
6207 LIBCFLAGS="$(STAGE2_LIBCFLAGS)" \
6208 CFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)" \
6209 CXXFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
168b158c 6210 $(TARGET-stage2-opcodes)
a8a96878
PB
6211
6212maybe-clean-stage2-opcodes: clean-stage2-opcodes
6213clean-stage2: clean-stage2-opcodes
6214clean-stage2-opcodes:
a6a4e782
DD
6215 @if [ $(current_stage) = stage2 ]; then \
6216 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
6217 else \
6218 [ -f $(HOST_SUBDIR)/stage2-opcodes/Makefile ] || exit 0; \
6219 $(MAKE) stage2-start; \
6220 fi; \
a8a96878 6221 cd $(HOST_SUBDIR)/opcodes && \
6532abb6 6222 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 6223 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 6224 clean
a8a96878
PB
6225@endif opcodes-bootstrap
6226
6227
2b41ef78
AO
6228.PHONY: all-stageb2g0-opcodes maybe-all-stageb2g0-opcodes
6229.PHONY: clean-stageb2g0-opcodes maybe-clean-stageb2g0-opcodes
6230maybe-all-stageb2g0-opcodes:
6231maybe-clean-stageb2g0-opcodes:
6232@if opcodes-bootstrap
6233maybe-all-stageb2g0-opcodes: all-stageb2g0-opcodes
6234all-stageb2g0: all-stageb2g0-opcodes
6235TARGET-stageb2g0-opcodes = $(TARGET-opcodes)
6236all-stageb2g0-opcodes: configure-stageb2g0-opcodes
6237 @[ $(current_stage) = stageb2g0 ] || $(MAKE) stageb2g0-start
6238 @r=`${PWD_COMMAND}`; export r; \
6239 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6240 $(HOST_EXPORTS) \
6241 $(POSTSTAGE1_HOST_EXPORTS) \
6242 cd $(HOST_SUBDIR)/opcodes && \
6532abb6
PB
6243 $(MAKE) $(BASE_FLAGS_TO_PASS) \
6244 CFLAGS="$(STAGE2_CFLAGS) -g0" CXXFLAGS="$(STAGE2_CFLAGS) -g0" \
6245 LIBCFLAGS="$(STAGE2_LIBCFLAGS) -g0" \
6246 CFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS) -g0" \
6247 CXXFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS) -g0" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
2b41ef78
AO
6248 $(TARGET-stageb2g0-opcodes)
6249
6250maybe-clean-stageb2g0-opcodes: clean-stageb2g0-opcodes
6251clean-stageb2g0: clean-stageb2g0-opcodes
6252clean-stageb2g0-opcodes:
6253 @if [ $(current_stage) = stageb2g0 ]; then \
6254 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
6255 else \
6256 [ -f $(HOST_SUBDIR)/stageb2g0-opcodes/Makefile ] || exit 0; \
6257 $(MAKE) stageb2g0-start; \
6258 fi; \
6259 cd $(HOST_SUBDIR)/opcodes && \
6532abb6 6260 $(MAKE) $(EXTRA_HOST_FLAGS) \
2b41ef78
AO
6261 $(POSTSTAGE1_FLAGS_TO_PASS) \
6262 clean
6263@endif opcodes-bootstrap
6264
6265
a8a96878
PB
6266.PHONY: all-stage3-opcodes maybe-all-stage3-opcodes
6267.PHONY: clean-stage3-opcodes maybe-clean-stage3-opcodes
6268maybe-all-stage3-opcodes:
6269maybe-clean-stage3-opcodes:
6270@if opcodes-bootstrap
6271maybe-all-stage3-opcodes: all-stage3-opcodes
6272all-stage3: all-stage3-opcodes
168b158c 6273TARGET-stage3-opcodes = $(TARGET-opcodes)
a8a96878 6274all-stage3-opcodes: configure-stage3-opcodes
ec92c4d6 6275 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a8a96878
PB
6276 @r=`${PWD_COMMAND}`; export r; \
6277 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6278 $(HOST_EXPORTS) \
6279 $(POSTSTAGE1_HOST_EXPORTS) \
6280 cd $(HOST_SUBDIR)/opcodes && \
6532abb6
PB
6281 $(MAKE) $(BASE_FLAGS_TO_PASS) \
6282 CFLAGS="$(STAGE3_CFLAGS)" CXXFLAGS="$(STAGE3_CFLAGS)" \
6283 LIBCFLAGS="$(STAGE3_LIBCFLAGS)" \
6284 CFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS)" \
6285 CXXFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS)" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
168b158c 6286 $(TARGET-stage3-opcodes)
a8a96878
PB
6287
6288maybe-clean-stage3-opcodes: clean-stage3-opcodes
6289clean-stage3: clean-stage3-opcodes
6290clean-stage3-opcodes:
a6a4e782
DD
6291 @if [ $(current_stage) = stage3 ]; then \
6292 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
6293 else \
6294 [ -f $(HOST_SUBDIR)/stage3-opcodes/Makefile ] || exit 0; \
6295 $(MAKE) stage3-start; \
6296 fi; \
a8a96878 6297 cd $(HOST_SUBDIR)/opcodes && \
6532abb6 6298 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 6299 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 6300 clean
a8a96878
PB
6301@endif opcodes-bootstrap
6302
6303
2b41ef78
AO
6304.PHONY: all-stageb3g2-opcodes maybe-all-stageb3g2-opcodes
6305.PHONY: clean-stageb3g2-opcodes maybe-clean-stageb3g2-opcodes
6306maybe-all-stageb3g2-opcodes:
6307maybe-clean-stageb3g2-opcodes:
6308@if opcodes-bootstrap
6309maybe-all-stageb3g2-opcodes: all-stageb3g2-opcodes
6310all-stageb3g2: all-stageb3g2-opcodes
6311TARGET-stageb3g2-opcodes = $(TARGET-opcodes)
6312all-stageb3g2-opcodes: configure-stageb3g2-opcodes
6313 @[ $(current_stage) = stageb3g2 ] || $(MAKE) stageb3g2-start
6314 @r=`${PWD_COMMAND}`; export r; \
6315 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6316 $(HOST_EXPORTS) \
6317 $(POSTSTAGE1_HOST_EXPORTS) \
6318 cd $(HOST_SUBDIR)/opcodes && \
6532abb6
PB
6319 $(MAKE) $(BASE_FLAGS_TO_PASS) \
6320 CFLAGS="$(STAGE3_CFLAGS) -g2" CXXFLAGS="$(STAGE3_CFLAGS) -g2" \
6321 LIBCFLAGS="$(STAGE3_LIBCFLAGS) -g2" \
6322 CFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS) -g2" \
6323 CXXFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS) -g2" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
2b41ef78
AO
6324 $(TARGET-stageb3g2-opcodes)
6325
6326maybe-clean-stageb3g2-opcodes: clean-stageb3g2-opcodes
6327clean-stageb3g2: clean-stageb3g2-opcodes
6328clean-stageb3g2-opcodes:
6329 @if [ $(current_stage) = stageb3g2 ]; then \
6330 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
6331 else \
6332 [ -f $(HOST_SUBDIR)/stageb3g2-opcodes/Makefile ] || exit 0; \
6333 $(MAKE) stageb3g2-start; \
6334 fi; \
6335 cd $(HOST_SUBDIR)/opcodes && \
6532abb6 6336 $(MAKE) $(EXTRA_HOST_FLAGS) \
2b41ef78
AO
6337 $(POSTSTAGE1_FLAGS_TO_PASS) \
6338 clean
6339@endif opcodes-bootstrap
6340
6341
a8a96878
PB
6342.PHONY: all-stage4-opcodes maybe-all-stage4-opcodes
6343.PHONY: clean-stage4-opcodes maybe-clean-stage4-opcodes
6344maybe-all-stage4-opcodes:
6345maybe-clean-stage4-opcodes:
6346@if opcodes-bootstrap
6347maybe-all-stage4-opcodes: all-stage4-opcodes
6348all-stage4: all-stage4-opcodes
168b158c 6349TARGET-stage4-opcodes = $(TARGET-opcodes)
a8a96878 6350all-stage4-opcodes: configure-stage4-opcodes
ec92c4d6 6351 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a8a96878
PB
6352 @r=`${PWD_COMMAND}`; export r; \
6353 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6354 $(HOST_EXPORTS) \
6355 $(POSTSTAGE1_HOST_EXPORTS) \
6356 cd $(HOST_SUBDIR)/opcodes && \
6532abb6
PB
6357 $(MAKE) $(BASE_FLAGS_TO_PASS) \
6358 CFLAGS="$(STAGE4_CFLAGS)" CXXFLAGS="$(STAGE4_CFLAGS)" \
6359 LIBCFLAGS="$(STAGE4_CFLAGS)" \
6360 CFLAGS_FOR_TARGET="$(STAGE4_CFLAGS)" \
6361 CXXFLAGS_FOR_TARGET="$(STAGE4_CFLAGS)" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
168b158c 6362 $(TARGET-stage4-opcodes)
a8a96878
PB
6363
6364maybe-clean-stage4-opcodes: clean-stage4-opcodes
6365clean-stage4: clean-stage4-opcodes
6366clean-stage4-opcodes:
a6a4e782
DD
6367 @if [ $(current_stage) = stage4 ]; then \
6368 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
6369 else \
6370 [ -f $(HOST_SUBDIR)/stage4-opcodes/Makefile ] || exit 0; \
6371 $(MAKE) stage4-start; \
6372 fi; \
a8a96878 6373 cd $(HOST_SUBDIR)/opcodes && \
6532abb6 6374 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 6375 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 6376 clean
a8a96878
PB
6377@endif opcodes-bootstrap
6378
6379
6380.PHONY: all-stageprofile-opcodes maybe-all-stageprofile-opcodes
6381.PHONY: clean-stageprofile-opcodes maybe-clean-stageprofile-opcodes
6382maybe-all-stageprofile-opcodes:
6383maybe-clean-stageprofile-opcodes:
6384@if opcodes-bootstrap
6385maybe-all-stageprofile-opcodes: all-stageprofile-opcodes
6386all-stageprofile: all-stageprofile-opcodes
168b158c 6387TARGET-stageprofile-opcodes = $(TARGET-opcodes)
a8a96878 6388all-stageprofile-opcodes: configure-stageprofile-opcodes
ec92c4d6 6389 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a8a96878
PB
6390 @r=`${PWD_COMMAND}`; export r; \
6391 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6392 $(HOST_EXPORTS) \
6393 $(POSTSTAGE1_HOST_EXPORTS) \
6394 cd $(HOST_SUBDIR)/opcodes && \
6532abb6
PB
6395 $(MAKE) $(BASE_FLAGS_TO_PASS) \
6396 CFLAGS="$(STAGE2_CFLAGS) -fprofile-generate" CXXFLAGS="$(STAGE2_CFLAGS) -fprofile-generate" \
455b4f90
PB
6397 LIBCFLAGS="$(STAGE2_LIBCFLAGS)" \
6398 CFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)" \
6399 CXXFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
168b158c 6400 $(TARGET-stageprofile-opcodes)
a8a96878
PB
6401
6402maybe-clean-stageprofile-opcodes: clean-stageprofile-opcodes
6403clean-stageprofile: clean-stageprofile-opcodes
6404clean-stageprofile-opcodes:
a6a4e782
DD
6405 @if [ $(current_stage) = stageprofile ]; then \
6406 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
6407 else \
6408 [ -f $(HOST_SUBDIR)/stageprofile-opcodes/Makefile ] || exit 0; \
6409 $(MAKE) stageprofile-start; \
6410 fi; \
a8a96878 6411 cd $(HOST_SUBDIR)/opcodes && \
6532abb6 6412 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 6413 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 6414 clean
a8a96878
PB
6415@endif opcodes-bootstrap
6416
6417
6418.PHONY: all-stagefeedback-opcodes maybe-all-stagefeedback-opcodes
6419.PHONY: clean-stagefeedback-opcodes maybe-clean-stagefeedback-opcodes
6420maybe-all-stagefeedback-opcodes:
6421maybe-clean-stagefeedback-opcodes:
6422@if opcodes-bootstrap
6423maybe-all-stagefeedback-opcodes: all-stagefeedback-opcodes
6424all-stagefeedback: all-stagefeedback-opcodes
168b158c 6425TARGET-stagefeedback-opcodes = $(TARGET-opcodes)
a8a96878 6426all-stagefeedback-opcodes: configure-stagefeedback-opcodes
ec92c4d6 6427 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a8a96878
PB
6428 @r=`${PWD_COMMAND}`; export r; \
6429 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6430 $(HOST_EXPORTS) \
6431 $(POSTSTAGE1_HOST_EXPORTS) \
6432 cd $(HOST_SUBDIR)/opcodes && \
6532abb6
PB
6433 $(MAKE) $(BASE_FLAGS_TO_PASS) \
6434 CFLAGS="$(STAGE3_CFLAGS) -fprofile-use" CXXFLAGS="$(STAGE3_CFLAGS) -fprofile-use" \
6435 LIBCFLAGS="$(STAGE3_LIBCFLAGS) -fprofile-use" \
6436 CFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS) -fprofile-use" \
6437 CXXFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS) -fprofile-use" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
168b158c 6438 $(TARGET-stagefeedback-opcodes)
a8a96878
PB
6439
6440maybe-clean-stagefeedback-opcodes: clean-stagefeedback-opcodes
6441clean-stagefeedback: clean-stagefeedback-opcodes
6442clean-stagefeedback-opcodes:
a6a4e782
DD
6443 @if [ $(current_stage) = stagefeedback ]; then \
6444 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
6445 else \
6446 [ -f $(HOST_SUBDIR)/stagefeedback-opcodes/Makefile ] || exit 0; \
6447 $(MAKE) stagefeedback-start; \
6448 fi; \
a8a96878 6449 cd $(HOST_SUBDIR)/opcodes && \
6532abb6 6450 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 6451 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 6452 clean
a8a96878
PB
6453@endif opcodes-bootstrap
6454
6455
6456
6457
6458
8ec98d6c
NN
6459.PHONY: check-opcodes maybe-check-opcodes
6460maybe-check-opcodes:
a7e609d6
PB
6461@if opcodes
6462maybe-check-opcodes: check-opcodes
8ec98d6c
NN
6463
6464check-opcodes:
15b527ca 6465 @: $(MAKE); $(unstage)
8ec98d6c 6466 @r=`${PWD_COMMAND}`; export r; \
5230d454 6467 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 6468 $(HOST_EXPORTS) \
7fc2ca22
PB
6469 (cd $(HOST_SUBDIR)/opcodes && \
6470 $(MAKE) $(FLAGS_TO_PASS) check)
657b58f4 6471
a7e609d6 6472@endif opcodes
657b58f4 6473
8ec98d6c
NN
6474.PHONY: install-opcodes maybe-install-opcodes
6475maybe-install-opcodes:
a7e609d6
PB
6476@if opcodes
6477maybe-install-opcodes: install-opcodes
657b58f4 6478
8ec98d6c 6479install-opcodes: installdirs
15b527ca 6480 @: $(MAKE); $(unstage)
8ec98d6c
NN
6481 @r=`${PWD_COMMAND}`; export r; \
6482 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 6483 $(HOST_EXPORTS) \
7fc2ca22 6484 (cd $(HOST_SUBDIR)/opcodes && \
93c60b6d 6485 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 6486
a7e609d6 6487@endif opcodes
8ec98d6c 6488
39bbbb69 6489# Other targets (info, dvi, pdf, etc.)
8ec98d6c
NN
6490
6491.PHONY: maybe-info-opcodes info-opcodes
6492maybe-info-opcodes:
a7e609d6
PB
6493@if opcodes
6494maybe-info-opcodes: info-opcodes
8ec98d6c
NN
6495
6496info-opcodes: \
6497 configure-opcodes
6498 @[ -f ./opcodes/Makefile ] || exit 0; \
5230d454
L
6499 r=`${PWD_COMMAND}`; export r; \
6500 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 6501 $(HOST_EXPORTS) \
d5eec917 6502 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
6503 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6504 done; \
8ec98d6c 6505 echo "Doing info in opcodes" ; \
7fc2ca22 6506 (cd $(HOST_SUBDIR)/opcodes && \
657b58f4
NN
6507 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6508 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6509 "RANLIB=$${RANLIB}" \
bffcbe34 6510 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 6511 info) \
657b58f4
NN
6512 || exit 1
6513
a7e609d6 6514@endif opcodes
657b58f4 6515
8ec98d6c
NN
6516.PHONY: maybe-dvi-opcodes dvi-opcodes
6517maybe-dvi-opcodes:
a7e609d6
PB
6518@if opcodes
6519maybe-dvi-opcodes: dvi-opcodes
657b58f4 6520
8ec98d6c
NN
6521dvi-opcodes: \
6522 configure-opcodes
6523 @[ -f ./opcodes/Makefile ] || exit 0; \
5230d454
L
6524 r=`${PWD_COMMAND}`; export r; \
6525 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 6526 $(HOST_EXPORTS) \
d5eec917 6527 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
6528 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6529 done; \
8ec98d6c 6530 echo "Doing dvi in opcodes" ; \
7fc2ca22 6531 (cd $(HOST_SUBDIR)/opcodes && \
657b58f4
NN
6532 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6533 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6534 "RANLIB=$${RANLIB}" \
bffcbe34 6535 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 6536 dvi) \
657b58f4
NN
6537 || exit 1
6538
a7e609d6 6539@endif opcodes
657b58f4 6540
39bbbb69
DD
6541.PHONY: maybe-pdf-opcodes pdf-opcodes
6542maybe-pdf-opcodes:
6543@if opcodes
6544maybe-pdf-opcodes: pdf-opcodes
6545
6546pdf-opcodes: \
6547 configure-opcodes
6548 @[ -f ./opcodes/Makefile ] || exit 0; \
6549 r=`${PWD_COMMAND}`; export r; \
6550 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6551 $(HOST_EXPORTS) \
6552 for flag in $(EXTRA_HOST_FLAGS) ; do \
6553 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6554 done; \
6555 echo "Doing pdf in opcodes" ; \
6556 (cd $(HOST_SUBDIR)/opcodes && \
6557 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6558 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6559 "RANLIB=$${RANLIB}" \
bffcbe34 6560 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
6561 pdf) \
6562 || exit 1
6563
6564@endif opcodes
6565
b6fb961f
MS
6566.PHONY: maybe-html-opcodes html-opcodes
6567maybe-html-opcodes:
6568@if opcodes
6569maybe-html-opcodes: html-opcodes
6570
6571html-opcodes: \
6572 configure-opcodes
6573 @[ -f ./opcodes/Makefile ] || exit 0; \
6574 r=`${PWD_COMMAND}`; export r; \
6575 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
6576 $(HOST_EXPORTS) \
6577 for flag in $(EXTRA_HOST_FLAGS) ; do \
6578 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6579 done; \
6580 echo "Doing html in opcodes" ; \
7fc2ca22 6581 (cd $(HOST_SUBDIR)/opcodes && \
b6fb961f
MS
6582 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6583 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6584 "RANLIB=$${RANLIB}" \
bffcbe34 6585 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
6586 html) \
6587 || exit 1
6588
6589@endif opcodes
6590
8ec98d6c
NN
6591.PHONY: maybe-TAGS-opcodes TAGS-opcodes
6592maybe-TAGS-opcodes:
a7e609d6
PB
6593@if opcodes
6594maybe-TAGS-opcodes: TAGS-opcodes
657b58f4 6595
8ec98d6c
NN
6596TAGS-opcodes: \
6597 configure-opcodes
6598 @[ -f ./opcodes/Makefile ] || exit 0; \
5230d454
L
6599 r=`${PWD_COMMAND}`; export r; \
6600 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 6601 $(HOST_EXPORTS) \
d5eec917 6602 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
6603 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6604 done; \
8ec98d6c 6605 echo "Doing TAGS in opcodes" ; \
7fc2ca22 6606 (cd $(HOST_SUBDIR)/opcodes && \
657b58f4
NN
6607 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6608 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6609 "RANLIB=$${RANLIB}" \
bffcbe34 6610 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 6611 TAGS) \
657b58f4
NN
6612 || exit 1
6613
a7e609d6 6614@endif opcodes
657b58f4 6615
8ec98d6c
NN
6616.PHONY: maybe-install-info-opcodes install-info-opcodes
6617maybe-install-info-opcodes:
a7e609d6
PB
6618@if opcodes
6619maybe-install-info-opcodes: install-info-opcodes
657b58f4 6620
8ec98d6c
NN
6621install-info-opcodes: \
6622 configure-opcodes \
6623 info-opcodes
6624 @[ -f ./opcodes/Makefile ] || exit 0; \
5230d454
L
6625 r=`${PWD_COMMAND}`; export r; \
6626 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 6627 $(HOST_EXPORTS) \
d5eec917 6628 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
6629 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6630 done; \
8ec98d6c 6631 echo "Doing install-info in opcodes" ; \
7fc2ca22 6632 (cd $(HOST_SUBDIR)/opcodes && \
657b58f4
NN
6633 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6634 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6635 "RANLIB=$${RANLIB}" \
bffcbe34 6636 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 6637 install-info) \
657b58f4
NN
6638 || exit 1
6639
a7e609d6 6640@endif opcodes
657b58f4 6641
d4954b6d
DD
6642.PHONY: maybe-install-pdf-opcodes install-pdf-opcodes
6643maybe-install-pdf-opcodes:
6644@if opcodes
6645maybe-install-pdf-opcodes: install-pdf-opcodes
6646
6647install-pdf-opcodes: \
6648 configure-opcodes \
6649 pdf-opcodes
6650 @[ -f ./opcodes/Makefile ] || exit 0; \
6651 r=`${PWD_COMMAND}`; export r; \
6652 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6653 $(HOST_EXPORTS) \
6654 for flag in $(EXTRA_HOST_FLAGS) ; do \
6655 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6656 done; \
6657 echo "Doing install-pdf in opcodes" ; \
6658 (cd $(HOST_SUBDIR)/opcodes && \
6659 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6660 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6661 "RANLIB=$${RANLIB}" \
bffcbe34 6662 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
6663 install-pdf) \
6664 || exit 1
6665
6666@endif opcodes
6667
83c9add4
CD
6668.PHONY: maybe-install-html-opcodes install-html-opcodes
6669maybe-install-html-opcodes:
6670@if opcodes
6671maybe-install-html-opcodes: install-html-opcodes
6672
6673install-html-opcodes: \
6674 configure-opcodes \
6675 html-opcodes
6676 @[ -f ./opcodes/Makefile ] || exit 0; \
6677 r=`${PWD_COMMAND}`; export r; \
6678 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6679 $(HOST_EXPORTS) \
6680 for flag in $(EXTRA_HOST_FLAGS) ; do \
6681 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6682 done; \
6683 echo "Doing install-html in opcodes" ; \
6684 (cd $(HOST_SUBDIR)/opcodes && \
6685 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6686 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6687 "RANLIB=$${RANLIB}" \
bffcbe34 6688 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
6689 install-html) \
6690 || exit 1
6691
6692@endif opcodes
6693
8ec98d6c
NN
6694.PHONY: maybe-installcheck-opcodes installcheck-opcodes
6695maybe-installcheck-opcodes:
a7e609d6
PB
6696@if opcodes
6697maybe-installcheck-opcodes: installcheck-opcodes
657b58f4 6698
8ec98d6c
NN
6699installcheck-opcodes: \
6700 configure-opcodes
6701 @[ -f ./opcodes/Makefile ] || exit 0; \
5230d454
L
6702 r=`${PWD_COMMAND}`; export r; \
6703 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 6704 $(HOST_EXPORTS) \
d5eec917 6705 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
6706 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6707 done; \
8ec98d6c 6708 echo "Doing installcheck in opcodes" ; \
7fc2ca22 6709 (cd $(HOST_SUBDIR)/opcodes && \
657b58f4
NN
6710 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6711 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6712 "RANLIB=$${RANLIB}" \
bffcbe34 6713 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 6714 installcheck) \
657b58f4
NN
6715 || exit 1
6716
a7e609d6 6717@endif opcodes
657b58f4
NN
6718
6719.PHONY: maybe-mostlyclean-opcodes mostlyclean-opcodes
6720maybe-mostlyclean-opcodes:
a7e609d6
PB
6721@if opcodes
6722maybe-mostlyclean-opcodes: mostlyclean-opcodes
657b58f4
NN
6723
6724mostlyclean-opcodes:
6725 @[ -f ./opcodes/Makefile ] || exit 0; \
5230d454
L
6726 r=`${PWD_COMMAND}`; export r; \
6727 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 6728 $(HOST_EXPORTS) \
d5eec917 6729 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
6730 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6731 done; \
6732 echo "Doing mostlyclean in opcodes" ; \
7fc2ca22 6733 (cd $(HOST_SUBDIR)/opcodes && \
657b58f4
NN
6734 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6735 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6736 "RANLIB=$${RANLIB}" \
bffcbe34 6737 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 6738 mostlyclean) \
657b58f4
NN
6739 || exit 1
6740
a7e609d6 6741@endif opcodes
657b58f4 6742
8ec98d6c
NN
6743.PHONY: maybe-clean-opcodes clean-opcodes
6744maybe-clean-opcodes:
a7e609d6
PB
6745@if opcodes
6746maybe-clean-opcodes: clean-opcodes
657b58f4 6747
8ec98d6c
NN
6748clean-opcodes:
6749 @[ -f ./opcodes/Makefile ] || exit 0; \
5230d454
L
6750 r=`${PWD_COMMAND}`; export r; \
6751 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 6752 $(HOST_EXPORTS) \
d5eec917 6753 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
6754 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6755 done; \
8ec98d6c 6756 echo "Doing clean in opcodes" ; \
7fc2ca22 6757 (cd $(HOST_SUBDIR)/opcodes && \
657b58f4
NN
6758 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6759 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6760 "RANLIB=$${RANLIB}" \
bffcbe34 6761 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 6762 clean) \
657b58f4
NN
6763 || exit 1
6764
a7e609d6 6765@endif opcodes
657b58f4 6766
8ec98d6c
NN
6767.PHONY: maybe-distclean-opcodes distclean-opcodes
6768maybe-distclean-opcodes:
a7e609d6
PB
6769@if opcodes
6770maybe-distclean-opcodes: distclean-opcodes
657b58f4 6771
8ec98d6c
NN
6772distclean-opcodes:
6773 @[ -f ./opcodes/Makefile ] || exit 0; \
5230d454
L
6774 r=`${PWD_COMMAND}`; export r; \
6775 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 6776 $(HOST_EXPORTS) \
d5eec917 6777 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
6778 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6779 done; \
8ec98d6c 6780 echo "Doing distclean in opcodes" ; \
7fc2ca22 6781 (cd $(HOST_SUBDIR)/opcodes && \
657b58f4
NN
6782 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6783 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6784 "RANLIB=$${RANLIB}" \
bffcbe34 6785 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 6786 distclean) \
657b58f4
NN
6787 || exit 1
6788
a7e609d6 6789@endif opcodes
657b58f4 6790
8ec98d6c
NN
6791.PHONY: maybe-maintainer-clean-opcodes maintainer-clean-opcodes
6792maybe-maintainer-clean-opcodes:
a7e609d6
PB
6793@if opcodes
6794maybe-maintainer-clean-opcodes: maintainer-clean-opcodes
657b58f4 6795
8ec98d6c
NN
6796maintainer-clean-opcodes:
6797 @[ -f ./opcodes/Makefile ] || exit 0; \
5230d454
L
6798 r=`${PWD_COMMAND}`; export r; \
6799 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 6800 $(HOST_EXPORTS) \
d5eec917 6801 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
6802 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6803 done; \
8ec98d6c 6804 echo "Doing maintainer-clean in opcodes" ; \
7fc2ca22 6805 (cd $(HOST_SUBDIR)/opcodes && \
657b58f4
NN
6806 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6807 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6808 "RANLIB=$${RANLIB}" \
bffcbe34 6809 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 6810 maintainer-clean) \
657b58f4
NN
6811 || exit 1
6812
a7e609d6 6813@endif opcodes
657b58f4 6814
657b58f4 6815
f0fdfd34 6816
8ec98d6c
NN
6817.PHONY: configure-binutils maybe-configure-binutils
6818maybe-configure-binutils:
e1e5148c
CD
6819@if gcc-bootstrap
6820configure-binutils: stage_current
6821@endif gcc-bootstrap
a7e609d6
PB
6822@if binutils
6823maybe-configure-binutils: configure-binutils
ec92c4d6 6824configure-binutils:
ec92c4d6
PB
6825 @r=`${PWD_COMMAND}`; export r; \
6826 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7fc2ca22
PB
6827 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
6828 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \
a675b75a 6829 $(HOST_EXPORTS) \
f0fdfd34
PB
6830 echo Configuring in $(HOST_SUBDIR)/binutils; \
6831 cd "$(HOST_SUBDIR)/binutils" || exit 1; \
8ec98d6c 6832 case $(srcdir) in \
7fc2ca22
PB
6833 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
6834 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
6835 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 6836 esac; \
7fc2ca22
PB
6837 srcdiroption="--srcdir=$${topdir}/binutils"; \
6838 libsrcdir="$$s/binutils"; \
8ec98d6c 6839 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
6840 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
6841 --target=${target_alias} $${srcdiroption} \
657b58f4 6842 || exit 1
a7e609d6 6843@endif binutils
657b58f4 6844
f0fdfd34
PB
6845
6846
a8a96878
PB
6847.PHONY: configure-stage1-binutils maybe-configure-stage1-binutils
6848maybe-configure-stage1-binutils:
6849@if binutils-bootstrap
6850maybe-configure-stage1-binutils: configure-stage1-binutils
15b527ca 6851configure-stage1-binutils:
ec92c4d6 6852 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
15b527ca 6853 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
ec92c4d6
PB
6854 @r=`${PWD_COMMAND}`; export r; \
6855 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15b527ca 6856 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
6532abb6 6857 $(HOST_EXPORTS) \
2ba09444 6858 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
6532abb6 6859 CXXFLAGS="$(STAGE1_CFLAGS)"; export CXXFLAGS; \
a8a96878 6860 echo Configuring stage 1 in $(HOST_SUBDIR)/binutils ; \
15b527ca 6861 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \
a8a96878
PB
6862 cd $(HOST_SUBDIR)/binutils || exit 1; \
6863 case $(srcdir) in \
6864 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
6865 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
6866 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6867 esac; \
6868 srcdiroption="--srcdir=$${topdir}/binutils"; \
6869 libsrcdir="$$s/binutils"; \
6870 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
6871 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
6872 --target=${target_alias} $${srcdiroption} \
380e48e5 6873 \
14a1406e 6874 --disable-intermodule $(STAGE1_CHECKING) --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
a8a96878
PB
6875@endif binutils-bootstrap
6876
6877.PHONY: configure-stage2-binutils maybe-configure-stage2-binutils
6878maybe-configure-stage2-binutils:
6879@if binutils-bootstrap
6880maybe-configure-stage2-binutils: configure-stage2-binutils
15b527ca 6881configure-stage2-binutils:
ec92c4d6 6882 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
15b527ca 6883 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
ec92c4d6
PB
6884 @r=`${PWD_COMMAND}`; export r; \
6885 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15b527ca 6886 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
a8a96878 6887 $(HOST_EXPORTS) \
6532abb6 6888 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 6889 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
6532abb6 6890 CXXFLAGS="$(STAGE2_CFLAGS)"; export CXXFLAGS; \
a8a96878 6891 echo Configuring stage 2 in $(HOST_SUBDIR)/binutils ; \
15b527ca 6892 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \
a8a96878
PB
6893 cd $(HOST_SUBDIR)/binutils || exit 1; \
6894 case $(srcdir) in \
6895 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
6896 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
6897 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6898 esac; \
6899 srcdiroption="--srcdir=$${topdir}/binutils"; \
6900 libsrcdir="$$s/binutils"; \
6901 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
6902 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
6903 --target=${target_alias} $${srcdiroption} \
380e48e5 6904 --with-build-libsubdir=$(HOST_SUBDIR) \
a8a96878
PB
6905 @stage2_werror_flag@
6906@endif binutils-bootstrap
6907
2b41ef78
AO
6908.PHONY: configure-stageb2g0-binutils maybe-configure-stageb2g0-binutils
6909maybe-configure-stageb2g0-binutils:
6910@if binutils-bootstrap
6911maybe-configure-stageb2g0-binutils: configure-stageb2g0-binutils
6912configure-stageb2g0-binutils:
6913 @[ $(current_stage) = stageb2g0 ] || $(MAKE) stageb2g0-start
6914 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
6915 @r=`${PWD_COMMAND}`; export r; \
6916 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6917 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
6918 $(HOST_EXPORTS) \
6532abb6 6919 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 6920 CFLAGS="$(STAGE2_CFLAGS) -g0"; export CFLAGS; \
6532abb6 6921 CXXFLAGS="$(STAGE2_CFLAGS) -g0"; export CXXFLAGS; \
2b41ef78
AO
6922 echo Configuring stage b2g0 in $(HOST_SUBDIR)/binutils ; \
6923 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \
6924 cd $(HOST_SUBDIR)/binutils || exit 1; \
6925 case $(srcdir) in \
6926 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
6927 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
6928 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6929 esac; \
6930 srcdiroption="--srcdir=$${topdir}/binutils"; \
6931 libsrcdir="$$s/binutils"; \
6932 $(SHELL) $${libsrcdir}/configure \
6933 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
6934 --target=${target_alias} $${srcdiroption} \
6935 --with-build-libsubdir=$(HOST_SUBDIR) \
6936 @stage2_werror_flag@
6937@endif binutils-bootstrap
6938
a8a96878
PB
6939.PHONY: configure-stage3-binutils maybe-configure-stage3-binutils
6940maybe-configure-stage3-binutils:
6941@if binutils-bootstrap
6942maybe-configure-stage3-binutils: configure-stage3-binutils
15b527ca 6943configure-stage3-binutils:
ec92c4d6 6944 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
15b527ca 6945 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
ec92c4d6
PB
6946 @r=`${PWD_COMMAND}`; export r; \
6947 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15b527ca 6948 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
a8a96878 6949 $(HOST_EXPORTS) \
6532abb6 6950 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 6951 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
6532abb6 6952 CXXFLAGS="$(STAGE3_CFLAGS)"; export CXXFLAGS; \
a8a96878 6953 echo Configuring stage 3 in $(HOST_SUBDIR)/binutils ; \
15b527ca 6954 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \
a8a96878
PB
6955 cd $(HOST_SUBDIR)/binutils || exit 1; \
6956 case $(srcdir) in \
6957 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
6958 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
6959 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6960 esac; \
6961 srcdiroption="--srcdir=$${topdir}/binutils"; \
6962 libsrcdir="$$s/binutils"; \
6963 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
6964 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
6965 --target=${target_alias} $${srcdiroption} \
380e48e5 6966 --with-build-libsubdir=$(HOST_SUBDIR) \
a8a96878
PB
6967 @stage2_werror_flag@
6968@endif binutils-bootstrap
6969
2b41ef78
AO
6970.PHONY: configure-stageb3g2-binutils maybe-configure-stageb3g2-binutils
6971maybe-configure-stageb3g2-binutils:
6972@if binutils-bootstrap
6973maybe-configure-stageb3g2-binutils: configure-stageb3g2-binutils
6974configure-stageb3g2-binutils:
6975 @[ $(current_stage) = stageb3g2 ] || $(MAKE) stageb3g2-start
6976 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
6977 @r=`${PWD_COMMAND}`; export r; \
6978 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6979 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
6980 $(HOST_EXPORTS) \
6532abb6 6981 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 6982 CFLAGS="$(STAGE3_CFLAGS) -g2"; export CFLAGS; \
6532abb6 6983 CXXFLAGS="$(STAGE3_CFLAGS) -g2"; export CXXFLAGS; \
2b41ef78
AO
6984 echo Configuring stage b3g2 in $(HOST_SUBDIR)/binutils ; \
6985 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \
6986 cd $(HOST_SUBDIR)/binutils || exit 1; \
6987 case $(srcdir) in \
6988 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
6989 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
6990 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6991 esac; \
6992 srcdiroption="--srcdir=$${topdir}/binutils"; \
6993 libsrcdir="$$s/binutils"; \
6994 $(SHELL) $${libsrcdir}/configure \
6995 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
6996 --target=${target_alias} $${srcdiroption} \
6997 --with-build-libsubdir=$(HOST_SUBDIR) \
6998 @stage2_werror_flag@
6999@endif binutils-bootstrap
7000
a8a96878
PB
7001.PHONY: configure-stage4-binutils maybe-configure-stage4-binutils
7002maybe-configure-stage4-binutils:
7003@if binutils-bootstrap
7004maybe-configure-stage4-binutils: configure-stage4-binutils
15b527ca 7005configure-stage4-binutils:
ec92c4d6 7006 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
15b527ca 7007 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
ec92c4d6
PB
7008 @r=`${PWD_COMMAND}`; export r; \
7009 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15b527ca 7010 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
a8a96878 7011 $(HOST_EXPORTS) \
6532abb6 7012 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 7013 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
6532abb6 7014 CXXFLAGS="$(STAGE4_CFLAGS)"; export CXXFLAGS; \
a8a96878 7015 echo Configuring stage 4 in $(HOST_SUBDIR)/binutils ; \
15b527ca 7016 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \
a8a96878
PB
7017 cd $(HOST_SUBDIR)/binutils || exit 1; \
7018 case $(srcdir) in \
7019 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7020 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
7021 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
7022 esac; \
7023 srcdiroption="--srcdir=$${topdir}/binutils"; \
7024 libsrcdir="$$s/binutils"; \
7025 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
7026 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
7027 --target=${target_alias} $${srcdiroption} \
380e48e5 7028 --with-build-libsubdir=$(HOST_SUBDIR) \
a8a96878
PB
7029 @stage2_werror_flag@
7030@endif binutils-bootstrap
7031
7032.PHONY: configure-stageprofile-binutils maybe-configure-stageprofile-binutils
7033maybe-configure-stageprofile-binutils:
7034@if binutils-bootstrap
7035maybe-configure-stageprofile-binutils: configure-stageprofile-binutils
15b527ca 7036configure-stageprofile-binutils:
ec92c4d6 7037 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
15b527ca 7038 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
ec92c4d6
PB
7039 @r=`${PWD_COMMAND}`; export r; \
7040 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15b527ca 7041 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
a8a96878 7042 $(HOST_EXPORTS) \
6532abb6 7043 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 7044 CFLAGS="$(STAGE2_CFLAGS) -fprofile-generate"; export CFLAGS; \
6532abb6 7045 CXXFLAGS="$(STAGE2_CFLAGS) -fprofile-generate"; export CXXFLAGS; \
a8a96878 7046 echo Configuring stage profile in $(HOST_SUBDIR)/binutils ; \
15b527ca 7047 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \
a8a96878
PB
7048 cd $(HOST_SUBDIR)/binutils || exit 1; \
7049 case $(srcdir) in \
7050 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7051 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
7052 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
7053 esac; \
7054 srcdiroption="--srcdir=$${topdir}/binutils"; \
7055 libsrcdir="$$s/binutils"; \
7056 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
7057 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
7058 --target=${target_alias} $${srcdiroption} \
380e48e5 7059 --with-build-libsubdir=$(HOST_SUBDIR) \
a8a96878
PB
7060 @stage2_werror_flag@
7061@endif binutils-bootstrap
7062
7063.PHONY: configure-stagefeedback-binutils maybe-configure-stagefeedback-binutils
7064maybe-configure-stagefeedback-binutils:
7065@if binutils-bootstrap
7066maybe-configure-stagefeedback-binutils: configure-stagefeedback-binutils
15b527ca 7067configure-stagefeedback-binutils:
ec92c4d6 7068 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
15b527ca 7069 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
ec92c4d6
PB
7070 @r=`${PWD_COMMAND}`; export r; \
7071 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15b527ca 7072 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
a8a96878 7073 $(HOST_EXPORTS) \
6532abb6 7074 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 7075 CFLAGS="$(STAGE3_CFLAGS) -fprofile-use"; export CFLAGS; \
6532abb6 7076 CXXFLAGS="$(STAGE3_CFLAGS) -fprofile-use"; export CXXFLAGS; \
a8a96878 7077 echo Configuring stage feedback in $(HOST_SUBDIR)/binutils ; \
15b527ca 7078 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \
a8a96878
PB
7079 cd $(HOST_SUBDIR)/binutils || exit 1; \
7080 case $(srcdir) in \
7081 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7082 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
7083 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
7084 esac; \
7085 srcdiroption="--srcdir=$${topdir}/binutils"; \
7086 libsrcdir="$$s/binutils"; \
7087 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
7088 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
7089 --target=${target_alias} $${srcdiroption} \
380e48e5 7090 --with-build-libsubdir=$(HOST_SUBDIR) \
a8a96878
PB
7091 @stage2_werror_flag@
7092@endif binutils-bootstrap
7093
7094
7095
7096
7097
8ec98d6c
NN
7098.PHONY: all-binutils maybe-all-binutils
7099maybe-all-binutils:
e1e5148c
CD
7100@if gcc-bootstrap
7101all-binutils: stage_current
7102@endif gcc-bootstrap
a7e609d6 7103@if binutils
5e6b1f07 7104TARGET-binutils=all
a7e609d6 7105maybe-all-binutils: all-binutils
8ec98d6c 7106all-binutils: configure-binutils
ec92c4d6 7107 @r=`${PWD_COMMAND}`; export r; \
5230d454 7108 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 7109 $(HOST_EXPORTS) \
7fc2ca22 7110 (cd $(HOST_SUBDIR)/binutils && \
6532abb6
PB
7111 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
7112 $(TARGET-binutils))
a7e609d6 7113@endif binutils
8ec98d6c 7114
f0fdfd34 7115
8ec98d6c 7116
a8a96878
PB
7117.PHONY: all-stage1-binutils maybe-all-stage1-binutils
7118.PHONY: clean-stage1-binutils maybe-clean-stage1-binutils
7119maybe-all-stage1-binutils:
7120maybe-clean-stage1-binutils:
7121@if binutils-bootstrap
7122maybe-all-stage1-binutils: all-stage1-binutils
7123all-stage1: all-stage1-binutils
168b158c 7124TARGET-stage1-binutils = $(TARGET-binutils)
a8a96878 7125all-stage1-binutils: configure-stage1-binutils
ec92c4d6 7126 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
8ec98d6c
NN
7127 @r=`${PWD_COMMAND}`; export r; \
7128 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 7129 $(HOST_EXPORTS) \
a8a96878 7130 cd $(HOST_SUBDIR)/binutils && \
6532abb6
PB
7131 $(MAKE) $(BASE_FLAGS_TO_PASS) \
7132 CFLAGS="$(STAGE1_CFLAGS)" CXXFLAGS="$(STAGE1_CFLAGS)" \
7133 LIBCFLAGS="$(STAGE1_LIBCFLAGS)" \
7134 CFLAGS_FOR_TARGET="$(STAGE1_LIBCFLAGS)" \
7135 CXXFLAGS_FOR_TARGET="$(STAGE1_LIBCFLAGS)" $(EXTRA_HOST_FLAGS) \
168b158c 7136 $(TARGET-stage1-binutils)
657b58f4 7137
a8a96878
PB
7138maybe-clean-stage1-binutils: clean-stage1-binutils
7139clean-stage1: clean-stage1-binutils
7140clean-stage1-binutils:
a6a4e782
DD
7141 @if [ $(current_stage) = stage1 ]; then \
7142 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
7143 else \
7144 [ -f $(HOST_SUBDIR)/stage1-binutils/Makefile ] || exit 0; \
7145 $(MAKE) stage1-start; \
7146 fi; \
a8a96878 7147 cd $(HOST_SUBDIR)/binutils && \
6532abb6 7148 $(MAKE) $(EXTRA_HOST_FLAGS) \
2ba09444 7149 clean
a8a96878 7150@endif binutils-bootstrap
657b58f4 7151
657b58f4 7152
a8a96878
PB
7153.PHONY: all-stage2-binutils maybe-all-stage2-binutils
7154.PHONY: clean-stage2-binutils maybe-clean-stage2-binutils
7155maybe-all-stage2-binutils:
7156maybe-clean-stage2-binutils:
7157@if binutils-bootstrap
7158maybe-all-stage2-binutils: all-stage2-binutils
7159all-stage2: all-stage2-binutils
168b158c 7160TARGET-stage2-binutils = $(TARGET-binutils)
a8a96878 7161all-stage2-binutils: configure-stage2-binutils
ec92c4d6 7162 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
8ec98d6c 7163 @r=`${PWD_COMMAND}`; export r; \
5230d454 7164 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 7165 $(HOST_EXPORTS) \
a8a96878
PB
7166 $(POSTSTAGE1_HOST_EXPORTS) \
7167 cd $(HOST_SUBDIR)/binutils && \
6532abb6
PB
7168 $(MAKE) $(BASE_FLAGS_TO_PASS) \
7169 CFLAGS="$(STAGE2_CFLAGS)" CXXFLAGS="$(STAGE2_CFLAGS)" \
7170 LIBCFLAGS="$(STAGE2_LIBCFLAGS)" \
7171 CFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)" \
7172 CXXFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
168b158c 7173 $(TARGET-stage2-binutils)
657b58f4 7174
a8a96878
PB
7175maybe-clean-stage2-binutils: clean-stage2-binutils
7176clean-stage2: clean-stage2-binutils
7177clean-stage2-binutils:
a6a4e782
DD
7178 @if [ $(current_stage) = stage2 ]; then \
7179 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
7180 else \
7181 [ -f $(HOST_SUBDIR)/stage2-binutils/Makefile ] || exit 0; \
7182 $(MAKE) stage2-start; \
7183 fi; \
a8a96878 7184 cd $(HOST_SUBDIR)/binutils && \
6532abb6 7185 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 7186 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 7187 clean
a8a96878 7188@endif binutils-bootstrap
657b58f4 7189
8ec98d6c 7190
2b41ef78
AO
7191.PHONY: all-stageb2g0-binutils maybe-all-stageb2g0-binutils
7192.PHONY: clean-stageb2g0-binutils maybe-clean-stageb2g0-binutils
7193maybe-all-stageb2g0-binutils:
7194maybe-clean-stageb2g0-binutils:
7195@if binutils-bootstrap
7196maybe-all-stageb2g0-binutils: all-stageb2g0-binutils
7197all-stageb2g0: all-stageb2g0-binutils
7198TARGET-stageb2g0-binutils = $(TARGET-binutils)
7199all-stageb2g0-binutils: configure-stageb2g0-binutils
7200 @[ $(current_stage) = stageb2g0 ] || $(MAKE) stageb2g0-start
7201 @r=`${PWD_COMMAND}`; export r; \
7202 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7203 $(HOST_EXPORTS) \
7204 $(POSTSTAGE1_HOST_EXPORTS) \
7205 cd $(HOST_SUBDIR)/binutils && \
6532abb6
PB
7206 $(MAKE) $(BASE_FLAGS_TO_PASS) \
7207 CFLAGS="$(STAGE2_CFLAGS) -g0" CXXFLAGS="$(STAGE2_CFLAGS) -g0" \
7208 LIBCFLAGS="$(STAGE2_LIBCFLAGS) -g0" \
7209 CFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS) -g0" \
7210 CXXFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS) -g0" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
2b41ef78
AO
7211 $(TARGET-stageb2g0-binutils)
7212
7213maybe-clean-stageb2g0-binutils: clean-stageb2g0-binutils
7214clean-stageb2g0: clean-stageb2g0-binutils
7215clean-stageb2g0-binutils:
7216 @if [ $(current_stage) = stageb2g0 ]; then \
7217 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
7218 else \
7219 [ -f $(HOST_SUBDIR)/stageb2g0-binutils/Makefile ] || exit 0; \
7220 $(MAKE) stageb2g0-start; \
7221 fi; \
7222 cd $(HOST_SUBDIR)/binutils && \
6532abb6 7223 $(MAKE) $(EXTRA_HOST_FLAGS) \
2b41ef78
AO
7224 $(POSTSTAGE1_FLAGS_TO_PASS) \
7225 clean
7226@endif binutils-bootstrap
7227
7228
a8a96878
PB
7229.PHONY: all-stage3-binutils maybe-all-stage3-binutils
7230.PHONY: clean-stage3-binutils maybe-clean-stage3-binutils
7231maybe-all-stage3-binutils:
7232maybe-clean-stage3-binutils:
7233@if binutils-bootstrap
7234maybe-all-stage3-binutils: all-stage3-binutils
7235all-stage3: all-stage3-binutils
168b158c 7236TARGET-stage3-binutils = $(TARGET-binutils)
a8a96878 7237all-stage3-binutils: configure-stage3-binutils
ec92c4d6 7238 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a8a96878 7239 @r=`${PWD_COMMAND}`; export r; \
5230d454 7240 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 7241 $(HOST_EXPORTS) \
a8a96878
PB
7242 $(POSTSTAGE1_HOST_EXPORTS) \
7243 cd $(HOST_SUBDIR)/binutils && \
6532abb6
PB
7244 $(MAKE) $(BASE_FLAGS_TO_PASS) \
7245 CFLAGS="$(STAGE3_CFLAGS)" CXXFLAGS="$(STAGE3_CFLAGS)" \
7246 LIBCFLAGS="$(STAGE3_LIBCFLAGS)" \
7247 CFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS)" \
7248 CXXFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS)" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
168b158c 7249 $(TARGET-stage3-binutils)
657b58f4 7250
a8a96878
PB
7251maybe-clean-stage3-binutils: clean-stage3-binutils
7252clean-stage3: clean-stage3-binutils
7253clean-stage3-binutils:
a6a4e782
DD
7254 @if [ $(current_stage) = stage3 ]; then \
7255 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
7256 else \
7257 [ -f $(HOST_SUBDIR)/stage3-binutils/Makefile ] || exit 0; \
7258 $(MAKE) stage3-start; \
7259 fi; \
a8a96878 7260 cd $(HOST_SUBDIR)/binutils && \
6532abb6 7261 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 7262 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 7263 clean
a8a96878 7264@endif binutils-bootstrap
657b58f4 7265
657b58f4 7266
2b41ef78
AO
7267.PHONY: all-stageb3g2-binutils maybe-all-stageb3g2-binutils
7268.PHONY: clean-stageb3g2-binutils maybe-clean-stageb3g2-binutils
7269maybe-all-stageb3g2-binutils:
7270maybe-clean-stageb3g2-binutils:
7271@if binutils-bootstrap
7272maybe-all-stageb3g2-binutils: all-stageb3g2-binutils
7273all-stageb3g2: all-stageb3g2-binutils
7274TARGET-stageb3g2-binutils = $(TARGET-binutils)
7275all-stageb3g2-binutils: configure-stageb3g2-binutils
7276 @[ $(current_stage) = stageb3g2 ] || $(MAKE) stageb3g2-start
7277 @r=`${PWD_COMMAND}`; export r; \
7278 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7279 $(HOST_EXPORTS) \
7280 $(POSTSTAGE1_HOST_EXPORTS) \
7281 cd $(HOST_SUBDIR)/binutils && \
6532abb6
PB
7282 $(MAKE) $(BASE_FLAGS_TO_PASS) \
7283 CFLAGS="$(STAGE3_CFLAGS) -g2" CXXFLAGS="$(STAGE3_CFLAGS) -g2" \
7284 LIBCFLAGS="$(STAGE3_LIBCFLAGS) -g2" \
7285 CFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS) -g2" \
7286 CXXFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS) -g2" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
2b41ef78
AO
7287 $(TARGET-stageb3g2-binutils)
7288
7289maybe-clean-stageb3g2-binutils: clean-stageb3g2-binutils
7290clean-stageb3g2: clean-stageb3g2-binutils
7291clean-stageb3g2-binutils:
7292 @if [ $(current_stage) = stageb3g2 ]; then \
7293 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
7294 else \
7295 [ -f $(HOST_SUBDIR)/stageb3g2-binutils/Makefile ] || exit 0; \
7296 $(MAKE) stageb3g2-start; \
7297 fi; \
7298 cd $(HOST_SUBDIR)/binutils && \
6532abb6 7299 $(MAKE) $(EXTRA_HOST_FLAGS) \
2b41ef78
AO
7300 $(POSTSTAGE1_FLAGS_TO_PASS) \
7301 clean
7302@endif binutils-bootstrap
7303
7304
a8a96878
PB
7305.PHONY: all-stage4-binutils maybe-all-stage4-binutils
7306.PHONY: clean-stage4-binutils maybe-clean-stage4-binutils
7307maybe-all-stage4-binutils:
7308maybe-clean-stage4-binutils:
7309@if binutils-bootstrap
7310maybe-all-stage4-binutils: all-stage4-binutils
7311all-stage4: all-stage4-binutils
168b158c 7312TARGET-stage4-binutils = $(TARGET-binutils)
a8a96878 7313all-stage4-binutils: configure-stage4-binutils
ec92c4d6 7314 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a8a96878 7315 @r=`${PWD_COMMAND}`; export r; \
5230d454 7316 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 7317 $(HOST_EXPORTS) \
a8a96878
PB
7318 $(POSTSTAGE1_HOST_EXPORTS) \
7319 cd $(HOST_SUBDIR)/binutils && \
6532abb6
PB
7320 $(MAKE) $(BASE_FLAGS_TO_PASS) \
7321 CFLAGS="$(STAGE4_CFLAGS)" CXXFLAGS="$(STAGE4_CFLAGS)" \
7322 LIBCFLAGS="$(STAGE4_CFLAGS)" \
7323 CFLAGS_FOR_TARGET="$(STAGE4_CFLAGS)" \
7324 CXXFLAGS_FOR_TARGET="$(STAGE4_CFLAGS)" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
168b158c 7325 $(TARGET-stage4-binutils)
a8a96878
PB
7326
7327maybe-clean-stage4-binutils: clean-stage4-binutils
7328clean-stage4: clean-stage4-binutils
7329clean-stage4-binutils:
a6a4e782
DD
7330 @if [ $(current_stage) = stage4 ]; then \
7331 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
7332 else \
7333 [ -f $(HOST_SUBDIR)/stage4-binutils/Makefile ] || exit 0; \
7334 $(MAKE) stage4-start; \
7335 fi; \
a8a96878 7336 cd $(HOST_SUBDIR)/binutils && \
6532abb6 7337 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 7338 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 7339 clean
a8a96878
PB
7340@endif binutils-bootstrap
7341
7342
7343.PHONY: all-stageprofile-binutils maybe-all-stageprofile-binutils
7344.PHONY: clean-stageprofile-binutils maybe-clean-stageprofile-binutils
7345maybe-all-stageprofile-binutils:
7346maybe-clean-stageprofile-binutils:
7347@if binutils-bootstrap
7348maybe-all-stageprofile-binutils: all-stageprofile-binutils
7349all-stageprofile: all-stageprofile-binutils
168b158c 7350TARGET-stageprofile-binutils = $(TARGET-binutils)
a8a96878 7351all-stageprofile-binutils: configure-stageprofile-binutils
ec92c4d6 7352 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a8a96878
PB
7353 @r=`${PWD_COMMAND}`; export r; \
7354 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7355 $(HOST_EXPORTS) \
7356 $(POSTSTAGE1_HOST_EXPORTS) \
7357 cd $(HOST_SUBDIR)/binutils && \
6532abb6
PB
7358 $(MAKE) $(BASE_FLAGS_TO_PASS) \
7359 CFLAGS="$(STAGE2_CFLAGS) -fprofile-generate" CXXFLAGS="$(STAGE2_CFLAGS) -fprofile-generate" \
455b4f90
PB
7360 LIBCFLAGS="$(STAGE2_LIBCFLAGS)" \
7361 CFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)" \
7362 CXXFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
168b158c 7363 $(TARGET-stageprofile-binutils)
a8a96878
PB
7364
7365maybe-clean-stageprofile-binutils: clean-stageprofile-binutils
7366clean-stageprofile: clean-stageprofile-binutils
7367clean-stageprofile-binutils:
a6a4e782
DD
7368 @if [ $(current_stage) = stageprofile ]; then \
7369 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
7370 else \
7371 [ -f $(HOST_SUBDIR)/stageprofile-binutils/Makefile ] || exit 0; \
7372 $(MAKE) stageprofile-start; \
7373 fi; \
a8a96878 7374 cd $(HOST_SUBDIR)/binutils && \
6532abb6 7375 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 7376 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 7377 clean
a8a96878
PB
7378@endif binutils-bootstrap
7379
7380
7381.PHONY: all-stagefeedback-binutils maybe-all-stagefeedback-binutils
7382.PHONY: clean-stagefeedback-binutils maybe-clean-stagefeedback-binutils
7383maybe-all-stagefeedback-binutils:
7384maybe-clean-stagefeedback-binutils:
7385@if binutils-bootstrap
7386maybe-all-stagefeedback-binutils: all-stagefeedback-binutils
7387all-stagefeedback: all-stagefeedback-binutils
168b158c 7388TARGET-stagefeedback-binutils = $(TARGET-binutils)
a8a96878 7389all-stagefeedback-binutils: configure-stagefeedback-binutils
ec92c4d6 7390 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a8a96878
PB
7391 @r=`${PWD_COMMAND}`; export r; \
7392 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7393 $(HOST_EXPORTS) \
7394 $(POSTSTAGE1_HOST_EXPORTS) \
7395 cd $(HOST_SUBDIR)/binutils && \
6532abb6
PB
7396 $(MAKE) $(BASE_FLAGS_TO_PASS) \
7397 CFLAGS="$(STAGE3_CFLAGS) -fprofile-use" CXXFLAGS="$(STAGE3_CFLAGS) -fprofile-use" \
7398 LIBCFLAGS="$(STAGE3_LIBCFLAGS) -fprofile-use" \
7399 CFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS) -fprofile-use" \
7400 CXXFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS) -fprofile-use" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
168b158c 7401 $(TARGET-stagefeedback-binutils)
a8a96878
PB
7402
7403maybe-clean-stagefeedback-binutils: clean-stagefeedback-binutils
7404clean-stagefeedback: clean-stagefeedback-binutils
7405clean-stagefeedback-binutils:
a6a4e782
DD
7406 @if [ $(current_stage) = stagefeedback ]; then \
7407 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
7408 else \
7409 [ -f $(HOST_SUBDIR)/stagefeedback-binutils/Makefile ] || exit 0; \
7410 $(MAKE) stagefeedback-start; \
7411 fi; \
a8a96878 7412 cd $(HOST_SUBDIR)/binutils && \
6532abb6 7413 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 7414 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 7415 clean
a8a96878
PB
7416@endif binutils-bootstrap
7417
7418
7419
7420
7421
7422.PHONY: check-binutils maybe-check-binutils
7423maybe-check-binutils:
7424@if binutils
7425maybe-check-binutils: check-binutils
7426
7427check-binutils:
15b527ca 7428 @: $(MAKE); $(unstage)
a8a96878
PB
7429 @r=`${PWD_COMMAND}`; export r; \
7430 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7431 $(HOST_EXPORTS) \
7432 (cd $(HOST_SUBDIR)/binutils && \
7433 $(MAKE) $(FLAGS_TO_PASS) check)
7434
7435@endif binutils
7436
7437.PHONY: install-binutils maybe-install-binutils
7438maybe-install-binutils:
7439@if binutils
7440maybe-install-binutils: install-binutils
7441
7442install-binutils: installdirs
15b527ca 7443 @: $(MAKE); $(unstage)
a8a96878
PB
7444 @r=`${PWD_COMMAND}`; export r; \
7445 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7446 $(HOST_EXPORTS) \
7447 (cd $(HOST_SUBDIR)/binutils && \
7448 $(MAKE) $(FLAGS_TO_PASS) install)
7449
7450@endif binutils
7451
39bbbb69 7452# Other targets (info, dvi, pdf, etc.)
a8a96878
PB
7453
7454.PHONY: maybe-info-binutils info-binutils
7455maybe-info-binutils:
7456@if binutils
7457maybe-info-binutils: info-binutils
7458
7459info-binutils: \
7460 configure-binutils
7461 @[ -f ./binutils/Makefile ] || exit 0; \
7462 r=`${PWD_COMMAND}`; export r; \
7463 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7464 $(HOST_EXPORTS) \
7465 for flag in $(EXTRA_HOST_FLAGS) ; do \
7466 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7467 done; \
7468 echo "Doing info in binutils" ; \
7469 (cd $(HOST_SUBDIR)/binutils && \
7470 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7471 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7472 "RANLIB=$${RANLIB}" \
bffcbe34 7473 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a8a96878
PB
7474 info) \
7475 || exit 1
7476
7477@endif binutils
7478
7479.PHONY: maybe-dvi-binutils dvi-binutils
7480maybe-dvi-binutils:
7481@if binutils
7482maybe-dvi-binutils: dvi-binutils
7483
7484dvi-binutils: \
7485 configure-binutils
7486 @[ -f ./binutils/Makefile ] || exit 0; \
7487 r=`${PWD_COMMAND}`; export r; \
7488 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7489 $(HOST_EXPORTS) \
7490 for flag in $(EXTRA_HOST_FLAGS) ; do \
7491 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7492 done; \
7493 echo "Doing dvi in binutils" ; \
7494 (cd $(HOST_SUBDIR)/binutils && \
657b58f4
NN
7495 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7496 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7497 "RANLIB=$${RANLIB}" \
bffcbe34 7498 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 7499 dvi) \
657b58f4
NN
7500 || exit 1
7501
a7e609d6 7502@endif binutils
657b58f4 7503
39bbbb69
DD
7504.PHONY: maybe-pdf-binutils pdf-binutils
7505maybe-pdf-binutils:
7506@if binutils
7507maybe-pdf-binutils: pdf-binutils
7508
7509pdf-binutils: \
7510 configure-binutils
7511 @[ -f ./binutils/Makefile ] || exit 0; \
7512 r=`${PWD_COMMAND}`; export r; \
7513 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7514 $(HOST_EXPORTS) \
7515 for flag in $(EXTRA_HOST_FLAGS) ; do \
7516 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7517 done; \
7518 echo "Doing pdf in binutils" ; \
7519 (cd $(HOST_SUBDIR)/binutils && \
7520 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7521 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7522 "RANLIB=$${RANLIB}" \
bffcbe34 7523 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
7524 pdf) \
7525 || exit 1
7526
7527@endif binutils
7528
b6fb961f
MS
7529.PHONY: maybe-html-binutils html-binutils
7530maybe-html-binutils:
7531@if binutils
7532maybe-html-binutils: html-binutils
7533
7534html-binutils: \
7535 configure-binutils
7536 @[ -f ./binutils/Makefile ] || exit 0; \
7537 r=`${PWD_COMMAND}`; export r; \
7538 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
7539 $(HOST_EXPORTS) \
7540 for flag in $(EXTRA_HOST_FLAGS) ; do \
7541 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7542 done; \
7543 echo "Doing html in binutils" ; \
7fc2ca22 7544 (cd $(HOST_SUBDIR)/binutils && \
b6fb961f
MS
7545 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7546 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7547 "RANLIB=$${RANLIB}" \
bffcbe34 7548 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
7549 html) \
7550 || exit 1
7551
7552@endif binutils
7553
8ec98d6c
NN
7554.PHONY: maybe-TAGS-binutils TAGS-binutils
7555maybe-TAGS-binutils:
a7e609d6
PB
7556@if binutils
7557maybe-TAGS-binutils: TAGS-binutils
657b58f4 7558
8ec98d6c
NN
7559TAGS-binutils: \
7560 configure-binutils
7561 @[ -f ./binutils/Makefile ] || exit 0; \
5230d454
L
7562 r=`${PWD_COMMAND}`; export r; \
7563 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 7564 $(HOST_EXPORTS) \
d5eec917 7565 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
7566 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7567 done; \
8ec98d6c 7568 echo "Doing TAGS in binutils" ; \
7fc2ca22 7569 (cd $(HOST_SUBDIR)/binutils && \
657b58f4
NN
7570 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7571 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7572 "RANLIB=$${RANLIB}" \
bffcbe34 7573 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 7574 TAGS) \
657b58f4
NN
7575 || exit 1
7576
a7e609d6 7577@endif binutils
657b58f4 7578
8ec98d6c
NN
7579.PHONY: maybe-install-info-binutils install-info-binutils
7580maybe-install-info-binutils:
a7e609d6
PB
7581@if binutils
7582maybe-install-info-binutils: install-info-binutils
657b58f4 7583
8ec98d6c
NN
7584install-info-binutils: \
7585 configure-binutils \
7586 info-binutils
7587 @[ -f ./binutils/Makefile ] || exit 0; \
5230d454
L
7588 r=`${PWD_COMMAND}`; export r; \
7589 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 7590 $(HOST_EXPORTS) \
d5eec917 7591 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
7592 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7593 done; \
8ec98d6c 7594 echo "Doing install-info in binutils" ; \
7fc2ca22 7595 (cd $(HOST_SUBDIR)/binutils && \
657b58f4
NN
7596 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7597 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7598 "RANLIB=$${RANLIB}" \
bffcbe34 7599 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 7600 install-info) \
657b58f4
NN
7601 || exit 1
7602
a7e609d6 7603@endif binutils
657b58f4 7604
d4954b6d
DD
7605.PHONY: maybe-install-pdf-binutils install-pdf-binutils
7606maybe-install-pdf-binutils:
7607@if binutils
7608maybe-install-pdf-binutils: install-pdf-binutils
7609
7610install-pdf-binutils: \
7611 configure-binutils \
7612 pdf-binutils
7613 @[ -f ./binutils/Makefile ] || exit 0; \
7614 r=`${PWD_COMMAND}`; export r; \
7615 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7616 $(HOST_EXPORTS) \
7617 for flag in $(EXTRA_HOST_FLAGS) ; do \
7618 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7619 done; \
7620 echo "Doing install-pdf in binutils" ; \
7621 (cd $(HOST_SUBDIR)/binutils && \
7622 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7623 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7624 "RANLIB=$${RANLIB}" \
bffcbe34 7625 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
7626 install-pdf) \
7627 || exit 1
7628
7629@endif binutils
7630
83c9add4
CD
7631.PHONY: maybe-install-html-binutils install-html-binutils
7632maybe-install-html-binutils:
7633@if binutils
7634maybe-install-html-binutils: install-html-binutils
7635
7636install-html-binutils: \
7637 configure-binutils \
7638 html-binutils
7639 @[ -f ./binutils/Makefile ] || exit 0; \
7640 r=`${PWD_COMMAND}`; export r; \
7641 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7642 $(HOST_EXPORTS) \
7643 for flag in $(EXTRA_HOST_FLAGS) ; do \
7644 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7645 done; \
7646 echo "Doing install-html in binutils" ; \
7647 (cd $(HOST_SUBDIR)/binutils && \
7648 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7649 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7650 "RANLIB=$${RANLIB}" \
bffcbe34 7651 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
7652 install-html) \
7653 || exit 1
7654
7655@endif binutils
7656
8ec98d6c
NN
7657.PHONY: maybe-installcheck-binutils installcheck-binutils
7658maybe-installcheck-binutils:
a7e609d6
PB
7659@if binutils
7660maybe-installcheck-binutils: installcheck-binutils
657b58f4 7661
8ec98d6c
NN
7662installcheck-binutils: \
7663 configure-binutils
7664 @[ -f ./binutils/Makefile ] || exit 0; \
5230d454
L
7665 r=`${PWD_COMMAND}`; export r; \
7666 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 7667 $(HOST_EXPORTS) \
d5eec917 7668 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
7669 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7670 done; \
8ec98d6c 7671 echo "Doing installcheck in binutils" ; \
7fc2ca22 7672 (cd $(HOST_SUBDIR)/binutils && \
657b58f4
NN
7673 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7674 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7675 "RANLIB=$${RANLIB}" \
bffcbe34 7676 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 7677 installcheck) \
657b58f4
NN
7678 || exit 1
7679
a7e609d6 7680@endif binutils
657b58f4 7681
8ec98d6c
NN
7682.PHONY: maybe-mostlyclean-binutils mostlyclean-binutils
7683maybe-mostlyclean-binutils:
a7e609d6
PB
7684@if binutils
7685maybe-mostlyclean-binutils: mostlyclean-binutils
657b58f4 7686
8ec98d6c
NN
7687mostlyclean-binutils:
7688 @[ -f ./binutils/Makefile ] || exit 0; \
5230d454
L
7689 r=`${PWD_COMMAND}`; export r; \
7690 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 7691 $(HOST_EXPORTS) \
d5eec917 7692 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
7693 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7694 done; \
8ec98d6c 7695 echo "Doing mostlyclean in binutils" ; \
7fc2ca22 7696 (cd $(HOST_SUBDIR)/binutils && \
657b58f4
NN
7697 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7698 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7699 "RANLIB=$${RANLIB}" \
bffcbe34 7700 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 7701 mostlyclean) \
657b58f4
NN
7702 || exit 1
7703
a7e609d6 7704@endif binutils
657b58f4 7705
8ec98d6c
NN
7706.PHONY: maybe-clean-binutils clean-binutils
7707maybe-clean-binutils:
a7e609d6
PB
7708@if binutils
7709maybe-clean-binutils: clean-binutils
657b58f4 7710
8ec98d6c
NN
7711clean-binutils:
7712 @[ -f ./binutils/Makefile ] || exit 0; \
5230d454
L
7713 r=`${PWD_COMMAND}`; export r; \
7714 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 7715 $(HOST_EXPORTS) \
d5eec917 7716 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
7717 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7718 done; \
8ec98d6c 7719 echo "Doing clean in binutils" ; \
7fc2ca22 7720 (cd $(HOST_SUBDIR)/binutils && \
657b58f4
NN
7721 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7722 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7723 "RANLIB=$${RANLIB}" \
bffcbe34 7724 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 7725 clean) \
657b58f4
NN
7726 || exit 1
7727
a7e609d6 7728@endif binutils
657b58f4 7729
8ec98d6c
NN
7730.PHONY: maybe-distclean-binutils distclean-binutils
7731maybe-distclean-binutils:
a7e609d6
PB
7732@if binutils
7733maybe-distclean-binutils: distclean-binutils
657b58f4 7734
8ec98d6c
NN
7735distclean-binutils:
7736 @[ -f ./binutils/Makefile ] || exit 0; \
5230d454
L
7737 r=`${PWD_COMMAND}`; export r; \
7738 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 7739 $(HOST_EXPORTS) \
d5eec917 7740 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
7741 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7742 done; \
8ec98d6c 7743 echo "Doing distclean in binutils" ; \
7fc2ca22 7744 (cd $(HOST_SUBDIR)/binutils && \
657b58f4
NN
7745 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7746 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7747 "RANLIB=$${RANLIB}" \
bffcbe34 7748 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 7749 distclean) \
657b58f4
NN
7750 || exit 1
7751
a7e609d6 7752@endif binutils
657b58f4 7753
8ec98d6c
NN
7754.PHONY: maybe-maintainer-clean-binutils maintainer-clean-binutils
7755maybe-maintainer-clean-binutils:
a7e609d6
PB
7756@if binutils
7757maybe-maintainer-clean-binutils: maintainer-clean-binutils
657b58f4 7758
8ec98d6c
NN
7759maintainer-clean-binutils:
7760 @[ -f ./binutils/Makefile ] || exit 0; \
5230d454
L
7761 r=`${PWD_COMMAND}`; export r; \
7762 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 7763 $(HOST_EXPORTS) \
d5eec917 7764 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
7765 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7766 done; \
8ec98d6c 7767 echo "Doing maintainer-clean in binutils" ; \
7fc2ca22 7768 (cd $(HOST_SUBDIR)/binutils && \
657b58f4
NN
7769 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7770 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7771 "RANLIB=$${RANLIB}" \
bffcbe34 7772 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 7773 maintainer-clean) \
657b58f4
NN
7774 || exit 1
7775
a7e609d6 7776@endif binutils
657b58f4 7777
657b58f4 7778
f0fdfd34 7779
8ec98d6c
NN
7780.PHONY: configure-bison maybe-configure-bison
7781maybe-configure-bison:
e1e5148c
CD
7782@if gcc-bootstrap
7783configure-bison: stage_current
7784@endif gcc-bootstrap
a7e609d6
PB
7785@if bison
7786maybe-configure-bison: configure-bison
ec92c4d6 7787configure-bison:
15b527ca 7788 @: $(MAKE); $(unstage)
ec92c4d6 7789 @r=`${PWD_COMMAND}`; export r; \
5230d454 7790 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
7791 test ! -f $(HOST_SUBDIR)/bison/Makefile || exit 0; \
7792 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bison ; \
a675b75a 7793 $(HOST_EXPORTS) \
f0fdfd34
PB
7794 echo Configuring in $(HOST_SUBDIR)/bison; \
7795 cd "$(HOST_SUBDIR)/bison" || exit 1; \
8ec98d6c 7796 case $(srcdir) in \
7fc2ca22
PB
7797 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7798 *) topdir=`echo $(HOST_SUBDIR)/bison/ | \
7799 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 7800 esac; \
7fc2ca22
PB
7801 srcdiroption="--srcdir=$${topdir}/bison"; \
7802 libsrcdir="$$s/bison"; \
8ec98d6c 7803 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
7804 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
7805 --target=${target_alias} $${srcdiroption} \
657b58f4 7806 || exit 1
a7e609d6 7807@endif bison
657b58f4 7808
f0fdfd34
PB
7809
7810
a8a96878
PB
7811
7812
8ec98d6c
NN
7813.PHONY: all-bison maybe-all-bison
7814maybe-all-bison:
e1e5148c
CD
7815@if gcc-bootstrap
7816all-bison: stage_current
7817@endif gcc-bootstrap
a7e609d6 7818@if bison
5e6b1f07 7819TARGET-bison=all
a7e609d6 7820maybe-all-bison: all-bison
8ec98d6c 7821all-bison: configure-bison
15b527ca 7822 @: $(MAKE); $(unstage)
8ec98d6c
NN
7823 @r=`${PWD_COMMAND}`; export r; \
7824 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 7825 $(HOST_EXPORTS) \
7fc2ca22 7826 (cd $(HOST_SUBDIR)/bison && \
6532abb6
PB
7827 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
7828 $(TARGET-bison))
a7e609d6 7829@endif bison
657b58f4 7830
f0fdfd34 7831
a8a96878
PB
7832
7833
8ec98d6c
NN
7834.PHONY: check-bison maybe-check-bison
7835maybe-check-bison:
a7e609d6
PB
7836@if bison
7837maybe-check-bison: check-bison
657b58f4 7838
8ec98d6c
NN
7839# This module is only tested in a native toolchain.
7840check-bison:
15b527ca 7841 @: $(MAKE); $(unstage)
8ec98d6c
NN
7842 @if [ '$(host)' = '$(target)' ] ; then \
7843 r=`${PWD_COMMAND}`; export r; \
7844 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 7845 $(HOST_EXPORTS) \
7fc2ca22 7846 (cd $(HOST_SUBDIR)/bison && \
80e4c577 7847 $(MAKE) $(FLAGS_TO_PASS) check); \
8ec98d6c
NN
7848 fi
7849
a7e609d6 7850@endif bison
8ec98d6c
NN
7851
7852.PHONY: install-bison maybe-install-bison
7853maybe-install-bison:
a7e609d6
PB
7854@if bison
7855maybe-install-bison: install-bison
8ec98d6c
NN
7856
7857install-bison: installdirs
15b527ca 7858 @: $(MAKE); $(unstage)
8ec98d6c 7859 @r=`${PWD_COMMAND}`; export r; \
5230d454 7860 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 7861 $(HOST_EXPORTS) \
7fc2ca22 7862 (cd $(HOST_SUBDIR)/bison && \
93c60b6d 7863 $(MAKE) $(FLAGS_TO_PASS) install)
657b58f4 7864
a7e609d6 7865@endif bison
657b58f4 7866
39bbbb69 7867# Other targets (info, dvi, pdf, etc.)
657b58f4 7868
8ec98d6c
NN
7869.PHONY: maybe-info-bison info-bison
7870maybe-info-bison:
a7e609d6
PB
7871@if bison
7872maybe-info-bison: info-bison
8ec98d6c
NN
7873
7874info-bison: \
7875 configure-bison
15b527ca 7876 @: $(MAKE); $(unstage)
8ec98d6c 7877 @[ -f ./bison/Makefile ] || exit 0; \
5230d454
L
7878 r=`${PWD_COMMAND}`; export r; \
7879 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 7880 $(HOST_EXPORTS) \
d5eec917 7881 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
7882 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7883 done; \
8ec98d6c 7884 echo "Doing info in bison" ; \
7fc2ca22 7885 (cd $(HOST_SUBDIR)/bison && \
657b58f4
NN
7886 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7887 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7888 "RANLIB=$${RANLIB}" \
bffcbe34 7889 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 7890 info) \
657b58f4
NN
7891 || exit 1
7892
a7e609d6 7893@endif bison
657b58f4 7894
8ec98d6c
NN
7895.PHONY: maybe-dvi-bison dvi-bison
7896maybe-dvi-bison:
a7e609d6
PB
7897@if bison
7898maybe-dvi-bison: dvi-bison
657b58f4 7899
8ec98d6c
NN
7900dvi-bison: \
7901 configure-bison
15b527ca 7902 @: $(MAKE); $(unstage)
8ec98d6c 7903 @[ -f ./bison/Makefile ] || exit 0; \
5230d454
L
7904 r=`${PWD_COMMAND}`; export r; \
7905 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 7906 $(HOST_EXPORTS) \
d5eec917 7907 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
7908 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7909 done; \
8ec98d6c 7910 echo "Doing dvi in bison" ; \
7fc2ca22 7911 (cd $(HOST_SUBDIR)/bison && \
657b58f4
NN
7912 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7913 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7914 "RANLIB=$${RANLIB}" \
bffcbe34 7915 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 7916 dvi) \
657b58f4
NN
7917 || exit 1
7918
a7e609d6 7919@endif bison
657b58f4 7920
39bbbb69
DD
7921.PHONY: maybe-pdf-bison pdf-bison
7922maybe-pdf-bison:
7923@if bison
7924maybe-pdf-bison: pdf-bison
7925
7926pdf-bison: \
7927 configure-bison
7928 @: $(MAKE); $(unstage)
7929 @[ -f ./bison/Makefile ] || exit 0; \
7930 r=`${PWD_COMMAND}`; export r; \
7931 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7932 $(HOST_EXPORTS) \
7933 for flag in $(EXTRA_HOST_FLAGS) ; do \
7934 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7935 done; \
7936 echo "Doing pdf in bison" ; \
7937 (cd $(HOST_SUBDIR)/bison && \
7938 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7939 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7940 "RANLIB=$${RANLIB}" \
bffcbe34 7941 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
7942 pdf) \
7943 || exit 1
7944
7945@endif bison
7946
b6fb961f
MS
7947.PHONY: maybe-html-bison html-bison
7948maybe-html-bison:
7949@if bison
7950maybe-html-bison: html-bison
7951
7952html-bison: \
7953 configure-bison
15b527ca 7954 @: $(MAKE); $(unstage)
b6fb961f
MS
7955 @[ -f ./bison/Makefile ] || exit 0; \
7956 r=`${PWD_COMMAND}`; export r; \
7957 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
7958 $(HOST_EXPORTS) \
7959 for flag in $(EXTRA_HOST_FLAGS) ; do \
7960 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7961 done; \
7962 echo "Doing html in bison" ; \
7fc2ca22 7963 (cd $(HOST_SUBDIR)/bison && \
b6fb961f
MS
7964 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7965 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7966 "RANLIB=$${RANLIB}" \
bffcbe34 7967 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
7968 html) \
7969 || exit 1
7970
7971@endif bison
7972
8ec98d6c
NN
7973.PHONY: maybe-TAGS-bison TAGS-bison
7974maybe-TAGS-bison:
a7e609d6
PB
7975@if bison
7976maybe-TAGS-bison: TAGS-bison
657b58f4 7977
8ec98d6c
NN
7978TAGS-bison: \
7979 configure-bison
15b527ca 7980 @: $(MAKE); $(unstage)
8ec98d6c 7981 @[ -f ./bison/Makefile ] || exit 0; \
5230d454
L
7982 r=`${PWD_COMMAND}`; export r; \
7983 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 7984 $(HOST_EXPORTS) \
d5eec917 7985 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
7986 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7987 done; \
8ec98d6c 7988 echo "Doing TAGS in bison" ; \
7fc2ca22 7989 (cd $(HOST_SUBDIR)/bison && \
657b58f4
NN
7990 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7991 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7992 "RANLIB=$${RANLIB}" \
bffcbe34 7993 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 7994 TAGS) \
657b58f4
NN
7995 || exit 1
7996
a7e609d6 7997@endif bison
657b58f4 7998
8ec98d6c
NN
7999.PHONY: maybe-install-info-bison install-info-bison
8000maybe-install-info-bison:
a7e609d6
PB
8001@if bison
8002maybe-install-info-bison: install-info-bison
657b58f4 8003
8ec98d6c
NN
8004install-info-bison: \
8005 configure-bison \
8006 info-bison
15b527ca 8007 @: $(MAKE); $(unstage)
8ec98d6c 8008 @[ -f ./bison/Makefile ] || exit 0; \
5230d454
L
8009 r=`${PWD_COMMAND}`; export r; \
8010 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 8011 $(HOST_EXPORTS) \
d5eec917 8012 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
8013 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8014 done; \
8ec98d6c 8015 echo "Doing install-info in bison" ; \
7fc2ca22 8016 (cd $(HOST_SUBDIR)/bison && \
657b58f4
NN
8017 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8018 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8019 "RANLIB=$${RANLIB}" \
bffcbe34 8020 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 8021 install-info) \
657b58f4
NN
8022 || exit 1
8023
a7e609d6 8024@endif bison
657b58f4 8025
d4954b6d
DD
8026.PHONY: maybe-install-pdf-bison install-pdf-bison
8027maybe-install-pdf-bison:
8028@if bison
8029maybe-install-pdf-bison: install-pdf-bison
8030
8031install-pdf-bison: \
8032 configure-bison \
8033 pdf-bison
8034 @: $(MAKE); $(unstage)
8035 @[ -f ./bison/Makefile ] || exit 0; \
8036 r=`${PWD_COMMAND}`; export r; \
8037 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8038 $(HOST_EXPORTS) \
8039 for flag in $(EXTRA_HOST_FLAGS) ; do \
8040 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8041 done; \
8042 echo "Doing install-pdf in bison" ; \
8043 (cd $(HOST_SUBDIR)/bison && \
8044 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8045 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8046 "RANLIB=$${RANLIB}" \
bffcbe34 8047 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
8048 install-pdf) \
8049 || exit 1
8050
8051@endif bison
8052
83c9add4
CD
8053.PHONY: maybe-install-html-bison install-html-bison
8054maybe-install-html-bison:
8055@if bison
8056maybe-install-html-bison: install-html-bison
8057
8058install-html-bison: \
8059 configure-bison \
8060 html-bison
8061 @: $(MAKE); $(unstage)
8062 @[ -f ./bison/Makefile ] || exit 0; \
8063 r=`${PWD_COMMAND}`; export r; \
8064 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8065 $(HOST_EXPORTS) \
8066 for flag in $(EXTRA_HOST_FLAGS) ; do \
8067 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8068 done; \
8069 echo "Doing install-html in bison" ; \
8070 (cd $(HOST_SUBDIR)/bison && \
8071 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8072 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8073 "RANLIB=$${RANLIB}" \
bffcbe34 8074 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
8075 install-html) \
8076 || exit 1
8077
8078@endif bison
8079
8ec98d6c
NN
8080.PHONY: maybe-installcheck-bison installcheck-bison
8081maybe-installcheck-bison:
a7e609d6
PB
8082@if bison
8083maybe-installcheck-bison: installcheck-bison
657b58f4 8084
8ec98d6c
NN
8085installcheck-bison: \
8086 configure-bison
15b527ca 8087 @: $(MAKE); $(unstage)
8ec98d6c 8088 @[ -f ./bison/Makefile ] || exit 0; \
5230d454
L
8089 r=`${PWD_COMMAND}`; export r; \
8090 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 8091 $(HOST_EXPORTS) \
d5eec917 8092 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
8093 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8094 done; \
8ec98d6c 8095 echo "Doing installcheck in bison" ; \
7fc2ca22 8096 (cd $(HOST_SUBDIR)/bison && \
657b58f4
NN
8097 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8098 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8099 "RANLIB=$${RANLIB}" \
bffcbe34 8100 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 8101 installcheck) \
657b58f4
NN
8102 || exit 1
8103
a7e609d6 8104@endif bison
657b58f4 8105
8ec98d6c
NN
8106.PHONY: maybe-mostlyclean-bison mostlyclean-bison
8107maybe-mostlyclean-bison:
a7e609d6
PB
8108@if bison
8109maybe-mostlyclean-bison: mostlyclean-bison
657b58f4 8110
8ec98d6c 8111mostlyclean-bison:
15b527ca 8112 @: $(MAKE); $(unstage)
8ec98d6c 8113 @[ -f ./bison/Makefile ] || exit 0; \
5230d454
L
8114 r=`${PWD_COMMAND}`; export r; \
8115 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 8116 $(HOST_EXPORTS) \
d5eec917 8117 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
8118 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8119 done; \
8ec98d6c 8120 echo "Doing mostlyclean in bison" ; \
7fc2ca22 8121 (cd $(HOST_SUBDIR)/bison && \
657b58f4
NN
8122 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8123 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8124 "RANLIB=$${RANLIB}" \
bffcbe34 8125 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 8126 mostlyclean) \
657b58f4
NN
8127 || exit 1
8128
a7e609d6 8129@endif bison
657b58f4 8130
8ec98d6c
NN
8131.PHONY: maybe-clean-bison clean-bison
8132maybe-clean-bison:
a7e609d6
PB
8133@if bison
8134maybe-clean-bison: clean-bison
657b58f4 8135
8ec98d6c 8136clean-bison:
15b527ca 8137 @: $(MAKE); $(unstage)
8ec98d6c 8138 @[ -f ./bison/Makefile ] || exit 0; \
5230d454
L
8139 r=`${PWD_COMMAND}`; export r; \
8140 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 8141 $(HOST_EXPORTS) \
d5eec917 8142 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
8143 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8144 done; \
8ec98d6c 8145 echo "Doing clean in bison" ; \
7fc2ca22 8146 (cd $(HOST_SUBDIR)/bison && \
657b58f4
NN
8147 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8148 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8149 "RANLIB=$${RANLIB}" \
bffcbe34 8150 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 8151 clean) \
657b58f4
NN
8152 || exit 1
8153
a7e609d6 8154@endif bison
657b58f4 8155
8ec98d6c
NN
8156.PHONY: maybe-distclean-bison distclean-bison
8157maybe-distclean-bison:
a7e609d6
PB
8158@if bison
8159maybe-distclean-bison: distclean-bison
657b58f4 8160
8ec98d6c 8161distclean-bison:
15b527ca 8162 @: $(MAKE); $(unstage)
8ec98d6c 8163 @[ -f ./bison/Makefile ] || exit 0; \
5230d454
L
8164 r=`${PWD_COMMAND}`; export r; \
8165 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 8166 $(HOST_EXPORTS) \
d5eec917 8167 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
8168 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8169 done; \
8ec98d6c 8170 echo "Doing distclean in bison" ; \
7fc2ca22 8171 (cd $(HOST_SUBDIR)/bison && \
657b58f4
NN
8172 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8173 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8174 "RANLIB=$${RANLIB}" \
bffcbe34 8175 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 8176 distclean) \
657b58f4
NN
8177 || exit 1
8178
a7e609d6 8179@endif bison
657b58f4 8180
8ec98d6c
NN
8181.PHONY: maybe-maintainer-clean-bison maintainer-clean-bison
8182maybe-maintainer-clean-bison:
a7e609d6
PB
8183@if bison
8184maybe-maintainer-clean-bison: maintainer-clean-bison
657b58f4 8185
8ec98d6c 8186maintainer-clean-bison:
15b527ca 8187 @: $(MAKE); $(unstage)
8ec98d6c 8188 @[ -f ./bison/Makefile ] || exit 0; \
5230d454
L
8189 r=`${PWD_COMMAND}`; export r; \
8190 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 8191 $(HOST_EXPORTS) \
d5eec917 8192 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
8193 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8194 done; \
8ec98d6c 8195 echo "Doing maintainer-clean in bison" ; \
7fc2ca22 8196 (cd $(HOST_SUBDIR)/bison && \
657b58f4
NN
8197 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8198 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8199 "RANLIB=$${RANLIB}" \
bffcbe34 8200 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 8201 maintainer-clean) \
657b58f4
NN
8202 || exit 1
8203
a7e609d6 8204@endif bison
657b58f4 8205
657b58f4 8206
f0fdfd34 8207
8ec98d6c
NN
8208.PHONY: configure-byacc maybe-configure-byacc
8209maybe-configure-byacc:
e1e5148c
CD
8210@if gcc-bootstrap
8211configure-byacc: stage_current
8212@endif gcc-bootstrap
a7e609d6
PB
8213@if byacc
8214maybe-configure-byacc: configure-byacc
ec92c4d6 8215configure-byacc:
15b527ca 8216 @: $(MAKE); $(unstage)
ec92c4d6 8217 @r=`${PWD_COMMAND}`; export r; \
8ec98d6c 8218 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
8219 test ! -f $(HOST_SUBDIR)/byacc/Makefile || exit 0; \
8220 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/byacc ; \
a675b75a 8221 $(HOST_EXPORTS) \
f0fdfd34
PB
8222 echo Configuring in $(HOST_SUBDIR)/byacc; \
8223 cd "$(HOST_SUBDIR)/byacc" || exit 1; \
8ec98d6c 8224 case $(srcdir) in \
7fc2ca22
PB
8225 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8226 *) topdir=`echo $(HOST_SUBDIR)/byacc/ | \
8227 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 8228 esac; \
7fc2ca22
PB
8229 srcdiroption="--srcdir=$${topdir}/byacc"; \
8230 libsrcdir="$$s/byacc"; \
8ec98d6c 8231 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
8232 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
8233 --target=${target_alias} $${srcdiroption} \
8ec98d6c 8234 || exit 1
a7e609d6 8235@endif byacc
8ec98d6c 8236
f0fdfd34
PB
8237
8238
a8a96878
PB
8239
8240
8ec98d6c
NN
8241.PHONY: all-byacc maybe-all-byacc
8242maybe-all-byacc:
e1e5148c
CD
8243@if gcc-bootstrap
8244all-byacc: stage_current
8245@endif gcc-bootstrap
a7e609d6 8246@if byacc
5e6b1f07 8247TARGET-byacc=all
a7e609d6 8248maybe-all-byacc: all-byacc
8ec98d6c 8249all-byacc: configure-byacc
15b527ca 8250 @: $(MAKE); $(unstage)
8ec98d6c
NN
8251 @r=`${PWD_COMMAND}`; export r; \
8252 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 8253 $(HOST_EXPORTS) \
7fc2ca22 8254 (cd $(HOST_SUBDIR)/byacc && \
6532abb6
PB
8255 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
8256 $(TARGET-byacc))
a7e609d6 8257@endif byacc
8ec98d6c 8258
f0fdfd34 8259
a8a96878
PB
8260
8261
8ec98d6c
NN
8262.PHONY: check-byacc maybe-check-byacc
8263maybe-check-byacc:
a7e609d6
PB
8264@if byacc
8265maybe-check-byacc: check-byacc
8ec98d6c
NN
8266
8267# This module is only tested in a native toolchain.
8268check-byacc:
15b527ca 8269 @: $(MAKE); $(unstage)
8ec98d6c
NN
8270 @if [ '$(host)' = '$(target)' ] ; then \
8271 r=`${PWD_COMMAND}`; export r; \
8272 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 8273 $(HOST_EXPORTS) \
7fc2ca22 8274 (cd $(HOST_SUBDIR)/byacc && \
80e4c577 8275 $(MAKE) $(FLAGS_TO_PASS) check); \
8ec98d6c
NN
8276 fi
8277
a7e609d6 8278@endif byacc
8ec98d6c
NN
8279
8280.PHONY: install-byacc maybe-install-byacc
8281maybe-install-byacc:
a7e609d6
PB
8282@if byacc
8283maybe-install-byacc: install-byacc
8ec98d6c
NN
8284
8285install-byacc: installdirs
15b527ca 8286 @: $(MAKE); $(unstage)
8ec98d6c
NN
8287 @r=`${PWD_COMMAND}`; export r; \
8288 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 8289 $(HOST_EXPORTS) \
7fc2ca22 8290 (cd $(HOST_SUBDIR)/byacc && \
93c60b6d 8291 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 8292
a7e609d6 8293@endif byacc
8ec98d6c 8294
39bbbb69 8295# Other targets (info, dvi, pdf, etc.)
8ec98d6c
NN
8296
8297.PHONY: maybe-info-byacc info-byacc
8298maybe-info-byacc:
a7e609d6
PB
8299@if byacc
8300maybe-info-byacc: info-byacc
8ec98d6c
NN
8301
8302info-byacc: \
8303 configure-byacc
15b527ca 8304 @: $(MAKE); $(unstage)
8ec98d6c 8305 @[ -f ./byacc/Makefile ] || exit 0; \
5230d454
L
8306 r=`${PWD_COMMAND}`; export r; \
8307 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 8308 $(HOST_EXPORTS) \
d5eec917 8309 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
8310 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8311 done; \
8ec98d6c 8312 echo "Doing info in byacc" ; \
7fc2ca22 8313 (cd $(HOST_SUBDIR)/byacc && \
657b58f4
NN
8314 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8315 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8316 "RANLIB=$${RANLIB}" \
bffcbe34 8317 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 8318 info) \
657b58f4
NN
8319 || exit 1
8320
a7e609d6 8321@endif byacc
657b58f4 8322
8ec98d6c
NN
8323.PHONY: maybe-dvi-byacc dvi-byacc
8324maybe-dvi-byacc:
a7e609d6
PB
8325@if byacc
8326maybe-dvi-byacc: dvi-byacc
657b58f4 8327
8ec98d6c
NN
8328dvi-byacc: \
8329 configure-byacc
15b527ca 8330 @: $(MAKE); $(unstage)
8ec98d6c 8331 @[ -f ./byacc/Makefile ] || exit 0; \
5230d454
L
8332 r=`${PWD_COMMAND}`; export r; \
8333 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 8334 $(HOST_EXPORTS) \
d5eec917 8335 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
8336 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8337 done; \
8ec98d6c 8338 echo "Doing dvi in byacc" ; \
7fc2ca22 8339 (cd $(HOST_SUBDIR)/byacc && \
657b58f4
NN
8340 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8341 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8342 "RANLIB=$${RANLIB}" \
bffcbe34 8343 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 8344 dvi) \
657b58f4
NN
8345 || exit 1
8346
a7e609d6 8347@endif byacc
657b58f4 8348
39bbbb69
DD
8349.PHONY: maybe-pdf-byacc pdf-byacc
8350maybe-pdf-byacc:
8351@if byacc
8352maybe-pdf-byacc: pdf-byacc
8353
8354pdf-byacc: \
8355 configure-byacc
8356 @: $(MAKE); $(unstage)
8357 @[ -f ./byacc/Makefile ] || exit 0; \
8358 r=`${PWD_COMMAND}`; export r; \
8359 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8360 $(HOST_EXPORTS) \
8361 for flag in $(EXTRA_HOST_FLAGS) ; do \
8362 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8363 done; \
8364 echo "Doing pdf in byacc" ; \
8365 (cd $(HOST_SUBDIR)/byacc && \
8366 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8367 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8368 "RANLIB=$${RANLIB}" \
bffcbe34 8369 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
8370 pdf) \
8371 || exit 1
8372
8373@endif byacc
8374
b6fb961f
MS
8375.PHONY: maybe-html-byacc html-byacc
8376maybe-html-byacc:
8377@if byacc
8378maybe-html-byacc: html-byacc
8379
8380html-byacc: \
8381 configure-byacc
15b527ca 8382 @: $(MAKE); $(unstage)
b6fb961f
MS
8383 @[ -f ./byacc/Makefile ] || exit 0; \
8384 r=`${PWD_COMMAND}`; export r; \
8385 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
8386 $(HOST_EXPORTS) \
8387 for flag in $(EXTRA_HOST_FLAGS) ; do \
8388 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8389 done; \
8390 echo "Doing html in byacc" ; \
7fc2ca22 8391 (cd $(HOST_SUBDIR)/byacc && \
b6fb961f
MS
8392 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8393 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8394 "RANLIB=$${RANLIB}" \
bffcbe34 8395 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
8396 html) \
8397 || exit 1
8398
8399@endif byacc
8400
8ec98d6c
NN
8401.PHONY: maybe-TAGS-byacc TAGS-byacc
8402maybe-TAGS-byacc:
a7e609d6
PB
8403@if byacc
8404maybe-TAGS-byacc: TAGS-byacc
657b58f4 8405
8ec98d6c
NN
8406TAGS-byacc: \
8407 configure-byacc
15b527ca 8408 @: $(MAKE); $(unstage)
8ec98d6c 8409 @[ -f ./byacc/Makefile ] || exit 0; \
5230d454
L
8410 r=`${PWD_COMMAND}`; export r; \
8411 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 8412 $(HOST_EXPORTS) \
d5eec917 8413 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
8414 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8415 done; \
8ec98d6c 8416 echo "Doing TAGS in byacc" ; \
7fc2ca22 8417 (cd $(HOST_SUBDIR)/byacc && \
657b58f4
NN
8418 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8419 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8420 "RANLIB=$${RANLIB}" \
bffcbe34 8421 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 8422 TAGS) \
657b58f4
NN
8423 || exit 1
8424
a7e609d6 8425@endif byacc
657b58f4 8426
8ec98d6c
NN
8427.PHONY: maybe-install-info-byacc install-info-byacc
8428maybe-install-info-byacc:
a7e609d6
PB
8429@if byacc
8430maybe-install-info-byacc: install-info-byacc
657b58f4 8431
8ec98d6c
NN
8432install-info-byacc: \
8433 configure-byacc \
8434 info-byacc
15b527ca 8435 @: $(MAKE); $(unstage)
8ec98d6c 8436 @[ -f ./byacc/Makefile ] || exit 0; \
5230d454
L
8437 r=`${PWD_COMMAND}`; export r; \
8438 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 8439 $(HOST_EXPORTS) \
d5eec917 8440 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
8441 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8442 done; \
8ec98d6c 8443 echo "Doing install-info in byacc" ; \
7fc2ca22 8444 (cd $(HOST_SUBDIR)/byacc && \
657b58f4
NN
8445 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8446 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8447 "RANLIB=$${RANLIB}" \
bffcbe34 8448 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 8449 install-info) \
657b58f4
NN
8450 || exit 1
8451
a7e609d6 8452@endif byacc
657b58f4 8453
d4954b6d
DD
8454.PHONY: maybe-install-pdf-byacc install-pdf-byacc
8455maybe-install-pdf-byacc:
8456@if byacc
8457maybe-install-pdf-byacc: install-pdf-byacc
8458
8459install-pdf-byacc: \
8460 configure-byacc \
8461 pdf-byacc
8462 @: $(MAKE); $(unstage)
8463 @[ -f ./byacc/Makefile ] || exit 0; \
8464 r=`${PWD_COMMAND}`; export r; \
8465 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8466 $(HOST_EXPORTS) \
8467 for flag in $(EXTRA_HOST_FLAGS) ; do \
8468 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8469 done; \
8470 echo "Doing install-pdf in byacc" ; \
8471 (cd $(HOST_SUBDIR)/byacc && \
8472 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8473 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8474 "RANLIB=$${RANLIB}" \
bffcbe34 8475 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
8476 install-pdf) \
8477 || exit 1
8478
8479@endif byacc
8480
83c9add4
CD
8481.PHONY: maybe-install-html-byacc install-html-byacc
8482maybe-install-html-byacc:
8483@if byacc
8484maybe-install-html-byacc: install-html-byacc
8485
8486install-html-byacc: \
8487 configure-byacc \
8488 html-byacc
8489 @: $(MAKE); $(unstage)
8490 @[ -f ./byacc/Makefile ] || exit 0; \
8491 r=`${PWD_COMMAND}`; export r; \
8492 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8493 $(HOST_EXPORTS) \
8494 for flag in $(EXTRA_HOST_FLAGS) ; do \
8495 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8496 done; \
8497 echo "Doing install-html in byacc" ; \
8498 (cd $(HOST_SUBDIR)/byacc && \
8499 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8500 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8501 "RANLIB=$${RANLIB}" \
bffcbe34 8502 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
8503 install-html) \
8504 || exit 1
8505
8506@endif byacc
8507
8ec98d6c
NN
8508.PHONY: maybe-installcheck-byacc installcheck-byacc
8509maybe-installcheck-byacc:
a7e609d6
PB
8510@if byacc
8511maybe-installcheck-byacc: installcheck-byacc
657b58f4 8512
8ec98d6c
NN
8513installcheck-byacc: \
8514 configure-byacc
15b527ca 8515 @: $(MAKE); $(unstage)
8ec98d6c 8516 @[ -f ./byacc/Makefile ] || exit 0; \
5230d454
L
8517 r=`${PWD_COMMAND}`; export r; \
8518 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 8519 $(HOST_EXPORTS) \
d5eec917 8520 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
8521 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8522 done; \
8ec98d6c 8523 echo "Doing installcheck in byacc" ; \
7fc2ca22 8524 (cd $(HOST_SUBDIR)/byacc && \
657b58f4
NN
8525 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8526 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8527 "RANLIB=$${RANLIB}" \
bffcbe34 8528 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 8529 installcheck) \
657b58f4
NN
8530 || exit 1
8531
a7e609d6 8532@endif byacc
657b58f4 8533
8ec98d6c
NN
8534.PHONY: maybe-mostlyclean-byacc mostlyclean-byacc
8535maybe-mostlyclean-byacc:
a7e609d6
PB
8536@if byacc
8537maybe-mostlyclean-byacc: mostlyclean-byacc
657b58f4 8538
8ec98d6c 8539mostlyclean-byacc:
15b527ca 8540 @: $(MAKE); $(unstage)
8ec98d6c 8541 @[ -f ./byacc/Makefile ] || exit 0; \
5230d454
L
8542 r=`${PWD_COMMAND}`; export r; \
8543 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 8544 $(HOST_EXPORTS) \
d5eec917 8545 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
8546 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8547 done; \
8ec98d6c 8548 echo "Doing mostlyclean in byacc" ; \
7fc2ca22 8549 (cd $(HOST_SUBDIR)/byacc && \
657b58f4
NN
8550 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8551 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8552 "RANLIB=$${RANLIB}" \
bffcbe34 8553 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 8554 mostlyclean) \
657b58f4
NN
8555 || exit 1
8556
a7e609d6 8557@endif byacc
657b58f4 8558
8ec98d6c
NN
8559.PHONY: maybe-clean-byacc clean-byacc
8560maybe-clean-byacc:
a7e609d6
PB
8561@if byacc
8562maybe-clean-byacc: clean-byacc
657b58f4 8563
8ec98d6c 8564clean-byacc:
15b527ca 8565 @: $(MAKE); $(unstage)
8ec98d6c 8566 @[ -f ./byacc/Makefile ] || exit 0; \
5230d454
L
8567 r=`${PWD_COMMAND}`; export r; \
8568 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 8569 $(HOST_EXPORTS) \
d5eec917 8570 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
8571 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8572 done; \
8ec98d6c 8573 echo "Doing clean in byacc" ; \
7fc2ca22 8574 (cd $(HOST_SUBDIR)/byacc && \
657b58f4
NN
8575 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8576 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8577 "RANLIB=$${RANLIB}" \
bffcbe34 8578 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 8579 clean) \
657b58f4
NN
8580 || exit 1
8581
a7e609d6 8582@endif byacc
657b58f4 8583
8ec98d6c
NN
8584.PHONY: maybe-distclean-byacc distclean-byacc
8585maybe-distclean-byacc:
a7e609d6
PB
8586@if byacc
8587maybe-distclean-byacc: distclean-byacc
657b58f4 8588
8ec98d6c 8589distclean-byacc:
15b527ca 8590 @: $(MAKE); $(unstage)
8ec98d6c 8591 @[ -f ./byacc/Makefile ] || exit 0; \
5230d454
L
8592 r=`${PWD_COMMAND}`; export r; \
8593 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 8594 $(HOST_EXPORTS) \
d5eec917 8595 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
8596 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8597 done; \
8ec98d6c 8598 echo "Doing distclean in byacc" ; \
7fc2ca22 8599 (cd $(HOST_SUBDIR)/byacc && \
657b58f4
NN
8600 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8601 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8602 "RANLIB=$${RANLIB}" \
bffcbe34 8603 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 8604 distclean) \
657b58f4
NN
8605 || exit 1
8606
a7e609d6 8607@endif byacc
657b58f4 8608
8ec98d6c
NN
8609.PHONY: maybe-maintainer-clean-byacc maintainer-clean-byacc
8610maybe-maintainer-clean-byacc:
a7e609d6
PB
8611@if byacc
8612maybe-maintainer-clean-byacc: maintainer-clean-byacc
657b58f4 8613
8ec98d6c 8614maintainer-clean-byacc:
15b527ca 8615 @: $(MAKE); $(unstage)
8ec98d6c 8616 @[ -f ./byacc/Makefile ] || exit 0; \
5230d454
L
8617 r=`${PWD_COMMAND}`; export r; \
8618 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 8619 $(HOST_EXPORTS) \
d5eec917 8620 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
8621 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8622 done; \
8ec98d6c 8623 echo "Doing maintainer-clean in byacc" ; \
7fc2ca22 8624 (cd $(HOST_SUBDIR)/byacc && \
657b58f4
NN
8625 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8626 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8627 "RANLIB=$${RANLIB}" \
bffcbe34 8628 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 8629 maintainer-clean) \
657b58f4
NN
8630 || exit 1
8631
a7e609d6 8632@endif byacc
657b58f4 8633
657b58f4 8634
f0fdfd34 8635
8ec98d6c
NN
8636.PHONY: configure-bzip2 maybe-configure-bzip2
8637maybe-configure-bzip2:
e1e5148c
CD
8638@if gcc-bootstrap
8639configure-bzip2: stage_current
8640@endif gcc-bootstrap
a7e609d6
PB
8641@if bzip2
8642maybe-configure-bzip2: configure-bzip2
ec92c4d6 8643configure-bzip2:
15b527ca 8644 @: $(MAKE); $(unstage)
ec92c4d6 8645 @r=`${PWD_COMMAND}`; export r; \
8ec98d6c 8646 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
8647 test ! -f $(HOST_SUBDIR)/bzip2/Makefile || exit 0; \
8648 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bzip2 ; \
a675b75a 8649 $(HOST_EXPORTS) \
f0fdfd34
PB
8650 echo Configuring in $(HOST_SUBDIR)/bzip2; \
8651 cd "$(HOST_SUBDIR)/bzip2" || exit 1; \
8ec98d6c 8652 case $(srcdir) in \
7fc2ca22
PB
8653 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8654 *) topdir=`echo $(HOST_SUBDIR)/bzip2/ | \
8655 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 8656 esac; \
7fc2ca22
PB
8657 srcdiroption="--srcdir=$${topdir}/bzip2"; \
8658 libsrcdir="$$s/bzip2"; \
8ec98d6c 8659 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
8660 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
8661 --target=${target_alias} $${srcdiroption} \
8ec98d6c 8662 || exit 1
a7e609d6 8663@endif bzip2
8ec98d6c 8664
f0fdfd34
PB
8665
8666
a8a96878
PB
8667
8668
8ec98d6c
NN
8669.PHONY: all-bzip2 maybe-all-bzip2
8670maybe-all-bzip2:
e1e5148c
CD
8671@if gcc-bootstrap
8672all-bzip2: stage_current
8673@endif gcc-bootstrap
a7e609d6 8674@if bzip2
5e6b1f07 8675TARGET-bzip2=all
a7e609d6 8676maybe-all-bzip2: all-bzip2
8ec98d6c 8677all-bzip2: configure-bzip2
15b527ca 8678 @: $(MAKE); $(unstage)
8ec98d6c
NN
8679 @r=`${PWD_COMMAND}`; export r; \
8680 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 8681 $(HOST_EXPORTS) \
7fc2ca22 8682 (cd $(HOST_SUBDIR)/bzip2 && \
6532abb6
PB
8683 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
8684 $(TARGET-bzip2))
a7e609d6 8685@endif bzip2
8ec98d6c 8686
f0fdfd34 8687
a8a96878
PB
8688
8689
8ec98d6c
NN
8690.PHONY: check-bzip2 maybe-check-bzip2
8691maybe-check-bzip2:
a7e609d6
PB
8692@if bzip2
8693maybe-check-bzip2: check-bzip2
8ec98d6c
NN
8694
8695check-bzip2:
15b527ca 8696 @: $(MAKE); $(unstage)
8ec98d6c
NN
8697 @r=`${PWD_COMMAND}`; export r; \
8698 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 8699 $(HOST_EXPORTS) \
7fc2ca22
PB
8700 (cd $(HOST_SUBDIR)/bzip2 && \
8701 $(MAKE) $(FLAGS_TO_PASS) check)
8ec98d6c 8702
a7e609d6 8703@endif bzip2
8ec98d6c
NN
8704
8705.PHONY: install-bzip2 maybe-install-bzip2
8706maybe-install-bzip2:
a7e609d6
PB
8707@if bzip2
8708maybe-install-bzip2: install-bzip2
8ec98d6c
NN
8709
8710install-bzip2: installdirs
15b527ca 8711 @: $(MAKE); $(unstage)
8ec98d6c
NN
8712 @r=`${PWD_COMMAND}`; export r; \
8713 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 8714 $(HOST_EXPORTS) \
7fc2ca22 8715 (cd $(HOST_SUBDIR)/bzip2 && \
93c60b6d 8716 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 8717
a7e609d6 8718@endif bzip2
8ec98d6c 8719
39bbbb69 8720# Other targets (info, dvi, pdf, etc.)
8ec98d6c
NN
8721
8722.PHONY: maybe-info-bzip2 info-bzip2
8723maybe-info-bzip2:
a7e609d6
PB
8724@if bzip2
8725maybe-info-bzip2: info-bzip2
8ec98d6c
NN
8726
8727info-bzip2: \
8728 configure-bzip2
15b527ca 8729 @: $(MAKE); $(unstage)
8ec98d6c 8730 @[ -f ./bzip2/Makefile ] || exit 0; \
5230d454
L
8731 r=`${PWD_COMMAND}`; export r; \
8732 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 8733 $(HOST_EXPORTS) \
d5eec917 8734 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
8735 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8736 done; \
8ec98d6c 8737 echo "Doing info in bzip2" ; \
7fc2ca22 8738 (cd $(HOST_SUBDIR)/bzip2 && \
657b58f4
NN
8739 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8740 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8741 "RANLIB=$${RANLIB}" \
bffcbe34 8742 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 8743 info) \
657b58f4
NN
8744 || exit 1
8745
a7e609d6 8746@endif bzip2
657b58f4 8747
8ec98d6c
NN
8748.PHONY: maybe-dvi-bzip2 dvi-bzip2
8749maybe-dvi-bzip2:
a7e609d6
PB
8750@if bzip2
8751maybe-dvi-bzip2: dvi-bzip2
657b58f4 8752
8ec98d6c
NN
8753dvi-bzip2: \
8754 configure-bzip2
15b527ca 8755 @: $(MAKE); $(unstage)
8ec98d6c 8756 @[ -f ./bzip2/Makefile ] || exit 0; \
5230d454
L
8757 r=`${PWD_COMMAND}`; export r; \
8758 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 8759 $(HOST_EXPORTS) \
d5eec917 8760 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
8761 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8762 done; \
8ec98d6c 8763 echo "Doing dvi in bzip2" ; \
7fc2ca22 8764 (cd $(HOST_SUBDIR)/bzip2 && \
657b58f4
NN
8765 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8766 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8767 "RANLIB=$${RANLIB}" \
bffcbe34 8768 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 8769 dvi) \
657b58f4
NN
8770 || exit 1
8771
a7e609d6 8772@endif bzip2
657b58f4 8773
39bbbb69
DD
8774.PHONY: maybe-pdf-bzip2 pdf-bzip2
8775maybe-pdf-bzip2:
8776@if bzip2
8777maybe-pdf-bzip2: pdf-bzip2
8778
8779pdf-bzip2: \
8780 configure-bzip2
8781 @: $(MAKE); $(unstage)
8782 @[ -f ./bzip2/Makefile ] || exit 0; \
8783 r=`${PWD_COMMAND}`; export r; \
8784 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8785 $(HOST_EXPORTS) \
8786 for flag in $(EXTRA_HOST_FLAGS) ; do \
8787 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8788 done; \
8789 echo "Doing pdf in bzip2" ; \
8790 (cd $(HOST_SUBDIR)/bzip2 && \
8791 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8792 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8793 "RANLIB=$${RANLIB}" \
bffcbe34 8794 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
8795 pdf) \
8796 || exit 1
8797
8798@endif bzip2
8799
b6fb961f
MS
8800.PHONY: maybe-html-bzip2 html-bzip2
8801maybe-html-bzip2:
8802@if bzip2
8803maybe-html-bzip2: html-bzip2
8804
8805html-bzip2: \
8806 configure-bzip2
15b527ca 8807 @: $(MAKE); $(unstage)
b6fb961f
MS
8808 @[ -f ./bzip2/Makefile ] || exit 0; \
8809 r=`${PWD_COMMAND}`; export r; \
8810 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
8811 $(HOST_EXPORTS) \
8812 for flag in $(EXTRA_HOST_FLAGS) ; do \
8813 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8814 done; \
8815 echo "Doing html in bzip2" ; \
7fc2ca22 8816 (cd $(HOST_SUBDIR)/bzip2 && \
b6fb961f
MS
8817 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8818 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8819 "RANLIB=$${RANLIB}" \
bffcbe34 8820 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
8821 html) \
8822 || exit 1
8823
8824@endif bzip2
8825
8ec98d6c
NN
8826.PHONY: maybe-TAGS-bzip2 TAGS-bzip2
8827maybe-TAGS-bzip2:
a7e609d6
PB
8828@if bzip2
8829maybe-TAGS-bzip2: TAGS-bzip2
657b58f4 8830
8ec98d6c
NN
8831TAGS-bzip2: \
8832 configure-bzip2
15b527ca 8833 @: $(MAKE); $(unstage)
8ec98d6c 8834 @[ -f ./bzip2/Makefile ] || exit 0; \
5230d454
L
8835 r=`${PWD_COMMAND}`; export r; \
8836 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 8837 $(HOST_EXPORTS) \
d5eec917 8838 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
8839 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8840 done; \
8ec98d6c 8841 echo "Doing TAGS in bzip2" ; \
7fc2ca22 8842 (cd $(HOST_SUBDIR)/bzip2 && \
657b58f4
NN
8843 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8844 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8845 "RANLIB=$${RANLIB}" \
bffcbe34 8846 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 8847 TAGS) \
657b58f4
NN
8848 || exit 1
8849
a7e609d6 8850@endif bzip2
657b58f4 8851
8ec98d6c
NN
8852.PHONY: maybe-install-info-bzip2 install-info-bzip2
8853maybe-install-info-bzip2:
a7e609d6
PB
8854@if bzip2
8855maybe-install-info-bzip2: install-info-bzip2
657b58f4 8856
8ec98d6c
NN
8857install-info-bzip2: \
8858 configure-bzip2 \
8859 info-bzip2
15b527ca 8860 @: $(MAKE); $(unstage)
8ec98d6c 8861 @[ -f ./bzip2/Makefile ] || exit 0; \
5230d454
L
8862 r=`${PWD_COMMAND}`; export r; \
8863 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 8864 $(HOST_EXPORTS) \
d5eec917 8865 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
8866 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8867 done; \
8ec98d6c 8868 echo "Doing install-info in bzip2" ; \
7fc2ca22 8869 (cd $(HOST_SUBDIR)/bzip2 && \
657b58f4
NN
8870 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8871 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8872 "RANLIB=$${RANLIB}" \
bffcbe34 8873 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 8874 install-info) \
657b58f4
NN
8875 || exit 1
8876
a7e609d6 8877@endif bzip2
657b58f4 8878
d4954b6d
DD
8879.PHONY: maybe-install-pdf-bzip2 install-pdf-bzip2
8880maybe-install-pdf-bzip2:
8881@if bzip2
8882maybe-install-pdf-bzip2: install-pdf-bzip2
8883
8884install-pdf-bzip2: \
8885 configure-bzip2 \
8886 pdf-bzip2
8887 @: $(MAKE); $(unstage)
8888 @[ -f ./bzip2/Makefile ] || exit 0; \
8889 r=`${PWD_COMMAND}`; export r; \
8890 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8891 $(HOST_EXPORTS) \
8892 for flag in $(EXTRA_HOST_FLAGS) ; do \
8893 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8894 done; \
8895 echo "Doing install-pdf in bzip2" ; \
8896 (cd $(HOST_SUBDIR)/bzip2 && \
8897 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8898 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8899 "RANLIB=$${RANLIB}" \
bffcbe34 8900 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
8901 install-pdf) \
8902 || exit 1
8903
8904@endif bzip2
8905
83c9add4
CD
8906.PHONY: maybe-install-html-bzip2 install-html-bzip2
8907maybe-install-html-bzip2:
8908@if bzip2
8909maybe-install-html-bzip2: install-html-bzip2
8910
8911install-html-bzip2: \
8912 configure-bzip2 \
8913 html-bzip2
8914 @: $(MAKE); $(unstage)
8915 @[ -f ./bzip2/Makefile ] || exit 0; \
8916 r=`${PWD_COMMAND}`; export r; \
8917 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8918 $(HOST_EXPORTS) \
8919 for flag in $(EXTRA_HOST_FLAGS) ; do \
8920 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8921 done; \
8922 echo "Doing install-html in bzip2" ; \
8923 (cd $(HOST_SUBDIR)/bzip2 && \
8924 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8925 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8926 "RANLIB=$${RANLIB}" \
bffcbe34 8927 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
8928 install-html) \
8929 || exit 1
8930
8931@endif bzip2
8932
8ec98d6c
NN
8933.PHONY: maybe-installcheck-bzip2 installcheck-bzip2
8934maybe-installcheck-bzip2:
a7e609d6
PB
8935@if bzip2
8936maybe-installcheck-bzip2: installcheck-bzip2
657b58f4 8937
8ec98d6c
NN
8938installcheck-bzip2: \
8939 configure-bzip2
15b527ca 8940 @: $(MAKE); $(unstage)
8ec98d6c 8941 @[ -f ./bzip2/Makefile ] || exit 0; \
5230d454
L
8942 r=`${PWD_COMMAND}`; export r; \
8943 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 8944 $(HOST_EXPORTS) \
d5eec917 8945 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
8946 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8947 done; \
8ec98d6c 8948 echo "Doing installcheck in bzip2" ; \
7fc2ca22 8949 (cd $(HOST_SUBDIR)/bzip2 && \
657b58f4
NN
8950 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8951 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8952 "RANLIB=$${RANLIB}" \
bffcbe34 8953 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 8954 installcheck) \
657b58f4
NN
8955 || exit 1
8956
a7e609d6 8957@endif bzip2
657b58f4 8958
8ec98d6c
NN
8959.PHONY: maybe-mostlyclean-bzip2 mostlyclean-bzip2
8960maybe-mostlyclean-bzip2:
a7e609d6
PB
8961@if bzip2
8962maybe-mostlyclean-bzip2: mostlyclean-bzip2
657b58f4 8963
8ec98d6c 8964mostlyclean-bzip2:
15b527ca 8965 @: $(MAKE); $(unstage)
8ec98d6c 8966 @[ -f ./bzip2/Makefile ] || exit 0; \
5230d454
L
8967 r=`${PWD_COMMAND}`; export r; \
8968 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 8969 $(HOST_EXPORTS) \
d5eec917 8970 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
8971 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8972 done; \
8ec98d6c 8973 echo "Doing mostlyclean in bzip2" ; \
7fc2ca22 8974 (cd $(HOST_SUBDIR)/bzip2 && \
657b58f4
NN
8975 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8976 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8977 "RANLIB=$${RANLIB}" \
bffcbe34 8978 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 8979 mostlyclean) \
657b58f4
NN
8980 || exit 1
8981
a7e609d6 8982@endif bzip2
657b58f4 8983
8ec98d6c
NN
8984.PHONY: maybe-clean-bzip2 clean-bzip2
8985maybe-clean-bzip2:
a7e609d6
PB
8986@if bzip2
8987maybe-clean-bzip2: clean-bzip2
657b58f4 8988
8ec98d6c 8989clean-bzip2:
15b527ca 8990 @: $(MAKE); $(unstage)
8ec98d6c 8991 @[ -f ./bzip2/Makefile ] || exit 0; \
5230d454
L
8992 r=`${PWD_COMMAND}`; export r; \
8993 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 8994 $(HOST_EXPORTS) \
d5eec917 8995 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
8996 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8997 done; \
8ec98d6c 8998 echo "Doing clean in bzip2" ; \
7fc2ca22 8999 (cd $(HOST_SUBDIR)/bzip2 && \
657b58f4
NN
9000 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9001 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9002 "RANLIB=$${RANLIB}" \
bffcbe34 9003 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 9004 clean) \
657b58f4
NN
9005 || exit 1
9006
a7e609d6 9007@endif bzip2
657b58f4 9008
8ec98d6c
NN
9009.PHONY: maybe-distclean-bzip2 distclean-bzip2
9010maybe-distclean-bzip2:
a7e609d6
PB
9011@if bzip2
9012maybe-distclean-bzip2: distclean-bzip2
657b58f4 9013
8ec98d6c 9014distclean-bzip2:
15b527ca 9015 @: $(MAKE); $(unstage)
8ec98d6c 9016 @[ -f ./bzip2/Makefile ] || exit 0; \
5230d454
L
9017 r=`${PWD_COMMAND}`; export r; \
9018 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 9019 $(HOST_EXPORTS) \
d5eec917 9020 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
9021 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9022 done; \
8ec98d6c 9023 echo "Doing distclean in bzip2" ; \
7fc2ca22 9024 (cd $(HOST_SUBDIR)/bzip2 && \
657b58f4
NN
9025 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9026 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9027 "RANLIB=$${RANLIB}" \
bffcbe34 9028 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 9029 distclean) \
657b58f4
NN
9030 || exit 1
9031
a7e609d6 9032@endif bzip2
657b58f4 9033
8ec98d6c
NN
9034.PHONY: maybe-maintainer-clean-bzip2 maintainer-clean-bzip2
9035maybe-maintainer-clean-bzip2:
a7e609d6
PB
9036@if bzip2
9037maybe-maintainer-clean-bzip2: maintainer-clean-bzip2
657b58f4 9038
8ec98d6c 9039maintainer-clean-bzip2:
15b527ca 9040 @: $(MAKE); $(unstage)
8ec98d6c 9041 @[ -f ./bzip2/Makefile ] || exit 0; \
5230d454
L
9042 r=`${PWD_COMMAND}`; export r; \
9043 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 9044 $(HOST_EXPORTS) \
d5eec917 9045 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
9046 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9047 done; \
8ec98d6c 9048 echo "Doing maintainer-clean in bzip2" ; \
7fc2ca22 9049 (cd $(HOST_SUBDIR)/bzip2 && \
657b58f4
NN
9050 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9051 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9052 "RANLIB=$${RANLIB}" \
bffcbe34 9053 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 9054 maintainer-clean) \
657b58f4
NN
9055 || exit 1
9056
a7e609d6 9057@endif bzip2
657b58f4 9058
657b58f4 9059
f0fdfd34 9060
8ec98d6c
NN
9061.PHONY: configure-dejagnu maybe-configure-dejagnu
9062maybe-configure-dejagnu:
e1e5148c
CD
9063@if gcc-bootstrap
9064configure-dejagnu: stage_current
9065@endif gcc-bootstrap
a7e609d6
PB
9066@if dejagnu
9067maybe-configure-dejagnu: configure-dejagnu
ec92c4d6 9068configure-dejagnu:
15b527ca 9069 @: $(MAKE); $(unstage)
ec92c4d6 9070 @r=`${PWD_COMMAND}`; export r; \
8ec98d6c 9071 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
9072 test ! -f $(HOST_SUBDIR)/dejagnu/Makefile || exit 0; \
9073 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/dejagnu ; \
a675b75a 9074 $(HOST_EXPORTS) \
f0fdfd34
PB
9075 echo Configuring in $(HOST_SUBDIR)/dejagnu; \
9076 cd "$(HOST_SUBDIR)/dejagnu" || exit 1; \
8ec98d6c 9077 case $(srcdir) in \
7fc2ca22
PB
9078 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9079 *) topdir=`echo $(HOST_SUBDIR)/dejagnu/ | \
9080 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 9081 esac; \
7fc2ca22
PB
9082 srcdiroption="--srcdir=$${topdir}/dejagnu"; \
9083 libsrcdir="$$s/dejagnu"; \
8ec98d6c 9084 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
9085 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
9086 --target=${target_alias} $${srcdiroption} \
8ec98d6c 9087 || exit 1
a7e609d6 9088@endif dejagnu
8ec98d6c 9089
f0fdfd34
PB
9090
9091
a8a96878
PB
9092
9093
8ec98d6c
NN
9094.PHONY: all-dejagnu maybe-all-dejagnu
9095maybe-all-dejagnu:
e1e5148c
CD
9096@if gcc-bootstrap
9097all-dejagnu: stage_current
9098@endif gcc-bootstrap
a7e609d6 9099@if dejagnu
5e6b1f07 9100TARGET-dejagnu=all
a7e609d6 9101maybe-all-dejagnu: all-dejagnu
8ec98d6c 9102all-dejagnu: configure-dejagnu
15b527ca 9103 @: $(MAKE); $(unstage)
8ec98d6c
NN
9104 @r=`${PWD_COMMAND}`; export r; \
9105 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 9106 $(HOST_EXPORTS) \
7fc2ca22 9107 (cd $(HOST_SUBDIR)/dejagnu && \
6532abb6
PB
9108 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
9109 $(TARGET-dejagnu))
a7e609d6 9110@endif dejagnu
8ec98d6c 9111
f0fdfd34 9112
a8a96878
PB
9113
9114
8ec98d6c
NN
9115.PHONY: check-dejagnu maybe-check-dejagnu
9116maybe-check-dejagnu:
a7e609d6
PB
9117@if dejagnu
9118maybe-check-dejagnu: check-dejagnu
8ec98d6c
NN
9119
9120check-dejagnu:
15b527ca 9121 @: $(MAKE); $(unstage)
8ec98d6c
NN
9122 @r=`${PWD_COMMAND}`; export r; \
9123 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 9124 $(HOST_EXPORTS) \
7fc2ca22
PB
9125 (cd $(HOST_SUBDIR)/dejagnu && \
9126 $(MAKE) $(FLAGS_TO_PASS) check)
8ec98d6c 9127
a7e609d6 9128@endif dejagnu
8ec98d6c
NN
9129
9130.PHONY: install-dejagnu maybe-install-dejagnu
9131maybe-install-dejagnu:
a7e609d6
PB
9132@if dejagnu
9133maybe-install-dejagnu: install-dejagnu
8ec98d6c
NN
9134
9135install-dejagnu: installdirs
15b527ca 9136 @: $(MAKE); $(unstage)
8ec98d6c
NN
9137 @r=`${PWD_COMMAND}`; export r; \
9138 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 9139 $(HOST_EXPORTS) \
7fc2ca22 9140 (cd $(HOST_SUBDIR)/dejagnu && \
93c60b6d 9141 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 9142
a7e609d6 9143@endif dejagnu
8ec98d6c 9144
39bbbb69 9145# Other targets (info, dvi, pdf, etc.)
8ec98d6c
NN
9146
9147.PHONY: maybe-info-dejagnu info-dejagnu
9148maybe-info-dejagnu:
a7e609d6
PB
9149@if dejagnu
9150maybe-info-dejagnu: info-dejagnu
8ec98d6c
NN
9151
9152info-dejagnu: \
9153 configure-dejagnu
15b527ca 9154 @: $(MAKE); $(unstage)
8ec98d6c 9155 @[ -f ./dejagnu/Makefile ] || exit 0; \
5230d454
L
9156 r=`${PWD_COMMAND}`; export r; \
9157 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 9158 $(HOST_EXPORTS) \
d5eec917 9159 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
9160 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9161 done; \
8ec98d6c 9162 echo "Doing info in dejagnu" ; \
7fc2ca22 9163 (cd $(HOST_SUBDIR)/dejagnu && \
657b58f4
NN
9164 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9165 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9166 "RANLIB=$${RANLIB}" \
bffcbe34 9167 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 9168 info) \
657b58f4
NN
9169 || exit 1
9170
a7e609d6 9171@endif dejagnu
657b58f4 9172
8ec98d6c
NN
9173.PHONY: maybe-dvi-dejagnu dvi-dejagnu
9174maybe-dvi-dejagnu:
a7e609d6
PB
9175@if dejagnu
9176maybe-dvi-dejagnu: dvi-dejagnu
657b58f4 9177
8ec98d6c
NN
9178dvi-dejagnu: \
9179 configure-dejagnu
15b527ca 9180 @: $(MAKE); $(unstage)
8ec98d6c 9181 @[ -f ./dejagnu/Makefile ] || exit 0; \
5230d454
L
9182 r=`${PWD_COMMAND}`; export r; \
9183 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 9184 $(HOST_EXPORTS) \
d5eec917 9185 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
9186 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9187 done; \
8ec98d6c 9188 echo "Doing dvi in dejagnu" ; \
7fc2ca22 9189 (cd $(HOST_SUBDIR)/dejagnu && \
657b58f4
NN
9190 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9191 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9192 "RANLIB=$${RANLIB}" \
bffcbe34 9193 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 9194 dvi) \
657b58f4
NN
9195 || exit 1
9196
a7e609d6 9197@endif dejagnu
657b58f4 9198
39bbbb69
DD
9199.PHONY: maybe-pdf-dejagnu pdf-dejagnu
9200maybe-pdf-dejagnu:
9201@if dejagnu
9202maybe-pdf-dejagnu: pdf-dejagnu
9203
9204pdf-dejagnu: \
9205 configure-dejagnu
9206 @: $(MAKE); $(unstage)
9207 @[ -f ./dejagnu/Makefile ] || exit 0; \
9208 r=`${PWD_COMMAND}`; export r; \
9209 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9210 $(HOST_EXPORTS) \
9211 for flag in $(EXTRA_HOST_FLAGS) ; do \
9212 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9213 done; \
9214 echo "Doing pdf in dejagnu" ; \
9215 (cd $(HOST_SUBDIR)/dejagnu && \
9216 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9217 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9218 "RANLIB=$${RANLIB}" \
bffcbe34 9219 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
9220 pdf) \
9221 || exit 1
9222
9223@endif dejagnu
9224
b6fb961f
MS
9225.PHONY: maybe-html-dejagnu html-dejagnu
9226maybe-html-dejagnu:
9227@if dejagnu
9228maybe-html-dejagnu: html-dejagnu
9229
9230html-dejagnu: \
9231 configure-dejagnu
15b527ca 9232 @: $(MAKE); $(unstage)
b6fb961f
MS
9233 @[ -f ./dejagnu/Makefile ] || exit 0; \
9234 r=`${PWD_COMMAND}`; export r; \
9235 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
9236 $(HOST_EXPORTS) \
9237 for flag in $(EXTRA_HOST_FLAGS) ; do \
9238 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9239 done; \
9240 echo "Doing html in dejagnu" ; \
7fc2ca22 9241 (cd $(HOST_SUBDIR)/dejagnu && \
b6fb961f
MS
9242 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9243 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9244 "RANLIB=$${RANLIB}" \
bffcbe34 9245 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
9246 html) \
9247 || exit 1
9248
9249@endif dejagnu
9250
8ec98d6c
NN
9251.PHONY: maybe-TAGS-dejagnu TAGS-dejagnu
9252maybe-TAGS-dejagnu:
a7e609d6
PB
9253@if dejagnu
9254maybe-TAGS-dejagnu: TAGS-dejagnu
657b58f4 9255
8ec98d6c
NN
9256TAGS-dejagnu: \
9257 configure-dejagnu
15b527ca 9258 @: $(MAKE); $(unstage)
8ec98d6c 9259 @[ -f ./dejagnu/Makefile ] || exit 0; \
5230d454
L
9260 r=`${PWD_COMMAND}`; export r; \
9261 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 9262 $(HOST_EXPORTS) \
d5eec917 9263 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
9264 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9265 done; \
8ec98d6c 9266 echo "Doing TAGS in dejagnu" ; \
7fc2ca22 9267 (cd $(HOST_SUBDIR)/dejagnu && \
657b58f4
NN
9268 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9269 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9270 "RANLIB=$${RANLIB}" \
bffcbe34 9271 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 9272 TAGS) \
657b58f4
NN
9273 || exit 1
9274
a7e609d6 9275@endif dejagnu
657b58f4 9276
8ec98d6c
NN
9277.PHONY: maybe-install-info-dejagnu install-info-dejagnu
9278maybe-install-info-dejagnu:
a7e609d6
PB
9279@if dejagnu
9280maybe-install-info-dejagnu: install-info-dejagnu
657b58f4 9281
8ec98d6c
NN
9282install-info-dejagnu: \
9283 configure-dejagnu \
9284 info-dejagnu
15b527ca 9285 @: $(MAKE); $(unstage)
8ec98d6c 9286 @[ -f ./dejagnu/Makefile ] || exit 0; \
5230d454
L
9287 r=`${PWD_COMMAND}`; export r; \
9288 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 9289 $(HOST_EXPORTS) \
d5eec917 9290 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
9291 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9292 done; \
8ec98d6c 9293 echo "Doing install-info in dejagnu" ; \
7fc2ca22 9294 (cd $(HOST_SUBDIR)/dejagnu && \
657b58f4
NN
9295 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9296 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9297 "RANLIB=$${RANLIB}" \
bffcbe34 9298 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 9299 install-info) \
657b58f4
NN
9300 || exit 1
9301
a7e609d6 9302@endif dejagnu
657b58f4 9303
d4954b6d
DD
9304.PHONY: maybe-install-pdf-dejagnu install-pdf-dejagnu
9305maybe-install-pdf-dejagnu:
9306@if dejagnu
9307maybe-install-pdf-dejagnu: install-pdf-dejagnu
9308
9309install-pdf-dejagnu: \
9310 configure-dejagnu \
9311 pdf-dejagnu
9312 @: $(MAKE); $(unstage)
9313 @[ -f ./dejagnu/Makefile ] || exit 0; \
9314 r=`${PWD_COMMAND}`; export r; \
9315 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9316 $(HOST_EXPORTS) \
9317 for flag in $(EXTRA_HOST_FLAGS) ; do \
9318 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9319 done; \
9320 echo "Doing install-pdf in dejagnu" ; \
9321 (cd $(HOST_SUBDIR)/dejagnu && \
9322 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9323 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9324 "RANLIB=$${RANLIB}" \
bffcbe34 9325 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
9326 install-pdf) \
9327 || exit 1
9328
9329@endif dejagnu
9330
83c9add4
CD
9331.PHONY: maybe-install-html-dejagnu install-html-dejagnu
9332maybe-install-html-dejagnu:
9333@if dejagnu
9334maybe-install-html-dejagnu: install-html-dejagnu
9335
9336install-html-dejagnu: \
9337 configure-dejagnu \
9338 html-dejagnu
9339 @: $(MAKE); $(unstage)
9340 @[ -f ./dejagnu/Makefile ] || exit 0; \
9341 r=`${PWD_COMMAND}`; export r; \
9342 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9343 $(HOST_EXPORTS) \
9344 for flag in $(EXTRA_HOST_FLAGS) ; do \
9345 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9346 done; \
9347 echo "Doing install-html in dejagnu" ; \
9348 (cd $(HOST_SUBDIR)/dejagnu && \
9349 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9350 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9351 "RANLIB=$${RANLIB}" \
bffcbe34 9352 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
9353 install-html) \
9354 || exit 1
9355
9356@endif dejagnu
9357
8ec98d6c
NN
9358.PHONY: maybe-installcheck-dejagnu installcheck-dejagnu
9359maybe-installcheck-dejagnu:
a7e609d6
PB
9360@if dejagnu
9361maybe-installcheck-dejagnu: installcheck-dejagnu
657b58f4 9362
8ec98d6c
NN
9363installcheck-dejagnu: \
9364 configure-dejagnu
15b527ca 9365 @: $(MAKE); $(unstage)
8ec98d6c 9366 @[ -f ./dejagnu/Makefile ] || exit 0; \
5230d454
L
9367 r=`${PWD_COMMAND}`; export r; \
9368 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 9369 $(HOST_EXPORTS) \
d5eec917 9370 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
9371 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9372 done; \
8ec98d6c 9373 echo "Doing installcheck in dejagnu" ; \
7fc2ca22 9374 (cd $(HOST_SUBDIR)/dejagnu && \
657b58f4
NN
9375 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9376 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9377 "RANLIB=$${RANLIB}" \
bffcbe34 9378 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 9379 installcheck) \
657b58f4
NN
9380 || exit 1
9381
a7e609d6 9382@endif dejagnu
657b58f4 9383
8ec98d6c
NN
9384.PHONY: maybe-mostlyclean-dejagnu mostlyclean-dejagnu
9385maybe-mostlyclean-dejagnu:
a7e609d6
PB
9386@if dejagnu
9387maybe-mostlyclean-dejagnu: mostlyclean-dejagnu
657b58f4 9388
8ec98d6c 9389mostlyclean-dejagnu:
15b527ca 9390 @: $(MAKE); $(unstage)
8ec98d6c 9391 @[ -f ./dejagnu/Makefile ] || exit 0; \
5230d454
L
9392 r=`${PWD_COMMAND}`; export r; \
9393 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 9394 $(HOST_EXPORTS) \
d5eec917 9395 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
9396 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9397 done; \
8ec98d6c 9398 echo "Doing mostlyclean in dejagnu" ; \
7fc2ca22 9399 (cd $(HOST_SUBDIR)/dejagnu && \
657b58f4
NN
9400 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9401 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9402 "RANLIB=$${RANLIB}" \
bffcbe34 9403 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 9404 mostlyclean) \
657b58f4
NN
9405 || exit 1
9406
a7e609d6 9407@endif dejagnu
657b58f4 9408
8ec98d6c
NN
9409.PHONY: maybe-clean-dejagnu clean-dejagnu
9410maybe-clean-dejagnu:
a7e609d6
PB
9411@if dejagnu
9412maybe-clean-dejagnu: clean-dejagnu
657b58f4 9413
8ec98d6c 9414clean-dejagnu:
15b527ca 9415 @: $(MAKE); $(unstage)
8ec98d6c 9416 @[ -f ./dejagnu/Makefile ] || exit 0; \
5230d454
L
9417 r=`${PWD_COMMAND}`; export r; \
9418 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 9419 $(HOST_EXPORTS) \
d5eec917 9420 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
9421 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9422 done; \
8ec98d6c 9423 echo "Doing clean in dejagnu" ; \
7fc2ca22 9424 (cd $(HOST_SUBDIR)/dejagnu && \
657b58f4
NN
9425 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9426 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9427 "RANLIB=$${RANLIB}" \
bffcbe34 9428 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 9429 clean) \
657b58f4
NN
9430 || exit 1
9431
a7e609d6 9432@endif dejagnu
657b58f4 9433
8ec98d6c
NN
9434.PHONY: maybe-distclean-dejagnu distclean-dejagnu
9435maybe-distclean-dejagnu:
a7e609d6
PB
9436@if dejagnu
9437maybe-distclean-dejagnu: distclean-dejagnu
657b58f4 9438
8ec98d6c 9439distclean-dejagnu:
15b527ca 9440 @: $(MAKE); $(unstage)
8ec98d6c 9441 @[ -f ./dejagnu/Makefile ] || exit 0; \
5230d454
L
9442 r=`${PWD_COMMAND}`; export r; \
9443 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 9444 $(HOST_EXPORTS) \
d5eec917 9445 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
9446 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9447 done; \
8ec98d6c 9448 echo "Doing distclean in dejagnu" ; \
7fc2ca22 9449 (cd $(HOST_SUBDIR)/dejagnu && \
657b58f4
NN
9450 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9451 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9452 "RANLIB=$${RANLIB}" \
bffcbe34 9453 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 9454 distclean) \
657b58f4
NN
9455 || exit 1
9456
a7e609d6 9457@endif dejagnu
657b58f4 9458
8ec98d6c
NN
9459.PHONY: maybe-maintainer-clean-dejagnu maintainer-clean-dejagnu
9460maybe-maintainer-clean-dejagnu:
a7e609d6
PB
9461@if dejagnu
9462maybe-maintainer-clean-dejagnu: maintainer-clean-dejagnu
657b58f4 9463
8ec98d6c 9464maintainer-clean-dejagnu:
15b527ca 9465 @: $(MAKE); $(unstage)
8ec98d6c 9466 @[ -f ./dejagnu/Makefile ] || exit 0; \
5230d454
L
9467 r=`${PWD_COMMAND}`; export r; \
9468 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 9469 $(HOST_EXPORTS) \
d5eec917 9470 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
9471 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9472 done; \
8ec98d6c 9473 echo "Doing maintainer-clean in dejagnu" ; \
7fc2ca22 9474 (cd $(HOST_SUBDIR)/dejagnu && \
657b58f4
NN
9475 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9476 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9477 "RANLIB=$${RANLIB}" \
bffcbe34 9478 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 9479 maintainer-clean) \
8ec98d6c
NN
9480 || exit 1
9481
a7e609d6 9482@endif dejagnu
8ec98d6c
NN
9483
9484
f0fdfd34 9485
8ec98d6c
NN
9486.PHONY: configure-diff maybe-configure-diff
9487maybe-configure-diff:
e1e5148c
CD
9488@if gcc-bootstrap
9489configure-diff: stage_current
9490@endif gcc-bootstrap
a7e609d6
PB
9491@if diff
9492maybe-configure-diff: configure-diff
ec92c4d6 9493configure-diff:
15b527ca 9494 @: $(MAKE); $(unstage)
ec92c4d6 9495 @r=`${PWD_COMMAND}`; export r; \
8ec98d6c 9496 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
9497 test ! -f $(HOST_SUBDIR)/diff/Makefile || exit 0; \
9498 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/diff ; \
a675b75a 9499 $(HOST_EXPORTS) \
f0fdfd34
PB
9500 echo Configuring in $(HOST_SUBDIR)/diff; \
9501 cd "$(HOST_SUBDIR)/diff" || exit 1; \
8ec98d6c 9502 case $(srcdir) in \
7fc2ca22
PB
9503 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9504 *) topdir=`echo $(HOST_SUBDIR)/diff/ | \
9505 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 9506 esac; \
7fc2ca22
PB
9507 srcdiroption="--srcdir=$${topdir}/diff"; \
9508 libsrcdir="$$s/diff"; \
8ec98d6c 9509 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
9510 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
9511 --target=${target_alias} $${srcdiroption} \
657b58f4 9512 || exit 1
a7e609d6 9513@endif diff
657b58f4 9514
f0fdfd34
PB
9515
9516
a8a96878
PB
9517
9518
8ec98d6c
NN
9519.PHONY: all-diff maybe-all-diff
9520maybe-all-diff:
e1e5148c
CD
9521@if gcc-bootstrap
9522all-diff: stage_current
9523@endif gcc-bootstrap
a7e609d6 9524@if diff
5e6b1f07 9525TARGET-diff=all
a7e609d6 9526maybe-all-diff: all-diff
8ec98d6c 9527all-diff: configure-diff
15b527ca 9528 @: $(MAKE); $(unstage)
8ec98d6c
NN
9529 @r=`${PWD_COMMAND}`; export r; \
9530 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 9531 $(HOST_EXPORTS) \
7fc2ca22 9532 (cd $(HOST_SUBDIR)/diff && \
6532abb6
PB
9533 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
9534 $(TARGET-diff))
a7e609d6 9535@endif diff
657b58f4 9536
f0fdfd34 9537
a8a96878
PB
9538
9539
8ec98d6c
NN
9540.PHONY: check-diff maybe-check-diff
9541maybe-check-diff:
a7e609d6
PB
9542@if diff
9543maybe-check-diff: check-diff
657b58f4 9544
8ec98d6c 9545check-diff:
15b527ca 9546 @: $(MAKE); $(unstage)
8ec98d6c 9547 @r=`${PWD_COMMAND}`; export r; \
5230d454 9548 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 9549 $(HOST_EXPORTS) \
7fc2ca22
PB
9550 (cd $(HOST_SUBDIR)/diff && \
9551 $(MAKE) $(FLAGS_TO_PASS) check)
657b58f4 9552
a7e609d6 9553@endif diff
657b58f4 9554
8ec98d6c
NN
9555.PHONY: install-diff maybe-install-diff
9556maybe-install-diff:
a7e609d6
PB
9557@if diff
9558maybe-install-diff: install-diff
657b58f4 9559
8ec98d6c 9560install-diff: installdirs
15b527ca 9561 @: $(MAKE); $(unstage)
8ec98d6c 9562 @r=`${PWD_COMMAND}`; export r; \
5230d454 9563 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 9564 $(HOST_EXPORTS) \
7fc2ca22 9565 (cd $(HOST_SUBDIR)/diff && \
93c60b6d 9566 $(MAKE) $(FLAGS_TO_PASS) install)
657b58f4 9567
a7e609d6 9568@endif diff
657b58f4 9569
39bbbb69 9570# Other targets (info, dvi, pdf, etc.)
657b58f4 9571
8ec98d6c
NN
9572.PHONY: maybe-info-diff info-diff
9573maybe-info-diff:
a7e609d6
PB
9574@if diff
9575maybe-info-diff: info-diff
657b58f4 9576
8ec98d6c
NN
9577info-diff: \
9578 configure-diff
15b527ca 9579 @: $(MAKE); $(unstage)
8ec98d6c 9580 @[ -f ./diff/Makefile ] || exit 0; \
5230d454
L
9581 r=`${PWD_COMMAND}`; export r; \
9582 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 9583 $(HOST_EXPORTS) \
d5eec917 9584 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
9585 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9586 done; \
8ec98d6c 9587 echo "Doing info in diff" ; \
7fc2ca22 9588 (cd $(HOST_SUBDIR)/diff && \
657b58f4
NN
9589 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9590 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9591 "RANLIB=$${RANLIB}" \
bffcbe34 9592 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 9593 info) \
657b58f4
NN
9594 || exit 1
9595
a7e609d6 9596@endif diff
657b58f4 9597
8ec98d6c
NN
9598.PHONY: maybe-dvi-diff dvi-diff
9599maybe-dvi-diff:
a7e609d6
PB
9600@if diff
9601maybe-dvi-diff: dvi-diff
657b58f4 9602
8ec98d6c
NN
9603dvi-diff: \
9604 configure-diff
15b527ca 9605 @: $(MAKE); $(unstage)
8ec98d6c 9606 @[ -f ./diff/Makefile ] || exit 0; \
5230d454
L
9607 r=`${PWD_COMMAND}`; export r; \
9608 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 9609 $(HOST_EXPORTS) \
d5eec917 9610 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
9611 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9612 done; \
8ec98d6c 9613 echo "Doing dvi in diff" ; \
7fc2ca22 9614 (cd $(HOST_SUBDIR)/diff && \
657b58f4
NN
9615 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9616 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9617 "RANLIB=$${RANLIB}" \
bffcbe34 9618 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 9619 dvi) \
657b58f4
NN
9620 || exit 1
9621
a7e609d6 9622@endif diff
657b58f4 9623
39bbbb69
DD
9624.PHONY: maybe-pdf-diff pdf-diff
9625maybe-pdf-diff:
9626@if diff
9627maybe-pdf-diff: pdf-diff
9628
9629pdf-diff: \
9630 configure-diff
9631 @: $(MAKE); $(unstage)
9632 @[ -f ./diff/Makefile ] || exit 0; \
9633 r=`${PWD_COMMAND}`; export r; \
9634 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9635 $(HOST_EXPORTS) \
9636 for flag in $(EXTRA_HOST_FLAGS) ; do \
9637 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9638 done; \
9639 echo "Doing pdf in diff" ; \
9640 (cd $(HOST_SUBDIR)/diff && \
9641 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9642 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9643 "RANLIB=$${RANLIB}" \
bffcbe34 9644 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
9645 pdf) \
9646 || exit 1
9647
9648@endif diff
9649
b6fb961f
MS
9650.PHONY: maybe-html-diff html-diff
9651maybe-html-diff:
9652@if diff
9653maybe-html-diff: html-diff
9654
9655html-diff: \
9656 configure-diff
15b527ca 9657 @: $(MAKE); $(unstage)
b6fb961f
MS
9658 @[ -f ./diff/Makefile ] || exit 0; \
9659 r=`${PWD_COMMAND}`; export r; \
9660 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
9661 $(HOST_EXPORTS) \
9662 for flag in $(EXTRA_HOST_FLAGS) ; do \
9663 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9664 done; \
9665 echo "Doing html in diff" ; \
7fc2ca22 9666 (cd $(HOST_SUBDIR)/diff && \
b6fb961f
MS
9667 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9668 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9669 "RANLIB=$${RANLIB}" \
bffcbe34 9670 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
9671 html) \
9672 || exit 1
9673
9674@endif diff
9675
8ec98d6c
NN
9676.PHONY: maybe-TAGS-diff TAGS-diff
9677maybe-TAGS-diff:
a7e609d6
PB
9678@if diff
9679maybe-TAGS-diff: TAGS-diff
657b58f4 9680
8ec98d6c
NN
9681TAGS-diff: \
9682 configure-diff
15b527ca 9683 @: $(MAKE); $(unstage)
8ec98d6c 9684 @[ -f ./diff/Makefile ] || exit 0; \
5230d454
L
9685 r=`${PWD_COMMAND}`; export r; \
9686 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 9687 $(HOST_EXPORTS) \
d5eec917 9688 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
9689 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9690 done; \
8ec98d6c 9691 echo "Doing TAGS in diff" ; \
7fc2ca22 9692 (cd $(HOST_SUBDIR)/diff && \
657b58f4
NN
9693 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9694 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9695 "RANLIB=$${RANLIB}" \
bffcbe34 9696 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 9697 TAGS) \
657b58f4
NN
9698 || exit 1
9699
a7e609d6 9700@endif diff
657b58f4 9701
8ec98d6c
NN
9702.PHONY: maybe-install-info-diff install-info-diff
9703maybe-install-info-diff:
a7e609d6
PB
9704@if diff
9705maybe-install-info-diff: install-info-diff
657b58f4 9706
8ec98d6c
NN
9707install-info-diff: \
9708 configure-diff \
9709 info-diff
15b527ca 9710 @: $(MAKE); $(unstage)
8ec98d6c 9711 @[ -f ./diff/Makefile ] || exit 0; \
5230d454
L
9712 r=`${PWD_COMMAND}`; export r; \
9713 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 9714 $(HOST_EXPORTS) \
d5eec917 9715 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
9716 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9717 done; \
8ec98d6c 9718 echo "Doing install-info in diff" ; \
7fc2ca22 9719 (cd $(HOST_SUBDIR)/diff && \
657b58f4
NN
9720 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9721 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9722 "RANLIB=$${RANLIB}" \
bffcbe34 9723 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 9724 install-info) \
657b58f4
NN
9725 || exit 1
9726
a7e609d6 9727@endif diff
657b58f4 9728
d4954b6d
DD
9729.PHONY: maybe-install-pdf-diff install-pdf-diff
9730maybe-install-pdf-diff:
9731@if diff
9732maybe-install-pdf-diff: install-pdf-diff
9733
9734install-pdf-diff: \
9735 configure-diff \
9736 pdf-diff
9737 @: $(MAKE); $(unstage)
9738 @[ -f ./diff/Makefile ] || exit 0; \
9739 r=`${PWD_COMMAND}`; export r; \
9740 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9741 $(HOST_EXPORTS) \
9742 for flag in $(EXTRA_HOST_FLAGS) ; do \
9743 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9744 done; \
9745 echo "Doing install-pdf in diff" ; \
9746 (cd $(HOST_SUBDIR)/diff && \
9747 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9748 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9749 "RANLIB=$${RANLIB}" \
bffcbe34 9750 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
9751 install-pdf) \
9752 || exit 1
9753
9754@endif diff
9755
83c9add4
CD
9756.PHONY: maybe-install-html-diff install-html-diff
9757maybe-install-html-diff:
9758@if diff
9759maybe-install-html-diff: install-html-diff
9760
9761install-html-diff: \
9762 configure-diff \
9763 html-diff
9764 @: $(MAKE); $(unstage)
9765 @[ -f ./diff/Makefile ] || exit 0; \
9766 r=`${PWD_COMMAND}`; export r; \
9767 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9768 $(HOST_EXPORTS) \
9769 for flag in $(EXTRA_HOST_FLAGS) ; do \
9770 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9771 done; \
9772 echo "Doing install-html in diff" ; \
9773 (cd $(HOST_SUBDIR)/diff && \
9774 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9775 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9776 "RANLIB=$${RANLIB}" \
bffcbe34 9777 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
9778 install-html) \
9779 || exit 1
9780
9781@endif diff
9782
8ec98d6c
NN
9783.PHONY: maybe-installcheck-diff installcheck-diff
9784maybe-installcheck-diff:
a7e609d6
PB
9785@if diff
9786maybe-installcheck-diff: installcheck-diff
657b58f4 9787
8ec98d6c
NN
9788installcheck-diff: \
9789 configure-diff
15b527ca 9790 @: $(MAKE); $(unstage)
8ec98d6c 9791 @[ -f ./diff/Makefile ] || exit 0; \
5230d454
L
9792 r=`${PWD_COMMAND}`; export r; \
9793 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 9794 $(HOST_EXPORTS) \
d5eec917 9795 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
9796 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9797 done; \
8ec98d6c 9798 echo "Doing installcheck in diff" ; \
7fc2ca22 9799 (cd $(HOST_SUBDIR)/diff && \
657b58f4
NN
9800 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9801 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9802 "RANLIB=$${RANLIB}" \
bffcbe34 9803 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 9804 installcheck) \
657b58f4
NN
9805 || exit 1
9806
a7e609d6 9807@endif diff
657b58f4 9808
8ec98d6c
NN
9809.PHONY: maybe-mostlyclean-diff mostlyclean-diff
9810maybe-mostlyclean-diff:
a7e609d6
PB
9811@if diff
9812maybe-mostlyclean-diff: mostlyclean-diff
657b58f4 9813
8ec98d6c 9814mostlyclean-diff:
15b527ca 9815 @: $(MAKE); $(unstage)
8ec98d6c 9816 @[ -f ./diff/Makefile ] || exit 0; \
5230d454
L
9817 r=`${PWD_COMMAND}`; export r; \
9818 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 9819 $(HOST_EXPORTS) \
d5eec917 9820 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
9821 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9822 done; \
8ec98d6c 9823 echo "Doing mostlyclean in diff" ; \
7fc2ca22 9824 (cd $(HOST_SUBDIR)/diff && \
657b58f4
NN
9825 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9826 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9827 "RANLIB=$${RANLIB}" \
bffcbe34 9828 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 9829 mostlyclean) \
657b58f4
NN
9830 || exit 1
9831
a7e609d6 9832@endif diff
657b58f4 9833
8ec98d6c
NN
9834.PHONY: maybe-clean-diff clean-diff
9835maybe-clean-diff:
a7e609d6
PB
9836@if diff
9837maybe-clean-diff: clean-diff
657b58f4 9838
8ec98d6c 9839clean-diff:
15b527ca 9840 @: $(MAKE); $(unstage)
8ec98d6c 9841 @[ -f ./diff/Makefile ] || exit 0; \
5230d454
L
9842 r=`${PWD_COMMAND}`; export r; \
9843 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 9844 $(HOST_EXPORTS) \
d5eec917 9845 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
9846 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9847 done; \
8ec98d6c 9848 echo "Doing clean in diff" ; \
7fc2ca22 9849 (cd $(HOST_SUBDIR)/diff && \
657b58f4
NN
9850 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9851 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9852 "RANLIB=$${RANLIB}" \
bffcbe34 9853 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 9854 clean) \
657b58f4
NN
9855 || exit 1
9856
a7e609d6 9857@endif diff
657b58f4 9858
8ec98d6c
NN
9859.PHONY: maybe-distclean-diff distclean-diff
9860maybe-distclean-diff:
a7e609d6
PB
9861@if diff
9862maybe-distclean-diff: distclean-diff
657b58f4 9863
8ec98d6c 9864distclean-diff:
15b527ca 9865 @: $(MAKE); $(unstage)
8ec98d6c 9866 @[ -f ./diff/Makefile ] || exit 0; \
5230d454
L
9867 r=`${PWD_COMMAND}`; export r; \
9868 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 9869 $(HOST_EXPORTS) \
d5eec917 9870 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
9871 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9872 done; \
8ec98d6c 9873 echo "Doing distclean in diff" ; \
7fc2ca22 9874 (cd $(HOST_SUBDIR)/diff && \
657b58f4
NN
9875 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9876 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9877 "RANLIB=$${RANLIB}" \
bffcbe34 9878 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 9879 distclean) \
657b58f4
NN
9880 || exit 1
9881
a7e609d6 9882@endif diff
657b58f4 9883
8ec98d6c
NN
9884.PHONY: maybe-maintainer-clean-diff maintainer-clean-diff
9885maybe-maintainer-clean-diff:
a7e609d6
PB
9886@if diff
9887maybe-maintainer-clean-diff: maintainer-clean-diff
657b58f4 9888
8ec98d6c 9889maintainer-clean-diff:
15b527ca 9890 @: $(MAKE); $(unstage)
8ec98d6c 9891 @[ -f ./diff/Makefile ] || exit 0; \
5230d454
L
9892 r=`${PWD_COMMAND}`; export r; \
9893 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 9894 $(HOST_EXPORTS) \
d5eec917 9895 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
9896 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9897 done; \
8ec98d6c 9898 echo "Doing maintainer-clean in diff" ; \
7fc2ca22 9899 (cd $(HOST_SUBDIR)/diff && \
657b58f4
NN
9900 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9901 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9902 "RANLIB=$${RANLIB}" \
bffcbe34 9903 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 9904 maintainer-clean) \
657b58f4
NN
9905 || exit 1
9906
a7e609d6 9907@endif diff
657b58f4 9908
657b58f4 9909
f0fdfd34 9910
8ec98d6c
NN
9911.PHONY: configure-dosutils maybe-configure-dosutils
9912maybe-configure-dosutils:
e1e5148c
CD
9913@if gcc-bootstrap
9914configure-dosutils: stage_current
9915@endif gcc-bootstrap
a7e609d6
PB
9916@if dosutils
9917maybe-configure-dosutils: configure-dosutils
ec92c4d6 9918configure-dosutils:
15b527ca 9919 @: $(MAKE); $(unstage)
ec92c4d6 9920 @r=`${PWD_COMMAND}`; export r; \
5230d454 9921 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
9922 test ! -f $(HOST_SUBDIR)/dosutils/Makefile || exit 0; \
9923 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/dosutils ; \
a675b75a 9924 $(HOST_EXPORTS) \
f0fdfd34
PB
9925 echo Configuring in $(HOST_SUBDIR)/dosutils; \
9926 cd "$(HOST_SUBDIR)/dosutils" || exit 1; \
8ec98d6c 9927 case $(srcdir) in \
7fc2ca22
PB
9928 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9929 *) topdir=`echo $(HOST_SUBDIR)/dosutils/ | \
9930 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 9931 esac; \
7fc2ca22
PB
9932 srcdiroption="--srcdir=$${topdir}/dosutils"; \
9933 libsrcdir="$$s/dosutils"; \
8ec98d6c 9934 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
9935 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
9936 --target=${target_alias} $${srcdiroption} \
8ec98d6c 9937 || exit 1
a7e609d6 9938@endif dosutils
8ec98d6c 9939
f0fdfd34
PB
9940
9941
a8a96878
PB
9942
9943
8ec98d6c
NN
9944.PHONY: all-dosutils maybe-all-dosutils
9945maybe-all-dosutils:
e1e5148c
CD
9946@if gcc-bootstrap
9947all-dosutils: stage_current
9948@endif gcc-bootstrap
a7e609d6 9949@if dosutils
5e6b1f07 9950TARGET-dosutils=all
a7e609d6 9951maybe-all-dosutils: all-dosutils
8ec98d6c 9952all-dosutils: configure-dosutils
15b527ca 9953 @: $(MAKE); $(unstage)
8ec98d6c
NN
9954 @r=`${PWD_COMMAND}`; export r; \
9955 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 9956 $(HOST_EXPORTS) \
7fc2ca22 9957 (cd $(HOST_SUBDIR)/dosutils && \
6532abb6
PB
9958 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
9959 $(TARGET-dosutils))
a7e609d6 9960@endif dosutils
8ec98d6c 9961
f0fdfd34 9962
a8a96878
PB
9963
9964
8ec98d6c
NN
9965.PHONY: check-dosutils maybe-check-dosutils
9966maybe-check-dosutils:
a7e609d6
PB
9967@if dosutils
9968maybe-check-dosutils: check-dosutils
657b58f4 9969
8ec98d6c 9970check-dosutils:
657b58f4 9971
a7e609d6 9972@endif dosutils
657b58f4 9973
8ec98d6c
NN
9974.PHONY: install-dosutils maybe-install-dosutils
9975maybe-install-dosutils:
a7e609d6
PB
9976@if dosutils
9977maybe-install-dosutils: install-dosutils
8ec98d6c
NN
9978
9979install-dosutils: installdirs
15b527ca 9980 @: $(MAKE); $(unstage)
8ec98d6c 9981 @r=`${PWD_COMMAND}`; export r; \
5230d454 9982 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 9983 $(HOST_EXPORTS) \
7fc2ca22 9984 (cd $(HOST_SUBDIR)/dosutils && \
93c60b6d 9985 $(MAKE) $(FLAGS_TO_PASS) install)
657b58f4 9986
a7e609d6 9987@endif dosutils
657b58f4 9988
39bbbb69 9989# Other targets (info, dvi, pdf, etc.)
657b58f4 9990
8ec98d6c
NN
9991.PHONY: maybe-info-dosutils info-dosutils
9992maybe-info-dosutils:
a7e609d6
PB
9993@if dosutils
9994maybe-info-dosutils: info-dosutils
8ec98d6c
NN
9995
9996info-dosutils: \
9997 configure-dosutils
15b527ca 9998 @: $(MAKE); $(unstage)
8ec98d6c 9999 @[ -f ./dosutils/Makefile ] || exit 0; \
5230d454
L
10000 r=`${PWD_COMMAND}`; export r; \
10001 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 10002 $(HOST_EXPORTS) \
d5eec917 10003 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
10004 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10005 done; \
8ec98d6c 10006 echo "Doing info in dosutils" ; \
7fc2ca22 10007 (cd $(HOST_SUBDIR)/dosutils && \
657b58f4
NN
10008 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10009 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10010 "RANLIB=$${RANLIB}" \
bffcbe34 10011 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 10012 info) \
657b58f4
NN
10013 || exit 1
10014
a7e609d6 10015@endif dosutils
657b58f4 10016
8ec98d6c
NN
10017.PHONY: maybe-dvi-dosutils dvi-dosutils
10018maybe-dvi-dosutils:
a7e609d6
PB
10019@if dosutils
10020maybe-dvi-dosutils: dvi-dosutils
657b58f4 10021
8ec98d6c
NN
10022dvi-dosutils: \
10023 configure-dosutils
15b527ca 10024 @: $(MAKE); $(unstage)
8ec98d6c 10025 @[ -f ./dosutils/Makefile ] || exit 0; \
5230d454
L
10026 r=`${PWD_COMMAND}`; export r; \
10027 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 10028 $(HOST_EXPORTS) \
d5eec917 10029 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
10030 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10031 done; \
8ec98d6c 10032 echo "Doing dvi in dosutils" ; \
7fc2ca22 10033 (cd $(HOST_SUBDIR)/dosutils && \
657b58f4
NN
10034 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10035 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10036 "RANLIB=$${RANLIB}" \
bffcbe34 10037 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 10038 dvi) \
657b58f4
NN
10039 || exit 1
10040
a7e609d6 10041@endif dosutils
657b58f4 10042
39bbbb69
DD
10043.PHONY: maybe-pdf-dosutils pdf-dosutils
10044maybe-pdf-dosutils:
10045@if dosutils
10046maybe-pdf-dosutils: pdf-dosutils
10047
10048pdf-dosutils: \
10049 configure-dosutils
10050 @: $(MAKE); $(unstage)
10051 @[ -f ./dosutils/Makefile ] || exit 0; \
10052 r=`${PWD_COMMAND}`; export r; \
10053 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10054 $(HOST_EXPORTS) \
10055 for flag in $(EXTRA_HOST_FLAGS) ; do \
10056 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10057 done; \
10058 echo "Doing pdf in dosutils" ; \
10059 (cd $(HOST_SUBDIR)/dosutils && \
10060 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10061 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10062 "RANLIB=$${RANLIB}" \
bffcbe34 10063 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
10064 pdf) \
10065 || exit 1
10066
10067@endif dosutils
10068
b6fb961f
MS
10069.PHONY: maybe-html-dosutils html-dosutils
10070maybe-html-dosutils:
a7e609d6 10071@if dosutils
b6fb961f 10072maybe-html-dosutils: html-dosutils
657b58f4 10073
b6fb961f 10074html-dosutils: \
8ec98d6c 10075 configure-dosutils
15b527ca 10076 @: $(MAKE); $(unstage)
8ec98d6c 10077 @[ -f ./dosutils/Makefile ] || exit 0; \
5230d454
L
10078 r=`${PWD_COMMAND}`; export r; \
10079 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 10080 $(HOST_EXPORTS) \
d5eec917 10081 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
10082 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10083 done; \
b6fb961f 10084 echo "Doing html in dosutils" ; \
7fc2ca22 10085 (cd $(HOST_SUBDIR)/dosutils && \
657b58f4
NN
10086 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10087 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10088 "RANLIB=$${RANLIB}" \
bffcbe34 10089 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f 10090 html) \
657b58f4
NN
10091 || exit 1
10092
a7e609d6 10093@endif dosutils
657b58f4 10094
b6fb961f
MS
10095.PHONY: maybe-TAGS-dosutils TAGS-dosutils
10096maybe-TAGS-dosutils:
a7e609d6 10097@if dosutils
b6fb961f 10098maybe-TAGS-dosutils: TAGS-dosutils
657b58f4 10099
b6fb961f
MS
10100TAGS-dosutils: \
10101 configure-dosutils
15b527ca 10102 @: $(MAKE); $(unstage)
b6fb961f
MS
10103 @[ -f ./dosutils/Makefile ] || exit 0; \
10104 r=`${PWD_COMMAND}`; export r; \
10105 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
10106 $(HOST_EXPORTS) \
10107 for flag in $(EXTRA_HOST_FLAGS) ; do \
10108 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10109 done; \
10110 echo "Doing TAGS in dosutils" ; \
7fc2ca22 10111 (cd $(HOST_SUBDIR)/dosutils && \
b6fb961f
MS
10112 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10113 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10114 "RANLIB=$${RANLIB}" \
bffcbe34 10115 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
10116 TAGS) \
10117 || exit 1
10118
10119@endif dosutils
10120
10121.PHONY: maybe-install-info-dosutils install-info-dosutils
10122maybe-install-info-dosutils:
10123@if dosutils
10124maybe-install-info-dosutils: install-info-dosutils
10125
10126install-info-dosutils: \
10127 configure-dosutils \
10128 info-dosutils
15b527ca 10129 @: $(MAKE); $(unstage)
8ec98d6c 10130 @[ -f ./dosutils/Makefile ] || exit 0; \
5230d454
L
10131 r=`${PWD_COMMAND}`; export r; \
10132 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 10133 $(HOST_EXPORTS) \
d5eec917 10134 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
10135 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10136 done; \
8ec98d6c 10137 echo "Doing install-info in dosutils" ; \
7fc2ca22 10138 (cd $(HOST_SUBDIR)/dosutils && \
657b58f4
NN
10139 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10140 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10141 "RANLIB=$${RANLIB}" \
bffcbe34 10142 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 10143 install-info) \
657b58f4
NN
10144 || exit 1
10145
a7e609d6 10146@endif dosutils
657b58f4 10147
d4954b6d
DD
10148.PHONY: maybe-install-pdf-dosutils install-pdf-dosutils
10149maybe-install-pdf-dosutils:
10150@if dosutils
10151maybe-install-pdf-dosutils: install-pdf-dosutils
10152
10153install-pdf-dosutils: \
10154 configure-dosutils \
10155 pdf-dosutils
10156 @: $(MAKE); $(unstage)
10157 @[ -f ./dosutils/Makefile ] || exit 0; \
10158 r=`${PWD_COMMAND}`; export r; \
10159 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10160 $(HOST_EXPORTS) \
10161 for flag in $(EXTRA_HOST_FLAGS) ; do \
10162 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10163 done; \
10164 echo "Doing install-pdf in dosutils" ; \
10165 (cd $(HOST_SUBDIR)/dosutils && \
10166 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10167 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10168 "RANLIB=$${RANLIB}" \
bffcbe34 10169 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
10170 install-pdf) \
10171 || exit 1
10172
10173@endif dosutils
10174
83c9add4
CD
10175.PHONY: maybe-install-html-dosutils install-html-dosutils
10176maybe-install-html-dosutils:
10177@if dosutils
10178maybe-install-html-dosutils: install-html-dosutils
10179
10180install-html-dosutils: \
10181 configure-dosutils \
10182 html-dosutils
10183 @: $(MAKE); $(unstage)
10184 @[ -f ./dosutils/Makefile ] || exit 0; \
10185 r=`${PWD_COMMAND}`; export r; \
10186 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10187 $(HOST_EXPORTS) \
10188 for flag in $(EXTRA_HOST_FLAGS) ; do \
10189 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10190 done; \
10191 echo "Doing install-html in dosutils" ; \
10192 (cd $(HOST_SUBDIR)/dosutils && \
10193 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10194 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10195 "RANLIB=$${RANLIB}" \
bffcbe34 10196 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
10197 install-html) \
10198 || exit 1
10199
10200@endif dosutils
10201
8ec98d6c
NN
10202.PHONY: maybe-installcheck-dosutils installcheck-dosutils
10203maybe-installcheck-dosutils:
a7e609d6
PB
10204@if dosutils
10205maybe-installcheck-dosutils: installcheck-dosutils
657b58f4 10206
8ec98d6c
NN
10207installcheck-dosutils: \
10208 configure-dosutils
15b527ca 10209 @: $(MAKE); $(unstage)
8ec98d6c 10210 @[ -f ./dosutils/Makefile ] || exit 0; \
5230d454
L
10211 r=`${PWD_COMMAND}`; export r; \
10212 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 10213 $(HOST_EXPORTS) \
d5eec917 10214 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
10215 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10216 done; \
8ec98d6c 10217 echo "Doing installcheck in dosutils" ; \
7fc2ca22 10218 (cd $(HOST_SUBDIR)/dosutils && \
657b58f4
NN
10219 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10220 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10221 "RANLIB=$${RANLIB}" \
bffcbe34 10222 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 10223 installcheck) \
657b58f4
NN
10224 || exit 1
10225
a7e609d6 10226@endif dosutils
657b58f4 10227
8ec98d6c
NN
10228.PHONY: maybe-mostlyclean-dosutils mostlyclean-dosutils
10229maybe-mostlyclean-dosutils:
a7e609d6
PB
10230@if dosutils
10231maybe-mostlyclean-dosutils: mostlyclean-dosutils
d832a288 10232
8ec98d6c 10233mostlyclean-dosutils:
15b527ca 10234 @: $(MAKE); $(unstage)
8ec98d6c 10235 @[ -f ./dosutils/Makefile ] || exit 0; \
d832a288
DD
10236 r=`${PWD_COMMAND}`; export r; \
10237 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 10238 $(HOST_EXPORTS) \
d5eec917 10239 for flag in $(EXTRA_HOST_FLAGS) ; do \
d832a288
DD
10240 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10241 done; \
8ec98d6c 10242 echo "Doing mostlyclean in dosutils" ; \
7fc2ca22 10243 (cd $(HOST_SUBDIR)/dosutils && \
d832a288
DD
10244 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10245 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10246 "RANLIB=$${RANLIB}" \
bffcbe34 10247 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 10248 mostlyclean) \
d832a288
DD
10249 || exit 1
10250
a7e609d6 10251@endif dosutils
d832a288 10252
8ec98d6c
NN
10253.PHONY: maybe-clean-dosutils clean-dosutils
10254maybe-clean-dosutils:
a7e609d6
PB
10255@if dosutils
10256maybe-clean-dosutils: clean-dosutils
657b58f4 10257
8ec98d6c 10258clean-dosutils:
15b527ca 10259 @: $(MAKE); $(unstage)
8ec98d6c 10260 @[ -f ./dosutils/Makefile ] || exit 0; \
5230d454
L
10261 r=`${PWD_COMMAND}`; export r; \
10262 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 10263 $(HOST_EXPORTS) \
d5eec917 10264 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
10265 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10266 done; \
8ec98d6c 10267 echo "Doing clean in dosutils" ; \
7fc2ca22 10268 (cd $(HOST_SUBDIR)/dosutils && \
657b58f4
NN
10269 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10270 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10271 "RANLIB=$${RANLIB}" \
bffcbe34 10272 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 10273 clean) \
657b58f4
NN
10274 || exit 1
10275
a7e609d6 10276@endif dosutils
657b58f4 10277
8ec98d6c
NN
10278.PHONY: maybe-distclean-dosutils distclean-dosutils
10279maybe-distclean-dosutils:
a7e609d6
PB
10280@if dosutils
10281maybe-distclean-dosutils: distclean-dosutils
657b58f4 10282
8ec98d6c 10283distclean-dosutils:
15b527ca 10284 @: $(MAKE); $(unstage)
8ec98d6c 10285 @[ -f ./dosutils/Makefile ] || exit 0; \
5230d454
L
10286 r=`${PWD_COMMAND}`; export r; \
10287 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 10288 $(HOST_EXPORTS) \
d5eec917 10289 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
10290 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10291 done; \
8ec98d6c 10292 echo "Doing distclean in dosutils" ; \
7fc2ca22 10293 (cd $(HOST_SUBDIR)/dosutils && \
657b58f4
NN
10294 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10295 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10296 "RANLIB=$${RANLIB}" \
bffcbe34 10297 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 10298 distclean) \
657b58f4
NN
10299 || exit 1
10300
a7e609d6 10301@endif dosutils
657b58f4 10302
8ec98d6c
NN
10303.PHONY: maybe-maintainer-clean-dosutils maintainer-clean-dosutils
10304maybe-maintainer-clean-dosutils:
a7e609d6
PB
10305@if dosutils
10306maybe-maintainer-clean-dosutils: maintainer-clean-dosutils
657b58f4 10307
8ec98d6c 10308maintainer-clean-dosutils:
15b527ca 10309 @: $(MAKE); $(unstage)
8ec98d6c 10310 @[ -f ./dosutils/Makefile ] || exit 0; \
5230d454
L
10311 r=`${PWD_COMMAND}`; export r; \
10312 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 10313 $(HOST_EXPORTS) \
d5eec917 10314 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
10315 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10316 done; \
8ec98d6c 10317 echo "Doing maintainer-clean in dosutils" ; \
7fc2ca22 10318 (cd $(HOST_SUBDIR)/dosutils && \
657b58f4
NN
10319 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10320 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10321 "RANLIB=$${RANLIB}" \
bffcbe34 10322 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 10323 maintainer-clean) \
657b58f4
NN
10324 || exit 1
10325
a7e609d6 10326@endif dosutils
657b58f4 10327
657b58f4 10328
f0fdfd34 10329
8ec98d6c
NN
10330.PHONY: configure-etc maybe-configure-etc
10331maybe-configure-etc:
e1e5148c
CD
10332@if gcc-bootstrap
10333configure-etc: stage_current
10334@endif gcc-bootstrap
a7e609d6
PB
10335@if etc
10336maybe-configure-etc: configure-etc
ec92c4d6 10337configure-etc:
15b527ca 10338 @: $(MAKE); $(unstage)
ec92c4d6 10339 @r=`${PWD_COMMAND}`; export r; \
8ec98d6c 10340 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
10341 test ! -f $(HOST_SUBDIR)/etc/Makefile || exit 0; \
10342 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/etc ; \
a675b75a 10343 $(HOST_EXPORTS) \
f0fdfd34
PB
10344 echo Configuring in $(HOST_SUBDIR)/etc; \
10345 cd "$(HOST_SUBDIR)/etc" || exit 1; \
8ec98d6c 10346 case $(srcdir) in \
7fc2ca22
PB
10347 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10348 *) topdir=`echo $(HOST_SUBDIR)/etc/ | \
10349 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 10350 esac; \
7fc2ca22
PB
10351 srcdiroption="--srcdir=$${topdir}/etc"; \
10352 libsrcdir="$$s/etc"; \
8ec98d6c 10353 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
10354 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
10355 --target=${target_alias} $${srcdiroption} \
8ec98d6c 10356 || exit 1
a7e609d6 10357@endif etc
8ec98d6c 10358
f0fdfd34
PB
10359
10360
a8a96878
PB
10361
10362
8ec98d6c
NN
10363.PHONY: all-etc maybe-all-etc
10364maybe-all-etc:
e1e5148c
CD
10365@if gcc-bootstrap
10366all-etc: stage_current
10367@endif gcc-bootstrap
a7e609d6 10368@if etc
5e6b1f07 10369TARGET-etc=all
a7e609d6 10370maybe-all-etc: all-etc
8ec98d6c 10371all-etc: configure-etc
15b527ca 10372 @: $(MAKE); $(unstage)
8ec98d6c
NN
10373 @r=`${PWD_COMMAND}`; export r; \
10374 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 10375 $(HOST_EXPORTS) \
7fc2ca22 10376 (cd $(HOST_SUBDIR)/etc && \
6532abb6
PB
10377 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
10378 $(TARGET-etc))
a7e609d6 10379@endif etc
8ec98d6c 10380
f0fdfd34 10381
a8a96878
PB
10382
10383
8ec98d6c
NN
10384.PHONY: check-etc maybe-check-etc
10385maybe-check-etc:
a7e609d6
PB
10386@if etc
10387maybe-check-etc: check-etc
8ec98d6c
NN
10388
10389check-etc:
15b527ca 10390 @: $(MAKE); $(unstage)
8ec98d6c
NN
10391 @r=`${PWD_COMMAND}`; export r; \
10392 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 10393 $(HOST_EXPORTS) \
7fc2ca22
PB
10394 (cd $(HOST_SUBDIR)/etc && \
10395 $(MAKE) $(FLAGS_TO_PASS) check)
8ec98d6c 10396
a7e609d6 10397@endif etc
8ec98d6c
NN
10398
10399.PHONY: install-etc maybe-install-etc
10400maybe-install-etc:
a7e609d6
PB
10401@if etc
10402maybe-install-etc: install-etc
8ec98d6c
NN
10403
10404install-etc: installdirs
15b527ca 10405 @: $(MAKE); $(unstage)
8ec98d6c
NN
10406 @r=`${PWD_COMMAND}`; export r; \
10407 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 10408 $(HOST_EXPORTS) \
7fc2ca22 10409 (cd $(HOST_SUBDIR)/etc && \
93c60b6d 10410 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 10411
a7e609d6 10412@endif etc
8ec98d6c 10413
39bbbb69 10414# Other targets (info, dvi, pdf, etc.)
8ec98d6c
NN
10415
10416.PHONY: maybe-info-etc info-etc
10417maybe-info-etc:
a7e609d6
PB
10418@if etc
10419maybe-info-etc: info-etc
8ec98d6c
NN
10420
10421info-etc: \
10422 configure-etc
15b527ca 10423 @: $(MAKE); $(unstage)
8ec98d6c 10424 @[ -f ./etc/Makefile ] || exit 0; \
5230d454
L
10425 r=`${PWD_COMMAND}`; export r; \
10426 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 10427 $(HOST_EXPORTS) \
d5eec917 10428 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
10429 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10430 done; \
8ec98d6c 10431 echo "Doing info in etc" ; \
7fc2ca22 10432 (cd $(HOST_SUBDIR)/etc && \
657b58f4
NN
10433 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10434 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10435 "RANLIB=$${RANLIB}" \
bffcbe34 10436 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 10437 info) \
657b58f4
NN
10438 || exit 1
10439
a7e609d6 10440@endif etc
657b58f4 10441
8ec98d6c
NN
10442.PHONY: maybe-dvi-etc dvi-etc
10443maybe-dvi-etc:
a7e609d6
PB
10444@if etc
10445maybe-dvi-etc: dvi-etc
657b58f4 10446
8ec98d6c
NN
10447dvi-etc: \
10448 configure-etc
15b527ca 10449 @: $(MAKE); $(unstage)
8ec98d6c 10450 @[ -f ./etc/Makefile ] || exit 0; \
5230d454
L
10451 r=`${PWD_COMMAND}`; export r; \
10452 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 10453 $(HOST_EXPORTS) \
d5eec917 10454 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
10455 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10456 done; \
8ec98d6c 10457 echo "Doing dvi in etc" ; \
7fc2ca22 10458 (cd $(HOST_SUBDIR)/etc && \
657b58f4
NN
10459 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10460 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10461 "RANLIB=$${RANLIB}" \
bffcbe34 10462 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 10463 dvi) \
657b58f4
NN
10464 || exit 1
10465
a7e609d6 10466@endif etc
657b58f4 10467
39bbbb69
DD
10468.PHONY: maybe-pdf-etc pdf-etc
10469maybe-pdf-etc:
10470@if etc
10471maybe-pdf-etc: pdf-etc
10472
10473pdf-etc: \
10474 configure-etc
10475 @: $(MAKE); $(unstage)
10476 @[ -f ./etc/Makefile ] || exit 0; \
10477 r=`${PWD_COMMAND}`; export r; \
10478 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10479 $(HOST_EXPORTS) \
10480 for flag in $(EXTRA_HOST_FLAGS) ; do \
10481 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10482 done; \
10483 echo "Doing pdf in etc" ; \
10484 (cd $(HOST_SUBDIR)/etc && \
10485 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10486 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10487 "RANLIB=$${RANLIB}" \
bffcbe34 10488 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
10489 pdf) \
10490 || exit 1
10491
10492@endif etc
10493
b6fb961f
MS
10494.PHONY: maybe-html-etc html-etc
10495maybe-html-etc:
10496@if etc
10497maybe-html-etc: html-etc
10498
10499html-etc: \
10500 configure-etc
15b527ca 10501 @: $(MAKE); $(unstage)
b6fb961f
MS
10502 @[ -f ./etc/Makefile ] || exit 0; \
10503 r=`${PWD_COMMAND}`; export r; \
10504 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
10505 $(HOST_EXPORTS) \
10506 for flag in $(EXTRA_HOST_FLAGS) ; do \
10507 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10508 done; \
10509 echo "Doing html in etc" ; \
7fc2ca22 10510 (cd $(HOST_SUBDIR)/etc && \
b6fb961f
MS
10511 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10512 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10513 "RANLIB=$${RANLIB}" \
bffcbe34 10514 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
10515 html) \
10516 || exit 1
10517
10518@endif etc
10519
8ec98d6c
NN
10520.PHONY: maybe-TAGS-etc TAGS-etc
10521maybe-TAGS-etc:
a7e609d6
PB
10522@if etc
10523maybe-TAGS-etc: TAGS-etc
657b58f4 10524
8ec98d6c
NN
10525TAGS-etc: \
10526 configure-etc
15b527ca 10527 @: $(MAKE); $(unstage)
8ec98d6c 10528 @[ -f ./etc/Makefile ] || exit 0; \
5230d454
L
10529 r=`${PWD_COMMAND}`; export r; \
10530 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 10531 $(HOST_EXPORTS) \
d5eec917 10532 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
10533 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10534 done; \
8ec98d6c 10535 echo "Doing TAGS in etc" ; \
7fc2ca22 10536 (cd $(HOST_SUBDIR)/etc && \
657b58f4
NN
10537 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10538 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10539 "RANLIB=$${RANLIB}" \
bffcbe34 10540 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 10541 TAGS) \
657b58f4
NN
10542 || exit 1
10543
a7e609d6 10544@endif etc
657b58f4 10545
8ec98d6c
NN
10546.PHONY: maybe-install-info-etc install-info-etc
10547maybe-install-info-etc:
a7e609d6
PB
10548@if etc
10549maybe-install-info-etc: install-info-etc
657b58f4 10550
8ec98d6c
NN
10551install-info-etc: \
10552 configure-etc \
10553 info-etc
15b527ca 10554 @: $(MAKE); $(unstage)
8ec98d6c 10555 @[ -f ./etc/Makefile ] || exit 0; \
5230d454
L
10556 r=`${PWD_COMMAND}`; export r; \
10557 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 10558 $(HOST_EXPORTS) \
d5eec917 10559 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
10560 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10561 done; \
8ec98d6c 10562 echo "Doing install-info in etc" ; \
7fc2ca22 10563 (cd $(HOST_SUBDIR)/etc && \
657b58f4
NN
10564 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10565 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10566 "RANLIB=$${RANLIB}" \
bffcbe34 10567 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 10568 install-info) \
657b58f4
NN
10569 || exit 1
10570
a7e609d6 10571@endif etc
657b58f4 10572
d4954b6d
DD
10573.PHONY: maybe-install-pdf-etc install-pdf-etc
10574maybe-install-pdf-etc:
10575@if etc
10576maybe-install-pdf-etc: install-pdf-etc
10577
10578install-pdf-etc: \
10579 configure-etc \
10580 pdf-etc
10581 @: $(MAKE); $(unstage)
10582 @[ -f ./etc/Makefile ] || exit 0; \
10583 r=`${PWD_COMMAND}`; export r; \
10584 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10585 $(HOST_EXPORTS) \
10586 for flag in $(EXTRA_HOST_FLAGS) ; do \
10587 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10588 done; \
10589 echo "Doing install-pdf in etc" ; \
10590 (cd $(HOST_SUBDIR)/etc && \
10591 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10592 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10593 "RANLIB=$${RANLIB}" \
bffcbe34 10594 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
10595 install-pdf) \
10596 || exit 1
10597
10598@endif etc
10599
83c9add4
CD
10600.PHONY: maybe-install-html-etc install-html-etc
10601maybe-install-html-etc:
10602@if etc
10603maybe-install-html-etc: install-html-etc
10604
10605install-html-etc: \
10606 configure-etc \
10607 html-etc
10608 @: $(MAKE); $(unstage)
10609 @[ -f ./etc/Makefile ] || exit 0; \
10610 r=`${PWD_COMMAND}`; export r; \
10611 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10612 $(HOST_EXPORTS) \
10613 for flag in $(EXTRA_HOST_FLAGS) ; do \
10614 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10615 done; \
10616 echo "Doing install-html in etc" ; \
10617 (cd $(HOST_SUBDIR)/etc && \
10618 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10619 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10620 "RANLIB=$${RANLIB}" \
bffcbe34 10621 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
10622 install-html) \
10623 || exit 1
10624
10625@endif etc
10626
8ec98d6c
NN
10627.PHONY: maybe-installcheck-etc installcheck-etc
10628maybe-installcheck-etc:
a7e609d6
PB
10629@if etc
10630maybe-installcheck-etc: installcheck-etc
657b58f4 10631
8ec98d6c
NN
10632installcheck-etc: \
10633 configure-etc
15b527ca 10634 @: $(MAKE); $(unstage)
8ec98d6c 10635 @[ -f ./etc/Makefile ] || exit 0; \
5230d454
L
10636 r=`${PWD_COMMAND}`; export r; \
10637 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 10638 $(HOST_EXPORTS) \
d5eec917 10639 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
10640 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10641 done; \
8ec98d6c 10642 echo "Doing installcheck in etc" ; \
7fc2ca22 10643 (cd $(HOST_SUBDIR)/etc && \
657b58f4
NN
10644 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10645 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10646 "RANLIB=$${RANLIB}" \
bffcbe34 10647 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 10648 installcheck) \
657b58f4
NN
10649 || exit 1
10650
a7e609d6 10651@endif etc
657b58f4 10652
8ec98d6c
NN
10653.PHONY: maybe-mostlyclean-etc mostlyclean-etc
10654maybe-mostlyclean-etc:
a7e609d6
PB
10655@if etc
10656maybe-mostlyclean-etc: mostlyclean-etc
657b58f4 10657
8ec98d6c 10658mostlyclean-etc:
15b527ca 10659 @: $(MAKE); $(unstage)
8ec98d6c 10660 @[ -f ./etc/Makefile ] || exit 0; \
5230d454
L
10661 r=`${PWD_COMMAND}`; export r; \
10662 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 10663 $(HOST_EXPORTS) \
d5eec917 10664 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
10665 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10666 done; \
8ec98d6c 10667 echo "Doing mostlyclean in etc" ; \
7fc2ca22 10668 (cd $(HOST_SUBDIR)/etc && \
657b58f4
NN
10669 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10670 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10671 "RANLIB=$${RANLIB}" \
bffcbe34 10672 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 10673 mostlyclean) \
657b58f4
NN
10674 || exit 1
10675
a7e609d6 10676@endif etc
657b58f4 10677
8ec98d6c
NN
10678.PHONY: maybe-clean-etc clean-etc
10679maybe-clean-etc:
a7e609d6
PB
10680@if etc
10681maybe-clean-etc: clean-etc
657b58f4 10682
8ec98d6c 10683clean-etc:
15b527ca 10684 @: $(MAKE); $(unstage)
8ec98d6c 10685 @[ -f ./etc/Makefile ] || exit 0; \
5230d454
L
10686 r=`${PWD_COMMAND}`; export r; \
10687 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 10688 $(HOST_EXPORTS) \
d5eec917 10689 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
10690 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10691 done; \
8ec98d6c 10692 echo "Doing clean in etc" ; \
7fc2ca22 10693 (cd $(HOST_SUBDIR)/etc && \
657b58f4
NN
10694 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10695 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10696 "RANLIB=$${RANLIB}" \
bffcbe34 10697 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 10698 clean) \
657b58f4
NN
10699 || exit 1
10700
a7e609d6 10701@endif etc
657b58f4 10702
8ec98d6c
NN
10703.PHONY: maybe-distclean-etc distclean-etc
10704maybe-distclean-etc:
a7e609d6
PB
10705@if etc
10706maybe-distclean-etc: distclean-etc
657b58f4 10707
8ec98d6c 10708distclean-etc:
15b527ca 10709 @: $(MAKE); $(unstage)
8ec98d6c 10710 @[ -f ./etc/Makefile ] || exit 0; \
5230d454
L
10711 r=`${PWD_COMMAND}`; export r; \
10712 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 10713 $(HOST_EXPORTS) \
d5eec917 10714 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
10715 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10716 done; \
8ec98d6c 10717 echo "Doing distclean in etc" ; \
7fc2ca22 10718 (cd $(HOST_SUBDIR)/etc && \
657b58f4
NN
10719 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10720 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10721 "RANLIB=$${RANLIB}" \
bffcbe34 10722 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 10723 distclean) \
657b58f4
NN
10724 || exit 1
10725
a7e609d6 10726@endif etc
657b58f4 10727
8ec98d6c
NN
10728.PHONY: maybe-maintainer-clean-etc maintainer-clean-etc
10729maybe-maintainer-clean-etc:
a7e609d6
PB
10730@if etc
10731maybe-maintainer-clean-etc: maintainer-clean-etc
657b58f4 10732
8ec98d6c 10733maintainer-clean-etc:
15b527ca 10734 @: $(MAKE); $(unstage)
8ec98d6c 10735 @[ -f ./etc/Makefile ] || exit 0; \
5230d454
L
10736 r=`${PWD_COMMAND}`; export r; \
10737 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 10738 $(HOST_EXPORTS) \
d5eec917 10739 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
10740 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10741 done; \
8ec98d6c 10742 echo "Doing maintainer-clean in etc" ; \
7fc2ca22 10743 (cd $(HOST_SUBDIR)/etc && \
657b58f4
NN
10744 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10745 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10746 "RANLIB=$${RANLIB}" \
bffcbe34 10747 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 10748 maintainer-clean) \
657b58f4
NN
10749 || exit 1
10750
a7e609d6 10751@endif etc
657b58f4 10752
657b58f4 10753
f0fdfd34 10754
8ec98d6c
NN
10755.PHONY: configure-fastjar maybe-configure-fastjar
10756maybe-configure-fastjar:
e1e5148c
CD
10757@if gcc-bootstrap
10758configure-fastjar: stage_current
10759@endif gcc-bootstrap
a7e609d6
PB
10760@if fastjar
10761maybe-configure-fastjar: configure-fastjar
ec92c4d6 10762configure-fastjar:
15b527ca 10763 @: $(MAKE); $(unstage)
ec92c4d6 10764 @r=`${PWD_COMMAND}`; export r; \
5230d454 10765 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
10766 test ! -f $(HOST_SUBDIR)/fastjar/Makefile || exit 0; \
10767 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fastjar ; \
a675b75a 10768 $(HOST_EXPORTS) \
f0fdfd34
PB
10769 echo Configuring in $(HOST_SUBDIR)/fastjar; \
10770 cd "$(HOST_SUBDIR)/fastjar" || exit 1; \
8ec98d6c 10771 case $(srcdir) in \
7fc2ca22
PB
10772 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10773 *) topdir=`echo $(HOST_SUBDIR)/fastjar/ | \
10774 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 10775 esac; \
7fc2ca22
PB
10776 srcdiroption="--srcdir=$${topdir}/fastjar"; \
10777 libsrcdir="$$s/fastjar"; \
8ec98d6c 10778 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
10779 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
10780 --target=${target_alias} $${srcdiroption} \
8ec98d6c 10781 || exit 1
a7e609d6 10782@endif fastjar
8ec98d6c 10783
f0fdfd34
PB
10784
10785
a8a96878
PB
10786
10787
8ec98d6c
NN
10788.PHONY: all-fastjar maybe-all-fastjar
10789maybe-all-fastjar:
e1e5148c
CD
10790@if gcc-bootstrap
10791all-fastjar: stage_current
10792@endif gcc-bootstrap
a7e609d6 10793@if fastjar
5e6b1f07 10794TARGET-fastjar=all
a7e609d6 10795maybe-all-fastjar: all-fastjar
8ec98d6c 10796all-fastjar: configure-fastjar
15b527ca 10797 @: $(MAKE); $(unstage)
8ec98d6c
NN
10798 @r=`${PWD_COMMAND}`; export r; \
10799 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 10800 $(HOST_EXPORTS) \
7fc2ca22 10801 (cd $(HOST_SUBDIR)/fastjar && \
6532abb6
PB
10802 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
10803 $(TARGET-fastjar))
a7e609d6 10804@endif fastjar
657b58f4 10805
f0fdfd34 10806
a8a96878
PB
10807
10808
8ec98d6c
NN
10809.PHONY: check-fastjar maybe-check-fastjar
10810maybe-check-fastjar:
a7e609d6
PB
10811@if fastjar
10812maybe-check-fastjar: check-fastjar
657b58f4 10813
8ec98d6c
NN
10814# This module is only tested in a native toolchain.
10815check-fastjar:
15b527ca 10816 @: $(MAKE); $(unstage)
8ec98d6c
NN
10817 @if [ '$(host)' = '$(target)' ] ; then \
10818 r=`${PWD_COMMAND}`; export r; \
10819 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 10820 $(HOST_EXPORTS) \
7fc2ca22 10821 (cd $(HOST_SUBDIR)/fastjar && \
80e4c577 10822 $(MAKE) $(FLAGS_TO_PASS) check); \
8ec98d6c 10823 fi
657b58f4 10824
a7e609d6 10825@endif fastjar
8ec98d6c
NN
10826
10827.PHONY: install-fastjar maybe-install-fastjar
10828maybe-install-fastjar:
a7e609d6
PB
10829@if fastjar
10830maybe-install-fastjar: install-fastjar
8ec98d6c
NN
10831
10832install-fastjar: installdirs
15b527ca 10833 @: $(MAKE); $(unstage)
8ec98d6c 10834 @r=`${PWD_COMMAND}`; export r; \
5230d454 10835 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 10836 $(HOST_EXPORTS) \
7fc2ca22 10837 (cd $(HOST_SUBDIR)/fastjar && \
93c60b6d 10838 $(MAKE) $(FLAGS_TO_PASS) install)
657b58f4 10839
a7e609d6 10840@endif fastjar
657b58f4 10841
39bbbb69 10842# Other targets (info, dvi, pdf, etc.)
657b58f4 10843
8ec98d6c
NN
10844.PHONY: maybe-info-fastjar info-fastjar
10845maybe-info-fastjar:
a7e609d6
PB
10846@if fastjar
10847maybe-info-fastjar: info-fastjar
8ec98d6c
NN
10848
10849info-fastjar: \
10850 configure-fastjar
15b527ca 10851 @: $(MAKE); $(unstage)
8ec98d6c 10852 @[ -f ./fastjar/Makefile ] || exit 0; \
5230d454
L
10853 r=`${PWD_COMMAND}`; export r; \
10854 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 10855 $(HOST_EXPORTS) \
d5eec917 10856 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
10857 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10858 done; \
8ec98d6c 10859 echo "Doing info in fastjar" ; \
7fc2ca22 10860 (cd $(HOST_SUBDIR)/fastjar && \
657b58f4
NN
10861 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10862 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10863 "RANLIB=$${RANLIB}" \
bffcbe34 10864 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 10865 info) \
657b58f4
NN
10866 || exit 1
10867
a7e609d6 10868@endif fastjar
657b58f4 10869
8ec98d6c
NN
10870.PHONY: maybe-dvi-fastjar dvi-fastjar
10871maybe-dvi-fastjar:
a7e609d6
PB
10872@if fastjar
10873maybe-dvi-fastjar: dvi-fastjar
657b58f4 10874
8ec98d6c
NN
10875dvi-fastjar: \
10876 configure-fastjar
15b527ca 10877 @: $(MAKE); $(unstage)
657b58f4 10878 @[ -f ./fastjar/Makefile ] || exit 0; \
5230d454
L
10879 r=`${PWD_COMMAND}`; export r; \
10880 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 10881 $(HOST_EXPORTS) \
d5eec917 10882 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
10883 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10884 done; \
8ec98d6c 10885 echo "Doing dvi in fastjar" ; \
7fc2ca22 10886 (cd $(HOST_SUBDIR)/fastjar && \
657b58f4
NN
10887 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10888 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10889 "RANLIB=$${RANLIB}" \
bffcbe34 10890 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 10891 dvi) \
657b58f4
NN
10892 || exit 1
10893
a7e609d6 10894@endif fastjar
657b58f4 10895
39bbbb69
DD
10896.PHONY: maybe-pdf-fastjar pdf-fastjar
10897maybe-pdf-fastjar:
10898@if fastjar
10899maybe-pdf-fastjar: pdf-fastjar
10900
10901pdf-fastjar: \
10902 configure-fastjar
10903 @: $(MAKE); $(unstage)
10904 @[ -f ./fastjar/Makefile ] || exit 0; \
10905 r=`${PWD_COMMAND}`; export r; \
10906 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10907 $(HOST_EXPORTS) \
10908 for flag in $(EXTRA_HOST_FLAGS) ; do \
10909 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10910 done; \
10911 echo "Doing pdf in fastjar" ; \
10912 (cd $(HOST_SUBDIR)/fastjar && \
10913 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10914 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10915 "RANLIB=$${RANLIB}" \
bffcbe34 10916 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
10917 pdf) \
10918 || exit 1
10919
10920@endif fastjar
10921
b6fb961f
MS
10922.PHONY: maybe-html-fastjar html-fastjar
10923maybe-html-fastjar:
10924@if fastjar
10925maybe-html-fastjar: html-fastjar
10926
10927html-fastjar: \
10928 configure-fastjar
15b527ca 10929 @: $(MAKE); $(unstage)
b6fb961f
MS
10930 @[ -f ./fastjar/Makefile ] || exit 0; \
10931 r=`${PWD_COMMAND}`; export r; \
10932 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
10933 $(HOST_EXPORTS) \
10934 for flag in $(EXTRA_HOST_FLAGS) ; do \
10935 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10936 done; \
10937 echo "Doing html in fastjar" ; \
7fc2ca22 10938 (cd $(HOST_SUBDIR)/fastjar && \
b6fb961f
MS
10939 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10940 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10941 "RANLIB=$${RANLIB}" \
bffcbe34 10942 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
10943 html) \
10944 || exit 1
10945
10946@endif fastjar
10947
8ec98d6c
NN
10948.PHONY: maybe-TAGS-fastjar TAGS-fastjar
10949maybe-TAGS-fastjar:
a7e609d6
PB
10950@if fastjar
10951maybe-TAGS-fastjar: TAGS-fastjar
657b58f4 10952
8ec98d6c
NN
10953TAGS-fastjar: \
10954 configure-fastjar
15b527ca 10955 @: $(MAKE); $(unstage)
8ec98d6c 10956 @[ -f ./fastjar/Makefile ] || exit 0; \
5230d454
L
10957 r=`${PWD_COMMAND}`; export r; \
10958 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 10959 $(HOST_EXPORTS) \
d5eec917 10960 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
10961 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10962 done; \
8ec98d6c 10963 echo "Doing TAGS in fastjar" ; \
7fc2ca22 10964 (cd $(HOST_SUBDIR)/fastjar && \
657b58f4
NN
10965 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10966 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10967 "RANLIB=$${RANLIB}" \
bffcbe34 10968 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 10969 TAGS) \
657b58f4
NN
10970 || exit 1
10971
a7e609d6 10972@endif fastjar
657b58f4 10973
8ec98d6c
NN
10974.PHONY: maybe-install-info-fastjar install-info-fastjar
10975maybe-install-info-fastjar:
a7e609d6
PB
10976@if fastjar
10977maybe-install-info-fastjar: install-info-fastjar
657b58f4 10978
8ec98d6c
NN
10979install-info-fastjar: \
10980 configure-fastjar \
10981 info-fastjar
15b527ca 10982 @: $(MAKE); $(unstage)
8ec98d6c 10983 @[ -f ./fastjar/Makefile ] || exit 0; \
5230d454
L
10984 r=`${PWD_COMMAND}`; export r; \
10985 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 10986 $(HOST_EXPORTS) \
d5eec917 10987 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
10988 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10989 done; \
8ec98d6c 10990 echo "Doing install-info in fastjar" ; \
7fc2ca22 10991 (cd $(HOST_SUBDIR)/fastjar && \
657b58f4
NN
10992 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10993 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10994 "RANLIB=$${RANLIB}" \
bffcbe34 10995 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 10996 install-info) \
657b58f4
NN
10997 || exit 1
10998
a7e609d6 10999@endif fastjar
657b58f4 11000
d4954b6d
DD
11001.PHONY: maybe-install-pdf-fastjar install-pdf-fastjar
11002maybe-install-pdf-fastjar:
11003@if fastjar
11004maybe-install-pdf-fastjar: install-pdf-fastjar
11005
11006install-pdf-fastjar: \
11007 configure-fastjar \
11008 pdf-fastjar
11009 @: $(MAKE); $(unstage)
11010 @[ -f ./fastjar/Makefile ] || exit 0; \
11011 r=`${PWD_COMMAND}`; export r; \
11012 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11013 $(HOST_EXPORTS) \
11014 for flag in $(EXTRA_HOST_FLAGS) ; do \
11015 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11016 done; \
11017 echo "Doing install-pdf in fastjar" ; \
11018 (cd $(HOST_SUBDIR)/fastjar && \
11019 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11020 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11021 "RANLIB=$${RANLIB}" \
bffcbe34 11022 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
11023 install-pdf) \
11024 || exit 1
11025
11026@endif fastjar
11027
83c9add4
CD
11028.PHONY: maybe-install-html-fastjar install-html-fastjar
11029maybe-install-html-fastjar:
11030@if fastjar
11031maybe-install-html-fastjar: install-html-fastjar
11032
11033install-html-fastjar: \
11034 configure-fastjar \
11035 html-fastjar
11036 @: $(MAKE); $(unstage)
11037 @[ -f ./fastjar/Makefile ] || exit 0; \
11038 r=`${PWD_COMMAND}`; export r; \
11039 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11040 $(HOST_EXPORTS) \
11041 for flag in $(EXTRA_HOST_FLAGS) ; do \
11042 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11043 done; \
11044 echo "Doing install-html in fastjar" ; \
11045 (cd $(HOST_SUBDIR)/fastjar && \
11046 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11047 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11048 "RANLIB=$${RANLIB}" \
bffcbe34 11049 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
11050 install-html) \
11051 || exit 1
11052
11053@endif fastjar
11054
8ec98d6c
NN
11055.PHONY: maybe-installcheck-fastjar installcheck-fastjar
11056maybe-installcheck-fastjar:
a7e609d6
PB
11057@if fastjar
11058maybe-installcheck-fastjar: installcheck-fastjar
657b58f4 11059
8ec98d6c
NN
11060installcheck-fastjar: \
11061 configure-fastjar
15b527ca 11062 @: $(MAKE); $(unstage)
8ec98d6c 11063 @[ -f ./fastjar/Makefile ] || exit 0; \
5230d454
L
11064 r=`${PWD_COMMAND}`; export r; \
11065 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 11066 $(HOST_EXPORTS) \
d5eec917 11067 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11068 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11069 done; \
8ec98d6c 11070 echo "Doing installcheck in fastjar" ; \
7fc2ca22 11071 (cd $(HOST_SUBDIR)/fastjar && \
657b58f4
NN
11072 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11073 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11074 "RANLIB=$${RANLIB}" \
bffcbe34 11075 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 11076 installcheck) \
657b58f4
NN
11077 || exit 1
11078
a7e609d6 11079@endif fastjar
657b58f4 11080
8ec98d6c
NN
11081.PHONY: maybe-mostlyclean-fastjar mostlyclean-fastjar
11082maybe-mostlyclean-fastjar:
a7e609d6
PB
11083@if fastjar
11084maybe-mostlyclean-fastjar: mostlyclean-fastjar
657b58f4 11085
8ec98d6c 11086mostlyclean-fastjar:
15b527ca 11087 @: $(MAKE); $(unstage)
8ec98d6c 11088 @[ -f ./fastjar/Makefile ] || exit 0; \
5230d454
L
11089 r=`${PWD_COMMAND}`; export r; \
11090 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 11091 $(HOST_EXPORTS) \
d5eec917 11092 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11093 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11094 done; \
8ec98d6c 11095 echo "Doing mostlyclean in fastjar" ; \
7fc2ca22 11096 (cd $(HOST_SUBDIR)/fastjar && \
657b58f4
NN
11097 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11098 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11099 "RANLIB=$${RANLIB}" \
bffcbe34 11100 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 11101 mostlyclean) \
657b58f4
NN
11102 || exit 1
11103
a7e609d6 11104@endif fastjar
657b58f4 11105
8ec98d6c
NN
11106.PHONY: maybe-clean-fastjar clean-fastjar
11107maybe-clean-fastjar:
a7e609d6
PB
11108@if fastjar
11109maybe-clean-fastjar: clean-fastjar
657b58f4 11110
8ec98d6c 11111clean-fastjar:
15b527ca 11112 @: $(MAKE); $(unstage)
8ec98d6c 11113 @[ -f ./fastjar/Makefile ] || exit 0; \
5230d454
L
11114 r=`${PWD_COMMAND}`; export r; \
11115 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 11116 $(HOST_EXPORTS) \
d5eec917 11117 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11118 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11119 done; \
8ec98d6c 11120 echo "Doing clean in fastjar" ; \
7fc2ca22 11121 (cd $(HOST_SUBDIR)/fastjar && \
657b58f4
NN
11122 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11123 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11124 "RANLIB=$${RANLIB}" \
bffcbe34 11125 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 11126 clean) \
657b58f4
NN
11127 || exit 1
11128
a7e609d6 11129@endif fastjar
657b58f4 11130
8ec98d6c
NN
11131.PHONY: maybe-distclean-fastjar distclean-fastjar
11132maybe-distclean-fastjar:
a7e609d6
PB
11133@if fastjar
11134maybe-distclean-fastjar: distclean-fastjar
657b58f4 11135
8ec98d6c 11136distclean-fastjar:
15b527ca 11137 @: $(MAKE); $(unstage)
8ec98d6c 11138 @[ -f ./fastjar/Makefile ] || exit 0; \
5230d454
L
11139 r=`${PWD_COMMAND}`; export r; \
11140 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 11141 $(HOST_EXPORTS) \
d5eec917 11142 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11143 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11144 done; \
8ec98d6c 11145 echo "Doing distclean in fastjar" ; \
7fc2ca22 11146 (cd $(HOST_SUBDIR)/fastjar && \
657b58f4
NN
11147 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11148 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11149 "RANLIB=$${RANLIB}" \
bffcbe34 11150 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 11151 distclean) \
657b58f4
NN
11152 || exit 1
11153
a7e609d6 11154@endif fastjar
657b58f4 11155
8ec98d6c
NN
11156.PHONY: maybe-maintainer-clean-fastjar maintainer-clean-fastjar
11157maybe-maintainer-clean-fastjar:
a7e609d6
PB
11158@if fastjar
11159maybe-maintainer-clean-fastjar: maintainer-clean-fastjar
657b58f4 11160
8ec98d6c 11161maintainer-clean-fastjar:
15b527ca 11162 @: $(MAKE); $(unstage)
8ec98d6c 11163 @[ -f ./fastjar/Makefile ] || exit 0; \
5230d454
L
11164 r=`${PWD_COMMAND}`; export r; \
11165 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 11166 $(HOST_EXPORTS) \
d5eec917 11167 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11168 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11169 done; \
8ec98d6c 11170 echo "Doing maintainer-clean in fastjar" ; \
7fc2ca22 11171 (cd $(HOST_SUBDIR)/fastjar && \
657b58f4
NN
11172 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11173 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11174 "RANLIB=$${RANLIB}" \
bffcbe34 11175 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 11176 maintainer-clean) \
657b58f4
NN
11177 || exit 1
11178
a7e609d6 11179@endif fastjar
657b58f4 11180
657b58f4 11181
f0fdfd34 11182
8ec98d6c
NN
11183.PHONY: configure-fileutils maybe-configure-fileutils
11184maybe-configure-fileutils:
e1e5148c
CD
11185@if gcc-bootstrap
11186configure-fileutils: stage_current
11187@endif gcc-bootstrap
a7e609d6
PB
11188@if fileutils
11189maybe-configure-fileutils: configure-fileutils
ec92c4d6 11190configure-fileutils:
15b527ca 11191 @: $(MAKE); $(unstage)
ec92c4d6 11192 @r=`${PWD_COMMAND}`; export r; \
5230d454 11193 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
11194 test ! -f $(HOST_SUBDIR)/fileutils/Makefile || exit 0; \
11195 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fileutils ; \
a675b75a 11196 $(HOST_EXPORTS) \
f0fdfd34
PB
11197 echo Configuring in $(HOST_SUBDIR)/fileutils; \
11198 cd "$(HOST_SUBDIR)/fileutils" || exit 1; \
8ec98d6c 11199 case $(srcdir) in \
7fc2ca22
PB
11200 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11201 *) topdir=`echo $(HOST_SUBDIR)/fileutils/ | \
11202 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 11203 esac; \
7fc2ca22
PB
11204 srcdiroption="--srcdir=$${topdir}/fileutils"; \
11205 libsrcdir="$$s/fileutils"; \
8ec98d6c 11206 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
11207 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
11208 --target=${target_alias} $${srcdiroption} \
657b58f4 11209 || exit 1
a7e609d6 11210@endif fileutils
657b58f4 11211
f0fdfd34
PB
11212
11213
a8a96878
PB
11214
11215
8ec98d6c
NN
11216.PHONY: all-fileutils maybe-all-fileutils
11217maybe-all-fileutils:
e1e5148c
CD
11218@if gcc-bootstrap
11219all-fileutils: stage_current
11220@endif gcc-bootstrap
a7e609d6 11221@if fileutils
5e6b1f07 11222TARGET-fileutils=all
a7e609d6 11223maybe-all-fileutils: all-fileutils
8ec98d6c 11224all-fileutils: configure-fileutils
15b527ca 11225 @: $(MAKE); $(unstage)
8ec98d6c 11226 @r=`${PWD_COMMAND}`; export r; \
5230d454 11227 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 11228 $(HOST_EXPORTS) \
7fc2ca22 11229 (cd $(HOST_SUBDIR)/fileutils && \
6532abb6
PB
11230 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
11231 $(TARGET-fileutils))
a7e609d6 11232@endif fileutils
8ec98d6c 11233
f0fdfd34 11234
a8a96878
PB
11235
11236
8ec98d6c
NN
11237.PHONY: check-fileutils maybe-check-fileutils
11238maybe-check-fileutils:
a7e609d6
PB
11239@if fileutils
11240maybe-check-fileutils: check-fileutils
8ec98d6c
NN
11241
11242check-fileutils:
15b527ca 11243 @: $(MAKE); $(unstage)
8ec98d6c
NN
11244 @r=`${PWD_COMMAND}`; export r; \
11245 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 11246 $(HOST_EXPORTS) \
7fc2ca22
PB
11247 (cd $(HOST_SUBDIR)/fileutils && \
11248 $(MAKE) $(FLAGS_TO_PASS) check)
657b58f4 11249
a7e609d6 11250@endif fileutils
657b58f4 11251
8ec98d6c
NN
11252.PHONY: install-fileutils maybe-install-fileutils
11253maybe-install-fileutils:
a7e609d6
PB
11254@if fileutils
11255maybe-install-fileutils: install-fileutils
657b58f4 11256
8ec98d6c 11257install-fileutils: installdirs
15b527ca 11258 @: $(MAKE); $(unstage)
8ec98d6c 11259 @r=`${PWD_COMMAND}`; export r; \
5230d454 11260 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 11261 $(HOST_EXPORTS) \
7fc2ca22 11262 (cd $(HOST_SUBDIR)/fileutils && \
93c60b6d 11263 $(MAKE) $(FLAGS_TO_PASS) install)
657b58f4 11264
a7e609d6 11265@endif fileutils
657b58f4 11266
39bbbb69 11267# Other targets (info, dvi, pdf, etc.)
657b58f4 11268
8ec98d6c
NN
11269.PHONY: maybe-info-fileutils info-fileutils
11270maybe-info-fileutils:
a7e609d6
PB
11271@if fileutils
11272maybe-info-fileutils: info-fileutils
8ec98d6c
NN
11273
11274info-fileutils: \
11275 configure-fileutils
15b527ca 11276 @: $(MAKE); $(unstage)
8ec98d6c 11277 @[ -f ./fileutils/Makefile ] || exit 0; \
5230d454
L
11278 r=`${PWD_COMMAND}`; export r; \
11279 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 11280 $(HOST_EXPORTS) \
d5eec917 11281 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11282 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11283 done; \
8ec98d6c 11284 echo "Doing info in fileutils" ; \
7fc2ca22 11285 (cd $(HOST_SUBDIR)/fileutils && \
657b58f4
NN
11286 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11287 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11288 "RANLIB=$${RANLIB}" \
bffcbe34 11289 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 11290 info) \
657b58f4
NN
11291 || exit 1
11292
a7e609d6 11293@endif fileutils
657b58f4 11294
8ec98d6c
NN
11295.PHONY: maybe-dvi-fileutils dvi-fileutils
11296maybe-dvi-fileutils:
a7e609d6
PB
11297@if fileutils
11298maybe-dvi-fileutils: dvi-fileutils
657b58f4 11299
8ec98d6c
NN
11300dvi-fileutils: \
11301 configure-fileutils
15b527ca 11302 @: $(MAKE); $(unstage)
8ec98d6c 11303 @[ -f ./fileutils/Makefile ] || exit 0; \
5230d454
L
11304 r=`${PWD_COMMAND}`; export r; \
11305 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 11306 $(HOST_EXPORTS) \
d5eec917 11307 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11308 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11309 done; \
8ec98d6c 11310 echo "Doing dvi in fileutils" ; \
7fc2ca22 11311 (cd $(HOST_SUBDIR)/fileutils && \
657b58f4
NN
11312 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11313 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11314 "RANLIB=$${RANLIB}" \
bffcbe34 11315 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 11316 dvi) \
657b58f4
NN
11317 || exit 1
11318
a7e609d6 11319@endif fileutils
657b58f4 11320
39bbbb69
DD
11321.PHONY: maybe-pdf-fileutils pdf-fileutils
11322maybe-pdf-fileutils:
11323@if fileutils
11324maybe-pdf-fileutils: pdf-fileutils
11325
11326pdf-fileutils: \
11327 configure-fileutils
11328 @: $(MAKE); $(unstage)
11329 @[ -f ./fileutils/Makefile ] || exit 0; \
11330 r=`${PWD_COMMAND}`; export r; \
11331 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11332 $(HOST_EXPORTS) \
11333 for flag in $(EXTRA_HOST_FLAGS) ; do \
11334 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11335 done; \
11336 echo "Doing pdf in fileutils" ; \
11337 (cd $(HOST_SUBDIR)/fileutils && \
11338 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11339 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11340 "RANLIB=$${RANLIB}" \
bffcbe34 11341 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
11342 pdf) \
11343 || exit 1
11344
11345@endif fileutils
11346
b6fb961f
MS
11347.PHONY: maybe-html-fileutils html-fileutils
11348maybe-html-fileutils:
11349@if fileutils
11350maybe-html-fileutils: html-fileutils
11351
11352html-fileutils: \
11353 configure-fileutils
15b527ca 11354 @: $(MAKE); $(unstage)
b6fb961f
MS
11355 @[ -f ./fileutils/Makefile ] || exit 0; \
11356 r=`${PWD_COMMAND}`; export r; \
11357 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
11358 $(HOST_EXPORTS) \
11359 for flag in $(EXTRA_HOST_FLAGS) ; do \
11360 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11361 done; \
11362 echo "Doing html in fileutils" ; \
7fc2ca22 11363 (cd $(HOST_SUBDIR)/fileutils && \
b6fb961f
MS
11364 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11365 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11366 "RANLIB=$${RANLIB}" \
bffcbe34 11367 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
11368 html) \
11369 || exit 1
11370
11371@endif fileutils
11372
8ec98d6c
NN
11373.PHONY: maybe-TAGS-fileutils TAGS-fileutils
11374maybe-TAGS-fileutils:
a7e609d6
PB
11375@if fileutils
11376maybe-TAGS-fileutils: TAGS-fileutils
657b58f4 11377
8ec98d6c
NN
11378TAGS-fileutils: \
11379 configure-fileutils
15b527ca 11380 @: $(MAKE); $(unstage)
8ec98d6c 11381 @[ -f ./fileutils/Makefile ] || exit 0; \
5230d454
L
11382 r=`${PWD_COMMAND}`; export r; \
11383 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 11384 $(HOST_EXPORTS) \
d5eec917 11385 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11386 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11387 done; \
8ec98d6c 11388 echo "Doing TAGS in fileutils" ; \
7fc2ca22 11389 (cd $(HOST_SUBDIR)/fileutils && \
657b58f4
NN
11390 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11391 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11392 "RANLIB=$${RANLIB}" \
bffcbe34 11393 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 11394 TAGS) \
657b58f4
NN
11395 || exit 1
11396
a7e609d6 11397@endif fileutils
657b58f4 11398
8ec98d6c
NN
11399.PHONY: maybe-install-info-fileutils install-info-fileutils
11400maybe-install-info-fileutils:
a7e609d6
PB
11401@if fileutils
11402maybe-install-info-fileutils: install-info-fileutils
657b58f4 11403
8ec98d6c
NN
11404install-info-fileutils: \
11405 configure-fileutils \
11406 info-fileutils
15b527ca 11407 @: $(MAKE); $(unstage)
8ec98d6c 11408 @[ -f ./fileutils/Makefile ] || exit 0; \
5230d454
L
11409 r=`${PWD_COMMAND}`; export r; \
11410 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 11411 $(HOST_EXPORTS) \
d5eec917 11412 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11413 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11414 done; \
8ec98d6c 11415 echo "Doing install-info in fileutils" ; \
7fc2ca22 11416 (cd $(HOST_SUBDIR)/fileutils && \
657b58f4
NN
11417 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11418 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11419 "RANLIB=$${RANLIB}" \
bffcbe34 11420 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 11421 install-info) \
657b58f4
NN
11422 || exit 1
11423
a7e609d6 11424@endif fileutils
657b58f4 11425
d4954b6d
DD
11426.PHONY: maybe-install-pdf-fileutils install-pdf-fileutils
11427maybe-install-pdf-fileutils:
11428@if fileutils
11429maybe-install-pdf-fileutils: install-pdf-fileutils
11430
11431install-pdf-fileutils: \
11432 configure-fileutils \
11433 pdf-fileutils
11434 @: $(MAKE); $(unstage)
11435 @[ -f ./fileutils/Makefile ] || exit 0; \
11436 r=`${PWD_COMMAND}`; export r; \
11437 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11438 $(HOST_EXPORTS) \
11439 for flag in $(EXTRA_HOST_FLAGS) ; do \
11440 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11441 done; \
11442 echo "Doing install-pdf in fileutils" ; \
11443 (cd $(HOST_SUBDIR)/fileutils && \
11444 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11445 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11446 "RANLIB=$${RANLIB}" \
bffcbe34 11447 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
11448 install-pdf) \
11449 || exit 1
11450
11451@endif fileutils
11452
83c9add4
CD
11453.PHONY: maybe-install-html-fileutils install-html-fileutils
11454maybe-install-html-fileutils:
11455@if fileutils
11456maybe-install-html-fileutils: install-html-fileutils
11457
11458install-html-fileutils: \
11459 configure-fileutils \
11460 html-fileutils
11461 @: $(MAKE); $(unstage)
11462 @[ -f ./fileutils/Makefile ] || exit 0; \
11463 r=`${PWD_COMMAND}`; export r; \
11464 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11465 $(HOST_EXPORTS) \
11466 for flag in $(EXTRA_HOST_FLAGS) ; do \
11467 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11468 done; \
11469 echo "Doing install-html in fileutils" ; \
11470 (cd $(HOST_SUBDIR)/fileutils && \
11471 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11472 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11473 "RANLIB=$${RANLIB}" \
bffcbe34 11474 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
11475 install-html) \
11476 || exit 1
11477
11478@endif fileutils
11479
8ec98d6c
NN
11480.PHONY: maybe-installcheck-fileutils installcheck-fileutils
11481maybe-installcheck-fileutils:
a7e609d6
PB
11482@if fileutils
11483maybe-installcheck-fileutils: installcheck-fileutils
657b58f4 11484
8ec98d6c
NN
11485installcheck-fileutils: \
11486 configure-fileutils
15b527ca 11487 @: $(MAKE); $(unstage)
8ec98d6c 11488 @[ -f ./fileutils/Makefile ] || exit 0; \
5230d454
L
11489 r=`${PWD_COMMAND}`; export r; \
11490 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 11491 $(HOST_EXPORTS) \
d5eec917 11492 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11493 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11494 done; \
8ec98d6c 11495 echo "Doing installcheck in fileutils" ; \
7fc2ca22 11496 (cd $(HOST_SUBDIR)/fileutils && \
657b58f4
NN
11497 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11498 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11499 "RANLIB=$${RANLIB}" \
bffcbe34 11500 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 11501 installcheck) \
657b58f4
NN
11502 || exit 1
11503
a7e609d6 11504@endif fileutils
657b58f4 11505
8ec98d6c
NN
11506.PHONY: maybe-mostlyclean-fileutils mostlyclean-fileutils
11507maybe-mostlyclean-fileutils:
a7e609d6
PB
11508@if fileutils
11509maybe-mostlyclean-fileutils: mostlyclean-fileutils
657b58f4 11510
8ec98d6c 11511mostlyclean-fileutils:
15b527ca 11512 @: $(MAKE); $(unstage)
8ec98d6c 11513 @[ -f ./fileutils/Makefile ] || exit 0; \
5230d454
L
11514 r=`${PWD_COMMAND}`; export r; \
11515 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 11516 $(HOST_EXPORTS) \
d5eec917 11517 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11518 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11519 done; \
8ec98d6c 11520 echo "Doing mostlyclean in fileutils" ; \
7fc2ca22 11521 (cd $(HOST_SUBDIR)/fileutils && \
657b58f4
NN
11522 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11523 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11524 "RANLIB=$${RANLIB}" \
bffcbe34 11525 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 11526 mostlyclean) \
657b58f4
NN
11527 || exit 1
11528
a7e609d6 11529@endif fileutils
657b58f4 11530
8ec98d6c
NN
11531.PHONY: maybe-clean-fileutils clean-fileutils
11532maybe-clean-fileutils:
a7e609d6
PB
11533@if fileutils
11534maybe-clean-fileutils: clean-fileutils
657b58f4 11535
8ec98d6c 11536clean-fileutils:
15b527ca 11537 @: $(MAKE); $(unstage)
8ec98d6c 11538 @[ -f ./fileutils/Makefile ] || exit 0; \
5230d454
L
11539 r=`${PWD_COMMAND}`; export r; \
11540 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 11541 $(HOST_EXPORTS) \
d5eec917 11542 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11543 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11544 done; \
8ec98d6c 11545 echo "Doing clean in fileutils" ; \
7fc2ca22 11546 (cd $(HOST_SUBDIR)/fileutils && \
657b58f4
NN
11547 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11548 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11549 "RANLIB=$${RANLIB}" \
bffcbe34 11550 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 11551 clean) \
657b58f4
NN
11552 || exit 1
11553
a7e609d6 11554@endif fileutils
657b58f4 11555
8ec98d6c
NN
11556.PHONY: maybe-distclean-fileutils distclean-fileutils
11557maybe-distclean-fileutils:
a7e609d6
PB
11558@if fileutils
11559maybe-distclean-fileutils: distclean-fileutils
657b58f4 11560
8ec98d6c 11561distclean-fileutils:
15b527ca 11562 @: $(MAKE); $(unstage)
8ec98d6c 11563 @[ -f ./fileutils/Makefile ] || exit 0; \
5230d454
L
11564 r=`${PWD_COMMAND}`; export r; \
11565 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 11566 $(HOST_EXPORTS) \
d5eec917 11567 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11568 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11569 done; \
8ec98d6c 11570 echo "Doing distclean in fileutils" ; \
7fc2ca22 11571 (cd $(HOST_SUBDIR)/fileutils && \
657b58f4
NN
11572 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11573 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11574 "RANLIB=$${RANLIB}" \
bffcbe34 11575 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 11576 distclean) \
657b58f4
NN
11577 || exit 1
11578
a7e609d6 11579@endif fileutils
657b58f4 11580
8ec98d6c
NN
11581.PHONY: maybe-maintainer-clean-fileutils maintainer-clean-fileutils
11582maybe-maintainer-clean-fileutils:
a7e609d6
PB
11583@if fileutils
11584maybe-maintainer-clean-fileutils: maintainer-clean-fileutils
657b58f4 11585
8ec98d6c 11586maintainer-clean-fileutils:
15b527ca 11587 @: $(MAKE); $(unstage)
8ec98d6c 11588 @[ -f ./fileutils/Makefile ] || exit 0; \
5230d454
L
11589 r=`${PWD_COMMAND}`; export r; \
11590 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 11591 $(HOST_EXPORTS) \
d5eec917 11592 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11593 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11594 done; \
8ec98d6c 11595 echo "Doing maintainer-clean in fileutils" ; \
7fc2ca22 11596 (cd $(HOST_SUBDIR)/fileutils && \
657b58f4
NN
11597 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11598 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11599 "RANLIB=$${RANLIB}" \
bffcbe34 11600 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 11601 maintainer-clean) \
657b58f4
NN
11602 || exit 1
11603
a7e609d6 11604@endif fileutils
657b58f4 11605
657b58f4 11606
f0fdfd34 11607
8ec98d6c
NN
11608.PHONY: configure-findutils maybe-configure-findutils
11609maybe-configure-findutils:
e1e5148c
CD
11610@if gcc-bootstrap
11611configure-findutils: stage_current
11612@endif gcc-bootstrap
a7e609d6
PB
11613@if findutils
11614maybe-configure-findutils: configure-findutils
ec92c4d6 11615configure-findutils:
15b527ca 11616 @: $(MAKE); $(unstage)
ec92c4d6 11617 @r=`${PWD_COMMAND}`; export r; \
5230d454 11618 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
11619 test ! -f $(HOST_SUBDIR)/findutils/Makefile || exit 0; \
11620 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/findutils ; \
a675b75a 11621 $(HOST_EXPORTS) \
f0fdfd34
PB
11622 echo Configuring in $(HOST_SUBDIR)/findutils; \
11623 cd "$(HOST_SUBDIR)/findutils" || exit 1; \
8ec98d6c 11624 case $(srcdir) in \
7fc2ca22
PB
11625 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11626 *) topdir=`echo $(HOST_SUBDIR)/findutils/ | \
11627 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 11628 esac; \
7fc2ca22
PB
11629 srcdiroption="--srcdir=$${topdir}/findutils"; \
11630 libsrcdir="$$s/findutils"; \
8ec98d6c 11631 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
11632 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
11633 --target=${target_alias} $${srcdiroption} \
657b58f4 11634 || exit 1
a7e609d6 11635@endif findutils
657b58f4 11636
f0fdfd34
PB
11637
11638
a8a96878
PB
11639
11640
8ec98d6c
NN
11641.PHONY: all-findutils maybe-all-findutils
11642maybe-all-findutils:
e1e5148c
CD
11643@if gcc-bootstrap
11644all-findutils: stage_current
11645@endif gcc-bootstrap
a7e609d6 11646@if findutils
5e6b1f07 11647TARGET-findutils=all
a7e609d6 11648maybe-all-findutils: all-findutils
8ec98d6c 11649all-findutils: configure-findutils
15b527ca 11650 @: $(MAKE); $(unstage)
8ec98d6c
NN
11651 @r=`${PWD_COMMAND}`; export r; \
11652 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 11653 $(HOST_EXPORTS) \
7fc2ca22 11654 (cd $(HOST_SUBDIR)/findutils && \
6532abb6
PB
11655 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
11656 $(TARGET-findutils))
a7e609d6 11657@endif findutils
657b58f4 11658
f0fdfd34 11659
a8a96878
PB
11660
11661
8ec98d6c
NN
11662.PHONY: check-findutils maybe-check-findutils
11663maybe-check-findutils:
a7e609d6
PB
11664@if findutils
11665maybe-check-findutils: check-findutils
657b58f4 11666
8ec98d6c 11667check-findutils:
15b527ca 11668 @: $(MAKE); $(unstage)
8ec98d6c 11669 @r=`${PWD_COMMAND}`; export r; \
5230d454 11670 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 11671 $(HOST_EXPORTS) \
7fc2ca22
PB
11672 (cd $(HOST_SUBDIR)/findutils && \
11673 $(MAKE) $(FLAGS_TO_PASS) check)
657b58f4 11674
a7e609d6 11675@endif findutils
657b58f4 11676
8ec98d6c
NN
11677.PHONY: install-findutils maybe-install-findutils
11678maybe-install-findutils:
a7e609d6
PB
11679@if findutils
11680maybe-install-findutils: install-findutils
657b58f4 11681
8ec98d6c 11682install-findutils: installdirs
15b527ca 11683 @: $(MAKE); $(unstage)
8ec98d6c 11684 @r=`${PWD_COMMAND}`; export r; \
5230d454 11685 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 11686 $(HOST_EXPORTS) \
7fc2ca22 11687 (cd $(HOST_SUBDIR)/findutils && \
93c60b6d 11688 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 11689
a7e609d6 11690@endif findutils
657b58f4 11691
39bbbb69 11692# Other targets (info, dvi, pdf, etc.)
657b58f4 11693
8ec98d6c
NN
11694.PHONY: maybe-info-findutils info-findutils
11695maybe-info-findutils:
a7e609d6
PB
11696@if findutils
11697maybe-info-findutils: info-findutils
657b58f4 11698
8ec98d6c
NN
11699info-findutils: \
11700 configure-findutils
15b527ca 11701 @: $(MAKE); $(unstage)
8ec98d6c 11702 @[ -f ./findutils/Makefile ] || exit 0; \
5230d454
L
11703 r=`${PWD_COMMAND}`; export r; \
11704 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 11705 $(HOST_EXPORTS) \
d5eec917 11706 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11707 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11708 done; \
8ec98d6c 11709 echo "Doing info in findutils" ; \
7fc2ca22 11710 (cd $(HOST_SUBDIR)/findutils && \
657b58f4
NN
11711 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11712 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11713 "RANLIB=$${RANLIB}" \
bffcbe34 11714 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 11715 info) \
657b58f4
NN
11716 || exit 1
11717
a7e609d6 11718@endif findutils
657b58f4 11719
8ec98d6c
NN
11720.PHONY: maybe-dvi-findutils dvi-findutils
11721maybe-dvi-findutils:
a7e609d6
PB
11722@if findutils
11723maybe-dvi-findutils: dvi-findutils
657b58f4 11724
8ec98d6c
NN
11725dvi-findutils: \
11726 configure-findutils
15b527ca 11727 @: $(MAKE); $(unstage)
8ec98d6c 11728 @[ -f ./findutils/Makefile ] || exit 0; \
5230d454
L
11729 r=`${PWD_COMMAND}`; export r; \
11730 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 11731 $(HOST_EXPORTS) \
d5eec917 11732 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11733 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11734 done; \
8ec98d6c 11735 echo "Doing dvi in findutils" ; \
7fc2ca22 11736 (cd $(HOST_SUBDIR)/findutils && \
657b58f4
NN
11737 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11738 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11739 "RANLIB=$${RANLIB}" \
bffcbe34 11740 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 11741 dvi) \
657b58f4
NN
11742 || exit 1
11743
a7e609d6 11744@endif findutils
657b58f4 11745
39bbbb69
DD
11746.PHONY: maybe-pdf-findutils pdf-findutils
11747maybe-pdf-findutils:
11748@if findutils
11749maybe-pdf-findutils: pdf-findutils
11750
11751pdf-findutils: \
11752 configure-findutils
11753 @: $(MAKE); $(unstage)
11754 @[ -f ./findutils/Makefile ] || exit 0; \
11755 r=`${PWD_COMMAND}`; export r; \
11756 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11757 $(HOST_EXPORTS) \
11758 for flag in $(EXTRA_HOST_FLAGS) ; do \
11759 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11760 done; \
11761 echo "Doing pdf in findutils" ; \
11762 (cd $(HOST_SUBDIR)/findutils && \
11763 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11764 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11765 "RANLIB=$${RANLIB}" \
bffcbe34 11766 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
11767 pdf) \
11768 || exit 1
11769
11770@endif findutils
11771
b6fb961f
MS
11772.PHONY: maybe-html-findutils html-findutils
11773maybe-html-findutils:
11774@if findutils
11775maybe-html-findutils: html-findutils
11776
11777html-findutils: \
11778 configure-findutils
15b527ca 11779 @: $(MAKE); $(unstage)
b6fb961f
MS
11780 @[ -f ./findutils/Makefile ] || exit 0; \
11781 r=`${PWD_COMMAND}`; export r; \
11782 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
11783 $(HOST_EXPORTS) \
11784 for flag in $(EXTRA_HOST_FLAGS) ; do \
11785 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11786 done; \
11787 echo "Doing html in findutils" ; \
7fc2ca22 11788 (cd $(HOST_SUBDIR)/findutils && \
b6fb961f
MS
11789 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11790 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11791 "RANLIB=$${RANLIB}" \
bffcbe34 11792 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
11793 html) \
11794 || exit 1
11795
11796@endif findutils
11797
8ec98d6c
NN
11798.PHONY: maybe-TAGS-findutils TAGS-findutils
11799maybe-TAGS-findutils:
a7e609d6
PB
11800@if findutils
11801maybe-TAGS-findutils: TAGS-findutils
657b58f4 11802
8ec98d6c
NN
11803TAGS-findutils: \
11804 configure-findutils
15b527ca 11805 @: $(MAKE); $(unstage)
8ec98d6c 11806 @[ -f ./findutils/Makefile ] || exit 0; \
5230d454
L
11807 r=`${PWD_COMMAND}`; export r; \
11808 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 11809 $(HOST_EXPORTS) \
d5eec917 11810 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11811 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11812 done; \
8ec98d6c 11813 echo "Doing TAGS in findutils" ; \
7fc2ca22 11814 (cd $(HOST_SUBDIR)/findutils && \
657b58f4
NN
11815 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11816 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11817 "RANLIB=$${RANLIB}" \
bffcbe34 11818 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 11819 TAGS) \
657b58f4
NN
11820 || exit 1
11821
a7e609d6 11822@endif findutils
657b58f4 11823
8ec98d6c
NN
11824.PHONY: maybe-install-info-findutils install-info-findutils
11825maybe-install-info-findutils:
a7e609d6
PB
11826@if findutils
11827maybe-install-info-findutils: install-info-findutils
657b58f4 11828
8ec98d6c
NN
11829install-info-findutils: \
11830 configure-findutils \
11831 info-findutils
15b527ca 11832 @: $(MAKE); $(unstage)
8ec98d6c 11833 @[ -f ./findutils/Makefile ] || exit 0; \
5230d454
L
11834 r=`${PWD_COMMAND}`; export r; \
11835 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 11836 $(HOST_EXPORTS) \
d5eec917 11837 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11838 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11839 done; \
8ec98d6c 11840 echo "Doing install-info in findutils" ; \
7fc2ca22 11841 (cd $(HOST_SUBDIR)/findutils && \
657b58f4
NN
11842 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11843 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11844 "RANLIB=$${RANLIB}" \
bffcbe34 11845 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 11846 install-info) \
657b58f4
NN
11847 || exit 1
11848
a7e609d6 11849@endif findutils
657b58f4 11850
d4954b6d
DD
11851.PHONY: maybe-install-pdf-findutils install-pdf-findutils
11852maybe-install-pdf-findutils:
11853@if findutils
11854maybe-install-pdf-findutils: install-pdf-findutils
11855
11856install-pdf-findutils: \
11857 configure-findutils \
11858 pdf-findutils
11859 @: $(MAKE); $(unstage)
11860 @[ -f ./findutils/Makefile ] || exit 0; \
11861 r=`${PWD_COMMAND}`; export r; \
11862 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11863 $(HOST_EXPORTS) \
11864 for flag in $(EXTRA_HOST_FLAGS) ; do \
11865 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11866 done; \
11867 echo "Doing install-pdf in findutils" ; \
11868 (cd $(HOST_SUBDIR)/findutils && \
11869 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11870 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11871 "RANLIB=$${RANLIB}" \
bffcbe34 11872 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
11873 install-pdf) \
11874 || exit 1
11875
11876@endif findutils
11877
83c9add4
CD
11878.PHONY: maybe-install-html-findutils install-html-findutils
11879maybe-install-html-findutils:
11880@if findutils
11881maybe-install-html-findutils: install-html-findutils
11882
11883install-html-findutils: \
11884 configure-findutils \
11885 html-findutils
11886 @: $(MAKE); $(unstage)
11887 @[ -f ./findutils/Makefile ] || exit 0; \
11888 r=`${PWD_COMMAND}`; export r; \
11889 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11890 $(HOST_EXPORTS) \
11891 for flag in $(EXTRA_HOST_FLAGS) ; do \
11892 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11893 done; \
11894 echo "Doing install-html in findutils" ; \
11895 (cd $(HOST_SUBDIR)/findutils && \
11896 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11897 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11898 "RANLIB=$${RANLIB}" \
bffcbe34 11899 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
11900 install-html) \
11901 || exit 1
11902
11903@endif findutils
11904
8ec98d6c
NN
11905.PHONY: maybe-installcheck-findutils installcheck-findutils
11906maybe-installcheck-findutils:
a7e609d6
PB
11907@if findutils
11908maybe-installcheck-findutils: installcheck-findutils
657b58f4 11909
8ec98d6c
NN
11910installcheck-findutils: \
11911 configure-findutils
15b527ca 11912 @: $(MAKE); $(unstage)
8ec98d6c 11913 @[ -f ./findutils/Makefile ] || exit 0; \
5230d454
L
11914 r=`${PWD_COMMAND}`; export r; \
11915 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 11916 $(HOST_EXPORTS) \
d5eec917 11917 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11918 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11919 done; \
8ec98d6c 11920 echo "Doing installcheck in findutils" ; \
7fc2ca22 11921 (cd $(HOST_SUBDIR)/findutils && \
657b58f4
NN
11922 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11923 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11924 "RANLIB=$${RANLIB}" \
bffcbe34 11925 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 11926 installcheck) \
657b58f4
NN
11927 || exit 1
11928
a7e609d6 11929@endif findutils
657b58f4 11930
8ec98d6c
NN
11931.PHONY: maybe-mostlyclean-findutils mostlyclean-findutils
11932maybe-mostlyclean-findutils:
a7e609d6
PB
11933@if findutils
11934maybe-mostlyclean-findutils: mostlyclean-findutils
657b58f4 11935
8ec98d6c 11936mostlyclean-findutils:
15b527ca 11937 @: $(MAKE); $(unstage)
8ec98d6c 11938 @[ -f ./findutils/Makefile ] || exit 0; \
5230d454
L
11939 r=`${PWD_COMMAND}`; export r; \
11940 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 11941 $(HOST_EXPORTS) \
d5eec917 11942 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11943 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11944 done; \
8ec98d6c 11945 echo "Doing mostlyclean in findutils" ; \
7fc2ca22 11946 (cd $(HOST_SUBDIR)/findutils && \
657b58f4
NN
11947 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11948 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11949 "RANLIB=$${RANLIB}" \
bffcbe34 11950 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 11951 mostlyclean) \
657b58f4
NN
11952 || exit 1
11953
a7e609d6 11954@endif findutils
657b58f4 11955
8ec98d6c
NN
11956.PHONY: maybe-clean-findutils clean-findutils
11957maybe-clean-findutils:
a7e609d6
PB
11958@if findutils
11959maybe-clean-findutils: clean-findutils
657b58f4 11960
8ec98d6c 11961clean-findutils:
15b527ca 11962 @: $(MAKE); $(unstage)
8ec98d6c 11963 @[ -f ./findutils/Makefile ] || exit 0; \
5230d454
L
11964 r=`${PWD_COMMAND}`; export r; \
11965 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 11966 $(HOST_EXPORTS) \
d5eec917 11967 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11968 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11969 done; \
8ec98d6c 11970 echo "Doing clean in findutils" ; \
7fc2ca22 11971 (cd $(HOST_SUBDIR)/findutils && \
657b58f4
NN
11972 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11973 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11974 "RANLIB=$${RANLIB}" \
bffcbe34 11975 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 11976 clean) \
657b58f4
NN
11977 || exit 1
11978
a7e609d6 11979@endif findutils
657b58f4 11980
8ec98d6c
NN
11981.PHONY: maybe-distclean-findutils distclean-findutils
11982maybe-distclean-findutils:
a7e609d6
PB
11983@if findutils
11984maybe-distclean-findutils: distclean-findutils
657b58f4 11985
8ec98d6c 11986distclean-findutils:
15b527ca 11987 @: $(MAKE); $(unstage)
8ec98d6c 11988 @[ -f ./findutils/Makefile ] || exit 0; \
5230d454
L
11989 r=`${PWD_COMMAND}`; export r; \
11990 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 11991 $(HOST_EXPORTS) \
d5eec917 11992 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11993 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11994 done; \
8ec98d6c 11995 echo "Doing distclean in findutils" ; \
7fc2ca22 11996 (cd $(HOST_SUBDIR)/findutils && \
657b58f4
NN
11997 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11998 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11999 "RANLIB=$${RANLIB}" \
bffcbe34 12000 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 12001 distclean) \
657b58f4
NN
12002 || exit 1
12003
a7e609d6 12004@endif findutils
657b58f4 12005
8ec98d6c
NN
12006.PHONY: maybe-maintainer-clean-findutils maintainer-clean-findutils
12007maybe-maintainer-clean-findutils:
a7e609d6
PB
12008@if findutils
12009maybe-maintainer-clean-findutils: maintainer-clean-findutils
657b58f4 12010
8ec98d6c 12011maintainer-clean-findutils:
15b527ca 12012 @: $(MAKE); $(unstage)
8ec98d6c 12013 @[ -f ./findutils/Makefile ] || exit 0; \
5230d454
L
12014 r=`${PWD_COMMAND}`; export r; \
12015 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 12016 $(HOST_EXPORTS) \
d5eec917 12017 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
12018 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12019 done; \
8ec98d6c 12020 echo "Doing maintainer-clean in findutils" ; \
7fc2ca22 12021 (cd $(HOST_SUBDIR)/findutils && \
657b58f4
NN
12022 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12023 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12024 "RANLIB=$${RANLIB}" \
bffcbe34 12025 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 12026 maintainer-clean) \
657b58f4
NN
12027 || exit 1
12028
a7e609d6 12029@endif findutils
657b58f4 12030
657b58f4 12031
f0fdfd34 12032
8ec98d6c
NN
12033.PHONY: configure-find maybe-configure-find
12034maybe-configure-find:
e1e5148c
CD
12035@if gcc-bootstrap
12036configure-find: stage_current
12037@endif gcc-bootstrap
a7e609d6
PB
12038@if find
12039maybe-configure-find: configure-find
ec92c4d6 12040configure-find:
15b527ca 12041 @: $(MAKE); $(unstage)
ec92c4d6 12042 @r=`${PWD_COMMAND}`; export r; \
5230d454 12043 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
12044 test ! -f $(HOST_SUBDIR)/find/Makefile || exit 0; \
12045 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/find ; \
a675b75a 12046 $(HOST_EXPORTS) \
f0fdfd34
PB
12047 echo Configuring in $(HOST_SUBDIR)/find; \
12048 cd "$(HOST_SUBDIR)/find" || exit 1; \
8ec98d6c 12049 case $(srcdir) in \
7fc2ca22
PB
12050 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12051 *) topdir=`echo $(HOST_SUBDIR)/find/ | \
12052 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 12053 esac; \
7fc2ca22
PB
12054 srcdiroption="--srcdir=$${topdir}/find"; \
12055 libsrcdir="$$s/find"; \
8ec98d6c 12056 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
12057 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
12058 --target=${target_alias} $${srcdiroption} \
657b58f4 12059 || exit 1
a7e609d6 12060@endif find
657b58f4 12061
f0fdfd34
PB
12062
12063
a8a96878
PB
12064
12065
8ec98d6c
NN
12066.PHONY: all-find maybe-all-find
12067maybe-all-find:
e1e5148c
CD
12068@if gcc-bootstrap
12069all-find: stage_current
12070@endif gcc-bootstrap
a7e609d6 12071@if find
5e6b1f07 12072TARGET-find=all
a7e609d6 12073maybe-all-find: all-find
8ec98d6c 12074all-find: configure-find
15b527ca 12075 @: $(MAKE); $(unstage)
8ec98d6c
NN
12076 @r=`${PWD_COMMAND}`; export r; \
12077 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 12078 $(HOST_EXPORTS) \
7fc2ca22 12079 (cd $(HOST_SUBDIR)/find && \
6532abb6
PB
12080 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
12081 $(TARGET-find))
a7e609d6 12082@endif find
657b58f4 12083
f0fdfd34 12084
a8a96878
PB
12085
12086
8ec98d6c
NN
12087.PHONY: check-find maybe-check-find
12088maybe-check-find:
a7e609d6
PB
12089@if find
12090maybe-check-find: check-find
657b58f4 12091
8ec98d6c 12092check-find:
15b527ca 12093 @: $(MAKE); $(unstage)
8ec98d6c 12094 @r=`${PWD_COMMAND}`; export r; \
5230d454 12095 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 12096 $(HOST_EXPORTS) \
7fc2ca22
PB
12097 (cd $(HOST_SUBDIR)/find && \
12098 $(MAKE) $(FLAGS_TO_PASS) check)
657b58f4 12099
a7e609d6 12100@endif find
657b58f4 12101
8ec98d6c
NN
12102.PHONY: install-find maybe-install-find
12103maybe-install-find:
a7e609d6
PB
12104@if find
12105maybe-install-find: install-find
657b58f4 12106
8ec98d6c 12107install-find: installdirs
15b527ca 12108 @: $(MAKE); $(unstage)
8ec98d6c
NN
12109 @r=`${PWD_COMMAND}`; export r; \
12110 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 12111 $(HOST_EXPORTS) \
7fc2ca22 12112 (cd $(HOST_SUBDIR)/find && \
93c60b6d 12113 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 12114
a7e609d6 12115@endif find
8ec98d6c 12116
39bbbb69 12117# Other targets (info, dvi, pdf, etc.)
8ec98d6c
NN
12118
12119.PHONY: maybe-info-find info-find
12120maybe-info-find:
a7e609d6
PB
12121@if find
12122maybe-info-find: info-find
8ec98d6c
NN
12123
12124info-find: \
12125 configure-find
15b527ca 12126 @: $(MAKE); $(unstage)
8ec98d6c 12127 @[ -f ./find/Makefile ] || exit 0; \
5230d454
L
12128 r=`${PWD_COMMAND}`; export r; \
12129 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 12130 $(HOST_EXPORTS) \
d5eec917 12131 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
12132 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12133 done; \
8ec98d6c 12134 echo "Doing info in find" ; \
7fc2ca22 12135 (cd $(HOST_SUBDIR)/find && \
657b58f4
NN
12136 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12137 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12138 "RANLIB=$${RANLIB}" \
bffcbe34 12139 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 12140 info) \
657b58f4
NN
12141 || exit 1
12142
a7e609d6 12143@endif find
657b58f4 12144
8ec98d6c
NN
12145.PHONY: maybe-dvi-find dvi-find
12146maybe-dvi-find:
a7e609d6
PB
12147@if find
12148maybe-dvi-find: dvi-find
657b58f4 12149
8ec98d6c
NN
12150dvi-find: \
12151 configure-find
15b527ca 12152 @: $(MAKE); $(unstage)
8ec98d6c 12153 @[ -f ./find/Makefile ] || exit 0; \
5230d454
L
12154 r=`${PWD_COMMAND}`; export r; \
12155 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 12156 $(HOST_EXPORTS) \
d5eec917 12157 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
12158 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12159 done; \
8ec98d6c 12160 echo "Doing dvi in find" ; \
7fc2ca22 12161 (cd $(HOST_SUBDIR)/find && \
657b58f4
NN
12162 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12163 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12164 "RANLIB=$${RANLIB}" \
bffcbe34 12165 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 12166 dvi) \
657b58f4
NN
12167 || exit 1
12168
a7e609d6 12169@endif find
657b58f4 12170
39bbbb69
DD
12171.PHONY: maybe-pdf-find pdf-find
12172maybe-pdf-find:
12173@if find
12174maybe-pdf-find: pdf-find
12175
12176pdf-find: \
12177 configure-find
12178 @: $(MAKE); $(unstage)
12179 @[ -f ./find/Makefile ] || exit 0; \
12180 r=`${PWD_COMMAND}`; export r; \
12181 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12182 $(HOST_EXPORTS) \
12183 for flag in $(EXTRA_HOST_FLAGS) ; do \
12184 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12185 done; \
12186 echo "Doing pdf in find" ; \
12187 (cd $(HOST_SUBDIR)/find && \
12188 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12189 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12190 "RANLIB=$${RANLIB}" \
bffcbe34 12191 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
12192 pdf) \
12193 || exit 1
12194
12195@endif find
12196
b6fb961f
MS
12197.PHONY: maybe-html-find html-find
12198maybe-html-find:
12199@if find
12200maybe-html-find: html-find
12201
12202html-find: \
12203 configure-find
15b527ca 12204 @: $(MAKE); $(unstage)
b6fb961f
MS
12205 @[ -f ./find/Makefile ] || exit 0; \
12206 r=`${PWD_COMMAND}`; export r; \
12207 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
12208 $(HOST_EXPORTS) \
12209 for flag in $(EXTRA_HOST_FLAGS) ; do \
12210 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12211 done; \
12212 echo "Doing html in find" ; \
7fc2ca22 12213 (cd $(HOST_SUBDIR)/find && \
b6fb961f
MS
12214 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12215 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12216 "RANLIB=$${RANLIB}" \
bffcbe34 12217 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
12218 html) \
12219 || exit 1
12220
12221@endif find
12222
8ec98d6c
NN
12223.PHONY: maybe-TAGS-find TAGS-find
12224maybe-TAGS-find:
a7e609d6
PB
12225@if find
12226maybe-TAGS-find: TAGS-find
8ec98d6c
NN
12227
12228TAGS-find: \
12229 configure-find
15b527ca 12230 @: $(MAKE); $(unstage)
8ec98d6c 12231 @[ -f ./find/Makefile ] || exit 0; \
5230d454
L
12232 r=`${PWD_COMMAND}`; export r; \
12233 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 12234 $(HOST_EXPORTS) \
d5eec917 12235 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
12236 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12237 done; \
8ec98d6c 12238 echo "Doing TAGS in find" ; \
7fc2ca22 12239 (cd $(HOST_SUBDIR)/find && \
657b58f4
NN
12240 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12241 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12242 "RANLIB=$${RANLIB}" \
bffcbe34 12243 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 12244 TAGS) \
657b58f4
NN
12245 || exit 1
12246
a7e609d6 12247@endif find
657b58f4 12248
8ec98d6c
NN
12249.PHONY: maybe-install-info-find install-info-find
12250maybe-install-info-find:
a7e609d6
PB
12251@if find
12252maybe-install-info-find: install-info-find
657b58f4 12253
8ec98d6c
NN
12254install-info-find: \
12255 configure-find \
12256 info-find
15b527ca 12257 @: $(MAKE); $(unstage)
8ec98d6c 12258 @[ -f ./find/Makefile ] || exit 0; \
5230d454
L
12259 r=`${PWD_COMMAND}`; export r; \
12260 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 12261 $(HOST_EXPORTS) \
d5eec917 12262 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
12263 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12264 done; \
8ec98d6c 12265 echo "Doing install-info in find" ; \
7fc2ca22 12266 (cd $(HOST_SUBDIR)/find && \
657b58f4
NN
12267 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12268 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12269 "RANLIB=$${RANLIB}" \
bffcbe34 12270 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 12271 install-info) \
657b58f4
NN
12272 || exit 1
12273
a7e609d6 12274@endif find
657b58f4 12275
d4954b6d
DD
12276.PHONY: maybe-install-pdf-find install-pdf-find
12277maybe-install-pdf-find:
12278@if find
12279maybe-install-pdf-find: install-pdf-find
12280
12281install-pdf-find: \
12282 configure-find \
12283 pdf-find
12284 @: $(MAKE); $(unstage)
12285 @[ -f ./find/Makefile ] || exit 0; \
12286 r=`${PWD_COMMAND}`; export r; \
12287 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12288 $(HOST_EXPORTS) \
12289 for flag in $(EXTRA_HOST_FLAGS) ; do \
12290 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12291 done; \
12292 echo "Doing install-pdf in find" ; \
12293 (cd $(HOST_SUBDIR)/find && \
12294 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12295 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12296 "RANLIB=$${RANLIB}" \
bffcbe34 12297 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
12298 install-pdf) \
12299 || exit 1
12300
12301@endif find
12302
83c9add4
CD
12303.PHONY: maybe-install-html-find install-html-find
12304maybe-install-html-find:
12305@if find
12306maybe-install-html-find: install-html-find
12307
12308install-html-find: \
12309 configure-find \
12310 html-find
12311 @: $(MAKE); $(unstage)
12312 @[ -f ./find/Makefile ] || exit 0; \
12313 r=`${PWD_COMMAND}`; export r; \
12314 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12315 $(HOST_EXPORTS) \
12316 for flag in $(EXTRA_HOST_FLAGS) ; do \
12317 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12318 done; \
12319 echo "Doing install-html in find" ; \
12320 (cd $(HOST_SUBDIR)/find && \
12321 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12322 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12323 "RANLIB=$${RANLIB}" \
bffcbe34 12324 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
12325 install-html) \
12326 || exit 1
12327
12328@endif find
12329
8ec98d6c
NN
12330.PHONY: maybe-installcheck-find installcheck-find
12331maybe-installcheck-find:
a7e609d6
PB
12332@if find
12333maybe-installcheck-find: installcheck-find
657b58f4 12334
8ec98d6c
NN
12335installcheck-find: \
12336 configure-find
15b527ca 12337 @: $(MAKE); $(unstage)
8ec98d6c 12338 @[ -f ./find/Makefile ] || exit 0; \
5230d454
L
12339 r=`${PWD_COMMAND}`; export r; \
12340 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 12341 $(HOST_EXPORTS) \
d5eec917 12342 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
12343 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12344 done; \
8ec98d6c 12345 echo "Doing installcheck in find" ; \
7fc2ca22 12346 (cd $(HOST_SUBDIR)/find && \
657b58f4
NN
12347 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12348 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12349 "RANLIB=$${RANLIB}" \
bffcbe34 12350 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 12351 installcheck) \
657b58f4
NN
12352 || exit 1
12353
a7e609d6 12354@endif find
657b58f4 12355
8ec98d6c
NN
12356.PHONY: maybe-mostlyclean-find mostlyclean-find
12357maybe-mostlyclean-find:
a7e609d6
PB
12358@if find
12359maybe-mostlyclean-find: mostlyclean-find
657b58f4 12360
8ec98d6c 12361mostlyclean-find:
15b527ca 12362 @: $(MAKE); $(unstage)
8ec98d6c 12363 @[ -f ./find/Makefile ] || exit 0; \
5230d454
L
12364 r=`${PWD_COMMAND}`; export r; \
12365 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 12366 $(HOST_EXPORTS) \
d5eec917 12367 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
12368 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12369 done; \
8ec98d6c 12370 echo "Doing mostlyclean in find" ; \
7fc2ca22 12371 (cd $(HOST_SUBDIR)/find && \
657b58f4
NN
12372 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12373 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12374 "RANLIB=$${RANLIB}" \
bffcbe34 12375 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 12376 mostlyclean) \
657b58f4
NN
12377 || exit 1
12378
a7e609d6 12379@endif find
657b58f4 12380
8ec98d6c
NN
12381.PHONY: maybe-clean-find clean-find
12382maybe-clean-find:
a7e609d6
PB
12383@if find
12384maybe-clean-find: clean-find
657b58f4 12385
8ec98d6c 12386clean-find:
15b527ca 12387 @: $(MAKE); $(unstage)
8ec98d6c 12388 @[ -f ./find/Makefile ] || exit 0; \
5230d454
L
12389 r=`${PWD_COMMAND}`; export r; \
12390 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 12391 $(HOST_EXPORTS) \
d5eec917 12392 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
12393 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12394 done; \
8ec98d6c 12395 echo "Doing clean in find" ; \
7fc2ca22 12396 (cd $(HOST_SUBDIR)/find && \
657b58f4
NN
12397 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12398 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12399 "RANLIB=$${RANLIB}" \
bffcbe34 12400 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 12401 clean) \
657b58f4
NN
12402 || exit 1
12403
a7e609d6 12404@endif find
657b58f4 12405
8ec98d6c
NN
12406.PHONY: maybe-distclean-find distclean-find
12407maybe-distclean-find:
a7e609d6
PB
12408@if find
12409maybe-distclean-find: distclean-find
657b58f4 12410
8ec98d6c 12411distclean-find:
15b527ca 12412 @: $(MAKE); $(unstage)
8ec98d6c 12413 @[ -f ./find/Makefile ] || exit 0; \
5230d454
L
12414 r=`${PWD_COMMAND}`; export r; \
12415 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 12416 $(HOST_EXPORTS) \
d5eec917 12417 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
12418 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12419 done; \
8ec98d6c 12420 echo "Doing distclean in find" ; \
7fc2ca22 12421 (cd $(HOST_SUBDIR)/find && \
657b58f4
NN
12422 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12423 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12424 "RANLIB=$${RANLIB}" \
bffcbe34 12425 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 12426 distclean) \
657b58f4
NN
12427 || exit 1
12428
a7e609d6 12429@endif find
657b58f4 12430
8ec98d6c
NN
12431.PHONY: maybe-maintainer-clean-find maintainer-clean-find
12432maybe-maintainer-clean-find:
a7e609d6
PB
12433@if find
12434maybe-maintainer-clean-find: maintainer-clean-find
657b58f4 12435
8ec98d6c 12436maintainer-clean-find:
15b527ca 12437 @: $(MAKE); $(unstage)
8ec98d6c 12438 @[ -f ./find/Makefile ] || exit 0; \
5230d454
L
12439 r=`${PWD_COMMAND}`; export r; \
12440 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 12441 $(HOST_EXPORTS) \
d5eec917 12442 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
12443 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12444 done; \
8ec98d6c 12445 echo "Doing maintainer-clean in find" ; \
7fc2ca22 12446 (cd $(HOST_SUBDIR)/find && \
657b58f4
NN
12447 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12448 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12449 "RANLIB=$${RANLIB}" \
bffcbe34 12450 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 12451 maintainer-clean) \
657b58f4
NN
12452 || exit 1
12453
a7e609d6 12454@endif find
657b58f4 12455
657b58f4 12456
f0fdfd34 12457
5350aa8b
GK
12458.PHONY: configure-fixincludes maybe-configure-fixincludes
12459maybe-configure-fixincludes:
e1e5148c
CD
12460@if gcc-bootstrap
12461configure-fixincludes: stage_current
12462@endif gcc-bootstrap
5350aa8b
GK
12463@if fixincludes
12464maybe-configure-fixincludes: configure-fixincludes
ec92c4d6 12465configure-fixincludes:
15b527ca 12466 @: $(MAKE); $(unstage)
ec92c4d6 12467 @r=`${PWD_COMMAND}`; export r; \
5350aa8b 12468 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
12469 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
12470 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes ; \
5350aa8b 12471 $(HOST_EXPORTS) \
f0fdfd34
PB
12472 echo Configuring in $(HOST_SUBDIR)/fixincludes; \
12473 cd "$(HOST_SUBDIR)/fixincludes" || exit 1; \
5350aa8b 12474 case $(srcdir) in \
7fc2ca22
PB
12475 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12476 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
12477 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5350aa8b 12478 esac; \
7fc2ca22
PB
12479 srcdiroption="--srcdir=$${topdir}/fixincludes"; \
12480 libsrcdir="$$s/fixincludes"; \
5350aa8b 12481 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
12482 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
12483 --target=${target_alias} $${srcdiroption} \
5350aa8b
GK
12484 || exit 1
12485@endif fixincludes
12486
f0fdfd34
PB
12487
12488
a8a96878
PB
12489
12490
5350aa8b
GK
12491.PHONY: all-fixincludes maybe-all-fixincludes
12492maybe-all-fixincludes:
e1e5148c
CD
12493@if gcc-bootstrap
12494all-fixincludes: stage_current
12495@endif gcc-bootstrap
5350aa8b
GK
12496@if fixincludes
12497TARGET-fixincludes=all
12498maybe-all-fixincludes: all-fixincludes
12499all-fixincludes: configure-fixincludes
15b527ca 12500 @: $(MAKE); $(unstage)
5350aa8b
GK
12501 @r=`${PWD_COMMAND}`; export r; \
12502 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5350aa8b 12503 $(HOST_EXPORTS) \
7fc2ca22 12504 (cd $(HOST_SUBDIR)/fixincludes && \
6532abb6
PB
12505 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
12506 $(TARGET-fixincludes))
5350aa8b
GK
12507@endif fixincludes
12508
f0fdfd34 12509
a8a96878
PB
12510
12511
5350aa8b
GK
12512.PHONY: check-fixincludes maybe-check-fixincludes
12513maybe-check-fixincludes:
12514@if fixincludes
12515maybe-check-fixincludes: check-fixincludes
12516
12517check-fixincludes:
15b527ca 12518 @: $(MAKE); $(unstage)
5350aa8b
GK
12519 @r=`${PWD_COMMAND}`; export r; \
12520 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5350aa8b 12521 $(HOST_EXPORTS) \
7fc2ca22
PB
12522 (cd $(HOST_SUBDIR)/fixincludes && \
12523 $(MAKE) $(FLAGS_TO_PASS) check)
5350aa8b
GK
12524
12525@endif fixincludes
12526
12527.PHONY: install-fixincludes maybe-install-fixincludes
12528maybe-install-fixincludes:
12529@if fixincludes
12530maybe-install-fixincludes: install-fixincludes
12531
12532install-fixincludes: installdirs
15b527ca 12533 @: $(MAKE); $(unstage)
5350aa8b
GK
12534 @r=`${PWD_COMMAND}`; export r; \
12535 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5350aa8b 12536 $(HOST_EXPORTS) \
7fc2ca22 12537 (cd $(HOST_SUBDIR)/fixincludes && \
93c60b6d 12538 $(MAKE) $(FLAGS_TO_PASS) install)
5350aa8b
GK
12539
12540@endif fixincludes
12541
39bbbb69 12542# Other targets (info, dvi, pdf, etc.)
5350aa8b
GK
12543
12544.PHONY: maybe-info-fixincludes info-fixincludes
12545maybe-info-fixincludes:
12546@if fixincludes
12547maybe-info-fixincludes: info-fixincludes
12548
9c28809c
DD
12549info-fixincludes: \
12550 configure-fixincludes
12551 @: $(MAKE); $(unstage)
12552 @[ -f ./fixincludes/Makefile ] || exit 0; \
12553 r=`${PWD_COMMAND}`; export r; \
12554 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12555 $(HOST_EXPORTS) \
12556 for flag in $(EXTRA_HOST_FLAGS) ; do \
12557 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12558 done; \
12559 echo "Doing info in fixincludes" ; \
12560 (cd $(HOST_SUBDIR)/fixincludes && \
12561 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12562 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12563 "RANLIB=$${RANLIB}" \
bffcbe34 12564 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9c28809c
DD
12565 info) \
12566 || exit 1
5350aa8b
GK
12567
12568@endif fixincludes
12569
12570.PHONY: maybe-dvi-fixincludes dvi-fixincludes
12571maybe-dvi-fixincludes:
12572@if fixincludes
12573maybe-dvi-fixincludes: dvi-fixincludes
12574
9c28809c
DD
12575dvi-fixincludes: \
12576 configure-fixincludes
12577 @: $(MAKE); $(unstage)
12578 @[ -f ./fixincludes/Makefile ] || exit 0; \
12579 r=`${PWD_COMMAND}`; export r; \
12580 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12581 $(HOST_EXPORTS) \
12582 for flag in $(EXTRA_HOST_FLAGS) ; do \
12583 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12584 done; \
12585 echo "Doing dvi in fixincludes" ; \
12586 (cd $(HOST_SUBDIR)/fixincludes && \
12587 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12588 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12589 "RANLIB=$${RANLIB}" \
bffcbe34 12590 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9c28809c
DD
12591 dvi) \
12592 || exit 1
5350aa8b
GK
12593
12594@endif fixincludes
12595
39bbbb69
DD
12596.PHONY: maybe-pdf-fixincludes pdf-fixincludes
12597maybe-pdf-fixincludes:
12598@if fixincludes
12599maybe-pdf-fixincludes: pdf-fixincludes
12600
9c28809c
DD
12601pdf-fixincludes: \
12602 configure-fixincludes
12603 @: $(MAKE); $(unstage)
12604 @[ -f ./fixincludes/Makefile ] || exit 0; \
12605 r=`${PWD_COMMAND}`; export r; \
12606 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12607 $(HOST_EXPORTS) \
12608 for flag in $(EXTRA_HOST_FLAGS) ; do \
12609 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12610 done; \
12611 echo "Doing pdf in fixincludes" ; \
12612 (cd $(HOST_SUBDIR)/fixincludes && \
12613 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12614 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12615 "RANLIB=$${RANLIB}" \
bffcbe34 12616 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9c28809c
DD
12617 pdf) \
12618 || exit 1
39bbbb69
DD
12619
12620@endif fixincludes
12621
b6fb961f
MS
12622.PHONY: maybe-html-fixincludes html-fixincludes
12623maybe-html-fixincludes:
12624@if fixincludes
12625maybe-html-fixincludes: html-fixincludes
12626
12627html-fixincludes: \
12628 configure-fixincludes
15b527ca 12629 @: $(MAKE); $(unstage)
b6fb961f
MS
12630 @[ -f ./fixincludes/Makefile ] || exit 0; \
12631 r=`${PWD_COMMAND}`; export r; \
12632 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
12633 $(HOST_EXPORTS) \
12634 for flag in $(EXTRA_HOST_FLAGS) ; do \
12635 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12636 done; \
12637 echo "Doing html in fixincludes" ; \
7fc2ca22 12638 (cd $(HOST_SUBDIR)/fixincludes && \
b6fb961f
MS
12639 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12640 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12641 "RANLIB=$${RANLIB}" \
bffcbe34 12642 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
12643 html) \
12644 || exit 1
12645
12646@endif fixincludes
12647
5350aa8b
GK
12648.PHONY: maybe-TAGS-fixincludes TAGS-fixincludes
12649maybe-TAGS-fixincludes:
12650@if fixincludes
12651maybe-TAGS-fixincludes: TAGS-fixincludes
12652
38b33663
PB
12653# fixincludes doesn't support TAGS.
12654TAGS-fixincludes:
5350aa8b
GK
12655
12656@endif fixincludes
12657
12658.PHONY: maybe-install-info-fixincludes install-info-fixincludes
12659maybe-install-info-fixincludes:
12660@if fixincludes
12661maybe-install-info-fixincludes: install-info-fixincludes
12662
9c28809c
DD
12663install-info-fixincludes: \
12664 configure-fixincludes \
12665 info-fixincludes
12666 @: $(MAKE); $(unstage)
12667 @[ -f ./fixincludes/Makefile ] || exit 0; \
12668 r=`${PWD_COMMAND}`; export r; \
12669 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12670 $(HOST_EXPORTS) \
12671 for flag in $(EXTRA_HOST_FLAGS) ; do \
12672 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12673 done; \
12674 echo "Doing install-info in fixincludes" ; \
12675 (cd $(HOST_SUBDIR)/fixincludes && \
12676 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12677 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12678 "RANLIB=$${RANLIB}" \
bffcbe34 12679 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9c28809c
DD
12680 install-info) \
12681 || exit 1
5350aa8b
GK
12682
12683@endif fixincludes
12684
d4954b6d
DD
12685.PHONY: maybe-install-pdf-fixincludes install-pdf-fixincludes
12686maybe-install-pdf-fixincludes:
12687@if fixincludes
12688maybe-install-pdf-fixincludes: install-pdf-fixincludes
12689
9c28809c
DD
12690install-pdf-fixincludes: \
12691 configure-fixincludes \
12692 pdf-fixincludes
12693 @: $(MAKE); $(unstage)
12694 @[ -f ./fixincludes/Makefile ] || exit 0; \
12695 r=`${PWD_COMMAND}`; export r; \
12696 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12697 $(HOST_EXPORTS) \
12698 for flag in $(EXTRA_HOST_FLAGS) ; do \
12699 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12700 done; \
12701 echo "Doing install-pdf in fixincludes" ; \
12702 (cd $(HOST_SUBDIR)/fixincludes && \
12703 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12704 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12705 "RANLIB=$${RANLIB}" \
bffcbe34 12706 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9c28809c
DD
12707 install-pdf) \
12708 || exit 1
d4954b6d
DD
12709
12710@endif fixincludes
12711
83c9add4
CD
12712.PHONY: maybe-install-html-fixincludes install-html-fixincludes
12713maybe-install-html-fixincludes:
12714@if fixincludes
12715maybe-install-html-fixincludes: install-html-fixincludes
12716
12717install-html-fixincludes: \
12718 configure-fixincludes \
12719 html-fixincludes
12720 @: $(MAKE); $(unstage)
12721 @[ -f ./fixincludes/Makefile ] || exit 0; \
12722 r=`${PWD_COMMAND}`; export r; \
12723 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12724 $(HOST_EXPORTS) \
12725 for flag in $(EXTRA_HOST_FLAGS) ; do \
12726 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12727 done; \
12728 echo "Doing install-html in fixincludes" ; \
12729 (cd $(HOST_SUBDIR)/fixincludes && \
12730 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12731 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12732 "RANLIB=$${RANLIB}" \
bffcbe34 12733 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
12734 install-html) \
12735 || exit 1
12736
12737@endif fixincludes
12738
5350aa8b
GK
12739.PHONY: maybe-installcheck-fixincludes installcheck-fixincludes
12740maybe-installcheck-fixincludes:
12741@if fixincludes
12742maybe-installcheck-fixincludes: installcheck-fixincludes
12743
9c28809c
DD
12744installcheck-fixincludes: \
12745 configure-fixincludes
12746 @: $(MAKE); $(unstage)
12747 @[ -f ./fixincludes/Makefile ] || exit 0; \
12748 r=`${PWD_COMMAND}`; export r; \
12749 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12750 $(HOST_EXPORTS) \
12751 for flag in $(EXTRA_HOST_FLAGS) ; do \
12752 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12753 done; \
12754 echo "Doing installcheck in fixincludes" ; \
12755 (cd $(HOST_SUBDIR)/fixincludes && \
12756 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12757 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12758 "RANLIB=$${RANLIB}" \
bffcbe34 12759 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9c28809c
DD
12760 installcheck) \
12761 || exit 1
5350aa8b
GK
12762
12763@endif fixincludes
12764
12765.PHONY: maybe-mostlyclean-fixincludes mostlyclean-fixincludes
12766maybe-mostlyclean-fixincludes:
12767@if fixincludes
12768maybe-mostlyclean-fixincludes: mostlyclean-fixincludes
12769
12770mostlyclean-fixincludes:
15b527ca 12771 @: $(MAKE); $(unstage)
5350aa8b
GK
12772 @[ -f ./fixincludes/Makefile ] || exit 0; \
12773 r=`${PWD_COMMAND}`; export r; \
12774 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5350aa8b
GK
12775 $(HOST_EXPORTS) \
12776 for flag in $(EXTRA_HOST_FLAGS) ; do \
12777 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12778 done; \
12779 echo "Doing mostlyclean in fixincludes" ; \
7fc2ca22 12780 (cd $(HOST_SUBDIR)/fixincludes && \
5350aa8b
GK
12781 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12782 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12783 "RANLIB=$${RANLIB}" \
bffcbe34 12784 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
5350aa8b
GK
12785 mostlyclean) \
12786 || exit 1
12787
12788@endif fixincludes
12789
12790.PHONY: maybe-clean-fixincludes clean-fixincludes
12791maybe-clean-fixincludes:
12792@if fixincludes
12793maybe-clean-fixincludes: clean-fixincludes
12794
12795clean-fixincludes:
15b527ca 12796 @: $(MAKE); $(unstage)
5350aa8b
GK
12797 @[ -f ./fixincludes/Makefile ] || exit 0; \
12798 r=`${PWD_COMMAND}`; export r; \
12799 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5350aa8b
GK
12800 $(HOST_EXPORTS) \
12801 for flag in $(EXTRA_HOST_FLAGS) ; do \
12802 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12803 done; \
12804 echo "Doing clean in fixincludes" ; \
7fc2ca22 12805 (cd $(HOST_SUBDIR)/fixincludes && \
5350aa8b
GK
12806 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12807 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12808 "RANLIB=$${RANLIB}" \
bffcbe34 12809 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
5350aa8b
GK
12810 clean) \
12811 || exit 1
12812
12813@endif fixincludes
12814
12815.PHONY: maybe-distclean-fixincludes distclean-fixincludes
12816maybe-distclean-fixincludes:
12817@if fixincludes
12818maybe-distclean-fixincludes: distclean-fixincludes
12819
12820distclean-fixincludes:
15b527ca 12821 @: $(MAKE); $(unstage)
5350aa8b
GK
12822 @[ -f ./fixincludes/Makefile ] || exit 0; \
12823 r=`${PWD_COMMAND}`; export r; \
12824 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5350aa8b
GK
12825 $(HOST_EXPORTS) \
12826 for flag in $(EXTRA_HOST_FLAGS) ; do \
12827 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12828 done; \
12829 echo "Doing distclean in fixincludes" ; \
7fc2ca22 12830 (cd $(HOST_SUBDIR)/fixincludes && \
5350aa8b
GK
12831 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12832 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12833 "RANLIB=$${RANLIB}" \
bffcbe34 12834 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
5350aa8b
GK
12835 distclean) \
12836 || exit 1
12837
12838@endif fixincludes
12839
12840.PHONY: maybe-maintainer-clean-fixincludes maintainer-clean-fixincludes
12841maybe-maintainer-clean-fixincludes:
12842@if fixincludes
12843maybe-maintainer-clean-fixincludes: maintainer-clean-fixincludes
12844
12845maintainer-clean-fixincludes:
15b527ca 12846 @: $(MAKE); $(unstage)
5350aa8b
GK
12847 @[ -f ./fixincludes/Makefile ] || exit 0; \
12848 r=`${PWD_COMMAND}`; export r; \
12849 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5350aa8b
GK
12850 $(HOST_EXPORTS) \
12851 for flag in $(EXTRA_HOST_FLAGS) ; do \
12852 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12853 done; \
12854 echo "Doing maintainer-clean in fixincludes" ; \
7fc2ca22 12855 (cd $(HOST_SUBDIR)/fixincludes && \
5350aa8b
GK
12856 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12857 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12858 "RANLIB=$${RANLIB}" \
bffcbe34 12859 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
5350aa8b
GK
12860 maintainer-clean) \
12861 || exit 1
12862
12863@endif fixincludes
12864
12865
f0fdfd34 12866
8ec98d6c
NN
12867.PHONY: configure-flex maybe-configure-flex
12868maybe-configure-flex:
e1e5148c
CD
12869@if gcc-bootstrap
12870configure-flex: stage_current
12871@endif gcc-bootstrap
a7e609d6
PB
12872@if flex
12873maybe-configure-flex: configure-flex
ec92c4d6 12874configure-flex:
15b527ca 12875 @: $(MAKE); $(unstage)
ec92c4d6 12876 @r=`${PWD_COMMAND}`; export r; \
8ec98d6c 12877 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
12878 test ! -f $(HOST_SUBDIR)/flex/Makefile || exit 0; \
12879 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/flex ; \
a675b75a 12880 $(HOST_EXPORTS) \
f0fdfd34
PB
12881 echo Configuring in $(HOST_SUBDIR)/flex; \
12882 cd "$(HOST_SUBDIR)/flex" || exit 1; \
8ec98d6c 12883 case $(srcdir) in \
7fc2ca22
PB
12884 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12885 *) topdir=`echo $(HOST_SUBDIR)/flex/ | \
12886 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 12887 esac; \
7fc2ca22
PB
12888 srcdiroption="--srcdir=$${topdir}/flex"; \
12889 libsrcdir="$$s/flex"; \
8ec98d6c 12890 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
12891 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
12892 --target=${target_alias} $${srcdiroption} \
8ec98d6c 12893 || exit 1
a7e609d6 12894@endif flex
8ec98d6c 12895
f0fdfd34
PB
12896
12897
a8a96878
PB
12898
12899
8ec98d6c
NN
12900.PHONY: all-flex maybe-all-flex
12901maybe-all-flex:
e1e5148c
CD
12902@if gcc-bootstrap
12903all-flex: stage_current
12904@endif gcc-bootstrap
a7e609d6 12905@if flex
5e6b1f07 12906TARGET-flex=all
a7e609d6 12907maybe-all-flex: all-flex
8ec98d6c 12908all-flex: configure-flex
15b527ca 12909 @: $(MAKE); $(unstage)
8ec98d6c
NN
12910 @r=`${PWD_COMMAND}`; export r; \
12911 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 12912 $(HOST_EXPORTS) \
7fc2ca22 12913 (cd $(HOST_SUBDIR)/flex && \
6532abb6
PB
12914 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
12915 $(TARGET-flex))
a7e609d6 12916@endif flex
8ec98d6c 12917
f0fdfd34 12918
a8a96878
PB
12919
12920
8ec98d6c
NN
12921.PHONY: check-flex maybe-check-flex
12922maybe-check-flex:
a7e609d6
PB
12923@if flex
12924maybe-check-flex: check-flex
8ec98d6c
NN
12925
12926# This module is only tested in a native toolchain.
12927check-flex:
15b527ca 12928 @: $(MAKE); $(unstage)
8ec98d6c
NN
12929 @if [ '$(host)' = '$(target)' ] ; then \
12930 r=`${PWD_COMMAND}`; export r; \
12931 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 12932 $(HOST_EXPORTS) \
7fc2ca22 12933 (cd $(HOST_SUBDIR)/flex && \
80e4c577 12934 $(MAKE) $(FLAGS_TO_PASS) check); \
8ec98d6c
NN
12935 fi
12936
a7e609d6 12937@endif flex
8ec98d6c
NN
12938
12939.PHONY: install-flex maybe-install-flex
12940maybe-install-flex:
a7e609d6
PB
12941@if flex
12942maybe-install-flex: install-flex
8ec98d6c
NN
12943
12944install-flex: installdirs
15b527ca 12945 @: $(MAKE); $(unstage)
8ec98d6c
NN
12946 @r=`${PWD_COMMAND}`; export r; \
12947 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 12948 $(HOST_EXPORTS) \
7fc2ca22 12949 (cd $(HOST_SUBDIR)/flex && \
93c60b6d 12950 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 12951
a7e609d6 12952@endif flex
8ec98d6c 12953
39bbbb69 12954# Other targets (info, dvi, pdf, etc.)
8ec98d6c
NN
12955
12956.PHONY: maybe-info-flex info-flex
12957maybe-info-flex:
a7e609d6
PB
12958@if flex
12959maybe-info-flex: info-flex
8ec98d6c
NN
12960
12961info-flex: \
12962 configure-flex
15b527ca 12963 @: $(MAKE); $(unstage)
8ec98d6c 12964 @[ -f ./flex/Makefile ] || exit 0; \
5230d454
L
12965 r=`${PWD_COMMAND}`; export r; \
12966 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 12967 $(HOST_EXPORTS) \
d5eec917 12968 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
12969 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12970 done; \
8ec98d6c 12971 echo "Doing info in flex" ; \
7fc2ca22 12972 (cd $(HOST_SUBDIR)/flex && \
657b58f4
NN
12973 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12974 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12975 "RANLIB=$${RANLIB}" \
bffcbe34 12976 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 12977 info) \
657b58f4
NN
12978 || exit 1
12979
a7e609d6 12980@endif flex
657b58f4 12981
8ec98d6c
NN
12982.PHONY: maybe-dvi-flex dvi-flex
12983maybe-dvi-flex:
a7e609d6
PB
12984@if flex
12985maybe-dvi-flex: dvi-flex
657b58f4 12986
8ec98d6c
NN
12987dvi-flex: \
12988 configure-flex
15b527ca 12989 @: $(MAKE); $(unstage)
8ec98d6c 12990 @[ -f ./flex/Makefile ] || exit 0; \
5230d454
L
12991 r=`${PWD_COMMAND}`; export r; \
12992 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 12993 $(HOST_EXPORTS) \
d5eec917 12994 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
12995 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12996 done; \
8ec98d6c 12997 echo "Doing dvi in flex" ; \
7fc2ca22 12998 (cd $(HOST_SUBDIR)/flex && \
657b58f4
NN
12999 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13000 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13001 "RANLIB=$${RANLIB}" \
bffcbe34 13002 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 13003 dvi) \
657b58f4
NN
13004 || exit 1
13005
a7e609d6 13006@endif flex
657b58f4 13007
39bbbb69
DD
13008.PHONY: maybe-pdf-flex pdf-flex
13009maybe-pdf-flex:
13010@if flex
13011maybe-pdf-flex: pdf-flex
13012
13013pdf-flex: \
13014 configure-flex
13015 @: $(MAKE); $(unstage)
13016 @[ -f ./flex/Makefile ] || exit 0; \
13017 r=`${PWD_COMMAND}`; export r; \
13018 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13019 $(HOST_EXPORTS) \
13020 for flag in $(EXTRA_HOST_FLAGS) ; do \
13021 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13022 done; \
13023 echo "Doing pdf in flex" ; \
13024 (cd $(HOST_SUBDIR)/flex && \
13025 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13026 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13027 "RANLIB=$${RANLIB}" \
bffcbe34 13028 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
13029 pdf) \
13030 || exit 1
13031
13032@endif flex
13033
b6fb961f
MS
13034.PHONY: maybe-html-flex html-flex
13035maybe-html-flex:
13036@if flex
13037maybe-html-flex: html-flex
13038
13039html-flex: \
13040 configure-flex
15b527ca 13041 @: $(MAKE); $(unstage)
b6fb961f
MS
13042 @[ -f ./flex/Makefile ] || exit 0; \
13043 r=`${PWD_COMMAND}`; export r; \
13044 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
13045 $(HOST_EXPORTS) \
13046 for flag in $(EXTRA_HOST_FLAGS) ; do \
13047 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13048 done; \
13049 echo "Doing html in flex" ; \
7fc2ca22 13050 (cd $(HOST_SUBDIR)/flex && \
b6fb961f
MS
13051 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13052 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13053 "RANLIB=$${RANLIB}" \
bffcbe34 13054 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
13055 html) \
13056 || exit 1
13057
13058@endif flex
13059
8ec98d6c
NN
13060.PHONY: maybe-TAGS-flex TAGS-flex
13061maybe-TAGS-flex:
a7e609d6
PB
13062@if flex
13063maybe-TAGS-flex: TAGS-flex
657b58f4 13064
8ec98d6c
NN
13065TAGS-flex: \
13066 configure-flex
15b527ca 13067 @: $(MAKE); $(unstage)
8ec98d6c 13068 @[ -f ./flex/Makefile ] || exit 0; \
5230d454
L
13069 r=`${PWD_COMMAND}`; export r; \
13070 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 13071 $(HOST_EXPORTS) \
d5eec917 13072 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
13073 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13074 done; \
8ec98d6c 13075 echo "Doing TAGS in flex" ; \
7fc2ca22 13076 (cd $(HOST_SUBDIR)/flex && \
657b58f4
NN
13077 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13078 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13079 "RANLIB=$${RANLIB}" \
bffcbe34 13080 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 13081 TAGS) \
657b58f4
NN
13082 || exit 1
13083
a7e609d6 13084@endif flex
657b58f4 13085
8ec98d6c
NN
13086.PHONY: maybe-install-info-flex install-info-flex
13087maybe-install-info-flex:
a7e609d6
PB
13088@if flex
13089maybe-install-info-flex: install-info-flex
657b58f4 13090
8ec98d6c
NN
13091install-info-flex: \
13092 configure-flex \
13093 info-flex
15b527ca 13094 @: $(MAKE); $(unstage)
8ec98d6c 13095 @[ -f ./flex/Makefile ] || exit 0; \
5230d454
L
13096 r=`${PWD_COMMAND}`; export r; \
13097 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 13098 $(HOST_EXPORTS) \
d5eec917 13099 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
13100 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13101 done; \
8ec98d6c 13102 echo "Doing install-info in flex" ; \
7fc2ca22 13103 (cd $(HOST_SUBDIR)/flex && \
657b58f4
NN
13104 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13105 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13106 "RANLIB=$${RANLIB}" \
bffcbe34 13107 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 13108 install-info) \
657b58f4
NN
13109 || exit 1
13110
a7e609d6 13111@endif flex
657b58f4 13112
d4954b6d
DD
13113.PHONY: maybe-install-pdf-flex install-pdf-flex
13114maybe-install-pdf-flex:
13115@if flex
13116maybe-install-pdf-flex: install-pdf-flex
13117
13118install-pdf-flex: \
13119 configure-flex \
13120 pdf-flex
13121 @: $(MAKE); $(unstage)
13122 @[ -f ./flex/Makefile ] || exit 0; \
13123 r=`${PWD_COMMAND}`; export r; \
13124 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13125 $(HOST_EXPORTS) \
13126 for flag in $(EXTRA_HOST_FLAGS) ; do \
13127 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13128 done; \
13129 echo "Doing install-pdf in flex" ; \
13130 (cd $(HOST_SUBDIR)/flex && \
13131 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13132 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13133 "RANLIB=$${RANLIB}" \
bffcbe34 13134 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
13135 install-pdf) \
13136 || exit 1
13137
13138@endif flex
13139
83c9add4
CD
13140.PHONY: maybe-install-html-flex install-html-flex
13141maybe-install-html-flex:
13142@if flex
13143maybe-install-html-flex: install-html-flex
13144
13145install-html-flex: \
13146 configure-flex \
13147 html-flex
13148 @: $(MAKE); $(unstage)
13149 @[ -f ./flex/Makefile ] || exit 0; \
13150 r=`${PWD_COMMAND}`; export r; \
13151 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13152 $(HOST_EXPORTS) \
13153 for flag in $(EXTRA_HOST_FLAGS) ; do \
13154 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13155 done; \
13156 echo "Doing install-html in flex" ; \
13157 (cd $(HOST_SUBDIR)/flex && \
13158 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13159 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13160 "RANLIB=$${RANLIB}" \
bffcbe34 13161 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
13162 install-html) \
13163 || exit 1
13164
13165@endif flex
13166
8ec98d6c
NN
13167.PHONY: maybe-installcheck-flex installcheck-flex
13168maybe-installcheck-flex:
a7e609d6
PB
13169@if flex
13170maybe-installcheck-flex: installcheck-flex
657b58f4 13171
8ec98d6c
NN
13172installcheck-flex: \
13173 configure-flex
15b527ca 13174 @: $(MAKE); $(unstage)
8ec98d6c 13175 @[ -f ./flex/Makefile ] || exit 0; \
5230d454
L
13176 r=`${PWD_COMMAND}`; export r; \
13177 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 13178 $(HOST_EXPORTS) \
d5eec917 13179 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
13180 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13181 done; \
8ec98d6c 13182 echo "Doing installcheck in flex" ; \
7fc2ca22 13183 (cd $(HOST_SUBDIR)/flex && \
657b58f4
NN
13184 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13185 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13186 "RANLIB=$${RANLIB}" \
bffcbe34 13187 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 13188 installcheck) \
657b58f4
NN
13189 || exit 1
13190
a7e609d6 13191@endif flex
657b58f4 13192
8ec98d6c
NN
13193.PHONY: maybe-mostlyclean-flex mostlyclean-flex
13194maybe-mostlyclean-flex:
a7e609d6
PB
13195@if flex
13196maybe-mostlyclean-flex: mostlyclean-flex
657b58f4 13197
8ec98d6c 13198mostlyclean-flex:
15b527ca 13199 @: $(MAKE); $(unstage)
8ec98d6c 13200 @[ -f ./flex/Makefile ] || exit 0; \
5230d454
L
13201 r=`${PWD_COMMAND}`; export r; \
13202 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 13203 $(HOST_EXPORTS) \
d5eec917 13204 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
13205 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13206 done; \
8ec98d6c 13207 echo "Doing mostlyclean in flex" ; \
7fc2ca22 13208 (cd $(HOST_SUBDIR)/flex && \
657b58f4
NN
13209 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13210 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13211 "RANLIB=$${RANLIB}" \
bffcbe34 13212 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 13213 mostlyclean) \
657b58f4
NN
13214 || exit 1
13215
a7e609d6 13216@endif flex
657b58f4 13217
8ec98d6c
NN
13218.PHONY: maybe-clean-flex clean-flex
13219maybe-clean-flex:
a7e609d6
PB
13220@if flex
13221maybe-clean-flex: clean-flex
657b58f4 13222
8ec98d6c 13223clean-flex:
15b527ca 13224 @: $(MAKE); $(unstage)
8ec98d6c 13225 @[ -f ./flex/Makefile ] || exit 0; \
5230d454
L
13226 r=`${PWD_COMMAND}`; export r; \
13227 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 13228 $(HOST_EXPORTS) \
d5eec917 13229 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
13230 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13231 done; \
8ec98d6c 13232 echo "Doing clean in flex" ; \
7fc2ca22 13233 (cd $(HOST_SUBDIR)/flex && \
657b58f4
NN
13234 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13235 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13236 "RANLIB=$${RANLIB}" \
bffcbe34 13237 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 13238 clean) \
657b58f4
NN
13239 || exit 1
13240
a7e609d6 13241@endif flex
657b58f4 13242
8ec98d6c
NN
13243.PHONY: maybe-distclean-flex distclean-flex
13244maybe-distclean-flex:
a7e609d6
PB
13245@if flex
13246maybe-distclean-flex: distclean-flex
657b58f4 13247
8ec98d6c 13248distclean-flex:
15b527ca 13249 @: $(MAKE); $(unstage)
8ec98d6c 13250 @[ -f ./flex/Makefile ] || exit 0; \
5230d454
L
13251 r=`${PWD_COMMAND}`; export r; \
13252 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 13253 $(HOST_EXPORTS) \
d5eec917 13254 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
13255 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13256 done; \
8ec98d6c 13257 echo "Doing distclean in flex" ; \
7fc2ca22 13258 (cd $(HOST_SUBDIR)/flex && \
657b58f4
NN
13259 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13260 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13261 "RANLIB=$${RANLIB}" \
bffcbe34 13262 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 13263 distclean) \
657b58f4
NN
13264 || exit 1
13265
a7e609d6 13266@endif flex
657b58f4 13267
8ec98d6c
NN
13268.PHONY: maybe-maintainer-clean-flex maintainer-clean-flex
13269maybe-maintainer-clean-flex:
a7e609d6
PB
13270@if flex
13271maybe-maintainer-clean-flex: maintainer-clean-flex
657b58f4 13272
8ec98d6c 13273maintainer-clean-flex:
15b527ca 13274 @: $(MAKE); $(unstage)
8ec98d6c 13275 @[ -f ./flex/Makefile ] || exit 0; \
5230d454
L
13276 r=`${PWD_COMMAND}`; export r; \
13277 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 13278 $(HOST_EXPORTS) \
d5eec917 13279 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
13280 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13281 done; \
8ec98d6c 13282 echo "Doing maintainer-clean in flex" ; \
7fc2ca22 13283 (cd $(HOST_SUBDIR)/flex && \
657b58f4
NN
13284 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13285 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13286 "RANLIB=$${RANLIB}" \
bffcbe34 13287 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 13288 maintainer-clean) \
657b58f4
NN
13289 || exit 1
13290
a7e609d6 13291@endif flex
657b58f4 13292
657b58f4 13293
f0fdfd34 13294
8ec98d6c
NN
13295.PHONY: configure-gas maybe-configure-gas
13296maybe-configure-gas:
e1e5148c
CD
13297@if gcc-bootstrap
13298configure-gas: stage_current
13299@endif gcc-bootstrap
a7e609d6
PB
13300@if gas
13301maybe-configure-gas: configure-gas
ec92c4d6 13302configure-gas:
ec92c4d6
PB
13303 @r=`${PWD_COMMAND}`; export r; \
13304 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7fc2ca22
PB
13305 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
13306 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \
a675b75a 13307 $(HOST_EXPORTS) \
f0fdfd34
PB
13308 echo Configuring in $(HOST_SUBDIR)/gas; \
13309 cd "$(HOST_SUBDIR)/gas" || exit 1; \
8ec98d6c 13310 case $(srcdir) in \
7fc2ca22
PB
13311 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
13312 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
13313 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 13314 esac; \
7fc2ca22
PB
13315 srcdiroption="--srcdir=$${topdir}/gas"; \
13316 libsrcdir="$$s/gas"; \
8ec98d6c 13317 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
13318 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
13319 --target=${target_alias} $${srcdiroption} \
8ec98d6c 13320 || exit 1
a7e609d6 13321@endif gas
8ec98d6c 13322
f0fdfd34
PB
13323
13324
a8a96878
PB
13325.PHONY: configure-stage1-gas maybe-configure-stage1-gas
13326maybe-configure-stage1-gas:
13327@if gas-bootstrap
13328maybe-configure-stage1-gas: configure-stage1-gas
15b527ca 13329configure-stage1-gas:
ec92c4d6 13330 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
15b527ca 13331 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
ec92c4d6
PB
13332 @r=`${PWD_COMMAND}`; export r; \
13333 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15b527ca 13334 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
6532abb6 13335 $(HOST_EXPORTS) \
2ba09444 13336 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
6532abb6 13337 CXXFLAGS="$(STAGE1_CFLAGS)"; export CXXFLAGS; \
a8a96878 13338 echo Configuring stage 1 in $(HOST_SUBDIR)/gas ; \
15b527ca 13339 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \
a8a96878
PB
13340 cd $(HOST_SUBDIR)/gas || exit 1; \
13341 case $(srcdir) in \
13342 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
13343 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
13344 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13345 esac; \
13346 srcdiroption="--srcdir=$${topdir}/gas"; \
13347 libsrcdir="$$s/gas"; \
13348 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
13349 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
13350 --target=${target_alias} $${srcdiroption} \
380e48e5 13351 \
14a1406e 13352 --disable-intermodule $(STAGE1_CHECKING) --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
a8a96878
PB
13353@endif gas-bootstrap
13354
13355.PHONY: configure-stage2-gas maybe-configure-stage2-gas
13356maybe-configure-stage2-gas:
13357@if gas-bootstrap
13358maybe-configure-stage2-gas: configure-stage2-gas
15b527ca 13359configure-stage2-gas:
ec92c4d6 13360 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
15b527ca 13361 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
ec92c4d6
PB
13362 @r=`${PWD_COMMAND}`; export r; \
13363 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15b527ca 13364 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
a8a96878 13365 $(HOST_EXPORTS) \
6532abb6 13366 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 13367 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
6532abb6 13368 CXXFLAGS="$(STAGE2_CFLAGS)"; export CXXFLAGS; \
a8a96878 13369 echo Configuring stage 2 in $(HOST_SUBDIR)/gas ; \
15b527ca 13370 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \
a8a96878
PB
13371 cd $(HOST_SUBDIR)/gas || exit 1; \
13372 case $(srcdir) in \
13373 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
13374 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
13375 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13376 esac; \
13377 srcdiroption="--srcdir=$${topdir}/gas"; \
13378 libsrcdir="$$s/gas"; \
13379 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
13380 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
13381 --target=${target_alias} $${srcdiroption} \
380e48e5 13382 --with-build-libsubdir=$(HOST_SUBDIR) \
a8a96878
PB
13383 @stage2_werror_flag@
13384@endif gas-bootstrap
13385
2b41ef78
AO
13386.PHONY: configure-stageb2g0-gas maybe-configure-stageb2g0-gas
13387maybe-configure-stageb2g0-gas:
13388@if gas-bootstrap
13389maybe-configure-stageb2g0-gas: configure-stageb2g0-gas
13390configure-stageb2g0-gas:
13391 @[ $(current_stage) = stageb2g0 ] || $(MAKE) stageb2g0-start
13392 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
13393 @r=`${PWD_COMMAND}`; export r; \
13394 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13395 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
13396 $(HOST_EXPORTS) \
6532abb6 13397 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 13398 CFLAGS="$(STAGE2_CFLAGS) -g0"; export CFLAGS; \
6532abb6 13399 CXXFLAGS="$(STAGE2_CFLAGS) -g0"; export CXXFLAGS; \
2b41ef78
AO
13400 echo Configuring stage b2g0 in $(HOST_SUBDIR)/gas ; \
13401 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \
13402 cd $(HOST_SUBDIR)/gas || exit 1; \
13403 case $(srcdir) in \
13404 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
13405 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
13406 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13407 esac; \
13408 srcdiroption="--srcdir=$${topdir}/gas"; \
13409 libsrcdir="$$s/gas"; \
13410 $(SHELL) $${libsrcdir}/configure \
13411 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
13412 --target=${target_alias} $${srcdiroption} \
13413 --with-build-libsubdir=$(HOST_SUBDIR) \
13414 @stage2_werror_flag@
13415@endif gas-bootstrap
13416
a8a96878
PB
13417.PHONY: configure-stage3-gas maybe-configure-stage3-gas
13418maybe-configure-stage3-gas:
13419@if gas-bootstrap
13420maybe-configure-stage3-gas: configure-stage3-gas
15b527ca 13421configure-stage3-gas:
ec92c4d6 13422 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
15b527ca 13423 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
ec92c4d6
PB
13424 @r=`${PWD_COMMAND}`; export r; \
13425 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15b527ca 13426 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
a8a96878 13427 $(HOST_EXPORTS) \
6532abb6 13428 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 13429 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
6532abb6 13430 CXXFLAGS="$(STAGE3_CFLAGS)"; export CXXFLAGS; \
a8a96878 13431 echo Configuring stage 3 in $(HOST_SUBDIR)/gas ; \
15b527ca 13432 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \
a8a96878
PB
13433 cd $(HOST_SUBDIR)/gas || exit 1; \
13434 case $(srcdir) in \
13435 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
13436 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
13437 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13438 esac; \
13439 srcdiroption="--srcdir=$${topdir}/gas"; \
13440 libsrcdir="$$s/gas"; \
13441 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
13442 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
13443 --target=${target_alias} $${srcdiroption} \
380e48e5 13444 --with-build-libsubdir=$(HOST_SUBDIR) \
a8a96878
PB
13445 @stage2_werror_flag@
13446@endif gas-bootstrap
13447
2b41ef78
AO
13448.PHONY: configure-stageb3g2-gas maybe-configure-stageb3g2-gas
13449maybe-configure-stageb3g2-gas:
13450@if gas-bootstrap
13451maybe-configure-stageb3g2-gas: configure-stageb3g2-gas
13452configure-stageb3g2-gas:
13453 @[ $(current_stage) = stageb3g2 ] || $(MAKE) stageb3g2-start
13454 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
13455 @r=`${PWD_COMMAND}`; export r; \
13456 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13457 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
13458 $(HOST_EXPORTS) \
6532abb6 13459 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 13460 CFLAGS="$(STAGE3_CFLAGS) -g2"; export CFLAGS; \
6532abb6 13461 CXXFLAGS="$(STAGE3_CFLAGS) -g2"; export CXXFLAGS; \
2b41ef78
AO
13462 echo Configuring stage b3g2 in $(HOST_SUBDIR)/gas ; \
13463 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \
13464 cd $(HOST_SUBDIR)/gas || exit 1; \
13465 case $(srcdir) in \
13466 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
13467 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
13468 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13469 esac; \
13470 srcdiroption="--srcdir=$${topdir}/gas"; \
13471 libsrcdir="$$s/gas"; \
13472 $(SHELL) $${libsrcdir}/configure \
13473 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
13474 --target=${target_alias} $${srcdiroption} \
13475 --with-build-libsubdir=$(HOST_SUBDIR) \
13476 @stage2_werror_flag@
13477@endif gas-bootstrap
13478
a8a96878
PB
13479.PHONY: configure-stage4-gas maybe-configure-stage4-gas
13480maybe-configure-stage4-gas:
13481@if gas-bootstrap
13482maybe-configure-stage4-gas: configure-stage4-gas
15b527ca 13483configure-stage4-gas:
ec92c4d6 13484 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
15b527ca 13485 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
ec92c4d6
PB
13486 @r=`${PWD_COMMAND}`; export r; \
13487 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15b527ca 13488 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
a8a96878 13489 $(HOST_EXPORTS) \
6532abb6 13490 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 13491 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
6532abb6 13492 CXXFLAGS="$(STAGE4_CFLAGS)"; export CXXFLAGS; \
a8a96878 13493 echo Configuring stage 4 in $(HOST_SUBDIR)/gas ; \
15b527ca 13494 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \
a8a96878
PB
13495 cd $(HOST_SUBDIR)/gas || exit 1; \
13496 case $(srcdir) in \
13497 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
13498 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
13499 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13500 esac; \
13501 srcdiroption="--srcdir=$${topdir}/gas"; \
13502 libsrcdir="$$s/gas"; \
13503 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
13504 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
13505 --target=${target_alias} $${srcdiroption} \
380e48e5 13506 --with-build-libsubdir=$(HOST_SUBDIR) \
a8a96878
PB
13507 @stage2_werror_flag@
13508@endif gas-bootstrap
13509
13510.PHONY: configure-stageprofile-gas maybe-configure-stageprofile-gas
13511maybe-configure-stageprofile-gas:
13512@if gas-bootstrap
13513maybe-configure-stageprofile-gas: configure-stageprofile-gas
15b527ca 13514configure-stageprofile-gas:
ec92c4d6 13515 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
15b527ca 13516 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
ec92c4d6
PB
13517 @r=`${PWD_COMMAND}`; export r; \
13518 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15b527ca 13519 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
a8a96878 13520 $(HOST_EXPORTS) \
6532abb6 13521 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 13522 CFLAGS="$(STAGE2_CFLAGS) -fprofile-generate"; export CFLAGS; \
6532abb6 13523 CXXFLAGS="$(STAGE2_CFLAGS) -fprofile-generate"; export CXXFLAGS; \
a8a96878 13524 echo Configuring stage profile in $(HOST_SUBDIR)/gas ; \
15b527ca 13525 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \
a8a96878
PB
13526 cd $(HOST_SUBDIR)/gas || exit 1; \
13527 case $(srcdir) in \
13528 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
13529 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
13530 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13531 esac; \
13532 srcdiroption="--srcdir=$${topdir}/gas"; \
13533 libsrcdir="$$s/gas"; \
13534 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
13535 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
13536 --target=${target_alias} $${srcdiroption} \
380e48e5 13537 --with-build-libsubdir=$(HOST_SUBDIR) \
a8a96878
PB
13538 @stage2_werror_flag@
13539@endif gas-bootstrap
13540
13541.PHONY: configure-stagefeedback-gas maybe-configure-stagefeedback-gas
13542maybe-configure-stagefeedback-gas:
13543@if gas-bootstrap
13544maybe-configure-stagefeedback-gas: configure-stagefeedback-gas
15b527ca 13545configure-stagefeedback-gas:
ec92c4d6 13546 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
15b527ca 13547 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
ec92c4d6
PB
13548 @r=`${PWD_COMMAND}`; export r; \
13549 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15b527ca 13550 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
a8a96878 13551 $(HOST_EXPORTS) \
6532abb6 13552 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 13553 CFLAGS="$(STAGE3_CFLAGS) -fprofile-use"; export CFLAGS; \
6532abb6 13554 CXXFLAGS="$(STAGE3_CFLAGS) -fprofile-use"; export CXXFLAGS; \
a8a96878 13555 echo Configuring stage feedback in $(HOST_SUBDIR)/gas ; \
15b527ca 13556 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \
a8a96878
PB
13557 cd $(HOST_SUBDIR)/gas || exit 1; \
13558 case $(srcdir) in \
13559 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
13560 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
13561 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13562 esac; \
13563 srcdiroption="--srcdir=$${topdir}/gas"; \
13564 libsrcdir="$$s/gas"; \
13565 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
13566 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
13567 --target=${target_alias} $${srcdiroption} \
380e48e5 13568 --with-build-libsubdir=$(HOST_SUBDIR) \
a8a96878
PB
13569 @stage2_werror_flag@
13570@endif gas-bootstrap
13571
13572
13573
13574
13575
8ec98d6c
NN
13576.PHONY: all-gas maybe-all-gas
13577maybe-all-gas:
e1e5148c
CD
13578@if gcc-bootstrap
13579all-gas: stage_current
13580@endif gcc-bootstrap
a7e609d6 13581@if gas
5e6b1f07 13582TARGET-gas=all
a7e609d6 13583maybe-all-gas: all-gas
8ec98d6c 13584all-gas: configure-gas
ec92c4d6 13585 @r=`${PWD_COMMAND}`; export r; \
8ec98d6c 13586 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 13587 $(HOST_EXPORTS) \
7fc2ca22 13588 (cd $(HOST_SUBDIR)/gas && \
6532abb6
PB
13589 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
13590 $(TARGET-gas))
a7e609d6 13591@endif gas
8ec98d6c 13592
f0fdfd34 13593
a8a96878
PB
13594
13595.PHONY: all-stage1-gas maybe-all-stage1-gas
13596.PHONY: clean-stage1-gas maybe-clean-stage1-gas
13597maybe-all-stage1-gas:
13598maybe-clean-stage1-gas:
13599@if gas-bootstrap
13600maybe-all-stage1-gas: all-stage1-gas
13601all-stage1: all-stage1-gas
168b158c 13602TARGET-stage1-gas = $(TARGET-gas)
a8a96878 13603all-stage1-gas: configure-stage1-gas
ec92c4d6 13604 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a8a96878
PB
13605 @r=`${PWD_COMMAND}`; export r; \
13606 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13607 $(HOST_EXPORTS) \
13608 cd $(HOST_SUBDIR)/gas && \
6532abb6
PB
13609 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13610 CFLAGS="$(STAGE1_CFLAGS)" CXXFLAGS="$(STAGE1_CFLAGS)" \
13611 LIBCFLAGS="$(STAGE1_LIBCFLAGS)" \
13612 CFLAGS_FOR_TARGET="$(STAGE1_LIBCFLAGS)" \
13613 CXXFLAGS_FOR_TARGET="$(STAGE1_LIBCFLAGS)" $(EXTRA_HOST_FLAGS) \
168b158c 13614 $(TARGET-stage1-gas)
a8a96878
PB
13615
13616maybe-clean-stage1-gas: clean-stage1-gas
13617clean-stage1: clean-stage1-gas
13618clean-stage1-gas:
a6a4e782
DD
13619 @if [ $(current_stage) = stage1 ]; then \
13620 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
13621 else \
13622 [ -f $(HOST_SUBDIR)/stage1-gas/Makefile ] || exit 0; \
13623 $(MAKE) stage1-start; \
13624 fi; \
a8a96878 13625 cd $(HOST_SUBDIR)/gas && \
6532abb6 13626 $(MAKE) $(EXTRA_HOST_FLAGS) \
2ba09444 13627 clean
a8a96878
PB
13628@endif gas-bootstrap
13629
13630
13631.PHONY: all-stage2-gas maybe-all-stage2-gas
13632.PHONY: clean-stage2-gas maybe-clean-stage2-gas
13633maybe-all-stage2-gas:
13634maybe-clean-stage2-gas:
13635@if gas-bootstrap
13636maybe-all-stage2-gas: all-stage2-gas
13637all-stage2: all-stage2-gas
168b158c 13638TARGET-stage2-gas = $(TARGET-gas)
a8a96878 13639all-stage2-gas: configure-stage2-gas
ec92c4d6 13640 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a8a96878
PB
13641 @r=`${PWD_COMMAND}`; export r; \
13642 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13643 $(HOST_EXPORTS) \
13644 $(POSTSTAGE1_HOST_EXPORTS) \
13645 cd $(HOST_SUBDIR)/gas && \
6532abb6
PB
13646 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13647 CFLAGS="$(STAGE2_CFLAGS)" CXXFLAGS="$(STAGE2_CFLAGS)" \
13648 LIBCFLAGS="$(STAGE2_LIBCFLAGS)" \
13649 CFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)" \
13650 CXXFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
168b158c 13651 $(TARGET-stage2-gas)
a8a96878
PB
13652
13653maybe-clean-stage2-gas: clean-stage2-gas
13654clean-stage2: clean-stage2-gas
13655clean-stage2-gas:
a6a4e782
DD
13656 @if [ $(current_stage) = stage2 ]; then \
13657 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
13658 else \
13659 [ -f $(HOST_SUBDIR)/stage2-gas/Makefile ] || exit 0; \
13660 $(MAKE) stage2-start; \
13661 fi; \
a8a96878 13662 cd $(HOST_SUBDIR)/gas && \
6532abb6 13663 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 13664 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 13665 clean
a8a96878
PB
13666@endif gas-bootstrap
13667
13668
2b41ef78
AO
13669.PHONY: all-stageb2g0-gas maybe-all-stageb2g0-gas
13670.PHONY: clean-stageb2g0-gas maybe-clean-stageb2g0-gas
13671maybe-all-stageb2g0-gas:
13672maybe-clean-stageb2g0-gas:
13673@if gas-bootstrap
13674maybe-all-stageb2g0-gas: all-stageb2g0-gas
13675all-stageb2g0: all-stageb2g0-gas
13676TARGET-stageb2g0-gas = $(TARGET-gas)
13677all-stageb2g0-gas: configure-stageb2g0-gas
13678 @[ $(current_stage) = stageb2g0 ] || $(MAKE) stageb2g0-start
13679 @r=`${PWD_COMMAND}`; export r; \
13680 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13681 $(HOST_EXPORTS) \
13682 $(POSTSTAGE1_HOST_EXPORTS) \
13683 cd $(HOST_SUBDIR)/gas && \
6532abb6
PB
13684 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13685 CFLAGS="$(STAGE2_CFLAGS) -g0" CXXFLAGS="$(STAGE2_CFLAGS) -g0" \
13686 LIBCFLAGS="$(STAGE2_LIBCFLAGS) -g0" \
13687 CFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS) -g0" \
13688 CXXFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS) -g0" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
2b41ef78
AO
13689 $(TARGET-stageb2g0-gas)
13690
13691maybe-clean-stageb2g0-gas: clean-stageb2g0-gas
13692clean-stageb2g0: clean-stageb2g0-gas
13693clean-stageb2g0-gas:
13694 @if [ $(current_stage) = stageb2g0 ]; then \
13695 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
13696 else \
13697 [ -f $(HOST_SUBDIR)/stageb2g0-gas/Makefile ] || exit 0; \
13698 $(MAKE) stageb2g0-start; \
13699 fi; \
13700 cd $(HOST_SUBDIR)/gas && \
6532abb6 13701 $(MAKE) $(EXTRA_HOST_FLAGS) \
2b41ef78
AO
13702 $(POSTSTAGE1_FLAGS_TO_PASS) \
13703 clean
13704@endif gas-bootstrap
13705
13706
a8a96878
PB
13707.PHONY: all-stage3-gas maybe-all-stage3-gas
13708.PHONY: clean-stage3-gas maybe-clean-stage3-gas
13709maybe-all-stage3-gas:
13710maybe-clean-stage3-gas:
13711@if gas-bootstrap
13712maybe-all-stage3-gas: all-stage3-gas
13713all-stage3: all-stage3-gas
168b158c 13714TARGET-stage3-gas = $(TARGET-gas)
a8a96878 13715all-stage3-gas: configure-stage3-gas
ec92c4d6 13716 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a8a96878
PB
13717 @r=`${PWD_COMMAND}`; export r; \
13718 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13719 $(HOST_EXPORTS) \
13720 $(POSTSTAGE1_HOST_EXPORTS) \
13721 cd $(HOST_SUBDIR)/gas && \
6532abb6
PB
13722 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13723 CFLAGS="$(STAGE3_CFLAGS)" CXXFLAGS="$(STAGE3_CFLAGS)" \
13724 LIBCFLAGS="$(STAGE3_LIBCFLAGS)" \
13725 CFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS)" \
13726 CXXFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS)" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
168b158c 13727 $(TARGET-stage3-gas)
a8a96878
PB
13728
13729maybe-clean-stage3-gas: clean-stage3-gas
13730clean-stage3: clean-stage3-gas
13731clean-stage3-gas:
a6a4e782
DD
13732 @if [ $(current_stage) = stage3 ]; then \
13733 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
13734 else \
13735 [ -f $(HOST_SUBDIR)/stage3-gas/Makefile ] || exit 0; \
13736 $(MAKE) stage3-start; \
13737 fi; \
a8a96878 13738 cd $(HOST_SUBDIR)/gas && \
6532abb6 13739 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 13740 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 13741 clean
a8a96878
PB
13742@endif gas-bootstrap
13743
13744
2b41ef78
AO
13745.PHONY: all-stageb3g2-gas maybe-all-stageb3g2-gas
13746.PHONY: clean-stageb3g2-gas maybe-clean-stageb3g2-gas
13747maybe-all-stageb3g2-gas:
13748maybe-clean-stageb3g2-gas:
13749@if gas-bootstrap
13750maybe-all-stageb3g2-gas: all-stageb3g2-gas
13751all-stageb3g2: all-stageb3g2-gas
13752TARGET-stageb3g2-gas = $(TARGET-gas)
13753all-stageb3g2-gas: configure-stageb3g2-gas
13754 @[ $(current_stage) = stageb3g2 ] || $(MAKE) stageb3g2-start
13755 @r=`${PWD_COMMAND}`; export r; \
13756 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13757 $(HOST_EXPORTS) \
13758 $(POSTSTAGE1_HOST_EXPORTS) \
13759 cd $(HOST_SUBDIR)/gas && \
6532abb6
PB
13760 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13761 CFLAGS="$(STAGE3_CFLAGS) -g2" CXXFLAGS="$(STAGE3_CFLAGS) -g2" \
13762 LIBCFLAGS="$(STAGE3_LIBCFLAGS) -g2" \
13763 CFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS) -g2" \
13764 CXXFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS) -g2" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
2b41ef78
AO
13765 $(TARGET-stageb3g2-gas)
13766
13767maybe-clean-stageb3g2-gas: clean-stageb3g2-gas
13768clean-stageb3g2: clean-stageb3g2-gas
13769clean-stageb3g2-gas:
13770 @if [ $(current_stage) = stageb3g2 ]; then \
13771 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
13772 else \
13773 [ -f $(HOST_SUBDIR)/stageb3g2-gas/Makefile ] || exit 0; \
13774 $(MAKE) stageb3g2-start; \
13775 fi; \
13776 cd $(HOST_SUBDIR)/gas && \
6532abb6 13777 $(MAKE) $(EXTRA_HOST_FLAGS) \
2b41ef78
AO
13778 $(POSTSTAGE1_FLAGS_TO_PASS) \
13779 clean
13780@endif gas-bootstrap
13781
13782
a8a96878
PB
13783.PHONY: all-stage4-gas maybe-all-stage4-gas
13784.PHONY: clean-stage4-gas maybe-clean-stage4-gas
13785maybe-all-stage4-gas:
13786maybe-clean-stage4-gas:
13787@if gas-bootstrap
13788maybe-all-stage4-gas: all-stage4-gas
13789all-stage4: all-stage4-gas
168b158c 13790TARGET-stage4-gas = $(TARGET-gas)
a8a96878 13791all-stage4-gas: configure-stage4-gas
ec92c4d6 13792 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a8a96878
PB
13793 @r=`${PWD_COMMAND}`; export r; \
13794 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13795 $(HOST_EXPORTS) \
13796 $(POSTSTAGE1_HOST_EXPORTS) \
13797 cd $(HOST_SUBDIR)/gas && \
6532abb6
PB
13798 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13799 CFLAGS="$(STAGE4_CFLAGS)" CXXFLAGS="$(STAGE4_CFLAGS)" \
13800 LIBCFLAGS="$(STAGE4_CFLAGS)" \
13801 CFLAGS_FOR_TARGET="$(STAGE4_CFLAGS)" \
13802 CXXFLAGS_FOR_TARGET="$(STAGE4_CFLAGS)" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
168b158c 13803 $(TARGET-stage4-gas)
a8a96878
PB
13804
13805maybe-clean-stage4-gas: clean-stage4-gas
13806clean-stage4: clean-stage4-gas
13807clean-stage4-gas:
a6a4e782
DD
13808 @if [ $(current_stage) = stage4 ]; then \
13809 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
13810 else \
13811 [ -f $(HOST_SUBDIR)/stage4-gas/Makefile ] || exit 0; \
13812 $(MAKE) stage4-start; \
13813 fi; \
a8a96878 13814 cd $(HOST_SUBDIR)/gas && \
6532abb6 13815 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 13816 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 13817 clean
a8a96878
PB
13818@endif gas-bootstrap
13819
13820
13821.PHONY: all-stageprofile-gas maybe-all-stageprofile-gas
13822.PHONY: clean-stageprofile-gas maybe-clean-stageprofile-gas
13823maybe-all-stageprofile-gas:
13824maybe-clean-stageprofile-gas:
13825@if gas-bootstrap
13826maybe-all-stageprofile-gas: all-stageprofile-gas
13827all-stageprofile: all-stageprofile-gas
168b158c 13828TARGET-stageprofile-gas = $(TARGET-gas)
a8a96878 13829all-stageprofile-gas: configure-stageprofile-gas
ec92c4d6 13830 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a8a96878
PB
13831 @r=`${PWD_COMMAND}`; export r; \
13832 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13833 $(HOST_EXPORTS) \
13834 $(POSTSTAGE1_HOST_EXPORTS) \
13835 cd $(HOST_SUBDIR)/gas && \
6532abb6
PB
13836 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13837 CFLAGS="$(STAGE2_CFLAGS) -fprofile-generate" CXXFLAGS="$(STAGE2_CFLAGS) -fprofile-generate" \
455b4f90
PB
13838 LIBCFLAGS="$(STAGE2_LIBCFLAGS)" \
13839 CFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)" \
13840 CXXFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
168b158c 13841 $(TARGET-stageprofile-gas)
a8a96878
PB
13842
13843maybe-clean-stageprofile-gas: clean-stageprofile-gas
13844clean-stageprofile: clean-stageprofile-gas
13845clean-stageprofile-gas:
a6a4e782
DD
13846 @if [ $(current_stage) = stageprofile ]; then \
13847 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
13848 else \
13849 [ -f $(HOST_SUBDIR)/stageprofile-gas/Makefile ] || exit 0; \
13850 $(MAKE) stageprofile-start; \
13851 fi; \
a8a96878 13852 cd $(HOST_SUBDIR)/gas && \
6532abb6 13853 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 13854 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 13855 clean
a8a96878
PB
13856@endif gas-bootstrap
13857
13858
13859.PHONY: all-stagefeedback-gas maybe-all-stagefeedback-gas
13860.PHONY: clean-stagefeedback-gas maybe-clean-stagefeedback-gas
13861maybe-all-stagefeedback-gas:
13862maybe-clean-stagefeedback-gas:
13863@if gas-bootstrap
13864maybe-all-stagefeedback-gas: all-stagefeedback-gas
13865all-stagefeedback: all-stagefeedback-gas
168b158c 13866TARGET-stagefeedback-gas = $(TARGET-gas)
a8a96878 13867all-stagefeedback-gas: configure-stagefeedback-gas
ec92c4d6 13868 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a8a96878
PB
13869 @r=`${PWD_COMMAND}`; export r; \
13870 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13871 $(HOST_EXPORTS) \
13872 $(POSTSTAGE1_HOST_EXPORTS) \
13873 cd $(HOST_SUBDIR)/gas && \
6532abb6
PB
13874 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13875 CFLAGS="$(STAGE3_CFLAGS) -fprofile-use" CXXFLAGS="$(STAGE3_CFLAGS) -fprofile-use" \
13876 LIBCFLAGS="$(STAGE3_LIBCFLAGS) -fprofile-use" \
13877 CFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS) -fprofile-use" \
13878 CXXFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS) -fprofile-use" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
168b158c 13879 $(TARGET-stagefeedback-gas)
a8a96878
PB
13880
13881maybe-clean-stagefeedback-gas: clean-stagefeedback-gas
13882clean-stagefeedback: clean-stagefeedback-gas
13883clean-stagefeedback-gas:
a6a4e782
DD
13884 @if [ $(current_stage) = stagefeedback ]; then \
13885 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
13886 else \
13887 [ -f $(HOST_SUBDIR)/stagefeedback-gas/Makefile ] || exit 0; \
13888 $(MAKE) stagefeedback-start; \
13889 fi; \
a8a96878 13890 cd $(HOST_SUBDIR)/gas && \
6532abb6 13891 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 13892 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 13893 clean
a8a96878
PB
13894@endif gas-bootstrap
13895
13896
13897
13898
13899
8ec98d6c
NN
13900.PHONY: check-gas maybe-check-gas
13901maybe-check-gas:
a7e609d6
PB
13902@if gas
13903maybe-check-gas: check-gas
8ec98d6c
NN
13904
13905check-gas:
15b527ca 13906 @: $(MAKE); $(unstage)
8ec98d6c
NN
13907 @r=`${PWD_COMMAND}`; export r; \
13908 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 13909 $(HOST_EXPORTS) \
7fc2ca22
PB
13910 (cd $(HOST_SUBDIR)/gas && \
13911 $(MAKE) $(FLAGS_TO_PASS) check)
8ec98d6c 13912
a7e609d6 13913@endif gas
8ec98d6c
NN
13914
13915.PHONY: install-gas maybe-install-gas
13916maybe-install-gas:
a7e609d6
PB
13917@if gas
13918maybe-install-gas: install-gas
8ec98d6c
NN
13919
13920install-gas: installdirs
15b527ca 13921 @: $(MAKE); $(unstage)
8ec98d6c
NN
13922 @r=`${PWD_COMMAND}`; export r; \
13923 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 13924 $(HOST_EXPORTS) \
7fc2ca22 13925 (cd $(HOST_SUBDIR)/gas && \
93c60b6d 13926 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 13927
a7e609d6 13928@endif gas
8ec98d6c 13929
39bbbb69 13930# Other targets (info, dvi, pdf, etc.)
8ec98d6c
NN
13931
13932.PHONY: maybe-info-gas info-gas
13933maybe-info-gas:
a7e609d6
PB
13934@if gas
13935maybe-info-gas: info-gas
8ec98d6c
NN
13936
13937info-gas: \
13938 configure-gas
13939 @[ -f ./gas/Makefile ] || exit 0; \
13940 r=`${PWD_COMMAND}`; export r; \
13941 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 13942 $(HOST_EXPORTS) \
d5eec917 13943 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
13944 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13945 done; \
8ec98d6c 13946 echo "Doing info in gas" ; \
7fc2ca22 13947 (cd $(HOST_SUBDIR)/gas && \
657b58f4
NN
13948 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13949 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13950 "RANLIB=$${RANLIB}" \
bffcbe34 13951 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 13952 info) \
657b58f4
NN
13953 || exit 1
13954
a7e609d6 13955@endif gas
657b58f4 13956
8ec98d6c
NN
13957.PHONY: maybe-dvi-gas dvi-gas
13958maybe-dvi-gas:
a7e609d6
PB
13959@if gas
13960maybe-dvi-gas: dvi-gas
657b58f4 13961
8ec98d6c
NN
13962dvi-gas: \
13963 configure-gas
13964 @[ -f ./gas/Makefile ] || exit 0; \
5230d454
L
13965 r=`${PWD_COMMAND}`; export r; \
13966 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 13967 $(HOST_EXPORTS) \
d5eec917 13968 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
13969 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13970 done; \
8ec98d6c 13971 echo "Doing dvi in gas" ; \
7fc2ca22 13972 (cd $(HOST_SUBDIR)/gas && \
657b58f4
NN
13973 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13974 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13975 "RANLIB=$${RANLIB}" \
bffcbe34 13976 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 13977 dvi) \
657b58f4
NN
13978 || exit 1
13979
a7e609d6 13980@endif gas
657b58f4 13981
39bbbb69
DD
13982.PHONY: maybe-pdf-gas pdf-gas
13983maybe-pdf-gas:
13984@if gas
13985maybe-pdf-gas: pdf-gas
13986
13987pdf-gas: \
13988 configure-gas
13989 @[ -f ./gas/Makefile ] || exit 0; \
13990 r=`${PWD_COMMAND}`; export r; \
13991 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13992 $(HOST_EXPORTS) \
13993 for flag in $(EXTRA_HOST_FLAGS) ; do \
13994 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13995 done; \
13996 echo "Doing pdf in gas" ; \
13997 (cd $(HOST_SUBDIR)/gas && \
13998 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13999 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14000 "RANLIB=$${RANLIB}" \
bffcbe34 14001 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
14002 pdf) \
14003 || exit 1
14004
14005@endif gas
14006
b6fb961f
MS
14007.PHONY: maybe-html-gas html-gas
14008maybe-html-gas:
14009@if gas
14010maybe-html-gas: html-gas
14011
14012html-gas: \
14013 configure-gas
14014 @[ -f ./gas/Makefile ] || exit 0; \
14015 r=`${PWD_COMMAND}`; export r; \
14016 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
14017 $(HOST_EXPORTS) \
14018 for flag in $(EXTRA_HOST_FLAGS) ; do \
14019 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14020 done; \
14021 echo "Doing html in gas" ; \
7fc2ca22 14022 (cd $(HOST_SUBDIR)/gas && \
b6fb961f
MS
14023 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14024 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14025 "RANLIB=$${RANLIB}" \
bffcbe34 14026 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
14027 html) \
14028 || exit 1
14029
14030@endif gas
14031
8ec98d6c
NN
14032.PHONY: maybe-TAGS-gas TAGS-gas
14033maybe-TAGS-gas:
a7e609d6
PB
14034@if gas
14035maybe-TAGS-gas: TAGS-gas
657b58f4 14036
8ec98d6c
NN
14037TAGS-gas: \
14038 configure-gas
14039 @[ -f ./gas/Makefile ] || exit 0; \
5230d454
L
14040 r=`${PWD_COMMAND}`; export r; \
14041 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 14042 $(HOST_EXPORTS) \
d5eec917 14043 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
14044 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14045 done; \
8ec98d6c 14046 echo "Doing TAGS in gas" ; \
7fc2ca22 14047 (cd $(HOST_SUBDIR)/gas && \
657b58f4
NN
14048 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14049 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14050 "RANLIB=$${RANLIB}" \
bffcbe34 14051 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 14052 TAGS) \
657b58f4
NN
14053 || exit 1
14054
a7e609d6 14055@endif gas
657b58f4 14056
8ec98d6c
NN
14057.PHONY: maybe-install-info-gas install-info-gas
14058maybe-install-info-gas:
a7e609d6
PB
14059@if gas
14060maybe-install-info-gas: install-info-gas
657b58f4 14061
8ec98d6c
NN
14062install-info-gas: \
14063 configure-gas \
14064 info-gas
14065 @[ -f ./gas/Makefile ] || exit 0; \
5230d454
L
14066 r=`${PWD_COMMAND}`; export r; \
14067 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 14068 $(HOST_EXPORTS) \
d5eec917 14069 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
14070 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14071 done; \
8ec98d6c 14072 echo "Doing install-info in gas" ; \
7fc2ca22 14073 (cd $(HOST_SUBDIR)/gas && \
657b58f4
NN
14074 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14075 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14076 "RANLIB=$${RANLIB}" \
bffcbe34 14077 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 14078 install-info) \
657b58f4
NN
14079 || exit 1
14080
a7e609d6 14081@endif gas
657b58f4 14082
d4954b6d
DD
14083.PHONY: maybe-install-pdf-gas install-pdf-gas
14084maybe-install-pdf-gas:
14085@if gas
14086maybe-install-pdf-gas: install-pdf-gas
14087
14088install-pdf-gas: \
14089 configure-gas \
14090 pdf-gas
14091 @[ -f ./gas/Makefile ] || exit 0; \
14092 r=`${PWD_COMMAND}`; export r; \
14093 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14094 $(HOST_EXPORTS) \
14095 for flag in $(EXTRA_HOST_FLAGS) ; do \
14096 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14097 done; \
14098 echo "Doing install-pdf in gas" ; \
14099 (cd $(HOST_SUBDIR)/gas && \
14100 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14101 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14102 "RANLIB=$${RANLIB}" \
bffcbe34 14103 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
14104 install-pdf) \
14105 || exit 1
14106
14107@endif gas
14108
83c9add4
CD
14109.PHONY: maybe-install-html-gas install-html-gas
14110maybe-install-html-gas:
14111@if gas
14112maybe-install-html-gas: install-html-gas
14113
14114install-html-gas: \
14115 configure-gas \
14116 html-gas
14117 @[ -f ./gas/Makefile ] || exit 0; \
14118 r=`${PWD_COMMAND}`; export r; \
14119 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14120 $(HOST_EXPORTS) \
14121 for flag in $(EXTRA_HOST_FLAGS) ; do \
14122 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14123 done; \
14124 echo "Doing install-html in gas" ; \
14125 (cd $(HOST_SUBDIR)/gas && \
14126 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14127 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14128 "RANLIB=$${RANLIB}" \
bffcbe34 14129 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
14130 install-html) \
14131 || exit 1
14132
14133@endif gas
14134
8ec98d6c
NN
14135.PHONY: maybe-installcheck-gas installcheck-gas
14136maybe-installcheck-gas:
a7e609d6
PB
14137@if gas
14138maybe-installcheck-gas: installcheck-gas
657b58f4 14139
8ec98d6c
NN
14140installcheck-gas: \
14141 configure-gas
14142 @[ -f ./gas/Makefile ] || exit 0; \
5230d454
L
14143 r=`${PWD_COMMAND}`; export r; \
14144 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 14145 $(HOST_EXPORTS) \
d5eec917 14146 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
14147 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14148 done; \
8ec98d6c 14149 echo "Doing installcheck in gas" ; \
7fc2ca22 14150 (cd $(HOST_SUBDIR)/gas && \
657b58f4
NN
14151 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14152 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14153 "RANLIB=$${RANLIB}" \
bffcbe34 14154 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 14155 installcheck) \
657b58f4
NN
14156 || exit 1
14157
a7e609d6 14158@endif gas
657b58f4 14159
8ec98d6c
NN
14160.PHONY: maybe-mostlyclean-gas mostlyclean-gas
14161maybe-mostlyclean-gas:
a7e609d6
PB
14162@if gas
14163maybe-mostlyclean-gas: mostlyclean-gas
657b58f4 14164
8ec98d6c
NN
14165mostlyclean-gas:
14166 @[ -f ./gas/Makefile ] || exit 0; \
5230d454
L
14167 r=`${PWD_COMMAND}`; export r; \
14168 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 14169 $(HOST_EXPORTS) \
d5eec917 14170 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
14171 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14172 done; \
8ec98d6c 14173 echo "Doing mostlyclean in gas" ; \
7fc2ca22 14174 (cd $(HOST_SUBDIR)/gas && \
657b58f4
NN
14175 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14176 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14177 "RANLIB=$${RANLIB}" \
bffcbe34 14178 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 14179 mostlyclean) \
657b58f4
NN
14180 || exit 1
14181
a7e609d6 14182@endif gas
657b58f4 14183
8ec98d6c
NN
14184.PHONY: maybe-clean-gas clean-gas
14185maybe-clean-gas:
a7e609d6
PB
14186@if gas
14187maybe-clean-gas: clean-gas
657b58f4 14188
8ec98d6c
NN
14189clean-gas:
14190 @[ -f ./gas/Makefile ] || exit 0; \
5230d454
L
14191 r=`${PWD_COMMAND}`; export r; \
14192 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 14193 $(HOST_EXPORTS) \
d5eec917 14194 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
14195 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14196 done; \
8ec98d6c 14197 echo "Doing clean in gas" ; \
7fc2ca22 14198 (cd $(HOST_SUBDIR)/gas && \
657b58f4
NN
14199 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14200 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14201 "RANLIB=$${RANLIB}" \
bffcbe34 14202 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 14203 clean) \
657b58f4
NN
14204 || exit 1
14205
a7e609d6 14206@endif gas
657b58f4 14207
8ec98d6c
NN
14208.PHONY: maybe-distclean-gas distclean-gas
14209maybe-distclean-gas:
a7e609d6
PB
14210@if gas
14211maybe-distclean-gas: distclean-gas
657b58f4 14212
8ec98d6c
NN
14213distclean-gas:
14214 @[ -f ./gas/Makefile ] || exit 0; \
5230d454
L
14215 r=`${PWD_COMMAND}`; export r; \
14216 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 14217 $(HOST_EXPORTS) \
d5eec917 14218 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
14219 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14220 done; \
8ec98d6c 14221 echo "Doing distclean in gas" ; \
7fc2ca22 14222 (cd $(HOST_SUBDIR)/gas && \
657b58f4
NN
14223 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14224 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14225 "RANLIB=$${RANLIB}" \
bffcbe34 14226 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 14227 distclean) \
657b58f4
NN
14228 || exit 1
14229
a7e609d6 14230@endif gas
657b58f4 14231
8ec98d6c
NN
14232.PHONY: maybe-maintainer-clean-gas maintainer-clean-gas
14233maybe-maintainer-clean-gas:
a7e609d6
PB
14234@if gas
14235maybe-maintainer-clean-gas: maintainer-clean-gas
657b58f4 14236
8ec98d6c
NN
14237maintainer-clean-gas:
14238 @[ -f ./gas/Makefile ] || exit 0; \
5230d454
L
14239 r=`${PWD_COMMAND}`; export r; \
14240 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 14241 $(HOST_EXPORTS) \
d5eec917 14242 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
14243 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14244 done; \
8ec98d6c 14245 echo "Doing maintainer-clean in gas" ; \
7fc2ca22 14246 (cd $(HOST_SUBDIR)/gas && \
657b58f4
NN
14247 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14248 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14249 "RANLIB=$${RANLIB}" \
bffcbe34 14250 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 14251 maintainer-clean) \
657b58f4
NN
14252 || exit 1
14253
a7e609d6 14254@endif gas
657b58f4 14255
657b58f4 14256
f0fdfd34 14257
d5eec917
PB
14258.PHONY: configure-gcc maybe-configure-gcc
14259maybe-configure-gcc:
ec92c4d6 14260@if gcc-bootstrap
e1e5148c 14261configure-gcc: stage_current
ec92c4d6
PB
14262@endif gcc-bootstrap
14263@if gcc
e1e5148c
CD
14264maybe-configure-gcc: configure-gcc
14265configure-gcc:
ec92c4d6
PB
14266 @r=`${PWD_COMMAND}`; export r; \
14267 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7fc2ca22
PB
14268 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
14269 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \
a675b75a 14270 $(HOST_EXPORTS) \
f0fdfd34
PB
14271 echo Configuring in $(HOST_SUBDIR)/gcc; \
14272 cd "$(HOST_SUBDIR)/gcc" || exit 1; \
8ec98d6c 14273 case $(srcdir) in \
7fc2ca22
PB
14274 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
14275 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
14276 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 14277 esac; \
7fc2ca22
PB
14278 srcdiroption="--srcdir=$${topdir}/gcc"; \
14279 libsrcdir="$$s/gcc"; \
8ec98d6c 14280 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
14281 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
14282 --target=${target_alias} $${srcdiroption} \
8ec98d6c 14283 || exit 1
d5eec917 14284@endif gcc
8ec98d6c 14285
f0fdfd34
PB
14286
14287
a8a96878
PB
14288.PHONY: configure-stage1-gcc maybe-configure-stage1-gcc
14289maybe-configure-stage1-gcc:
14290@if gcc-bootstrap
14291maybe-configure-stage1-gcc: configure-stage1-gcc
15b527ca 14292configure-stage1-gcc:
ec92c4d6 14293 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
15b527ca 14294 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
ec92c4d6
PB
14295 @r=`${PWD_COMMAND}`; export r; \
14296 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15b527ca 14297 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
6532abb6 14298 $(HOST_EXPORTS) \
2ba09444 14299 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
6532abb6 14300 CXXFLAGS="$(STAGE1_CFLAGS)"; export CXXFLAGS; \
a8a96878 14301 echo Configuring stage 1 in $(HOST_SUBDIR)/gcc ; \
15b527ca 14302 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \
a8a96878
PB
14303 cd $(HOST_SUBDIR)/gcc || exit 1; \
14304 case $(srcdir) in \
14305 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
14306 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
14307 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14308 esac; \
14309 srcdiroption="--srcdir=$${topdir}/gcc"; \
14310 libsrcdir="$$s/gcc"; \
14311 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
14312 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
14313 --target=${target_alias} $${srcdiroption} \
380e48e5 14314 \
14a1406e 14315 --disable-intermodule $(STAGE1_CHECKING) --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
a8a96878
PB
14316@endif gcc-bootstrap
14317
14318.PHONY: configure-stage2-gcc maybe-configure-stage2-gcc
14319maybe-configure-stage2-gcc:
14320@if gcc-bootstrap
14321maybe-configure-stage2-gcc: configure-stage2-gcc
15b527ca 14322configure-stage2-gcc:
ec92c4d6 14323 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
15b527ca 14324 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
ec92c4d6
PB
14325 @r=`${PWD_COMMAND}`; export r; \
14326 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15b527ca 14327 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
a8a96878 14328 $(HOST_EXPORTS) \
6532abb6 14329 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 14330 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
6532abb6 14331 CXXFLAGS="$(STAGE2_CFLAGS)"; export CXXFLAGS; \
a8a96878 14332 echo Configuring stage 2 in $(HOST_SUBDIR)/gcc ; \
15b527ca 14333 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \
a8a96878
PB
14334 cd $(HOST_SUBDIR)/gcc || exit 1; \
14335 case $(srcdir) in \
14336 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
14337 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
14338 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14339 esac; \
14340 srcdiroption="--srcdir=$${topdir}/gcc"; \
14341 libsrcdir="$$s/gcc"; \
14342 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
14343 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
14344 --target=${target_alias} $${srcdiroption} \
380e48e5 14345 --with-build-libsubdir=$(HOST_SUBDIR) \
a8a96878
PB
14346 @stage2_werror_flag@
14347@endif gcc-bootstrap
14348
2b41ef78
AO
14349.PHONY: configure-stageb2g0-gcc maybe-configure-stageb2g0-gcc
14350maybe-configure-stageb2g0-gcc:
14351@if gcc-bootstrap
14352maybe-configure-stageb2g0-gcc: configure-stageb2g0-gcc
14353configure-stageb2g0-gcc:
14354 @[ $(current_stage) = stageb2g0 ] || $(MAKE) stageb2g0-start
14355 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
14356 @r=`${PWD_COMMAND}`; export r; \
14357 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14358 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
14359 $(HOST_EXPORTS) \
6532abb6 14360 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 14361 CFLAGS="$(STAGE2_CFLAGS) -g0"; export CFLAGS; \
6532abb6 14362 CXXFLAGS="$(STAGE2_CFLAGS) -g0"; export CXXFLAGS; \
2b41ef78
AO
14363 echo Configuring stage b2g0 in $(HOST_SUBDIR)/gcc ; \
14364 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \
14365 cd $(HOST_SUBDIR)/gcc || exit 1; \
14366 case $(srcdir) in \
14367 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
14368 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
14369 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14370 esac; \
14371 srcdiroption="--srcdir=$${topdir}/gcc"; \
14372 libsrcdir="$$s/gcc"; \
14373 $(SHELL) $${libsrcdir}/configure \
14374 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
14375 --target=${target_alias} $${srcdiroption} \
14376 --with-build-libsubdir=$(HOST_SUBDIR) \
14377 @stage2_werror_flag@
14378@endif gcc-bootstrap
14379
a8a96878
PB
14380.PHONY: configure-stage3-gcc maybe-configure-stage3-gcc
14381maybe-configure-stage3-gcc:
14382@if gcc-bootstrap
14383maybe-configure-stage3-gcc: configure-stage3-gcc
15b527ca 14384configure-stage3-gcc:
ec92c4d6 14385 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
15b527ca 14386 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
ec92c4d6
PB
14387 @r=`${PWD_COMMAND}`; export r; \
14388 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15b527ca 14389 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
a8a96878 14390 $(HOST_EXPORTS) \
6532abb6 14391 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 14392 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
6532abb6 14393 CXXFLAGS="$(STAGE3_CFLAGS)"; export CXXFLAGS; \
a8a96878 14394 echo Configuring stage 3 in $(HOST_SUBDIR)/gcc ; \
15b527ca 14395 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \
a8a96878
PB
14396 cd $(HOST_SUBDIR)/gcc || exit 1; \
14397 case $(srcdir) in \
14398 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
14399 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
14400 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14401 esac; \
14402 srcdiroption="--srcdir=$${topdir}/gcc"; \
14403 libsrcdir="$$s/gcc"; \
14404 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
14405 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
14406 --target=${target_alias} $${srcdiroption} \
380e48e5 14407 --with-build-libsubdir=$(HOST_SUBDIR) \
a8a96878
PB
14408 @stage2_werror_flag@
14409@endif gcc-bootstrap
14410
2b41ef78
AO
14411.PHONY: configure-stageb3g2-gcc maybe-configure-stageb3g2-gcc
14412maybe-configure-stageb3g2-gcc:
14413@if gcc-bootstrap
14414maybe-configure-stageb3g2-gcc: configure-stageb3g2-gcc
14415configure-stageb3g2-gcc:
14416 @[ $(current_stage) = stageb3g2 ] || $(MAKE) stageb3g2-start
14417 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
14418 @r=`${PWD_COMMAND}`; export r; \
14419 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14420 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
14421 $(HOST_EXPORTS) \
6532abb6 14422 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 14423 CFLAGS="$(STAGE3_CFLAGS) -g2"; export CFLAGS; \
6532abb6 14424 CXXFLAGS="$(STAGE3_CFLAGS) -g2"; export CXXFLAGS; \
2b41ef78
AO
14425 echo Configuring stage b3g2 in $(HOST_SUBDIR)/gcc ; \
14426 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \
14427 cd $(HOST_SUBDIR)/gcc || exit 1; \
14428 case $(srcdir) in \
14429 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
14430 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
14431 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14432 esac; \
14433 srcdiroption="--srcdir=$${topdir}/gcc"; \
14434 libsrcdir="$$s/gcc"; \
14435 $(SHELL) $${libsrcdir}/configure \
14436 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
14437 --target=${target_alias} $${srcdiroption} \
14438 --with-build-libsubdir=$(HOST_SUBDIR) \
14439 @stage2_werror_flag@
14440@endif gcc-bootstrap
14441
a8a96878
PB
14442.PHONY: configure-stage4-gcc maybe-configure-stage4-gcc
14443maybe-configure-stage4-gcc:
14444@if gcc-bootstrap
14445maybe-configure-stage4-gcc: configure-stage4-gcc
15b527ca 14446configure-stage4-gcc:
ec92c4d6 14447 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
15b527ca 14448 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
ec92c4d6
PB
14449 @r=`${PWD_COMMAND}`; export r; \
14450 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15b527ca 14451 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
a8a96878 14452 $(HOST_EXPORTS) \
6532abb6 14453 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 14454 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
6532abb6 14455 CXXFLAGS="$(STAGE4_CFLAGS)"; export CXXFLAGS; \
a8a96878 14456 echo Configuring stage 4 in $(HOST_SUBDIR)/gcc ; \
15b527ca 14457 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \
a8a96878
PB
14458 cd $(HOST_SUBDIR)/gcc || exit 1; \
14459 case $(srcdir) in \
14460 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
14461 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
14462 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14463 esac; \
14464 srcdiroption="--srcdir=$${topdir}/gcc"; \
14465 libsrcdir="$$s/gcc"; \
14466 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
14467 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
14468 --target=${target_alias} $${srcdiroption} \
380e48e5 14469 --with-build-libsubdir=$(HOST_SUBDIR) \
a8a96878
PB
14470 @stage2_werror_flag@
14471@endif gcc-bootstrap
14472
14473.PHONY: configure-stageprofile-gcc maybe-configure-stageprofile-gcc
14474maybe-configure-stageprofile-gcc:
14475@if gcc-bootstrap
14476maybe-configure-stageprofile-gcc: configure-stageprofile-gcc
15b527ca 14477configure-stageprofile-gcc:
ec92c4d6 14478 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
15b527ca 14479 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
ec92c4d6
PB
14480 @r=`${PWD_COMMAND}`; export r; \
14481 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15b527ca 14482 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
a8a96878 14483 $(HOST_EXPORTS) \
6532abb6 14484 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 14485 CFLAGS="$(STAGE2_CFLAGS) -fprofile-generate"; export CFLAGS; \
6532abb6 14486 CXXFLAGS="$(STAGE2_CFLAGS) -fprofile-generate"; export CXXFLAGS; \
a8a96878 14487 echo Configuring stage profile in $(HOST_SUBDIR)/gcc ; \
15b527ca 14488 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \
a8a96878
PB
14489 cd $(HOST_SUBDIR)/gcc || exit 1; \
14490 case $(srcdir) in \
14491 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
14492 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
14493 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14494 esac; \
14495 srcdiroption="--srcdir=$${topdir}/gcc"; \
14496 libsrcdir="$$s/gcc"; \
14497 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
14498 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
14499 --target=${target_alias} $${srcdiroption} \
380e48e5 14500 --with-build-libsubdir=$(HOST_SUBDIR) \
a8a96878
PB
14501 @stage2_werror_flag@
14502@endif gcc-bootstrap
14503
14504.PHONY: configure-stagefeedback-gcc maybe-configure-stagefeedback-gcc
14505maybe-configure-stagefeedback-gcc:
14506@if gcc-bootstrap
14507maybe-configure-stagefeedback-gcc: configure-stagefeedback-gcc
15b527ca 14508configure-stagefeedback-gcc:
ec92c4d6 14509 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
15b527ca 14510 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
ec92c4d6
PB
14511 @r=`${PWD_COMMAND}`; export r; \
14512 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15b527ca 14513 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
a8a96878 14514 $(HOST_EXPORTS) \
6532abb6 14515 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 14516 CFLAGS="$(STAGE3_CFLAGS) -fprofile-use"; export CFLAGS; \
6532abb6 14517 CXXFLAGS="$(STAGE3_CFLAGS) -fprofile-use"; export CXXFLAGS; \
a8a96878 14518 echo Configuring stage feedback in $(HOST_SUBDIR)/gcc ; \
15b527ca 14519 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \
a8a96878
PB
14520 cd $(HOST_SUBDIR)/gcc || exit 1; \
14521 case $(srcdir) in \
14522 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
14523 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
14524 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14525 esac; \
14526 srcdiroption="--srcdir=$${topdir}/gcc"; \
14527 libsrcdir="$$s/gcc"; \
14528 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
14529 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
14530 --target=${target_alias} $${srcdiroption} \
380e48e5 14531 --with-build-libsubdir=$(HOST_SUBDIR) \
a8a96878
PB
14532 @stage2_werror_flag@
14533@endif gcc-bootstrap
14534
14535
14536
14537
14538
d5eec917
PB
14539.PHONY: all-gcc maybe-all-gcc
14540maybe-all-gcc:
e1e5148c
CD
14541@if gcc-bootstrap
14542all-gcc: stage_current
14543@endif gcc-bootstrap
d5eec917 14544@if gcc
42f55f77 14545TARGET-gcc=all
d5eec917
PB
14546maybe-all-gcc: all-gcc
14547all-gcc: configure-gcc
ec92c4d6 14548 @r=`${PWD_COMMAND}`; export r; \
8ec98d6c 14549 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 14550 $(HOST_EXPORTS) \
7fc2ca22 14551 (cd $(HOST_SUBDIR)/gcc && \
6532abb6
PB
14552 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS) \
14553 $(TARGET-gcc))
d5eec917 14554@endif gcc
8ec98d6c 14555
f0fdfd34 14556
a8a96878
PB
14557
14558.PHONY: all-stage1-gcc maybe-all-stage1-gcc
14559.PHONY: clean-stage1-gcc maybe-clean-stage1-gcc
14560maybe-all-stage1-gcc:
14561maybe-clean-stage1-gcc:
14562@if gcc-bootstrap
14563maybe-all-stage1-gcc: all-stage1-gcc
14564all-stage1: all-stage1-gcc
168b158c 14565TARGET-stage1-gcc = $(TARGET-gcc)
a8a96878 14566all-stage1-gcc: configure-stage1-gcc
ec92c4d6 14567 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a8a96878
PB
14568 @r=`${PWD_COMMAND}`; export r; \
14569 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14570 $(HOST_EXPORTS) \
14571 cd $(HOST_SUBDIR)/gcc && \
6532abb6
PB
14572 $(MAKE) $(BASE_FLAGS_TO_PASS) \
14573 CFLAGS="$(STAGE1_CFLAGS)" CXXFLAGS="$(STAGE1_CFLAGS)" \
14574 LIBCFLAGS="$(STAGE1_LIBCFLAGS)" \
14575 CFLAGS_FOR_TARGET="$(STAGE1_LIBCFLAGS)" \
14576 CXXFLAGS_FOR_TARGET="$(STAGE1_LIBCFLAGS)" $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS) \
168b158c 14577 $(TARGET-stage1-gcc)
a8a96878
PB
14578
14579maybe-clean-stage1-gcc: clean-stage1-gcc
14580clean-stage1: clean-stage1-gcc
14581clean-stage1-gcc:
a6a4e782
DD
14582 @if [ $(current_stage) = stage1 ]; then \
14583 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
14584 else \
14585 [ -f $(HOST_SUBDIR)/stage1-gcc/Makefile ] || exit 0; \
14586 $(MAKE) stage1-start; \
14587 fi; \
a8a96878 14588 cd $(HOST_SUBDIR)/gcc && \
6532abb6 14589 $(MAKE) $(EXTRA_HOST_FLAGS) \
2ba09444 14590 $(EXTRA_GCC_FLAGS) clean
a8a96878
PB
14591@endif gcc-bootstrap
14592
14593
14594.PHONY: all-stage2-gcc maybe-all-stage2-gcc
14595.PHONY: clean-stage2-gcc maybe-clean-stage2-gcc
14596maybe-all-stage2-gcc:
14597maybe-clean-stage2-gcc:
14598@if gcc-bootstrap
14599maybe-all-stage2-gcc: all-stage2-gcc
14600all-stage2: all-stage2-gcc
168b158c 14601TARGET-stage2-gcc = $(TARGET-gcc)
a8a96878 14602all-stage2-gcc: configure-stage2-gcc
ec92c4d6 14603 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a8a96878
PB
14604 @r=`${PWD_COMMAND}`; export r; \
14605 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14606 $(HOST_EXPORTS) \
14607 $(POSTSTAGE1_HOST_EXPORTS) \
14608 cd $(HOST_SUBDIR)/gcc && \
6532abb6
PB
14609 $(MAKE) $(BASE_FLAGS_TO_PASS) \
14610 CFLAGS="$(STAGE2_CFLAGS)" CXXFLAGS="$(STAGE2_CFLAGS)" \
14611 LIBCFLAGS="$(STAGE2_LIBCFLAGS)" \
14612 CFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)" \
14613 CXXFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
168b158c 14614 $(TARGET-stage2-gcc)
a8a96878
PB
14615
14616maybe-clean-stage2-gcc: clean-stage2-gcc
14617clean-stage2: clean-stage2-gcc
14618clean-stage2-gcc:
a6a4e782
DD
14619 @if [ $(current_stage) = stage2 ]; then \
14620 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
14621 else \
14622 [ -f $(HOST_SUBDIR)/stage2-gcc/Makefile ] || exit 0; \
14623 $(MAKE) stage2-start; \
14624 fi; \
a8a96878 14625 cd $(HOST_SUBDIR)/gcc && \
6532abb6 14626 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 14627 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 14628 $(EXTRA_GCC_FLAGS) clean
a8a96878
PB
14629@endif gcc-bootstrap
14630
14631
2b41ef78
AO
14632.PHONY: all-stageb2g0-gcc maybe-all-stageb2g0-gcc
14633.PHONY: clean-stageb2g0-gcc maybe-clean-stageb2g0-gcc
14634maybe-all-stageb2g0-gcc:
14635maybe-clean-stageb2g0-gcc:
14636@if gcc-bootstrap
14637maybe-all-stageb2g0-gcc: all-stageb2g0-gcc
14638all-stageb2g0: all-stageb2g0-gcc
14639TARGET-stageb2g0-gcc = $(TARGET-gcc)
14640all-stageb2g0-gcc: configure-stageb2g0-gcc
14641 @[ $(current_stage) = stageb2g0 ] || $(MAKE) stageb2g0-start
14642 @r=`${PWD_COMMAND}`; export r; \
14643 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14644 $(HOST_EXPORTS) \
14645 $(POSTSTAGE1_HOST_EXPORTS) \
14646 cd $(HOST_SUBDIR)/gcc && \
6532abb6
PB
14647 $(MAKE) $(BASE_FLAGS_TO_PASS) \
14648 CFLAGS="$(STAGE2_CFLAGS) -g0" CXXFLAGS="$(STAGE2_CFLAGS) -g0" \
14649 LIBCFLAGS="$(STAGE2_LIBCFLAGS) -g0" \
14650 CFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS) -g0" \
14651 CXXFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS) -g0" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
2b41ef78
AO
14652 $(TARGET-stageb2g0-gcc)
14653
14654maybe-clean-stageb2g0-gcc: clean-stageb2g0-gcc
14655clean-stageb2g0: clean-stageb2g0-gcc
14656clean-stageb2g0-gcc:
14657 @if [ $(current_stage) = stageb2g0 ]; then \
14658 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
14659 else \
14660 [ -f $(HOST_SUBDIR)/stageb2g0-gcc/Makefile ] || exit 0; \
14661 $(MAKE) stageb2g0-start; \
14662 fi; \
14663 cd $(HOST_SUBDIR)/gcc && \
6532abb6 14664 $(MAKE) $(EXTRA_HOST_FLAGS) \
2b41ef78
AO
14665 $(POSTSTAGE1_FLAGS_TO_PASS) \
14666 $(EXTRA_GCC_FLAGS) clean
14667@endif gcc-bootstrap
14668
14669
a8a96878
PB
14670.PHONY: all-stage3-gcc maybe-all-stage3-gcc
14671.PHONY: clean-stage3-gcc maybe-clean-stage3-gcc
14672maybe-all-stage3-gcc:
14673maybe-clean-stage3-gcc:
14674@if gcc-bootstrap
14675maybe-all-stage3-gcc: all-stage3-gcc
14676all-stage3: all-stage3-gcc
168b158c 14677TARGET-stage3-gcc = $(TARGET-gcc)
a8a96878 14678all-stage3-gcc: configure-stage3-gcc
ec92c4d6 14679 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a8a96878
PB
14680 @r=`${PWD_COMMAND}`; export r; \
14681 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14682 $(HOST_EXPORTS) \
14683 $(POSTSTAGE1_HOST_EXPORTS) \
14684 cd $(HOST_SUBDIR)/gcc && \
6532abb6
PB
14685 $(MAKE) $(BASE_FLAGS_TO_PASS) \
14686 CFLAGS="$(STAGE3_CFLAGS)" CXXFLAGS="$(STAGE3_CFLAGS)" \
14687 LIBCFLAGS="$(STAGE3_LIBCFLAGS)" \
14688 CFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS)" \
14689 CXXFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS)" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
168b158c 14690 $(TARGET-stage3-gcc)
a8a96878
PB
14691
14692maybe-clean-stage3-gcc: clean-stage3-gcc
14693clean-stage3: clean-stage3-gcc
14694clean-stage3-gcc:
a6a4e782
DD
14695 @if [ $(current_stage) = stage3 ]; then \
14696 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
14697 else \
14698 [ -f $(HOST_SUBDIR)/stage3-gcc/Makefile ] || exit 0; \
14699 $(MAKE) stage3-start; \
14700 fi; \
a8a96878 14701 cd $(HOST_SUBDIR)/gcc && \
6532abb6 14702 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 14703 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 14704 $(EXTRA_GCC_FLAGS) clean
a8a96878
PB
14705@endif gcc-bootstrap
14706
14707
2b41ef78
AO
14708.PHONY: all-stageb3g2-gcc maybe-all-stageb3g2-gcc
14709.PHONY: clean-stageb3g2-gcc maybe-clean-stageb3g2-gcc
14710maybe-all-stageb3g2-gcc:
14711maybe-clean-stageb3g2-gcc:
14712@if gcc-bootstrap
14713maybe-all-stageb3g2-gcc: all-stageb3g2-gcc
14714all-stageb3g2: all-stageb3g2-gcc
14715TARGET-stageb3g2-gcc = $(TARGET-gcc)
14716all-stageb3g2-gcc: configure-stageb3g2-gcc
14717 @[ $(current_stage) = stageb3g2 ] || $(MAKE) stageb3g2-start
14718 @r=`${PWD_COMMAND}`; export r; \
14719 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14720 $(HOST_EXPORTS) \
14721 $(POSTSTAGE1_HOST_EXPORTS) \
14722 cd $(HOST_SUBDIR)/gcc && \
6532abb6
PB
14723 $(MAKE) $(BASE_FLAGS_TO_PASS) \
14724 CFLAGS="$(STAGE3_CFLAGS) -g2" CXXFLAGS="$(STAGE3_CFLAGS) -g2" \
14725 LIBCFLAGS="$(STAGE3_LIBCFLAGS) -g2" \
14726 CFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS) -g2" \
14727 CXXFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS) -g2" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
2b41ef78
AO
14728 $(TARGET-stageb3g2-gcc)
14729
14730maybe-clean-stageb3g2-gcc: clean-stageb3g2-gcc
14731clean-stageb3g2: clean-stageb3g2-gcc
14732clean-stageb3g2-gcc:
14733 @if [ $(current_stage) = stageb3g2 ]; then \
14734 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
14735 else \
14736 [ -f $(HOST_SUBDIR)/stageb3g2-gcc/Makefile ] || exit 0; \
14737 $(MAKE) stageb3g2-start; \
14738 fi; \
14739 cd $(HOST_SUBDIR)/gcc && \
6532abb6 14740 $(MAKE) $(EXTRA_HOST_FLAGS) \
2b41ef78
AO
14741 $(POSTSTAGE1_FLAGS_TO_PASS) \
14742 $(EXTRA_GCC_FLAGS) clean
14743@endif gcc-bootstrap
14744
14745
a8a96878
PB
14746.PHONY: all-stage4-gcc maybe-all-stage4-gcc
14747.PHONY: clean-stage4-gcc maybe-clean-stage4-gcc
14748maybe-all-stage4-gcc:
14749maybe-clean-stage4-gcc:
14750@if gcc-bootstrap
14751maybe-all-stage4-gcc: all-stage4-gcc
14752all-stage4: all-stage4-gcc
168b158c 14753TARGET-stage4-gcc = $(TARGET-gcc)
a8a96878 14754all-stage4-gcc: configure-stage4-gcc
ec92c4d6 14755 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a8a96878
PB
14756 @r=`${PWD_COMMAND}`; export r; \
14757 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14758 $(HOST_EXPORTS) \
14759 $(POSTSTAGE1_HOST_EXPORTS) \
14760 cd $(HOST_SUBDIR)/gcc && \
6532abb6
PB
14761 $(MAKE) $(BASE_FLAGS_TO_PASS) \
14762 CFLAGS="$(STAGE4_CFLAGS)" CXXFLAGS="$(STAGE4_CFLAGS)" \
14763 LIBCFLAGS="$(STAGE4_CFLAGS)" \
14764 CFLAGS_FOR_TARGET="$(STAGE4_CFLAGS)" \
14765 CXXFLAGS_FOR_TARGET="$(STAGE4_CFLAGS)" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
168b158c 14766 $(TARGET-stage4-gcc)
a8a96878
PB
14767
14768maybe-clean-stage4-gcc: clean-stage4-gcc
14769clean-stage4: clean-stage4-gcc
14770clean-stage4-gcc:
a6a4e782
DD
14771 @if [ $(current_stage) = stage4 ]; then \
14772 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
14773 else \
14774 [ -f $(HOST_SUBDIR)/stage4-gcc/Makefile ] || exit 0; \
14775 $(MAKE) stage4-start; \
14776 fi; \
a8a96878 14777 cd $(HOST_SUBDIR)/gcc && \
6532abb6 14778 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 14779 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 14780 $(EXTRA_GCC_FLAGS) clean
a8a96878
PB
14781@endif gcc-bootstrap
14782
14783
14784.PHONY: all-stageprofile-gcc maybe-all-stageprofile-gcc
14785.PHONY: clean-stageprofile-gcc maybe-clean-stageprofile-gcc
14786maybe-all-stageprofile-gcc:
14787maybe-clean-stageprofile-gcc:
14788@if gcc-bootstrap
14789maybe-all-stageprofile-gcc: all-stageprofile-gcc
14790all-stageprofile: all-stageprofile-gcc
168b158c 14791TARGET-stageprofile-gcc = $(TARGET-gcc)
a8a96878 14792all-stageprofile-gcc: configure-stageprofile-gcc
ec92c4d6 14793 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a8a96878
PB
14794 @r=`${PWD_COMMAND}`; export r; \
14795 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14796 $(HOST_EXPORTS) \
14797 $(POSTSTAGE1_HOST_EXPORTS) \
14798 cd $(HOST_SUBDIR)/gcc && \
6532abb6
PB
14799 $(MAKE) $(BASE_FLAGS_TO_PASS) \
14800 CFLAGS="$(STAGE2_CFLAGS) -fprofile-generate" CXXFLAGS="$(STAGE2_CFLAGS) -fprofile-generate" \
455b4f90
PB
14801 LIBCFLAGS="$(STAGE2_LIBCFLAGS)" \
14802 CFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)" \
14803 CXXFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
168b158c 14804 $(TARGET-stageprofile-gcc)
a8a96878
PB
14805
14806maybe-clean-stageprofile-gcc: clean-stageprofile-gcc
14807clean-stageprofile: clean-stageprofile-gcc
14808clean-stageprofile-gcc:
a6a4e782
DD
14809 @if [ $(current_stage) = stageprofile ]; then \
14810 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
14811 else \
14812 [ -f $(HOST_SUBDIR)/stageprofile-gcc/Makefile ] || exit 0; \
14813 $(MAKE) stageprofile-start; \
14814 fi; \
a8a96878 14815 cd $(HOST_SUBDIR)/gcc && \
6532abb6 14816 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 14817 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 14818 $(EXTRA_GCC_FLAGS) clean
a8a96878
PB
14819@endif gcc-bootstrap
14820
14821
14822.PHONY: all-stagefeedback-gcc maybe-all-stagefeedback-gcc
14823.PHONY: clean-stagefeedback-gcc maybe-clean-stagefeedback-gcc
14824maybe-all-stagefeedback-gcc:
14825maybe-clean-stagefeedback-gcc:
14826@if gcc-bootstrap
14827maybe-all-stagefeedback-gcc: all-stagefeedback-gcc
14828all-stagefeedback: all-stagefeedback-gcc
168b158c 14829TARGET-stagefeedback-gcc = $(TARGET-gcc)
a8a96878 14830all-stagefeedback-gcc: configure-stagefeedback-gcc
ec92c4d6 14831 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a8a96878
PB
14832 @r=`${PWD_COMMAND}`; export r; \
14833 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14834 $(HOST_EXPORTS) \
14835 $(POSTSTAGE1_HOST_EXPORTS) \
14836 cd $(HOST_SUBDIR)/gcc && \
6532abb6
PB
14837 $(MAKE) $(BASE_FLAGS_TO_PASS) \
14838 CFLAGS="$(STAGE3_CFLAGS) -fprofile-use" CXXFLAGS="$(STAGE3_CFLAGS) -fprofile-use" \
14839 LIBCFLAGS="$(STAGE3_LIBCFLAGS) -fprofile-use" \
14840 CFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS) -fprofile-use" \
14841 CXXFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS) -fprofile-use" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
168b158c 14842 $(TARGET-stagefeedback-gcc)
a8a96878
PB
14843
14844maybe-clean-stagefeedback-gcc: clean-stagefeedback-gcc
14845clean-stagefeedback: clean-stagefeedback-gcc
14846clean-stagefeedback-gcc:
a6a4e782
DD
14847 @if [ $(current_stage) = stagefeedback ]; then \
14848 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
14849 else \
14850 [ -f $(HOST_SUBDIR)/stagefeedback-gcc/Makefile ] || exit 0; \
14851 $(MAKE) stagefeedback-start; \
14852 fi; \
a8a96878 14853 cd $(HOST_SUBDIR)/gcc && \
6532abb6 14854 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 14855 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 14856 $(EXTRA_GCC_FLAGS) clean
a8a96878
PB
14857@endif gcc-bootstrap
14858
14859
14860
14861
14862
d5eec917
PB
14863.PHONY: check-gcc maybe-check-gcc
14864maybe-check-gcc:
14865@if gcc
14866maybe-check-gcc: check-gcc
8ec98d6c 14867
d5eec917 14868check-gcc:
15b527ca 14869 @: $(MAKE); $(unstage)
8ec98d6c
NN
14870 @r=`${PWD_COMMAND}`; export r; \
14871 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 14872 $(HOST_EXPORTS) \
7fc2ca22
PB
14873 (cd $(HOST_SUBDIR)/gcc && \
14874 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) check)
8ec98d6c 14875
d5eec917 14876@endif gcc
8ec98d6c 14877
d5eec917
PB
14878.PHONY: install-gcc maybe-install-gcc
14879maybe-install-gcc:
14880@if gcc
14881maybe-install-gcc: install-gcc
8ec98d6c 14882
d5eec917 14883install-gcc: installdirs
15b527ca 14884 @: $(MAKE); $(unstage)
8ec98d6c
NN
14885 @r=`${PWD_COMMAND}`; export r; \
14886 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 14887 $(HOST_EXPORTS) \
7fc2ca22 14888 (cd $(HOST_SUBDIR)/gcc && \
93c60b6d 14889 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) install)
8ec98d6c 14890
d5eec917 14891@endif gcc
8ec98d6c 14892
39bbbb69 14893# Other targets (info, dvi, pdf, etc.)
8ec98d6c 14894
d5eec917
PB
14895.PHONY: maybe-info-gcc info-gcc
14896maybe-info-gcc:
14897@if gcc
14898maybe-info-gcc: info-gcc
8ec98d6c 14899
d5eec917
PB
14900info-gcc: \
14901 configure-gcc
14902 @[ -f ./gcc/Makefile ] || exit 0; \
5230d454
L
14903 r=`${PWD_COMMAND}`; export r; \
14904 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 14905 $(HOST_EXPORTS) \
d5eec917 14906 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
657b58f4
NN
14907 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14908 done; \
d5eec917 14909 echo "Doing info in gcc" ; \
7fc2ca22 14910 (cd $(HOST_SUBDIR)/gcc && \
657b58f4
NN
14911 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14912 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14913 "RANLIB=$${RANLIB}" \
bffcbe34 14914 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 14915 info) \
657b58f4
NN
14916 || exit 1
14917
d5eec917 14918@endif gcc
657b58f4 14919
d5eec917
PB
14920.PHONY: maybe-dvi-gcc dvi-gcc
14921maybe-dvi-gcc:
14922@if gcc
14923maybe-dvi-gcc: dvi-gcc
657b58f4 14924
d5eec917
PB
14925dvi-gcc: \
14926 configure-gcc
14927 @[ -f ./gcc/Makefile ] || exit 0; \
5230d454
L
14928 r=`${PWD_COMMAND}`; export r; \
14929 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 14930 $(HOST_EXPORTS) \
d5eec917 14931 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
657b58f4
NN
14932 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14933 done; \
d5eec917 14934 echo "Doing dvi in gcc" ; \
7fc2ca22 14935 (cd $(HOST_SUBDIR)/gcc && \
657b58f4
NN
14936 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14937 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14938 "RANLIB=$${RANLIB}" \
bffcbe34 14939 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 14940 dvi) \
657b58f4
NN
14941 || exit 1
14942
d5eec917 14943@endif gcc
657b58f4 14944
39bbbb69
DD
14945.PHONY: maybe-pdf-gcc pdf-gcc
14946maybe-pdf-gcc:
14947@if gcc
14948maybe-pdf-gcc: pdf-gcc
14949
14950pdf-gcc: \
14951 configure-gcc
14952 @[ -f ./gcc/Makefile ] || exit 0; \
14953 r=`${PWD_COMMAND}`; export r; \
14954 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14955 $(HOST_EXPORTS) \
14956 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
14957 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14958 done; \
14959 echo "Doing pdf in gcc" ; \
14960 (cd $(HOST_SUBDIR)/gcc && \
14961 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14962 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14963 "RANLIB=$${RANLIB}" \
bffcbe34 14964 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
14965 pdf) \
14966 || exit 1
14967
14968@endif gcc
14969
b6fb961f
MS
14970.PHONY: maybe-html-gcc html-gcc
14971maybe-html-gcc:
14972@if gcc
14973maybe-html-gcc: html-gcc
14974
14975html-gcc: \
14976 configure-gcc
14977 @[ -f ./gcc/Makefile ] || exit 0; \
14978 r=`${PWD_COMMAND}`; export r; \
14979 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
14980 $(HOST_EXPORTS) \
14981 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
14982 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14983 done; \
14984 echo "Doing html in gcc" ; \
7fc2ca22 14985 (cd $(HOST_SUBDIR)/gcc && \
b6fb961f
MS
14986 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14987 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14988 "RANLIB=$${RANLIB}" \
bffcbe34 14989 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
14990 html) \
14991 || exit 1
14992
14993@endif gcc
14994
d5eec917
PB
14995.PHONY: maybe-TAGS-gcc TAGS-gcc
14996maybe-TAGS-gcc:
14997@if gcc
14998maybe-TAGS-gcc: TAGS-gcc
657b58f4 14999
d5eec917
PB
15000TAGS-gcc: \
15001 configure-gcc
15002 @[ -f ./gcc/Makefile ] || exit 0; \
5230d454
L
15003 r=`${PWD_COMMAND}`; export r; \
15004 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 15005 $(HOST_EXPORTS) \
d5eec917 15006 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
657b58f4
NN
15007 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15008 done; \
d5eec917 15009 echo "Doing TAGS in gcc" ; \
7fc2ca22 15010 (cd $(HOST_SUBDIR)/gcc && \
657b58f4
NN
15011 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15012 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15013 "RANLIB=$${RANLIB}" \
bffcbe34 15014 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 15015 TAGS) \
657b58f4
NN
15016 || exit 1
15017
d5eec917 15018@endif gcc
657b58f4 15019
d5eec917
PB
15020.PHONY: maybe-install-info-gcc install-info-gcc
15021maybe-install-info-gcc:
15022@if gcc
15023maybe-install-info-gcc: install-info-gcc
d832a288 15024
d5eec917
PB
15025install-info-gcc: \
15026 configure-gcc \
15027 info-gcc
15028 @[ -f ./gcc/Makefile ] || exit 0; \
d832a288
DD
15029 r=`${PWD_COMMAND}`; export r; \
15030 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 15031 $(HOST_EXPORTS) \
d5eec917 15032 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
d832a288
DD
15033 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15034 done; \
d5eec917 15035 echo "Doing install-info in gcc" ; \
7fc2ca22 15036 (cd $(HOST_SUBDIR)/gcc && \
d832a288
DD
15037 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15038 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15039 "RANLIB=$${RANLIB}" \
bffcbe34 15040 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 15041 install-info) \
d832a288
DD
15042 || exit 1
15043
d5eec917 15044@endif gcc
d832a288 15045
d4954b6d
DD
15046.PHONY: maybe-install-pdf-gcc install-pdf-gcc
15047maybe-install-pdf-gcc:
15048@if gcc
15049maybe-install-pdf-gcc: install-pdf-gcc
15050
15051install-pdf-gcc: \
15052 configure-gcc \
15053 pdf-gcc
15054 @[ -f ./gcc/Makefile ] || exit 0; \
15055 r=`${PWD_COMMAND}`; export r; \
15056 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15057 $(HOST_EXPORTS) \
15058 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
15059 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15060 done; \
15061 echo "Doing install-pdf in gcc" ; \
15062 (cd $(HOST_SUBDIR)/gcc && \
15063 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15064 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15065 "RANLIB=$${RANLIB}" \
bffcbe34 15066 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
15067 install-pdf) \
15068 || exit 1
15069
15070@endif gcc
15071
83c9add4
CD
15072.PHONY: maybe-install-html-gcc install-html-gcc
15073maybe-install-html-gcc:
15074@if gcc
15075maybe-install-html-gcc: install-html-gcc
15076
15077install-html-gcc: \
15078 configure-gcc \
15079 html-gcc
15080 @[ -f ./gcc/Makefile ] || exit 0; \
15081 r=`${PWD_COMMAND}`; export r; \
15082 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15083 $(HOST_EXPORTS) \
15084 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
15085 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15086 done; \
15087 echo "Doing install-html in gcc" ; \
15088 (cd $(HOST_SUBDIR)/gcc && \
15089 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15090 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15091 "RANLIB=$${RANLIB}" \
bffcbe34 15092 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
15093 install-html) \
15094 || exit 1
15095
15096@endif gcc
15097
d5eec917
PB
15098.PHONY: maybe-installcheck-gcc installcheck-gcc
15099maybe-installcheck-gcc:
15100@if gcc
15101maybe-installcheck-gcc: installcheck-gcc
657b58f4 15102
d5eec917
PB
15103installcheck-gcc: \
15104 configure-gcc
15105 @[ -f ./gcc/Makefile ] || exit 0; \
8ec98d6c
NN
15106 r=`${PWD_COMMAND}`; export r; \
15107 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 15108 $(HOST_EXPORTS) \
d5eec917 15109 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
8ec98d6c
NN
15110 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15111 done; \
d5eec917 15112 echo "Doing installcheck in gcc" ; \
7fc2ca22 15113 (cd $(HOST_SUBDIR)/gcc && \
8ec98d6c
NN
15114 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15115 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15116 "RANLIB=$${RANLIB}" \
bffcbe34 15117 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 15118 installcheck) \
8ec98d6c 15119 || exit 1
657b58f4 15120
d5eec917 15121@endif gcc
8ec98d6c 15122
d5eec917
PB
15123.PHONY: maybe-mostlyclean-gcc mostlyclean-gcc
15124maybe-mostlyclean-gcc:
15125@if gcc
15126maybe-mostlyclean-gcc: mostlyclean-gcc
8ec98d6c 15127
d5eec917
PB
15128mostlyclean-gcc:
15129 @[ -f ./gcc/Makefile ] || exit 0; \
5230d454
L
15130 r=`${PWD_COMMAND}`; export r; \
15131 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 15132 $(HOST_EXPORTS) \
d5eec917 15133 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
657b58f4
NN
15134 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15135 done; \
d5eec917 15136 echo "Doing mostlyclean in gcc" ; \
7fc2ca22 15137 (cd $(HOST_SUBDIR)/gcc && \
657b58f4
NN
15138 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15139 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15140 "RANLIB=$${RANLIB}" \
bffcbe34 15141 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 15142 mostlyclean) \
657b58f4
NN
15143 || exit 1
15144
d5eec917 15145@endif gcc
657b58f4 15146
d5eec917
PB
15147.PHONY: maybe-clean-gcc clean-gcc
15148maybe-clean-gcc:
15149@if gcc
15150maybe-clean-gcc: clean-gcc
657b58f4 15151
d5eec917
PB
15152clean-gcc:
15153 @[ -f ./gcc/Makefile ] || exit 0; \
5230d454
L
15154 r=`${PWD_COMMAND}`; export r; \
15155 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 15156 $(HOST_EXPORTS) \
d5eec917 15157 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
657b58f4
NN
15158 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15159 done; \
d5eec917 15160 echo "Doing clean in gcc" ; \
7fc2ca22 15161 (cd $(HOST_SUBDIR)/gcc && \
657b58f4
NN
15162 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15163 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15164 "RANLIB=$${RANLIB}" \
bffcbe34 15165 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 15166 clean) \
657b58f4
NN
15167 || exit 1
15168
d5eec917 15169@endif gcc
657b58f4 15170
d5eec917
PB
15171.PHONY: maybe-distclean-gcc distclean-gcc
15172maybe-distclean-gcc:
15173@if gcc
15174maybe-distclean-gcc: distclean-gcc
657b58f4 15175
d5eec917
PB
15176distclean-gcc:
15177 @[ -f ./gcc/Makefile ] || exit 0; \
5230d454
L
15178 r=`${PWD_COMMAND}`; export r; \
15179 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 15180 $(HOST_EXPORTS) \
d5eec917 15181 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
657b58f4
NN
15182 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15183 done; \
d5eec917 15184 echo "Doing distclean in gcc" ; \
7fc2ca22 15185 (cd $(HOST_SUBDIR)/gcc && \
657b58f4
NN
15186 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15187 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15188 "RANLIB=$${RANLIB}" \
bffcbe34 15189 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 15190 distclean) \
657b58f4
NN
15191 || exit 1
15192
d5eec917 15193@endif gcc
657b58f4 15194
d5eec917
PB
15195.PHONY: maybe-maintainer-clean-gcc maintainer-clean-gcc
15196maybe-maintainer-clean-gcc:
15197@if gcc
15198maybe-maintainer-clean-gcc: maintainer-clean-gcc
657b58f4 15199
d5eec917
PB
15200maintainer-clean-gcc:
15201 @[ -f ./gcc/Makefile ] || exit 0; \
5230d454
L
15202 r=`${PWD_COMMAND}`; export r; \
15203 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 15204 $(HOST_EXPORTS) \
d5eec917 15205 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
657b58f4
NN
15206 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15207 done; \
d5eec917 15208 echo "Doing maintainer-clean in gcc" ; \
7fc2ca22 15209 (cd $(HOST_SUBDIR)/gcc && \
657b58f4
NN
15210 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15211 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15212 "RANLIB=$${RANLIB}" \
bffcbe34 15213 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 15214 maintainer-clean) \
657b58f4
NN
15215 || exit 1
15216
d5eec917 15217@endif gcc
657b58f4 15218
657b58f4 15219
f0fdfd34 15220
d5eec917
PB
15221.PHONY: configure-gawk maybe-configure-gawk
15222maybe-configure-gawk:
e1e5148c
CD
15223@if gcc-bootstrap
15224configure-gawk: stage_current
15225@endif gcc-bootstrap
d5eec917
PB
15226@if gawk
15227maybe-configure-gawk: configure-gawk
ec92c4d6 15228configure-gawk:
15b527ca 15229 @: $(MAKE); $(unstage)
ec92c4d6 15230 @r=`${PWD_COMMAND}`; export r; \
8ec98d6c 15231 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
15232 test ! -f $(HOST_SUBDIR)/gawk/Makefile || exit 0; \
15233 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gawk ; \
a675b75a 15234 $(HOST_EXPORTS) \
f0fdfd34
PB
15235 echo Configuring in $(HOST_SUBDIR)/gawk; \
15236 cd "$(HOST_SUBDIR)/gawk" || exit 1; \
8ec98d6c 15237 case $(srcdir) in \
7fc2ca22
PB
15238 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15239 *) topdir=`echo $(HOST_SUBDIR)/gawk/ | \
15240 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 15241 esac; \
7fc2ca22
PB
15242 srcdiroption="--srcdir=$${topdir}/gawk"; \
15243 libsrcdir="$$s/gawk"; \
8ec98d6c 15244 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
15245 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
15246 --target=${target_alias} $${srcdiroption} \
8ec98d6c 15247 || exit 1
d5eec917 15248@endif gawk
8ec98d6c 15249
f0fdfd34
PB
15250
15251
a8a96878
PB
15252
15253
d5eec917
PB
15254.PHONY: all-gawk maybe-all-gawk
15255maybe-all-gawk:
e1e5148c
CD
15256@if gcc-bootstrap
15257all-gawk: stage_current
15258@endif gcc-bootstrap
d5eec917 15259@if gawk
5e6b1f07 15260TARGET-gawk=all
d5eec917
PB
15261maybe-all-gawk: all-gawk
15262all-gawk: configure-gawk
15b527ca 15263 @: $(MAKE); $(unstage)
8ec98d6c
NN
15264 @r=`${PWD_COMMAND}`; export r; \
15265 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 15266 $(HOST_EXPORTS) \
7fc2ca22 15267 (cd $(HOST_SUBDIR)/gawk && \
6532abb6
PB
15268 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
15269 $(TARGET-gawk))
d5eec917 15270@endif gawk
8ec98d6c 15271
f0fdfd34 15272
a8a96878
PB
15273
15274
d5eec917
PB
15275.PHONY: check-gawk maybe-check-gawk
15276maybe-check-gawk:
15277@if gawk
15278maybe-check-gawk: check-gawk
8ec98d6c 15279
d5eec917 15280check-gawk:
15b527ca 15281 @: $(MAKE); $(unstage)
8ec98d6c
NN
15282 @r=`${PWD_COMMAND}`; export r; \
15283 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 15284 $(HOST_EXPORTS) \
7fc2ca22
PB
15285 (cd $(HOST_SUBDIR)/gawk && \
15286 $(MAKE) $(FLAGS_TO_PASS) check)
8ec98d6c 15287
d5eec917 15288@endif gawk
8ec98d6c 15289
d5eec917
PB
15290.PHONY: install-gawk maybe-install-gawk
15291maybe-install-gawk:
15292@if gawk
15293maybe-install-gawk: install-gawk
8ec98d6c 15294
d5eec917 15295install-gawk: installdirs
15b527ca 15296 @: $(MAKE); $(unstage)
8ec98d6c
NN
15297 @r=`${PWD_COMMAND}`; export r; \
15298 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 15299 $(HOST_EXPORTS) \
7fc2ca22 15300 (cd $(HOST_SUBDIR)/gawk && \
93c60b6d 15301 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 15302
d5eec917 15303@endif gawk
8ec98d6c 15304
39bbbb69 15305# Other targets (info, dvi, pdf, etc.)
8ec98d6c 15306
d5eec917
PB
15307.PHONY: maybe-info-gawk info-gawk
15308maybe-info-gawk:
15309@if gawk
15310maybe-info-gawk: info-gawk
8ec98d6c 15311
d5eec917
PB
15312info-gawk: \
15313 configure-gawk
15b527ca 15314 @: $(MAKE); $(unstage)
d5eec917 15315 @[ -f ./gawk/Makefile ] || exit 0; \
5230d454
L
15316 r=`${PWD_COMMAND}`; export r; \
15317 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 15318 $(HOST_EXPORTS) \
d5eec917 15319 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
15320 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15321 done; \
d5eec917 15322 echo "Doing info in gawk" ; \
7fc2ca22 15323 (cd $(HOST_SUBDIR)/gawk && \
657b58f4
NN
15324 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15325 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15326 "RANLIB=$${RANLIB}" \
bffcbe34 15327 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 15328 info) \
657b58f4
NN
15329 || exit 1
15330
d5eec917 15331@endif gawk
657b58f4 15332
d5eec917
PB
15333.PHONY: maybe-dvi-gawk dvi-gawk
15334maybe-dvi-gawk:
15335@if gawk
15336maybe-dvi-gawk: dvi-gawk
657b58f4 15337
d5eec917
PB
15338dvi-gawk: \
15339 configure-gawk
15b527ca 15340 @: $(MAKE); $(unstage)
d5eec917 15341 @[ -f ./gawk/Makefile ] || exit 0; \
5230d454
L
15342 r=`${PWD_COMMAND}`; export r; \
15343 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 15344 $(HOST_EXPORTS) \
d5eec917 15345 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
15346 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15347 done; \
d5eec917 15348 echo "Doing dvi in gawk" ; \
7fc2ca22 15349 (cd $(HOST_SUBDIR)/gawk && \
657b58f4
NN
15350 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15351 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15352 "RANLIB=$${RANLIB}" \
bffcbe34 15353 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 15354 dvi) \
657b58f4
NN
15355 || exit 1
15356
d5eec917 15357@endif gawk
657b58f4 15358
39bbbb69
DD
15359.PHONY: maybe-pdf-gawk pdf-gawk
15360maybe-pdf-gawk:
15361@if gawk
15362maybe-pdf-gawk: pdf-gawk
15363
15364pdf-gawk: \
15365 configure-gawk
15366 @: $(MAKE); $(unstage)
15367 @[ -f ./gawk/Makefile ] || exit 0; \
15368 r=`${PWD_COMMAND}`; export r; \
15369 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15370 $(HOST_EXPORTS) \
15371 for flag in $(EXTRA_HOST_FLAGS) ; do \
15372 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15373 done; \
15374 echo "Doing pdf in gawk" ; \
15375 (cd $(HOST_SUBDIR)/gawk && \
15376 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15377 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15378 "RANLIB=$${RANLIB}" \
bffcbe34 15379 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
15380 pdf) \
15381 || exit 1
15382
15383@endif gawk
15384
b6fb961f
MS
15385.PHONY: maybe-html-gawk html-gawk
15386maybe-html-gawk:
15387@if gawk
15388maybe-html-gawk: html-gawk
15389
15390html-gawk: \
15391 configure-gawk
15b527ca 15392 @: $(MAKE); $(unstage)
b6fb961f
MS
15393 @[ -f ./gawk/Makefile ] || exit 0; \
15394 r=`${PWD_COMMAND}`; export r; \
15395 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
15396 $(HOST_EXPORTS) \
15397 for flag in $(EXTRA_HOST_FLAGS) ; do \
15398 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15399 done; \
15400 echo "Doing html in gawk" ; \
7fc2ca22 15401 (cd $(HOST_SUBDIR)/gawk && \
b6fb961f
MS
15402 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15403 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15404 "RANLIB=$${RANLIB}" \
bffcbe34 15405 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
15406 html) \
15407 || exit 1
15408
15409@endif gawk
15410
d5eec917
PB
15411.PHONY: maybe-TAGS-gawk TAGS-gawk
15412maybe-TAGS-gawk:
15413@if gawk
15414maybe-TAGS-gawk: TAGS-gawk
657b58f4 15415
d5eec917
PB
15416TAGS-gawk: \
15417 configure-gawk
15b527ca 15418 @: $(MAKE); $(unstage)
d5eec917 15419 @[ -f ./gawk/Makefile ] || exit 0; \
5230d454
L
15420 r=`${PWD_COMMAND}`; export r; \
15421 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 15422 $(HOST_EXPORTS) \
d5eec917 15423 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
15424 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15425 done; \
d5eec917 15426 echo "Doing TAGS in gawk" ; \
7fc2ca22 15427 (cd $(HOST_SUBDIR)/gawk && \
657b58f4
NN
15428 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15429 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15430 "RANLIB=$${RANLIB}" \
bffcbe34 15431 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 15432 TAGS) \
657b58f4
NN
15433 || exit 1
15434
d5eec917 15435@endif gawk
657b58f4 15436
d5eec917
PB
15437.PHONY: maybe-install-info-gawk install-info-gawk
15438maybe-install-info-gawk:
15439@if gawk
15440maybe-install-info-gawk: install-info-gawk
657b58f4 15441
d5eec917
PB
15442install-info-gawk: \
15443 configure-gawk \
15444 info-gawk
15b527ca 15445 @: $(MAKE); $(unstage)
d5eec917 15446 @[ -f ./gawk/Makefile ] || exit 0; \
5230d454
L
15447 r=`${PWD_COMMAND}`; export r; \
15448 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 15449 $(HOST_EXPORTS) \
d5eec917 15450 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
15451 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15452 done; \
d5eec917 15453 echo "Doing install-info in gawk" ; \
7fc2ca22 15454 (cd $(HOST_SUBDIR)/gawk && \
657b58f4
NN
15455 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15456 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15457 "RANLIB=$${RANLIB}" \
bffcbe34 15458 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 15459 install-info) \
657b58f4
NN
15460 || exit 1
15461
d5eec917 15462@endif gawk
657b58f4 15463
d4954b6d
DD
15464.PHONY: maybe-install-pdf-gawk install-pdf-gawk
15465maybe-install-pdf-gawk:
15466@if gawk
15467maybe-install-pdf-gawk: install-pdf-gawk
15468
15469install-pdf-gawk: \
15470 configure-gawk \
15471 pdf-gawk
15472 @: $(MAKE); $(unstage)
15473 @[ -f ./gawk/Makefile ] || exit 0; \
15474 r=`${PWD_COMMAND}`; export r; \
15475 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15476 $(HOST_EXPORTS) \
15477 for flag in $(EXTRA_HOST_FLAGS) ; do \
15478 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15479 done; \
15480 echo "Doing install-pdf in gawk" ; \
15481 (cd $(HOST_SUBDIR)/gawk && \
15482 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15483 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15484 "RANLIB=$${RANLIB}" \
bffcbe34 15485 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
15486 install-pdf) \
15487 || exit 1
15488
15489@endif gawk
15490
83c9add4
CD
15491.PHONY: maybe-install-html-gawk install-html-gawk
15492maybe-install-html-gawk:
15493@if gawk
15494maybe-install-html-gawk: install-html-gawk
15495
15496install-html-gawk: \
15497 configure-gawk \
15498 html-gawk
15499 @: $(MAKE); $(unstage)
15500 @[ -f ./gawk/Makefile ] || exit 0; \
15501 r=`${PWD_COMMAND}`; export r; \
15502 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15503 $(HOST_EXPORTS) \
15504 for flag in $(EXTRA_HOST_FLAGS) ; do \
15505 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15506 done; \
15507 echo "Doing install-html in gawk" ; \
15508 (cd $(HOST_SUBDIR)/gawk && \
15509 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15510 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15511 "RANLIB=$${RANLIB}" \
bffcbe34 15512 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
15513 install-html) \
15514 || exit 1
15515
15516@endif gawk
15517
d5eec917
PB
15518.PHONY: maybe-installcheck-gawk installcheck-gawk
15519maybe-installcheck-gawk:
15520@if gawk
15521maybe-installcheck-gawk: installcheck-gawk
657b58f4 15522
d5eec917
PB
15523installcheck-gawk: \
15524 configure-gawk
15b527ca 15525 @: $(MAKE); $(unstage)
d5eec917 15526 @[ -f ./gawk/Makefile ] || exit 0; \
5230d454
L
15527 r=`${PWD_COMMAND}`; export r; \
15528 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 15529 $(HOST_EXPORTS) \
d5eec917 15530 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
15531 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15532 done; \
d5eec917 15533 echo "Doing installcheck in gawk" ; \
7fc2ca22 15534 (cd $(HOST_SUBDIR)/gawk && \
657b58f4
NN
15535 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15536 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15537 "RANLIB=$${RANLIB}" \
bffcbe34 15538 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 15539 installcheck) \
657b58f4
NN
15540 || exit 1
15541
d5eec917 15542@endif gawk
657b58f4 15543
d5eec917
PB
15544.PHONY: maybe-mostlyclean-gawk mostlyclean-gawk
15545maybe-mostlyclean-gawk:
15546@if gawk
15547maybe-mostlyclean-gawk: mostlyclean-gawk
657b58f4 15548
d5eec917 15549mostlyclean-gawk:
15b527ca 15550 @: $(MAKE); $(unstage)
d5eec917 15551 @[ -f ./gawk/Makefile ] || exit 0; \
5230d454
L
15552 r=`${PWD_COMMAND}`; export r; \
15553 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 15554 $(HOST_EXPORTS) \
d5eec917 15555 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
15556 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15557 done; \
d5eec917 15558 echo "Doing mostlyclean in gawk" ; \
7fc2ca22 15559 (cd $(HOST_SUBDIR)/gawk && \
657b58f4
NN
15560 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15561 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15562 "RANLIB=$${RANLIB}" \
bffcbe34 15563 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 15564 mostlyclean) \
657b58f4
NN
15565 || exit 1
15566
d5eec917 15567@endif gawk
657b58f4 15568
d5eec917
PB
15569.PHONY: maybe-clean-gawk clean-gawk
15570maybe-clean-gawk:
15571@if gawk
15572maybe-clean-gawk: clean-gawk
657b58f4 15573
d5eec917 15574clean-gawk:
15b527ca 15575 @: $(MAKE); $(unstage)
d5eec917 15576 @[ -f ./gawk/Makefile ] || exit 0; \
5230d454
L
15577 r=`${PWD_COMMAND}`; export r; \
15578 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 15579 $(HOST_EXPORTS) \
d5eec917 15580 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
15581 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15582 done; \
d5eec917 15583 echo "Doing clean in gawk" ; \
7fc2ca22 15584 (cd $(HOST_SUBDIR)/gawk && \
657b58f4
NN
15585 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15586 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15587 "RANLIB=$${RANLIB}" \
bffcbe34 15588 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 15589 clean) \
657b58f4
NN
15590 || exit 1
15591
d5eec917 15592@endif gawk
657b58f4 15593
d5eec917
PB
15594.PHONY: maybe-distclean-gawk distclean-gawk
15595maybe-distclean-gawk:
15596@if gawk
15597maybe-distclean-gawk: distclean-gawk
657b58f4 15598
d5eec917 15599distclean-gawk:
15b527ca 15600 @: $(MAKE); $(unstage)
d5eec917 15601 @[ -f ./gawk/Makefile ] || exit 0; \
5230d454
L
15602 r=`${PWD_COMMAND}`; export r; \
15603 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 15604 $(HOST_EXPORTS) \
d5eec917 15605 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
15606 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15607 done; \
d5eec917 15608 echo "Doing distclean in gawk" ; \
7fc2ca22 15609 (cd $(HOST_SUBDIR)/gawk && \
657b58f4
NN
15610 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15611 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15612 "RANLIB=$${RANLIB}" \
bffcbe34 15613 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 15614 distclean) \
657b58f4
NN
15615 || exit 1
15616
d5eec917 15617@endif gawk
657b58f4 15618
d5eec917
PB
15619.PHONY: maybe-maintainer-clean-gawk maintainer-clean-gawk
15620maybe-maintainer-clean-gawk:
15621@if gawk
15622maybe-maintainer-clean-gawk: maintainer-clean-gawk
657b58f4 15623
d5eec917 15624maintainer-clean-gawk:
15b527ca 15625 @: $(MAKE); $(unstage)
d5eec917 15626 @[ -f ./gawk/Makefile ] || exit 0; \
5230d454
L
15627 r=`${PWD_COMMAND}`; export r; \
15628 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 15629 $(HOST_EXPORTS) \
d5eec917 15630 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
15631 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15632 done; \
d5eec917 15633 echo "Doing maintainer-clean in gawk" ; \
7fc2ca22 15634 (cd $(HOST_SUBDIR)/gawk && \
657b58f4
NN
15635 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15636 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15637 "RANLIB=$${RANLIB}" \
bffcbe34 15638 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 15639 maintainer-clean) \
657b58f4
NN
15640 || exit 1
15641
d5eec917 15642@endif gawk
657b58f4 15643
657b58f4 15644
f0fdfd34 15645
d5eec917
PB
15646.PHONY: configure-gettext maybe-configure-gettext
15647maybe-configure-gettext:
e1e5148c
CD
15648@if gcc-bootstrap
15649configure-gettext: stage_current
15650@endif gcc-bootstrap
d5eec917
PB
15651@if gettext
15652maybe-configure-gettext: configure-gettext
ec92c4d6 15653configure-gettext:
15b527ca 15654 @: $(MAKE); $(unstage)
ec92c4d6 15655 @r=`${PWD_COMMAND}`; export r; \
8ec98d6c 15656 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
15657 test ! -f $(HOST_SUBDIR)/gettext/Makefile || exit 0; \
15658 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gettext ; \
a675b75a 15659 $(HOST_EXPORTS) \
f0fdfd34
PB
15660 echo Configuring in $(HOST_SUBDIR)/gettext; \
15661 cd "$(HOST_SUBDIR)/gettext" || exit 1; \
8ec98d6c 15662 case $(srcdir) in \
7fc2ca22
PB
15663 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15664 *) topdir=`echo $(HOST_SUBDIR)/gettext/ | \
15665 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 15666 esac; \
7fc2ca22
PB
15667 srcdiroption="--srcdir=$${topdir}/gettext"; \
15668 libsrcdir="$$s/gettext"; \
8ec98d6c 15669 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
15670 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
15671 --target=${target_alias} $${srcdiroption} \
8ec98d6c 15672 || exit 1
d5eec917 15673@endif gettext
8ec98d6c 15674
f0fdfd34
PB
15675
15676
a8a96878
PB
15677
15678
d5eec917
PB
15679.PHONY: all-gettext maybe-all-gettext
15680maybe-all-gettext:
e1e5148c
CD
15681@if gcc-bootstrap
15682all-gettext: stage_current
15683@endif gcc-bootstrap
d5eec917 15684@if gettext
5e6b1f07 15685TARGET-gettext=all
d5eec917
PB
15686maybe-all-gettext: all-gettext
15687all-gettext: configure-gettext
15b527ca 15688 @: $(MAKE); $(unstage)
8ec98d6c
NN
15689 @r=`${PWD_COMMAND}`; export r; \
15690 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 15691 $(HOST_EXPORTS) \
7fc2ca22 15692 (cd $(HOST_SUBDIR)/gettext && \
6532abb6
PB
15693 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
15694 $(TARGET-gettext))
d5eec917 15695@endif gettext
8ec98d6c 15696
f0fdfd34 15697
a8a96878
PB
15698
15699
d5eec917
PB
15700.PHONY: check-gettext maybe-check-gettext
15701maybe-check-gettext:
15702@if gettext
15703maybe-check-gettext: check-gettext
8ec98d6c 15704
d5eec917 15705check-gettext:
15b527ca 15706 @: $(MAKE); $(unstage)
8ec98d6c
NN
15707 @r=`${PWD_COMMAND}`; export r; \
15708 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 15709 $(HOST_EXPORTS) \
7fc2ca22
PB
15710 (cd $(HOST_SUBDIR)/gettext && \
15711 $(MAKE) $(FLAGS_TO_PASS) check)
8ec98d6c 15712
d5eec917 15713@endif gettext
8ec98d6c 15714
d5eec917
PB
15715.PHONY: install-gettext maybe-install-gettext
15716maybe-install-gettext:
15717@if gettext
15718maybe-install-gettext: install-gettext
8ec98d6c 15719
d5eec917 15720install-gettext: installdirs
15b527ca 15721 @: $(MAKE); $(unstage)
8ec98d6c
NN
15722 @r=`${PWD_COMMAND}`; export r; \
15723 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 15724 $(HOST_EXPORTS) \
7fc2ca22 15725 (cd $(HOST_SUBDIR)/gettext && \
93c60b6d 15726 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 15727
d5eec917 15728@endif gettext
8ec98d6c 15729
39bbbb69 15730# Other targets (info, dvi, pdf, etc.)
8ec98d6c 15731
d5eec917
PB
15732.PHONY: maybe-info-gettext info-gettext
15733maybe-info-gettext:
15734@if gettext
15735maybe-info-gettext: info-gettext
8ec98d6c 15736
d5eec917
PB
15737info-gettext: \
15738 configure-gettext
15b527ca 15739 @: $(MAKE); $(unstage)
d5eec917 15740 @[ -f ./gettext/Makefile ] || exit 0; \
5230d454
L
15741 r=`${PWD_COMMAND}`; export r; \
15742 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 15743 $(HOST_EXPORTS) \
d5eec917 15744 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
15745 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15746 done; \
d5eec917 15747 echo "Doing info in gettext" ; \
7fc2ca22 15748 (cd $(HOST_SUBDIR)/gettext && \
657b58f4
NN
15749 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15750 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15751 "RANLIB=$${RANLIB}" \
bffcbe34 15752 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 15753 info) \
657b58f4
NN
15754 || exit 1
15755
d5eec917 15756@endif gettext
657b58f4 15757
d5eec917
PB
15758.PHONY: maybe-dvi-gettext dvi-gettext
15759maybe-dvi-gettext:
15760@if gettext
15761maybe-dvi-gettext: dvi-gettext
657b58f4 15762
d5eec917
PB
15763dvi-gettext: \
15764 configure-gettext
15b527ca 15765 @: $(MAKE); $(unstage)
d5eec917 15766 @[ -f ./gettext/Makefile ] || exit 0; \
5230d454
L
15767 r=`${PWD_COMMAND}`; export r; \
15768 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 15769 $(HOST_EXPORTS) \
d5eec917 15770 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
15771 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15772 done; \
d5eec917 15773 echo "Doing dvi in gettext" ; \
7fc2ca22 15774 (cd $(HOST_SUBDIR)/gettext && \
657b58f4
NN
15775 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15776 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15777 "RANLIB=$${RANLIB}" \
bffcbe34 15778 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 15779 dvi) \
657b58f4
NN
15780 || exit 1
15781
d5eec917 15782@endif gettext
657b58f4 15783
39bbbb69
DD
15784.PHONY: maybe-pdf-gettext pdf-gettext
15785maybe-pdf-gettext:
15786@if gettext
15787maybe-pdf-gettext: pdf-gettext
15788
15789pdf-gettext: \
15790 configure-gettext
15791 @: $(MAKE); $(unstage)
15792 @[ -f ./gettext/Makefile ] || exit 0; \
15793 r=`${PWD_COMMAND}`; export r; \
15794 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15795 $(HOST_EXPORTS) \
15796 for flag in $(EXTRA_HOST_FLAGS) ; do \
15797 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15798 done; \
15799 echo "Doing pdf in gettext" ; \
15800 (cd $(HOST_SUBDIR)/gettext && \
15801 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15802 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15803 "RANLIB=$${RANLIB}" \
bffcbe34 15804 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
15805 pdf) \
15806 || exit 1
15807
15808@endif gettext
15809
b6fb961f
MS
15810.PHONY: maybe-html-gettext html-gettext
15811maybe-html-gettext:
15812@if gettext
15813maybe-html-gettext: html-gettext
15814
15815html-gettext: \
15816 configure-gettext
15b527ca 15817 @: $(MAKE); $(unstage)
b6fb961f
MS
15818 @[ -f ./gettext/Makefile ] || exit 0; \
15819 r=`${PWD_COMMAND}`; export r; \
15820 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
15821 $(HOST_EXPORTS) \
15822 for flag in $(EXTRA_HOST_FLAGS) ; do \
15823 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15824 done; \
15825 echo "Doing html in gettext" ; \
7fc2ca22 15826 (cd $(HOST_SUBDIR)/gettext && \
b6fb961f
MS
15827 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15828 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15829 "RANLIB=$${RANLIB}" \
bffcbe34 15830 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
15831 html) \
15832 || exit 1
15833
15834@endif gettext
15835
d5eec917
PB
15836.PHONY: maybe-TAGS-gettext TAGS-gettext
15837maybe-TAGS-gettext:
15838@if gettext
15839maybe-TAGS-gettext: TAGS-gettext
657b58f4 15840
d5eec917
PB
15841TAGS-gettext: \
15842 configure-gettext
15b527ca 15843 @: $(MAKE); $(unstage)
d5eec917 15844 @[ -f ./gettext/Makefile ] || exit 0; \
5230d454
L
15845 r=`${PWD_COMMAND}`; export r; \
15846 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 15847 $(HOST_EXPORTS) \
d5eec917 15848 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
15849 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15850 done; \
d5eec917 15851 echo "Doing TAGS in gettext" ; \
7fc2ca22 15852 (cd $(HOST_SUBDIR)/gettext && \
657b58f4
NN
15853 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15854 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15855 "RANLIB=$${RANLIB}" \
bffcbe34 15856 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 15857 TAGS) \
657b58f4
NN
15858 || exit 1
15859
d5eec917 15860@endif gettext
657b58f4 15861
d5eec917
PB
15862.PHONY: maybe-install-info-gettext install-info-gettext
15863maybe-install-info-gettext:
15864@if gettext
15865maybe-install-info-gettext: install-info-gettext
15866
15867install-info-gettext: \
15868 configure-gettext \
15869 info-gettext
15b527ca 15870 @: $(MAKE); $(unstage)
d5eec917 15871 @[ -f ./gettext/Makefile ] || exit 0; \
5230d454
L
15872 r=`${PWD_COMMAND}`; export r; \
15873 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 15874 $(HOST_EXPORTS) \
d5eec917 15875 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
15876 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15877 done; \
d5eec917 15878 echo "Doing install-info in gettext" ; \
7fc2ca22 15879 (cd $(HOST_SUBDIR)/gettext && \
657b58f4
NN
15880 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15881 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15882 "RANLIB=$${RANLIB}" \
bffcbe34 15883 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 15884 install-info) \
657b58f4
NN
15885 || exit 1
15886
d5eec917 15887@endif gettext
657b58f4 15888
d4954b6d
DD
15889.PHONY: maybe-install-pdf-gettext install-pdf-gettext
15890maybe-install-pdf-gettext:
15891@if gettext
15892maybe-install-pdf-gettext: install-pdf-gettext
15893
15894install-pdf-gettext: \
15895 configure-gettext \
15896 pdf-gettext
15897 @: $(MAKE); $(unstage)
15898 @[ -f ./gettext/Makefile ] || exit 0; \
15899 r=`${PWD_COMMAND}`; export r; \
15900 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15901 $(HOST_EXPORTS) \
15902 for flag in $(EXTRA_HOST_FLAGS) ; do \
15903 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15904 done; \
15905 echo "Doing install-pdf in gettext" ; \
15906 (cd $(HOST_SUBDIR)/gettext && \
15907 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15908 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15909 "RANLIB=$${RANLIB}" \
bffcbe34 15910 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
15911 install-pdf) \
15912 || exit 1
15913
15914@endif gettext
15915
83c9add4
CD
15916.PHONY: maybe-install-html-gettext install-html-gettext
15917maybe-install-html-gettext:
15918@if gettext
15919maybe-install-html-gettext: install-html-gettext
15920
15921install-html-gettext: \
15922 configure-gettext \
15923 html-gettext
15924 @: $(MAKE); $(unstage)
15925 @[ -f ./gettext/Makefile ] || exit 0; \
15926 r=`${PWD_COMMAND}`; export r; \
15927 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15928 $(HOST_EXPORTS) \
15929 for flag in $(EXTRA_HOST_FLAGS) ; do \
15930 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15931 done; \
15932 echo "Doing install-html in gettext" ; \
15933 (cd $(HOST_SUBDIR)/gettext && \
15934 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15935 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15936 "RANLIB=$${RANLIB}" \
bffcbe34 15937 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
15938 install-html) \
15939 || exit 1
15940
15941@endif gettext
15942
d5eec917
PB
15943.PHONY: maybe-installcheck-gettext installcheck-gettext
15944maybe-installcheck-gettext:
15945@if gettext
15946maybe-installcheck-gettext: installcheck-gettext
657b58f4 15947
d5eec917
PB
15948installcheck-gettext: \
15949 configure-gettext
15b527ca 15950 @: $(MAKE); $(unstage)
d5eec917 15951 @[ -f ./gettext/Makefile ] || exit 0; \
5230d454
L
15952 r=`${PWD_COMMAND}`; export r; \
15953 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 15954 $(HOST_EXPORTS) \
d5eec917 15955 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
15956 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15957 done; \
d5eec917 15958 echo "Doing installcheck in gettext" ; \
7fc2ca22 15959 (cd $(HOST_SUBDIR)/gettext && \
657b58f4
NN
15960 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15961 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15962 "RANLIB=$${RANLIB}" \
bffcbe34 15963 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 15964 installcheck) \
657b58f4
NN
15965 || exit 1
15966
d5eec917 15967@endif gettext
657b58f4 15968
d5eec917
PB
15969.PHONY: maybe-mostlyclean-gettext mostlyclean-gettext
15970maybe-mostlyclean-gettext:
15971@if gettext
15972maybe-mostlyclean-gettext: mostlyclean-gettext
657b58f4 15973
d5eec917 15974mostlyclean-gettext:
15b527ca 15975 @: $(MAKE); $(unstage)
d5eec917 15976 @[ -f ./gettext/Makefile ] || exit 0; \
5230d454
L
15977 r=`${PWD_COMMAND}`; export r; \
15978 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 15979 $(HOST_EXPORTS) \
d5eec917 15980 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
15981 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15982 done; \
d5eec917 15983 echo "Doing mostlyclean in gettext" ; \
7fc2ca22 15984 (cd $(HOST_SUBDIR)/gettext && \
657b58f4
NN
15985 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15986 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15987 "RANLIB=$${RANLIB}" \
bffcbe34 15988 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 15989 mostlyclean) \
657b58f4
NN
15990 || exit 1
15991
d5eec917 15992@endif gettext
657b58f4 15993
d5eec917
PB
15994.PHONY: maybe-clean-gettext clean-gettext
15995maybe-clean-gettext:
15996@if gettext
15997maybe-clean-gettext: clean-gettext
657b58f4 15998
d5eec917 15999clean-gettext:
15b527ca 16000 @: $(MAKE); $(unstage)
d5eec917 16001 @[ -f ./gettext/Makefile ] || exit 0; \
5230d454
L
16002 r=`${PWD_COMMAND}`; export r; \
16003 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 16004 $(HOST_EXPORTS) \
d5eec917 16005 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
16006 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16007 done; \
d5eec917 16008 echo "Doing clean in gettext" ; \
7fc2ca22 16009 (cd $(HOST_SUBDIR)/gettext && \
657b58f4
NN
16010 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16011 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16012 "RANLIB=$${RANLIB}" \
bffcbe34 16013 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 16014 clean) \
657b58f4
NN
16015 || exit 1
16016
d5eec917 16017@endif gettext
657b58f4 16018
d5eec917
PB
16019.PHONY: maybe-distclean-gettext distclean-gettext
16020maybe-distclean-gettext:
16021@if gettext
16022maybe-distclean-gettext: distclean-gettext
657b58f4 16023
d5eec917 16024distclean-gettext:
15b527ca 16025 @: $(MAKE); $(unstage)
d5eec917 16026 @[ -f ./gettext/Makefile ] || exit 0; \
5230d454
L
16027 r=`${PWD_COMMAND}`; export r; \
16028 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 16029 $(HOST_EXPORTS) \
d5eec917 16030 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
16031 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16032 done; \
d5eec917 16033 echo "Doing distclean in gettext" ; \
7fc2ca22 16034 (cd $(HOST_SUBDIR)/gettext && \
657b58f4
NN
16035 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16036 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16037 "RANLIB=$${RANLIB}" \
bffcbe34 16038 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 16039 distclean) \
657b58f4
NN
16040 || exit 1
16041
d5eec917 16042@endif gettext
657b58f4 16043
d5eec917
PB
16044.PHONY: maybe-maintainer-clean-gettext maintainer-clean-gettext
16045maybe-maintainer-clean-gettext:
16046@if gettext
16047maybe-maintainer-clean-gettext: maintainer-clean-gettext
657b58f4 16048
d5eec917 16049maintainer-clean-gettext:
15b527ca 16050 @: $(MAKE); $(unstage)
d5eec917 16051 @[ -f ./gettext/Makefile ] || exit 0; \
5230d454
L
16052 r=`${PWD_COMMAND}`; export r; \
16053 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 16054 $(HOST_EXPORTS) \
d5eec917 16055 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
16056 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16057 done; \
d5eec917 16058 echo "Doing maintainer-clean in gettext" ; \
7fc2ca22 16059 (cd $(HOST_SUBDIR)/gettext && \
657b58f4
NN
16060 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16061 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16062 "RANLIB=$${RANLIB}" \
bffcbe34 16063 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 16064 maintainer-clean) \
8ec98d6c
NN
16065 || exit 1
16066
d5eec917 16067@endif gettext
8ec98d6c
NN
16068
16069
f0fdfd34 16070
42f55f77
PB
16071.PHONY: configure-gmp maybe-configure-gmp
16072maybe-configure-gmp:
16073@if gcc-bootstrap
16074configure-gmp: stage_current
16075@endif gcc-bootstrap
16076@if gmp
16077maybe-configure-gmp: configure-gmp
16078configure-gmp:
16079 @r=`${PWD_COMMAND}`; export r; \
16080 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16081 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
16082 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp ; \
16083 $(HOST_EXPORTS) \
16084 echo Configuring in $(HOST_SUBDIR)/gmp; \
16085 cd "$(HOST_SUBDIR)/gmp" || exit 1; \
16086 case $(srcdir) in \
16087 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
16088 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
16089 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16090 esac; \
16091 srcdiroption="--srcdir=$${topdir}/gmp"; \
16092 libsrcdir="$$s/gmp"; \
16093 $(SHELL) $${libsrcdir}/configure \
16094 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
16095 --target=none-${host_vendor}-${host_os} $${srcdiroption} --disable-shared \
16096 || exit 1
16097@endif gmp
16098
16099
16100
16101.PHONY: configure-stage1-gmp maybe-configure-stage1-gmp
16102maybe-configure-stage1-gmp:
16103@if gmp-bootstrap
16104maybe-configure-stage1-gmp: configure-stage1-gmp
16105configure-stage1-gmp:
16106 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
16107 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
16108 @r=`${PWD_COMMAND}`; export r; \
16109 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16110 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
6532abb6 16111 $(HOST_EXPORTS) \
2ba09444 16112 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
6532abb6 16113 CXXFLAGS="$(STAGE1_CFLAGS)"; export CXXFLAGS; \
42f55f77
PB
16114 echo Configuring stage 1 in $(HOST_SUBDIR)/gmp ; \
16115 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp ; \
16116 cd $(HOST_SUBDIR)/gmp || exit 1; \
16117 case $(srcdir) in \
16118 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
16119 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
16120 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16121 esac; \
16122 srcdiroption="--srcdir=$${topdir}/gmp"; \
16123 libsrcdir="$$s/gmp"; \
16124 $(SHELL) $${libsrcdir}/configure \
16125 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
16126 --target=none-${host_vendor}-${host_os} $${srcdiroption} \
16127 \
16128 --disable-intermodule $(STAGE1_CHECKING) --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)" --disable-shared
16129@endif gmp-bootstrap
16130
16131.PHONY: configure-stage2-gmp maybe-configure-stage2-gmp
16132maybe-configure-stage2-gmp:
16133@if gmp-bootstrap
16134maybe-configure-stage2-gmp: configure-stage2-gmp
16135configure-stage2-gmp:
16136 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
16137 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
16138 @r=`${PWD_COMMAND}`; export r; \
16139 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16140 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
16141 $(HOST_EXPORTS) \
6532abb6 16142 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 16143 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
6532abb6 16144 CXXFLAGS="$(STAGE2_CFLAGS)"; export CXXFLAGS; \
42f55f77
PB
16145 echo Configuring stage 2 in $(HOST_SUBDIR)/gmp ; \
16146 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp ; \
16147 cd $(HOST_SUBDIR)/gmp || exit 1; \
16148 case $(srcdir) in \
16149 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
16150 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
16151 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16152 esac; \
16153 srcdiroption="--srcdir=$${topdir}/gmp"; \
16154 libsrcdir="$$s/gmp"; \
16155 $(SHELL) $${libsrcdir}/configure \
16156 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
16157 --target=none-${host_vendor}-${host_os} $${srcdiroption} \
16158 --with-build-libsubdir=$(HOST_SUBDIR) \
16159 @stage2_werror_flag@ --disable-shared
16160@endif gmp-bootstrap
16161
2b41ef78
AO
16162.PHONY: configure-stageb2g0-gmp maybe-configure-stageb2g0-gmp
16163maybe-configure-stageb2g0-gmp:
16164@if gmp-bootstrap
16165maybe-configure-stageb2g0-gmp: configure-stageb2g0-gmp
16166configure-stageb2g0-gmp:
16167 @[ $(current_stage) = stageb2g0 ] || $(MAKE) stageb2g0-start
16168 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
16169 @r=`${PWD_COMMAND}`; export r; \
16170 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16171 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
16172 $(HOST_EXPORTS) \
6532abb6 16173 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 16174 CFLAGS="$(STAGE2_CFLAGS) -g0"; export CFLAGS; \
6532abb6 16175 CXXFLAGS="$(STAGE2_CFLAGS) -g0"; export CXXFLAGS; \
2b41ef78
AO
16176 echo Configuring stage b2g0 in $(HOST_SUBDIR)/gmp ; \
16177 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp ; \
16178 cd $(HOST_SUBDIR)/gmp || exit 1; \
16179 case $(srcdir) in \
16180 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
16181 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
16182 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16183 esac; \
16184 srcdiroption="--srcdir=$${topdir}/gmp"; \
16185 libsrcdir="$$s/gmp"; \
16186 $(SHELL) $${libsrcdir}/configure \
16187 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
16188 --target=none-${host_vendor}-${host_os} $${srcdiroption} \
16189 --with-build-libsubdir=$(HOST_SUBDIR) \
16190 @stage2_werror_flag@ --disable-shared
16191@endif gmp-bootstrap
16192
42f55f77
PB
16193.PHONY: configure-stage3-gmp maybe-configure-stage3-gmp
16194maybe-configure-stage3-gmp:
16195@if gmp-bootstrap
16196maybe-configure-stage3-gmp: configure-stage3-gmp
16197configure-stage3-gmp:
16198 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
16199 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
16200 @r=`${PWD_COMMAND}`; export r; \
16201 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16202 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
16203 $(HOST_EXPORTS) \
6532abb6 16204 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 16205 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
6532abb6 16206 CXXFLAGS="$(STAGE3_CFLAGS)"; export CXXFLAGS; \
42f55f77
PB
16207 echo Configuring stage 3 in $(HOST_SUBDIR)/gmp ; \
16208 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp ; \
16209 cd $(HOST_SUBDIR)/gmp || exit 1; \
16210 case $(srcdir) in \
16211 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
16212 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
16213 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16214 esac; \
16215 srcdiroption="--srcdir=$${topdir}/gmp"; \
16216 libsrcdir="$$s/gmp"; \
16217 $(SHELL) $${libsrcdir}/configure \
16218 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
16219 --target=none-${host_vendor}-${host_os} $${srcdiroption} \
16220 --with-build-libsubdir=$(HOST_SUBDIR) \
16221 @stage2_werror_flag@ --disable-shared
16222@endif gmp-bootstrap
16223
2b41ef78
AO
16224.PHONY: configure-stageb3g2-gmp maybe-configure-stageb3g2-gmp
16225maybe-configure-stageb3g2-gmp:
16226@if gmp-bootstrap
16227maybe-configure-stageb3g2-gmp: configure-stageb3g2-gmp
16228configure-stageb3g2-gmp:
16229 @[ $(current_stage) = stageb3g2 ] || $(MAKE) stageb3g2-start
16230 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
16231 @r=`${PWD_COMMAND}`; export r; \
16232 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16233 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
16234 $(HOST_EXPORTS) \
6532abb6 16235 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 16236 CFLAGS="$(STAGE3_CFLAGS) -g2"; export CFLAGS; \
6532abb6 16237 CXXFLAGS="$(STAGE3_CFLAGS) -g2"; export CXXFLAGS; \
2b41ef78
AO
16238 echo Configuring stage b3g2 in $(HOST_SUBDIR)/gmp ; \
16239 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp ; \
16240 cd $(HOST_SUBDIR)/gmp || exit 1; \
16241 case $(srcdir) in \
16242 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
16243 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
16244 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16245 esac; \
16246 srcdiroption="--srcdir=$${topdir}/gmp"; \
16247 libsrcdir="$$s/gmp"; \
16248 $(SHELL) $${libsrcdir}/configure \
16249 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
16250 --target=none-${host_vendor}-${host_os} $${srcdiroption} \
16251 --with-build-libsubdir=$(HOST_SUBDIR) \
16252 @stage2_werror_flag@ --disable-shared
16253@endif gmp-bootstrap
16254
42f55f77
PB
16255.PHONY: configure-stage4-gmp maybe-configure-stage4-gmp
16256maybe-configure-stage4-gmp:
16257@if gmp-bootstrap
16258maybe-configure-stage4-gmp: configure-stage4-gmp
16259configure-stage4-gmp:
16260 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
16261 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
16262 @r=`${PWD_COMMAND}`; export r; \
16263 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16264 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
16265 $(HOST_EXPORTS) \
6532abb6 16266 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 16267 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
6532abb6 16268 CXXFLAGS="$(STAGE4_CFLAGS)"; export CXXFLAGS; \
42f55f77
PB
16269 echo Configuring stage 4 in $(HOST_SUBDIR)/gmp ; \
16270 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp ; \
16271 cd $(HOST_SUBDIR)/gmp || exit 1; \
16272 case $(srcdir) in \
16273 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
16274 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
16275 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16276 esac; \
16277 srcdiroption="--srcdir=$${topdir}/gmp"; \
16278 libsrcdir="$$s/gmp"; \
16279 $(SHELL) $${libsrcdir}/configure \
16280 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
16281 --target=none-${host_vendor}-${host_os} $${srcdiroption} \
16282 --with-build-libsubdir=$(HOST_SUBDIR) \
16283 @stage2_werror_flag@ --disable-shared
16284@endif gmp-bootstrap
16285
16286.PHONY: configure-stageprofile-gmp maybe-configure-stageprofile-gmp
16287maybe-configure-stageprofile-gmp:
16288@if gmp-bootstrap
16289maybe-configure-stageprofile-gmp: configure-stageprofile-gmp
16290configure-stageprofile-gmp:
16291 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
16292 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
16293 @r=`${PWD_COMMAND}`; export r; \
16294 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16295 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
16296 $(HOST_EXPORTS) \
6532abb6 16297 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 16298 CFLAGS="$(STAGE2_CFLAGS) -fprofile-generate"; export CFLAGS; \
6532abb6 16299 CXXFLAGS="$(STAGE2_CFLAGS) -fprofile-generate"; export CXXFLAGS; \
42f55f77
PB
16300 echo Configuring stage profile in $(HOST_SUBDIR)/gmp ; \
16301 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp ; \
16302 cd $(HOST_SUBDIR)/gmp || exit 1; \
16303 case $(srcdir) in \
16304 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
16305 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
16306 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16307 esac; \
16308 srcdiroption="--srcdir=$${topdir}/gmp"; \
16309 libsrcdir="$$s/gmp"; \
16310 $(SHELL) $${libsrcdir}/configure \
16311 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
16312 --target=none-${host_vendor}-${host_os} $${srcdiroption} \
16313 --with-build-libsubdir=$(HOST_SUBDIR) \
16314 @stage2_werror_flag@ --disable-shared
16315@endif gmp-bootstrap
16316
16317.PHONY: configure-stagefeedback-gmp maybe-configure-stagefeedback-gmp
16318maybe-configure-stagefeedback-gmp:
16319@if gmp-bootstrap
16320maybe-configure-stagefeedback-gmp: configure-stagefeedback-gmp
16321configure-stagefeedback-gmp:
16322 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
16323 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
16324 @r=`${PWD_COMMAND}`; export r; \
16325 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16326 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
16327 $(HOST_EXPORTS) \
6532abb6 16328 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 16329 CFLAGS="$(STAGE3_CFLAGS) -fprofile-use"; export CFLAGS; \
6532abb6 16330 CXXFLAGS="$(STAGE3_CFLAGS) -fprofile-use"; export CXXFLAGS; \
42f55f77
PB
16331 echo Configuring stage feedback in $(HOST_SUBDIR)/gmp ; \
16332 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp ; \
16333 cd $(HOST_SUBDIR)/gmp || exit 1; \
16334 case $(srcdir) in \
16335 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
16336 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
16337 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16338 esac; \
16339 srcdiroption="--srcdir=$${topdir}/gmp"; \
16340 libsrcdir="$$s/gmp"; \
16341 $(SHELL) $${libsrcdir}/configure \
16342 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
16343 --target=none-${host_vendor}-${host_os} $${srcdiroption} \
16344 --with-build-libsubdir=$(HOST_SUBDIR) \
16345 @stage2_werror_flag@ --disable-shared
16346@endif gmp-bootstrap
16347
16348
16349
16350
16351
16352.PHONY: all-gmp maybe-all-gmp
16353maybe-all-gmp:
16354@if gcc-bootstrap
16355all-gmp: stage_current
16356@endif gcc-bootstrap
16357@if gmp
16358TARGET-gmp=all
16359maybe-all-gmp: all-gmp
16360all-gmp: configure-gmp
16361 @r=`${PWD_COMMAND}`; export r; \
16362 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16363 $(HOST_EXPORTS) \
16364 (cd $(HOST_SUBDIR)/gmp && \
6532abb6
PB
16365 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
16366 $(TARGET-gmp))
42f55f77
PB
16367@endif gmp
16368
16369
16370
16371.PHONY: all-stage1-gmp maybe-all-stage1-gmp
16372.PHONY: clean-stage1-gmp maybe-clean-stage1-gmp
16373maybe-all-stage1-gmp:
16374maybe-clean-stage1-gmp:
16375@if gmp-bootstrap
16376maybe-all-stage1-gmp: all-stage1-gmp
16377all-stage1: all-stage1-gmp
16378TARGET-stage1-gmp = $(TARGET-gmp)
16379all-stage1-gmp: configure-stage1-gmp
16380 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
16381 @r=`${PWD_COMMAND}`; export r; \
16382 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16383 $(HOST_EXPORTS) \
16384 cd $(HOST_SUBDIR)/gmp && \
6532abb6
PB
16385 $(MAKE) $(BASE_FLAGS_TO_PASS) \
16386 CFLAGS="$(STAGE1_CFLAGS)" CXXFLAGS="$(STAGE1_CFLAGS)" \
16387 LIBCFLAGS="$(STAGE1_LIBCFLAGS)" \
16388 CFLAGS_FOR_TARGET="$(STAGE1_LIBCFLAGS)" \
16389 CXXFLAGS_FOR_TARGET="$(STAGE1_LIBCFLAGS)" $(EXTRA_HOST_FLAGS) \
42f55f77
PB
16390 $(TARGET-stage1-gmp)
16391
16392maybe-clean-stage1-gmp: clean-stage1-gmp
16393clean-stage1: clean-stage1-gmp
16394clean-stage1-gmp:
16395 @if [ $(current_stage) = stage1 ]; then \
16396 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
16397 else \
16398 [ -f $(HOST_SUBDIR)/stage1-gmp/Makefile ] || exit 0; \
16399 $(MAKE) stage1-start; \
16400 fi; \
16401 cd $(HOST_SUBDIR)/gmp && \
6532abb6 16402 $(MAKE) $(EXTRA_HOST_FLAGS) \
2ba09444 16403 clean
42f55f77
PB
16404@endif gmp-bootstrap
16405
16406
16407.PHONY: all-stage2-gmp maybe-all-stage2-gmp
16408.PHONY: clean-stage2-gmp maybe-clean-stage2-gmp
16409maybe-all-stage2-gmp:
16410maybe-clean-stage2-gmp:
16411@if gmp-bootstrap
16412maybe-all-stage2-gmp: all-stage2-gmp
16413all-stage2: all-stage2-gmp
16414TARGET-stage2-gmp = $(TARGET-gmp)
16415all-stage2-gmp: configure-stage2-gmp
16416 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
16417 @r=`${PWD_COMMAND}`; export r; \
16418 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16419 $(HOST_EXPORTS) \
16420 $(POSTSTAGE1_HOST_EXPORTS) \
16421 cd $(HOST_SUBDIR)/gmp && \
6532abb6
PB
16422 $(MAKE) $(BASE_FLAGS_TO_PASS) \
16423 CFLAGS="$(STAGE2_CFLAGS)" CXXFLAGS="$(STAGE2_CFLAGS)" \
16424 LIBCFLAGS="$(STAGE2_LIBCFLAGS)" \
16425 CFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)" \
16426 CXXFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
42f55f77
PB
16427 $(TARGET-stage2-gmp)
16428
16429maybe-clean-stage2-gmp: clean-stage2-gmp
16430clean-stage2: clean-stage2-gmp
16431clean-stage2-gmp:
16432 @if [ $(current_stage) = stage2 ]; then \
16433 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
16434 else \
16435 [ -f $(HOST_SUBDIR)/stage2-gmp/Makefile ] || exit 0; \
16436 $(MAKE) stage2-start; \
16437 fi; \
16438 cd $(HOST_SUBDIR)/gmp && \
6532abb6 16439 $(MAKE) $(EXTRA_HOST_FLAGS) \
42f55f77 16440 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 16441 clean
42f55f77
PB
16442@endif gmp-bootstrap
16443
16444
2b41ef78
AO
16445.PHONY: all-stageb2g0-gmp maybe-all-stageb2g0-gmp
16446.PHONY: clean-stageb2g0-gmp maybe-clean-stageb2g0-gmp
16447maybe-all-stageb2g0-gmp:
16448maybe-clean-stageb2g0-gmp:
16449@if gmp-bootstrap
16450maybe-all-stageb2g0-gmp: all-stageb2g0-gmp
16451all-stageb2g0: all-stageb2g0-gmp
16452TARGET-stageb2g0-gmp = $(TARGET-gmp)
16453all-stageb2g0-gmp: configure-stageb2g0-gmp
16454 @[ $(current_stage) = stageb2g0 ] || $(MAKE) stageb2g0-start
16455 @r=`${PWD_COMMAND}`; export r; \
16456 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16457 $(HOST_EXPORTS) \
16458 $(POSTSTAGE1_HOST_EXPORTS) \
16459 cd $(HOST_SUBDIR)/gmp && \
6532abb6
PB
16460 $(MAKE) $(BASE_FLAGS_TO_PASS) \
16461 CFLAGS="$(STAGE2_CFLAGS) -g0" CXXFLAGS="$(STAGE2_CFLAGS) -g0" \
16462 LIBCFLAGS="$(STAGE2_LIBCFLAGS) -g0" \
16463 CFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS) -g0" \
16464 CXXFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS) -g0" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
2b41ef78
AO
16465 $(TARGET-stageb2g0-gmp)
16466
16467maybe-clean-stageb2g0-gmp: clean-stageb2g0-gmp
16468clean-stageb2g0: clean-stageb2g0-gmp
16469clean-stageb2g0-gmp:
16470 @if [ $(current_stage) = stageb2g0 ]; then \
16471 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
16472 else \
16473 [ -f $(HOST_SUBDIR)/stageb2g0-gmp/Makefile ] || exit 0; \
16474 $(MAKE) stageb2g0-start; \
16475 fi; \
16476 cd $(HOST_SUBDIR)/gmp && \
6532abb6 16477 $(MAKE) $(EXTRA_HOST_FLAGS) \
2b41ef78
AO
16478 $(POSTSTAGE1_FLAGS_TO_PASS) \
16479 clean
16480@endif gmp-bootstrap
16481
16482
42f55f77
PB
16483.PHONY: all-stage3-gmp maybe-all-stage3-gmp
16484.PHONY: clean-stage3-gmp maybe-clean-stage3-gmp
16485maybe-all-stage3-gmp:
16486maybe-clean-stage3-gmp:
16487@if gmp-bootstrap
16488maybe-all-stage3-gmp: all-stage3-gmp
16489all-stage3: all-stage3-gmp
16490TARGET-stage3-gmp = $(TARGET-gmp)
16491all-stage3-gmp: configure-stage3-gmp
16492 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
16493 @r=`${PWD_COMMAND}`; export r; \
16494 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16495 $(HOST_EXPORTS) \
16496 $(POSTSTAGE1_HOST_EXPORTS) \
16497 cd $(HOST_SUBDIR)/gmp && \
6532abb6
PB
16498 $(MAKE) $(BASE_FLAGS_TO_PASS) \
16499 CFLAGS="$(STAGE3_CFLAGS)" CXXFLAGS="$(STAGE3_CFLAGS)" \
16500 LIBCFLAGS="$(STAGE3_LIBCFLAGS)" \
16501 CFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS)" \
16502 CXXFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS)" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
42f55f77
PB
16503 $(TARGET-stage3-gmp)
16504
16505maybe-clean-stage3-gmp: clean-stage3-gmp
16506clean-stage3: clean-stage3-gmp
16507clean-stage3-gmp:
16508 @if [ $(current_stage) = stage3 ]; then \
16509 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
16510 else \
16511 [ -f $(HOST_SUBDIR)/stage3-gmp/Makefile ] || exit 0; \
16512 $(MAKE) stage3-start; \
16513 fi; \
16514 cd $(HOST_SUBDIR)/gmp && \
6532abb6 16515 $(MAKE) $(EXTRA_HOST_FLAGS) \
42f55f77 16516 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 16517 clean
42f55f77
PB
16518@endif gmp-bootstrap
16519
16520
2b41ef78
AO
16521.PHONY: all-stageb3g2-gmp maybe-all-stageb3g2-gmp
16522.PHONY: clean-stageb3g2-gmp maybe-clean-stageb3g2-gmp
16523maybe-all-stageb3g2-gmp:
16524maybe-clean-stageb3g2-gmp:
16525@if gmp-bootstrap
16526maybe-all-stageb3g2-gmp: all-stageb3g2-gmp
16527all-stageb3g2: all-stageb3g2-gmp
16528TARGET-stageb3g2-gmp = $(TARGET-gmp)
16529all-stageb3g2-gmp: configure-stageb3g2-gmp
16530 @[ $(current_stage) = stageb3g2 ] || $(MAKE) stageb3g2-start
16531 @r=`${PWD_COMMAND}`; export r; \
16532 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16533 $(HOST_EXPORTS) \
16534 $(POSTSTAGE1_HOST_EXPORTS) \
16535 cd $(HOST_SUBDIR)/gmp && \
6532abb6
PB
16536 $(MAKE) $(BASE_FLAGS_TO_PASS) \
16537 CFLAGS="$(STAGE3_CFLAGS) -g2" CXXFLAGS="$(STAGE3_CFLAGS) -g2" \
16538 LIBCFLAGS="$(STAGE3_LIBCFLAGS) -g2" \
16539 CFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS) -g2" \
16540 CXXFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS) -g2" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
2b41ef78
AO
16541 $(TARGET-stageb3g2-gmp)
16542
16543maybe-clean-stageb3g2-gmp: clean-stageb3g2-gmp
16544clean-stageb3g2: clean-stageb3g2-gmp
16545clean-stageb3g2-gmp:
16546 @if [ $(current_stage) = stageb3g2 ]; then \
16547 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
16548 else \
16549 [ -f $(HOST_SUBDIR)/stageb3g2-gmp/Makefile ] || exit 0; \
16550 $(MAKE) stageb3g2-start; \
16551 fi; \
16552 cd $(HOST_SUBDIR)/gmp && \
6532abb6 16553 $(MAKE) $(EXTRA_HOST_FLAGS) \
2b41ef78
AO
16554 $(POSTSTAGE1_FLAGS_TO_PASS) \
16555 clean
16556@endif gmp-bootstrap
16557
16558
42f55f77
PB
16559.PHONY: all-stage4-gmp maybe-all-stage4-gmp
16560.PHONY: clean-stage4-gmp maybe-clean-stage4-gmp
16561maybe-all-stage4-gmp:
16562maybe-clean-stage4-gmp:
16563@if gmp-bootstrap
16564maybe-all-stage4-gmp: all-stage4-gmp
16565all-stage4: all-stage4-gmp
16566TARGET-stage4-gmp = $(TARGET-gmp)
16567all-stage4-gmp: configure-stage4-gmp
16568 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
16569 @r=`${PWD_COMMAND}`; export r; \
16570 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16571 $(HOST_EXPORTS) \
16572 $(POSTSTAGE1_HOST_EXPORTS) \
16573 cd $(HOST_SUBDIR)/gmp && \
6532abb6
PB
16574 $(MAKE) $(BASE_FLAGS_TO_PASS) \
16575 CFLAGS="$(STAGE4_CFLAGS)" CXXFLAGS="$(STAGE4_CFLAGS)" \
16576 LIBCFLAGS="$(STAGE4_CFLAGS)" \
16577 CFLAGS_FOR_TARGET="$(STAGE4_CFLAGS)" \
16578 CXXFLAGS_FOR_TARGET="$(STAGE4_CFLAGS)" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
42f55f77
PB
16579 $(TARGET-stage4-gmp)
16580
16581maybe-clean-stage4-gmp: clean-stage4-gmp
16582clean-stage4: clean-stage4-gmp
16583clean-stage4-gmp:
16584 @if [ $(current_stage) = stage4 ]; then \
16585 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
16586 else \
16587 [ -f $(HOST_SUBDIR)/stage4-gmp/Makefile ] || exit 0; \
16588 $(MAKE) stage4-start; \
16589 fi; \
16590 cd $(HOST_SUBDIR)/gmp && \
6532abb6 16591 $(MAKE) $(EXTRA_HOST_FLAGS) \
42f55f77 16592 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 16593 clean
42f55f77
PB
16594@endif gmp-bootstrap
16595
16596
16597.PHONY: all-stageprofile-gmp maybe-all-stageprofile-gmp
16598.PHONY: clean-stageprofile-gmp maybe-clean-stageprofile-gmp
16599maybe-all-stageprofile-gmp:
16600maybe-clean-stageprofile-gmp:
16601@if gmp-bootstrap
16602maybe-all-stageprofile-gmp: all-stageprofile-gmp
16603all-stageprofile: all-stageprofile-gmp
16604TARGET-stageprofile-gmp = $(TARGET-gmp)
16605all-stageprofile-gmp: configure-stageprofile-gmp
16606 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
16607 @r=`${PWD_COMMAND}`; export r; \
16608 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16609 $(HOST_EXPORTS) \
16610 $(POSTSTAGE1_HOST_EXPORTS) \
16611 cd $(HOST_SUBDIR)/gmp && \
6532abb6
PB
16612 $(MAKE) $(BASE_FLAGS_TO_PASS) \
16613 CFLAGS="$(STAGE2_CFLAGS) -fprofile-generate" CXXFLAGS="$(STAGE2_CFLAGS) -fprofile-generate" \
455b4f90
PB
16614 LIBCFLAGS="$(STAGE2_LIBCFLAGS)" \
16615 CFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)" \
16616 CXXFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
42f55f77
PB
16617 $(TARGET-stageprofile-gmp)
16618
16619maybe-clean-stageprofile-gmp: clean-stageprofile-gmp
16620clean-stageprofile: clean-stageprofile-gmp
16621clean-stageprofile-gmp:
16622 @if [ $(current_stage) = stageprofile ]; then \
16623 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
16624 else \
16625 [ -f $(HOST_SUBDIR)/stageprofile-gmp/Makefile ] || exit 0; \
16626 $(MAKE) stageprofile-start; \
16627 fi; \
16628 cd $(HOST_SUBDIR)/gmp && \
6532abb6 16629 $(MAKE) $(EXTRA_HOST_FLAGS) \
42f55f77 16630 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 16631 clean
42f55f77
PB
16632@endif gmp-bootstrap
16633
16634
16635.PHONY: all-stagefeedback-gmp maybe-all-stagefeedback-gmp
16636.PHONY: clean-stagefeedback-gmp maybe-clean-stagefeedback-gmp
16637maybe-all-stagefeedback-gmp:
16638maybe-clean-stagefeedback-gmp:
16639@if gmp-bootstrap
16640maybe-all-stagefeedback-gmp: all-stagefeedback-gmp
16641all-stagefeedback: all-stagefeedback-gmp
16642TARGET-stagefeedback-gmp = $(TARGET-gmp)
16643all-stagefeedback-gmp: configure-stagefeedback-gmp
16644 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
16645 @r=`${PWD_COMMAND}`; export r; \
16646 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16647 $(HOST_EXPORTS) \
16648 $(POSTSTAGE1_HOST_EXPORTS) \
16649 cd $(HOST_SUBDIR)/gmp && \
6532abb6
PB
16650 $(MAKE) $(BASE_FLAGS_TO_PASS) \
16651 CFLAGS="$(STAGE3_CFLAGS) -fprofile-use" CXXFLAGS="$(STAGE3_CFLAGS) -fprofile-use" \
16652 LIBCFLAGS="$(STAGE3_LIBCFLAGS) -fprofile-use" \
16653 CFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS) -fprofile-use" \
16654 CXXFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS) -fprofile-use" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
42f55f77
PB
16655 $(TARGET-stagefeedback-gmp)
16656
16657maybe-clean-stagefeedback-gmp: clean-stagefeedback-gmp
16658clean-stagefeedback: clean-stagefeedback-gmp
16659clean-stagefeedback-gmp:
16660 @if [ $(current_stage) = stagefeedback ]; then \
16661 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
16662 else \
16663 [ -f $(HOST_SUBDIR)/stagefeedback-gmp/Makefile ] || exit 0; \
16664 $(MAKE) stagefeedback-start; \
16665 fi; \
16666 cd $(HOST_SUBDIR)/gmp && \
6532abb6 16667 $(MAKE) $(EXTRA_HOST_FLAGS) \
42f55f77 16668 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 16669 clean
42f55f77
PB
16670@endif gmp-bootstrap
16671
16672
16673
16674
16675
16676.PHONY: check-gmp maybe-check-gmp
16677maybe-check-gmp:
16678@if gmp
16679maybe-check-gmp: check-gmp
16680
16681check-gmp:
16682 @: $(MAKE); $(unstage)
16683 @r=`${PWD_COMMAND}`; export r; \
16684 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16685 $(HOST_EXPORTS) \
16686 (cd $(HOST_SUBDIR)/gmp && \
16687 $(MAKE) $(FLAGS_TO_PASS) check)
16688
16689@endif gmp
16690
16691.PHONY: install-gmp maybe-install-gmp
16692maybe-install-gmp:
16693@if gmp
16694maybe-install-gmp: install-gmp
16695
16696install-gmp:
16697
16698@endif gmp
16699
16700# Other targets (info, dvi, pdf, etc.)
16701
16702.PHONY: maybe-info-gmp info-gmp
16703maybe-info-gmp:
16704@if gmp
16705maybe-info-gmp: info-gmp
16706
16707info-gmp: \
16708 configure-gmp
16709 @[ -f ./gmp/Makefile ] || exit 0; \
16710 r=`${PWD_COMMAND}`; export r; \
16711 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16712 $(HOST_EXPORTS) \
16713 for flag in $(EXTRA_HOST_FLAGS) ; do \
16714 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16715 done; \
16716 echo "Doing info in gmp" ; \
16717 (cd $(HOST_SUBDIR)/gmp && \
16718 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16719 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16720 "RANLIB=$${RANLIB}" \
bffcbe34 16721 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42f55f77
PB
16722 info) \
16723 || exit 1
16724
16725@endif gmp
16726
16727.PHONY: maybe-dvi-gmp dvi-gmp
16728maybe-dvi-gmp:
16729@if gmp
16730maybe-dvi-gmp: dvi-gmp
16731
16732dvi-gmp: \
16733 configure-gmp
16734 @[ -f ./gmp/Makefile ] || exit 0; \
16735 r=`${PWD_COMMAND}`; export r; \
16736 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16737 $(HOST_EXPORTS) \
16738 for flag in $(EXTRA_HOST_FLAGS) ; do \
16739 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16740 done; \
16741 echo "Doing dvi in gmp" ; \
16742 (cd $(HOST_SUBDIR)/gmp && \
16743 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16744 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16745 "RANLIB=$${RANLIB}" \
bffcbe34 16746 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42f55f77
PB
16747 dvi) \
16748 || exit 1
16749
16750@endif gmp
16751
16752.PHONY: maybe-pdf-gmp pdf-gmp
16753maybe-pdf-gmp:
16754@if gmp
16755maybe-pdf-gmp: pdf-gmp
16756
16757pdf-gmp: \
16758 configure-gmp
16759 @[ -f ./gmp/Makefile ] || exit 0; \
16760 r=`${PWD_COMMAND}`; export r; \
16761 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16762 $(HOST_EXPORTS) \
16763 for flag in $(EXTRA_HOST_FLAGS) ; do \
16764 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16765 done; \
16766 echo "Doing pdf in gmp" ; \
16767 (cd $(HOST_SUBDIR)/gmp && \
16768 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16769 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16770 "RANLIB=$${RANLIB}" \
bffcbe34 16771 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42f55f77
PB
16772 pdf) \
16773 || exit 1
16774
16775@endif gmp
16776
16777.PHONY: maybe-html-gmp html-gmp
16778maybe-html-gmp:
16779@if gmp
16780maybe-html-gmp: html-gmp
16781
16782html-gmp: \
16783 configure-gmp
16784 @[ -f ./gmp/Makefile ] || exit 0; \
16785 r=`${PWD_COMMAND}`; export r; \
16786 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16787 $(HOST_EXPORTS) \
16788 for flag in $(EXTRA_HOST_FLAGS) ; do \
16789 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16790 done; \
16791 echo "Doing html in gmp" ; \
16792 (cd $(HOST_SUBDIR)/gmp && \
16793 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16794 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16795 "RANLIB=$${RANLIB}" \
bffcbe34 16796 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42f55f77
PB
16797 html) \
16798 || exit 1
16799
16800@endif gmp
16801
16802.PHONY: maybe-TAGS-gmp TAGS-gmp
16803maybe-TAGS-gmp:
16804@if gmp
16805maybe-TAGS-gmp: TAGS-gmp
16806
16807TAGS-gmp: \
16808 configure-gmp
16809 @[ -f ./gmp/Makefile ] || exit 0; \
16810 r=`${PWD_COMMAND}`; export r; \
16811 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16812 $(HOST_EXPORTS) \
16813 for flag in $(EXTRA_HOST_FLAGS) ; do \
16814 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16815 done; \
16816 echo "Doing TAGS in gmp" ; \
16817 (cd $(HOST_SUBDIR)/gmp && \
16818 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16819 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16820 "RANLIB=$${RANLIB}" \
bffcbe34 16821 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42f55f77
PB
16822 TAGS) \
16823 || exit 1
16824
16825@endif gmp
16826
16827.PHONY: maybe-install-info-gmp install-info-gmp
16828maybe-install-info-gmp:
16829@if gmp
16830maybe-install-info-gmp: install-info-gmp
16831
16832install-info-gmp: \
16833 configure-gmp \
16834 info-gmp
16835 @[ -f ./gmp/Makefile ] || exit 0; \
16836 r=`${PWD_COMMAND}`; export r; \
16837 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16838 $(HOST_EXPORTS) \
16839 for flag in $(EXTRA_HOST_FLAGS) ; do \
16840 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16841 done; \
16842 echo "Doing install-info in gmp" ; \
16843 (cd $(HOST_SUBDIR)/gmp && \
16844 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16845 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16846 "RANLIB=$${RANLIB}" \
bffcbe34 16847 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42f55f77
PB
16848 install-info) \
16849 || exit 1
16850
16851@endif gmp
16852
d4954b6d
DD
16853.PHONY: maybe-install-pdf-gmp install-pdf-gmp
16854maybe-install-pdf-gmp:
16855@if gmp
16856maybe-install-pdf-gmp: install-pdf-gmp
16857
16858install-pdf-gmp: \
16859 configure-gmp \
16860 pdf-gmp
16861 @[ -f ./gmp/Makefile ] || exit 0; \
16862 r=`${PWD_COMMAND}`; export r; \
16863 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16864 $(HOST_EXPORTS) \
16865 for flag in $(EXTRA_HOST_FLAGS) ; do \
16866 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16867 done; \
16868 echo "Doing install-pdf in gmp" ; \
16869 (cd $(HOST_SUBDIR)/gmp && \
16870 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16871 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16872 "RANLIB=$${RANLIB}" \
bffcbe34 16873 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
16874 install-pdf) \
16875 || exit 1
16876
16877@endif gmp
16878
42f55f77
PB
16879.PHONY: maybe-install-html-gmp install-html-gmp
16880maybe-install-html-gmp:
16881@if gmp
16882maybe-install-html-gmp: install-html-gmp
16883
16884install-html-gmp: \
16885 configure-gmp \
16886 html-gmp
16887 @[ -f ./gmp/Makefile ] || exit 0; \
16888 r=`${PWD_COMMAND}`; export r; \
16889 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16890 $(HOST_EXPORTS) \
16891 for flag in $(EXTRA_HOST_FLAGS) ; do \
16892 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16893 done; \
16894 echo "Doing install-html in gmp" ; \
16895 (cd $(HOST_SUBDIR)/gmp && \
16896 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16897 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16898 "RANLIB=$${RANLIB}" \
bffcbe34 16899 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42f55f77
PB
16900 install-html) \
16901 || exit 1
16902
16903@endif gmp
16904
16905.PHONY: maybe-installcheck-gmp installcheck-gmp
16906maybe-installcheck-gmp:
16907@if gmp
16908maybe-installcheck-gmp: installcheck-gmp
16909
311b6756
JM
16910installcheck-gmp: \
16911 configure-gmp
16912 @[ -f ./gmp/Makefile ] || exit 0; \
16913 r=`${PWD_COMMAND}`; export r; \
16914 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16915 $(HOST_EXPORTS) \
16916 for flag in $(EXTRA_HOST_FLAGS) ; do \
16917 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16918 done; \
16919 echo "Doing installcheck in gmp" ; \
16920 (cd $(HOST_SUBDIR)/gmp && \
16921 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16922 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16923 "RANLIB=$${RANLIB}" \
16924 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16925 installcheck) \
16926 || exit 1
16927
16928@endif gmp
16929
16930.PHONY: maybe-mostlyclean-gmp mostlyclean-gmp
16931maybe-mostlyclean-gmp:
16932@if gmp
16933maybe-mostlyclean-gmp: mostlyclean-gmp
16934
16935mostlyclean-gmp:
16936 @[ -f ./gmp/Makefile ] || exit 0; \
16937 r=`${PWD_COMMAND}`; export r; \
16938 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16939 $(HOST_EXPORTS) \
16940 for flag in $(EXTRA_HOST_FLAGS) ; do \
16941 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16942 done; \
16943 echo "Doing mostlyclean in gmp" ; \
16944 (cd $(HOST_SUBDIR)/gmp && \
16945 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16946 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16947 "RANLIB=$${RANLIB}" \
16948 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16949 mostlyclean) \
16950 || exit 1
16951
16952@endif gmp
16953
16954.PHONY: maybe-clean-gmp clean-gmp
16955maybe-clean-gmp:
16956@if gmp
16957maybe-clean-gmp: clean-gmp
16958
16959clean-gmp:
16960 @[ -f ./gmp/Makefile ] || exit 0; \
16961 r=`${PWD_COMMAND}`; export r; \
16962 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16963 $(HOST_EXPORTS) \
16964 for flag in $(EXTRA_HOST_FLAGS) ; do \
16965 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16966 done; \
16967 echo "Doing clean in gmp" ; \
16968 (cd $(HOST_SUBDIR)/gmp && \
16969 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16970 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16971 "RANLIB=$${RANLIB}" \
16972 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16973 clean) \
16974 || exit 1
16975
16976@endif gmp
16977
16978.PHONY: maybe-distclean-gmp distclean-gmp
16979maybe-distclean-gmp:
16980@if gmp
16981maybe-distclean-gmp: distclean-gmp
16982
16983distclean-gmp:
16984 @[ -f ./gmp/Makefile ] || exit 0; \
16985 r=`${PWD_COMMAND}`; export r; \
16986 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16987 $(HOST_EXPORTS) \
16988 for flag in $(EXTRA_HOST_FLAGS) ; do \
16989 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16990 done; \
16991 echo "Doing distclean in gmp" ; \
16992 (cd $(HOST_SUBDIR)/gmp && \
16993 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16994 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16995 "RANLIB=$${RANLIB}" \
16996 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16997 distclean) \
16998 || exit 1
16999
17000@endif gmp
17001
17002.PHONY: maybe-maintainer-clean-gmp maintainer-clean-gmp
17003maybe-maintainer-clean-gmp:
17004@if gmp
17005maybe-maintainer-clean-gmp: maintainer-clean-gmp
17006
17007maintainer-clean-gmp:
17008 @[ -f ./gmp/Makefile ] || exit 0; \
17009 r=`${PWD_COMMAND}`; export r; \
17010 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17011 $(HOST_EXPORTS) \
17012 for flag in $(EXTRA_HOST_FLAGS) ; do \
17013 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17014 done; \
17015 echo "Doing maintainer-clean in gmp" ; \
17016 (cd $(HOST_SUBDIR)/gmp && \
17017 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17018 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17019 "RANLIB=$${RANLIB}" \
17020 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17021 maintainer-clean) \
17022 || exit 1
17023
17024@endif gmp
17025
17026
17027
17028.PHONY: configure-mpfr maybe-configure-mpfr
17029maybe-configure-mpfr:
17030@if gcc-bootstrap
17031configure-mpfr: stage_current
17032@endif gcc-bootstrap
17033@if mpfr
17034maybe-configure-mpfr: configure-mpfr
17035configure-mpfr:
17036 @r=`${PWD_COMMAND}`; export r; \
17037 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17038 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
17039 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr ; \
17040 $(HOST_EXPORTS) \
17041 echo Configuring in $(HOST_SUBDIR)/mpfr; \
17042 cd "$(HOST_SUBDIR)/mpfr" || exit 1; \
17043 case $(srcdir) in \
17044 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
17045 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
17046 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17047 esac; \
17048 srcdiroption="--srcdir=$${topdir}/mpfr"; \
17049 libsrcdir="$$s/mpfr"; \
17050 $(SHELL) $${libsrcdir}/configure \
17051 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
17052 --target=none-${host_vendor}-${host_os} $${srcdiroption} --disable-shared --with-gmp-build=$$r/$(HOST_SUBDIR)/gmp \
17053 || exit 1
17054@endif mpfr
17055
17056
17057
17058.PHONY: configure-stage1-mpfr maybe-configure-stage1-mpfr
17059maybe-configure-stage1-mpfr:
17060@if mpfr-bootstrap
17061maybe-configure-stage1-mpfr: configure-stage1-mpfr
17062configure-stage1-mpfr:
17063 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
17064 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
17065 @r=`${PWD_COMMAND}`; export r; \
17066 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17067 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
17068 $(HOST_EXPORTS) \
17069 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
17070 CXXFLAGS="$(STAGE1_CFLAGS)"; export CXXFLAGS; \
17071 echo Configuring stage 1 in $(HOST_SUBDIR)/mpfr ; \
17072 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr ; \
17073 cd $(HOST_SUBDIR)/mpfr || exit 1; \
17074 case $(srcdir) in \
17075 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
17076 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
17077 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17078 esac; \
17079 srcdiroption="--srcdir=$${topdir}/mpfr"; \
17080 libsrcdir="$$s/mpfr"; \
17081 $(SHELL) $${libsrcdir}/configure \
17082 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
17083 --target=none-${host_vendor}-${host_os} $${srcdiroption} \
17084 \
17085 --disable-intermodule $(STAGE1_CHECKING) --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)" --disable-shared --with-gmp-build=$$r/$(HOST_SUBDIR)/gmp
17086@endif mpfr-bootstrap
17087
17088.PHONY: configure-stage2-mpfr maybe-configure-stage2-mpfr
17089maybe-configure-stage2-mpfr:
17090@if mpfr-bootstrap
17091maybe-configure-stage2-mpfr: configure-stage2-mpfr
17092configure-stage2-mpfr:
17093 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
17094 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
17095 @r=`${PWD_COMMAND}`; export r; \
17096 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17097 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
17098 $(HOST_EXPORTS) \
17099 $(POSTSTAGE1_HOST_EXPORTS) \
17100 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
17101 CXXFLAGS="$(STAGE2_CFLAGS)"; export CXXFLAGS; \
17102 echo Configuring stage 2 in $(HOST_SUBDIR)/mpfr ; \
17103 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr ; \
17104 cd $(HOST_SUBDIR)/mpfr || exit 1; \
17105 case $(srcdir) in \
17106 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
17107 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
17108 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17109 esac; \
17110 srcdiroption="--srcdir=$${topdir}/mpfr"; \
17111 libsrcdir="$$s/mpfr"; \
17112 $(SHELL) $${libsrcdir}/configure \
17113 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
17114 --target=none-${host_vendor}-${host_os} $${srcdiroption} \
17115 --with-build-libsubdir=$(HOST_SUBDIR) \
17116 @stage2_werror_flag@ --disable-shared --with-gmp-build=$$r/$(HOST_SUBDIR)/gmp
17117@endif mpfr-bootstrap
17118
17119.PHONY: configure-stageb2g0-mpfr maybe-configure-stageb2g0-mpfr
17120maybe-configure-stageb2g0-mpfr:
17121@if mpfr-bootstrap
17122maybe-configure-stageb2g0-mpfr: configure-stageb2g0-mpfr
17123configure-stageb2g0-mpfr:
17124 @[ $(current_stage) = stageb2g0 ] || $(MAKE) stageb2g0-start
17125 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
17126 @r=`${PWD_COMMAND}`; export r; \
17127 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17128 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
17129 $(HOST_EXPORTS) \
17130 $(POSTSTAGE1_HOST_EXPORTS) \
17131 CFLAGS="$(STAGE2_CFLAGS) -g0"; export CFLAGS; \
17132 CXXFLAGS="$(STAGE2_CFLAGS) -g0"; export CXXFLAGS; \
17133 echo Configuring stage b2g0 in $(HOST_SUBDIR)/mpfr ; \
17134 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr ; \
17135 cd $(HOST_SUBDIR)/mpfr || exit 1; \
17136 case $(srcdir) in \
17137 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
17138 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
17139 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17140 esac; \
17141 srcdiroption="--srcdir=$${topdir}/mpfr"; \
17142 libsrcdir="$$s/mpfr"; \
17143 $(SHELL) $${libsrcdir}/configure \
17144 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
17145 --target=none-${host_vendor}-${host_os} $${srcdiroption} \
17146 --with-build-libsubdir=$(HOST_SUBDIR) \
17147 @stage2_werror_flag@ --disable-shared --with-gmp-build=$$r/$(HOST_SUBDIR)/gmp
17148@endif mpfr-bootstrap
17149
17150.PHONY: configure-stage3-mpfr maybe-configure-stage3-mpfr
17151maybe-configure-stage3-mpfr:
17152@if mpfr-bootstrap
17153maybe-configure-stage3-mpfr: configure-stage3-mpfr
17154configure-stage3-mpfr:
17155 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
17156 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
17157 @r=`${PWD_COMMAND}`; export r; \
17158 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17159 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
17160 $(HOST_EXPORTS) \
17161 $(POSTSTAGE1_HOST_EXPORTS) \
17162 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
17163 CXXFLAGS="$(STAGE3_CFLAGS)"; export CXXFLAGS; \
17164 echo Configuring stage 3 in $(HOST_SUBDIR)/mpfr ; \
17165 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr ; \
17166 cd $(HOST_SUBDIR)/mpfr || exit 1; \
17167 case $(srcdir) in \
17168 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
17169 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
17170 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17171 esac; \
17172 srcdiroption="--srcdir=$${topdir}/mpfr"; \
17173 libsrcdir="$$s/mpfr"; \
17174 $(SHELL) $${libsrcdir}/configure \
17175 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
17176 --target=none-${host_vendor}-${host_os} $${srcdiroption} \
17177 --with-build-libsubdir=$(HOST_SUBDIR) \
17178 @stage2_werror_flag@ --disable-shared --with-gmp-build=$$r/$(HOST_SUBDIR)/gmp
17179@endif mpfr-bootstrap
17180
17181.PHONY: configure-stageb3g2-mpfr maybe-configure-stageb3g2-mpfr
17182maybe-configure-stageb3g2-mpfr:
17183@if mpfr-bootstrap
17184maybe-configure-stageb3g2-mpfr: configure-stageb3g2-mpfr
17185configure-stageb3g2-mpfr:
17186 @[ $(current_stage) = stageb3g2 ] || $(MAKE) stageb3g2-start
17187 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
17188 @r=`${PWD_COMMAND}`; export r; \
17189 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17190 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
17191 $(HOST_EXPORTS) \
17192 $(POSTSTAGE1_HOST_EXPORTS) \
17193 CFLAGS="$(STAGE3_CFLAGS) -g2"; export CFLAGS; \
17194 CXXFLAGS="$(STAGE3_CFLAGS) -g2"; export CXXFLAGS; \
17195 echo Configuring stage b3g2 in $(HOST_SUBDIR)/mpfr ; \
17196 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr ; \
17197 cd $(HOST_SUBDIR)/mpfr || exit 1; \
17198 case $(srcdir) in \
17199 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
17200 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
17201 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17202 esac; \
17203 srcdiroption="--srcdir=$${topdir}/mpfr"; \
17204 libsrcdir="$$s/mpfr"; \
17205 $(SHELL) $${libsrcdir}/configure \
17206 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
17207 --target=none-${host_vendor}-${host_os} $${srcdiroption} \
17208 --with-build-libsubdir=$(HOST_SUBDIR) \
17209 @stage2_werror_flag@ --disable-shared --with-gmp-build=$$r/$(HOST_SUBDIR)/gmp
17210@endif mpfr-bootstrap
17211
17212.PHONY: configure-stage4-mpfr maybe-configure-stage4-mpfr
17213maybe-configure-stage4-mpfr:
17214@if mpfr-bootstrap
17215maybe-configure-stage4-mpfr: configure-stage4-mpfr
17216configure-stage4-mpfr:
17217 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
17218 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
17219 @r=`${PWD_COMMAND}`; export r; \
17220 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17221 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
17222 $(HOST_EXPORTS) \
17223 $(POSTSTAGE1_HOST_EXPORTS) \
17224 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
17225 CXXFLAGS="$(STAGE4_CFLAGS)"; export CXXFLAGS; \
17226 echo Configuring stage 4 in $(HOST_SUBDIR)/mpfr ; \
17227 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr ; \
17228 cd $(HOST_SUBDIR)/mpfr || exit 1; \
17229 case $(srcdir) in \
17230 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
17231 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
17232 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17233 esac; \
17234 srcdiroption="--srcdir=$${topdir}/mpfr"; \
17235 libsrcdir="$$s/mpfr"; \
17236 $(SHELL) $${libsrcdir}/configure \
17237 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
17238 --target=none-${host_vendor}-${host_os} $${srcdiroption} \
17239 --with-build-libsubdir=$(HOST_SUBDIR) \
17240 @stage2_werror_flag@ --disable-shared --with-gmp-build=$$r/$(HOST_SUBDIR)/gmp
17241@endif mpfr-bootstrap
17242
17243.PHONY: configure-stageprofile-mpfr maybe-configure-stageprofile-mpfr
17244maybe-configure-stageprofile-mpfr:
17245@if mpfr-bootstrap
17246maybe-configure-stageprofile-mpfr: configure-stageprofile-mpfr
17247configure-stageprofile-mpfr:
17248 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
17249 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
17250 @r=`${PWD_COMMAND}`; export r; \
17251 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17252 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
17253 $(HOST_EXPORTS) \
17254 $(POSTSTAGE1_HOST_EXPORTS) \
17255 CFLAGS="$(STAGE2_CFLAGS) -fprofile-generate"; export CFLAGS; \
17256 CXXFLAGS="$(STAGE2_CFLAGS) -fprofile-generate"; export CXXFLAGS; \
17257 echo Configuring stage profile in $(HOST_SUBDIR)/mpfr ; \
17258 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr ; \
17259 cd $(HOST_SUBDIR)/mpfr || exit 1; \
17260 case $(srcdir) in \
17261 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
17262 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
17263 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17264 esac; \
17265 srcdiroption="--srcdir=$${topdir}/mpfr"; \
17266 libsrcdir="$$s/mpfr"; \
17267 $(SHELL) $${libsrcdir}/configure \
17268 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
17269 --target=none-${host_vendor}-${host_os} $${srcdiroption} \
17270 --with-build-libsubdir=$(HOST_SUBDIR) \
17271 @stage2_werror_flag@ --disable-shared --with-gmp-build=$$r/$(HOST_SUBDIR)/gmp
17272@endif mpfr-bootstrap
17273
17274.PHONY: configure-stagefeedback-mpfr maybe-configure-stagefeedback-mpfr
17275maybe-configure-stagefeedback-mpfr:
17276@if mpfr-bootstrap
17277maybe-configure-stagefeedback-mpfr: configure-stagefeedback-mpfr
17278configure-stagefeedback-mpfr:
17279 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
17280 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
17281 @r=`${PWD_COMMAND}`; export r; \
17282 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17283 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
17284 $(HOST_EXPORTS) \
17285 $(POSTSTAGE1_HOST_EXPORTS) \
17286 CFLAGS="$(STAGE3_CFLAGS) -fprofile-use"; export CFLAGS; \
17287 CXXFLAGS="$(STAGE3_CFLAGS) -fprofile-use"; export CXXFLAGS; \
17288 echo Configuring stage feedback in $(HOST_SUBDIR)/mpfr ; \
17289 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr ; \
17290 cd $(HOST_SUBDIR)/mpfr || exit 1; \
17291 case $(srcdir) in \
17292 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
17293 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
17294 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17295 esac; \
17296 srcdiroption="--srcdir=$${topdir}/mpfr"; \
17297 libsrcdir="$$s/mpfr"; \
17298 $(SHELL) $${libsrcdir}/configure \
17299 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
17300 --target=none-${host_vendor}-${host_os} $${srcdiroption} \
17301 --with-build-libsubdir=$(HOST_SUBDIR) \
17302 @stage2_werror_flag@ --disable-shared --with-gmp-build=$$r/$(HOST_SUBDIR)/gmp
17303@endif mpfr-bootstrap
17304
17305
17306
17307
17308
17309.PHONY: all-mpfr maybe-all-mpfr
17310maybe-all-mpfr:
17311@if gcc-bootstrap
17312all-mpfr: stage_current
17313@endif gcc-bootstrap
17314@if mpfr
17315TARGET-mpfr=all
17316maybe-all-mpfr: all-mpfr
17317all-mpfr: configure-mpfr
17318 @r=`${PWD_COMMAND}`; export r; \
17319 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17320 $(HOST_EXPORTS) \
17321 (cd $(HOST_SUBDIR)/mpfr && \
17322 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
17323 $(TARGET-mpfr))
17324@endif mpfr
17325
17326
17327
17328.PHONY: all-stage1-mpfr maybe-all-stage1-mpfr
17329.PHONY: clean-stage1-mpfr maybe-clean-stage1-mpfr
17330maybe-all-stage1-mpfr:
17331maybe-clean-stage1-mpfr:
17332@if mpfr-bootstrap
17333maybe-all-stage1-mpfr: all-stage1-mpfr
17334all-stage1: all-stage1-mpfr
17335TARGET-stage1-mpfr = $(TARGET-mpfr)
17336all-stage1-mpfr: configure-stage1-mpfr
17337 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
17338 @r=`${PWD_COMMAND}`; export r; \
17339 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17340 $(HOST_EXPORTS) \
17341 cd $(HOST_SUBDIR)/mpfr && \
17342 $(MAKE) $(BASE_FLAGS_TO_PASS) \
17343 CFLAGS="$(STAGE1_CFLAGS)" CXXFLAGS="$(STAGE1_CFLAGS)" \
17344 LIBCFLAGS="$(STAGE1_LIBCFLAGS)" \
17345 CFLAGS_FOR_TARGET="$(STAGE1_LIBCFLAGS)" \
17346 CXXFLAGS_FOR_TARGET="$(STAGE1_LIBCFLAGS)" $(EXTRA_HOST_FLAGS) \
17347 $(TARGET-stage1-mpfr)
17348
17349maybe-clean-stage1-mpfr: clean-stage1-mpfr
17350clean-stage1: clean-stage1-mpfr
17351clean-stage1-mpfr:
17352 @if [ $(current_stage) = stage1 ]; then \
17353 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
17354 else \
17355 [ -f $(HOST_SUBDIR)/stage1-mpfr/Makefile ] || exit 0; \
17356 $(MAKE) stage1-start; \
17357 fi; \
17358 cd $(HOST_SUBDIR)/mpfr && \
17359 $(MAKE) $(EXTRA_HOST_FLAGS) \
17360 clean
17361@endif mpfr-bootstrap
17362
17363
17364.PHONY: all-stage2-mpfr maybe-all-stage2-mpfr
17365.PHONY: clean-stage2-mpfr maybe-clean-stage2-mpfr
17366maybe-all-stage2-mpfr:
17367maybe-clean-stage2-mpfr:
17368@if mpfr-bootstrap
17369maybe-all-stage2-mpfr: all-stage2-mpfr
17370all-stage2: all-stage2-mpfr
17371TARGET-stage2-mpfr = $(TARGET-mpfr)
17372all-stage2-mpfr: configure-stage2-mpfr
17373 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
17374 @r=`${PWD_COMMAND}`; export r; \
17375 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17376 $(HOST_EXPORTS) \
17377 $(POSTSTAGE1_HOST_EXPORTS) \
17378 cd $(HOST_SUBDIR)/mpfr && \
17379 $(MAKE) $(BASE_FLAGS_TO_PASS) \
17380 CFLAGS="$(STAGE2_CFLAGS)" CXXFLAGS="$(STAGE2_CFLAGS)" \
17381 LIBCFLAGS="$(STAGE2_LIBCFLAGS)" \
17382 CFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)" \
17383 CXXFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
17384 $(TARGET-stage2-mpfr)
17385
17386maybe-clean-stage2-mpfr: clean-stage2-mpfr
17387clean-stage2: clean-stage2-mpfr
17388clean-stage2-mpfr:
17389 @if [ $(current_stage) = stage2 ]; then \
17390 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
17391 else \
17392 [ -f $(HOST_SUBDIR)/stage2-mpfr/Makefile ] || exit 0; \
17393 $(MAKE) stage2-start; \
17394 fi; \
17395 cd $(HOST_SUBDIR)/mpfr && \
17396 $(MAKE) $(EXTRA_HOST_FLAGS) \
17397 $(POSTSTAGE1_FLAGS_TO_PASS) \
17398 clean
17399@endif mpfr-bootstrap
17400
17401
17402.PHONY: all-stageb2g0-mpfr maybe-all-stageb2g0-mpfr
17403.PHONY: clean-stageb2g0-mpfr maybe-clean-stageb2g0-mpfr
17404maybe-all-stageb2g0-mpfr:
17405maybe-clean-stageb2g0-mpfr:
17406@if mpfr-bootstrap
17407maybe-all-stageb2g0-mpfr: all-stageb2g0-mpfr
17408all-stageb2g0: all-stageb2g0-mpfr
17409TARGET-stageb2g0-mpfr = $(TARGET-mpfr)
17410all-stageb2g0-mpfr: configure-stageb2g0-mpfr
17411 @[ $(current_stage) = stageb2g0 ] || $(MAKE) stageb2g0-start
17412 @r=`${PWD_COMMAND}`; export r; \
17413 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17414 $(HOST_EXPORTS) \
17415 $(POSTSTAGE1_HOST_EXPORTS) \
17416 cd $(HOST_SUBDIR)/mpfr && \
17417 $(MAKE) $(BASE_FLAGS_TO_PASS) \
17418 CFLAGS="$(STAGE2_CFLAGS) -g0" CXXFLAGS="$(STAGE2_CFLAGS) -g0" \
17419 LIBCFLAGS="$(STAGE2_LIBCFLAGS) -g0" \
17420 CFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS) -g0" \
17421 CXXFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS) -g0" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
17422 $(TARGET-stageb2g0-mpfr)
17423
17424maybe-clean-stageb2g0-mpfr: clean-stageb2g0-mpfr
17425clean-stageb2g0: clean-stageb2g0-mpfr
17426clean-stageb2g0-mpfr:
17427 @if [ $(current_stage) = stageb2g0 ]; then \
17428 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
17429 else \
17430 [ -f $(HOST_SUBDIR)/stageb2g0-mpfr/Makefile ] || exit 0; \
17431 $(MAKE) stageb2g0-start; \
17432 fi; \
17433 cd $(HOST_SUBDIR)/mpfr && \
17434 $(MAKE) $(EXTRA_HOST_FLAGS) \
17435 $(POSTSTAGE1_FLAGS_TO_PASS) \
17436 clean
17437@endif mpfr-bootstrap
17438
17439
17440.PHONY: all-stage3-mpfr maybe-all-stage3-mpfr
17441.PHONY: clean-stage3-mpfr maybe-clean-stage3-mpfr
17442maybe-all-stage3-mpfr:
17443maybe-clean-stage3-mpfr:
17444@if mpfr-bootstrap
17445maybe-all-stage3-mpfr: all-stage3-mpfr
17446all-stage3: all-stage3-mpfr
17447TARGET-stage3-mpfr = $(TARGET-mpfr)
17448all-stage3-mpfr: configure-stage3-mpfr
17449 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
17450 @r=`${PWD_COMMAND}`; export r; \
17451 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17452 $(HOST_EXPORTS) \
17453 $(POSTSTAGE1_HOST_EXPORTS) \
17454 cd $(HOST_SUBDIR)/mpfr && \
17455 $(MAKE) $(BASE_FLAGS_TO_PASS) \
17456 CFLAGS="$(STAGE3_CFLAGS)" CXXFLAGS="$(STAGE3_CFLAGS)" \
17457 LIBCFLAGS="$(STAGE3_LIBCFLAGS)" \
17458 CFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS)" \
17459 CXXFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS)" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
17460 $(TARGET-stage3-mpfr)
17461
17462maybe-clean-stage3-mpfr: clean-stage3-mpfr
17463clean-stage3: clean-stage3-mpfr
17464clean-stage3-mpfr:
17465 @if [ $(current_stage) = stage3 ]; then \
17466 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
17467 else \
17468 [ -f $(HOST_SUBDIR)/stage3-mpfr/Makefile ] || exit 0; \
17469 $(MAKE) stage3-start; \
17470 fi; \
17471 cd $(HOST_SUBDIR)/mpfr && \
17472 $(MAKE) $(EXTRA_HOST_FLAGS) \
17473 $(POSTSTAGE1_FLAGS_TO_PASS) \
17474 clean
17475@endif mpfr-bootstrap
17476
17477
17478.PHONY: all-stageb3g2-mpfr maybe-all-stageb3g2-mpfr
17479.PHONY: clean-stageb3g2-mpfr maybe-clean-stageb3g2-mpfr
17480maybe-all-stageb3g2-mpfr:
17481maybe-clean-stageb3g2-mpfr:
17482@if mpfr-bootstrap
17483maybe-all-stageb3g2-mpfr: all-stageb3g2-mpfr
17484all-stageb3g2: all-stageb3g2-mpfr
17485TARGET-stageb3g2-mpfr = $(TARGET-mpfr)
17486all-stageb3g2-mpfr: configure-stageb3g2-mpfr
17487 @[ $(current_stage) = stageb3g2 ] || $(MAKE) stageb3g2-start
17488 @r=`${PWD_COMMAND}`; export r; \
17489 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17490 $(HOST_EXPORTS) \
17491 $(POSTSTAGE1_HOST_EXPORTS) \
17492 cd $(HOST_SUBDIR)/mpfr && \
17493 $(MAKE) $(BASE_FLAGS_TO_PASS) \
17494 CFLAGS="$(STAGE3_CFLAGS) -g2" CXXFLAGS="$(STAGE3_CFLAGS) -g2" \
17495 LIBCFLAGS="$(STAGE3_LIBCFLAGS) -g2" \
17496 CFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS) -g2" \
17497 CXXFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS) -g2" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
17498 $(TARGET-stageb3g2-mpfr)
17499
17500maybe-clean-stageb3g2-mpfr: clean-stageb3g2-mpfr
17501clean-stageb3g2: clean-stageb3g2-mpfr
17502clean-stageb3g2-mpfr:
17503 @if [ $(current_stage) = stageb3g2 ]; then \
17504 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
17505 else \
17506 [ -f $(HOST_SUBDIR)/stageb3g2-mpfr/Makefile ] || exit 0; \
17507 $(MAKE) stageb3g2-start; \
17508 fi; \
17509 cd $(HOST_SUBDIR)/mpfr && \
17510 $(MAKE) $(EXTRA_HOST_FLAGS) \
17511 $(POSTSTAGE1_FLAGS_TO_PASS) \
17512 clean
17513@endif mpfr-bootstrap
17514
17515
17516.PHONY: all-stage4-mpfr maybe-all-stage4-mpfr
17517.PHONY: clean-stage4-mpfr maybe-clean-stage4-mpfr
17518maybe-all-stage4-mpfr:
17519maybe-clean-stage4-mpfr:
17520@if mpfr-bootstrap
17521maybe-all-stage4-mpfr: all-stage4-mpfr
17522all-stage4: all-stage4-mpfr
17523TARGET-stage4-mpfr = $(TARGET-mpfr)
17524all-stage4-mpfr: configure-stage4-mpfr
17525 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
17526 @r=`${PWD_COMMAND}`; export r; \
17527 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17528 $(HOST_EXPORTS) \
17529 $(POSTSTAGE1_HOST_EXPORTS) \
17530 cd $(HOST_SUBDIR)/mpfr && \
17531 $(MAKE) $(BASE_FLAGS_TO_PASS) \
17532 CFLAGS="$(STAGE4_CFLAGS)" CXXFLAGS="$(STAGE4_CFLAGS)" \
17533 LIBCFLAGS="$(STAGE4_CFLAGS)" \
17534 CFLAGS_FOR_TARGET="$(STAGE4_CFLAGS)" \
17535 CXXFLAGS_FOR_TARGET="$(STAGE4_CFLAGS)" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
17536 $(TARGET-stage4-mpfr)
17537
17538maybe-clean-stage4-mpfr: clean-stage4-mpfr
17539clean-stage4: clean-stage4-mpfr
17540clean-stage4-mpfr:
17541 @if [ $(current_stage) = stage4 ]; then \
17542 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
17543 else \
17544 [ -f $(HOST_SUBDIR)/stage4-mpfr/Makefile ] || exit 0; \
17545 $(MAKE) stage4-start; \
17546 fi; \
17547 cd $(HOST_SUBDIR)/mpfr && \
17548 $(MAKE) $(EXTRA_HOST_FLAGS) \
17549 $(POSTSTAGE1_FLAGS_TO_PASS) \
17550 clean
17551@endif mpfr-bootstrap
17552
17553
17554.PHONY: all-stageprofile-mpfr maybe-all-stageprofile-mpfr
17555.PHONY: clean-stageprofile-mpfr maybe-clean-stageprofile-mpfr
17556maybe-all-stageprofile-mpfr:
17557maybe-clean-stageprofile-mpfr:
17558@if mpfr-bootstrap
17559maybe-all-stageprofile-mpfr: all-stageprofile-mpfr
17560all-stageprofile: all-stageprofile-mpfr
17561TARGET-stageprofile-mpfr = $(TARGET-mpfr)
17562all-stageprofile-mpfr: configure-stageprofile-mpfr
17563 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
17564 @r=`${PWD_COMMAND}`; export r; \
17565 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17566 $(HOST_EXPORTS) \
17567 $(POSTSTAGE1_HOST_EXPORTS) \
17568 cd $(HOST_SUBDIR)/mpfr && \
17569 $(MAKE) $(BASE_FLAGS_TO_PASS) \
17570 CFLAGS="$(STAGE2_CFLAGS) -fprofile-generate" CXXFLAGS="$(STAGE2_CFLAGS) -fprofile-generate" \
17571 LIBCFLAGS="$(STAGE2_LIBCFLAGS)" \
17572 CFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)" \
17573 CXXFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
17574 $(TARGET-stageprofile-mpfr)
17575
17576maybe-clean-stageprofile-mpfr: clean-stageprofile-mpfr
17577clean-stageprofile: clean-stageprofile-mpfr
17578clean-stageprofile-mpfr:
17579 @if [ $(current_stage) = stageprofile ]; then \
17580 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
17581 else \
17582 [ -f $(HOST_SUBDIR)/stageprofile-mpfr/Makefile ] || exit 0; \
17583 $(MAKE) stageprofile-start; \
17584 fi; \
17585 cd $(HOST_SUBDIR)/mpfr && \
17586 $(MAKE) $(EXTRA_HOST_FLAGS) \
17587 $(POSTSTAGE1_FLAGS_TO_PASS) \
17588 clean
17589@endif mpfr-bootstrap
17590
17591
17592.PHONY: all-stagefeedback-mpfr maybe-all-stagefeedback-mpfr
17593.PHONY: clean-stagefeedback-mpfr maybe-clean-stagefeedback-mpfr
17594maybe-all-stagefeedback-mpfr:
17595maybe-clean-stagefeedback-mpfr:
17596@if mpfr-bootstrap
17597maybe-all-stagefeedback-mpfr: all-stagefeedback-mpfr
17598all-stagefeedback: all-stagefeedback-mpfr
17599TARGET-stagefeedback-mpfr = $(TARGET-mpfr)
17600all-stagefeedback-mpfr: configure-stagefeedback-mpfr
17601 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
17602 @r=`${PWD_COMMAND}`; export r; \
17603 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17604 $(HOST_EXPORTS) \
17605 $(POSTSTAGE1_HOST_EXPORTS) \
17606 cd $(HOST_SUBDIR)/mpfr && \
17607 $(MAKE) $(BASE_FLAGS_TO_PASS) \
17608 CFLAGS="$(STAGE3_CFLAGS) -fprofile-use" CXXFLAGS="$(STAGE3_CFLAGS) -fprofile-use" \
17609 LIBCFLAGS="$(STAGE3_LIBCFLAGS) -fprofile-use" \
17610 CFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS) -fprofile-use" \
17611 CXXFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS) -fprofile-use" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
17612 $(TARGET-stagefeedback-mpfr)
17613
17614maybe-clean-stagefeedback-mpfr: clean-stagefeedback-mpfr
17615clean-stagefeedback: clean-stagefeedback-mpfr
17616clean-stagefeedback-mpfr:
17617 @if [ $(current_stage) = stagefeedback ]; then \
17618 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
17619 else \
17620 [ -f $(HOST_SUBDIR)/stagefeedback-mpfr/Makefile ] || exit 0; \
17621 $(MAKE) stagefeedback-start; \
17622 fi; \
17623 cd $(HOST_SUBDIR)/mpfr && \
17624 $(MAKE) $(EXTRA_HOST_FLAGS) \
17625 $(POSTSTAGE1_FLAGS_TO_PASS) \
17626 clean
17627@endif mpfr-bootstrap
17628
17629
17630
17631
17632
17633.PHONY: check-mpfr maybe-check-mpfr
17634maybe-check-mpfr:
17635@if mpfr
17636maybe-check-mpfr: check-mpfr
17637
17638check-mpfr:
17639 @: $(MAKE); $(unstage)
17640 @r=`${PWD_COMMAND}`; export r; \
17641 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17642 $(HOST_EXPORTS) \
17643 (cd $(HOST_SUBDIR)/mpfr && \
17644 $(MAKE) $(FLAGS_TO_PASS) check)
17645
17646@endif mpfr
17647
17648.PHONY: install-mpfr maybe-install-mpfr
17649maybe-install-mpfr:
17650@if mpfr
17651maybe-install-mpfr: install-mpfr
17652
17653install-mpfr:
17654
17655@endif mpfr
17656
17657# Other targets (info, dvi, pdf, etc.)
17658
17659.PHONY: maybe-info-mpfr info-mpfr
17660maybe-info-mpfr:
17661@if mpfr
17662maybe-info-mpfr: info-mpfr
17663
17664info-mpfr: \
17665 configure-mpfr
17666 @[ -f ./mpfr/Makefile ] || exit 0; \
17667 r=`${PWD_COMMAND}`; export r; \
17668 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17669 $(HOST_EXPORTS) \
17670 for flag in $(EXTRA_HOST_FLAGS) ; do \
17671 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17672 done; \
17673 echo "Doing info in mpfr" ; \
17674 (cd $(HOST_SUBDIR)/mpfr && \
17675 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17676 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17677 "RANLIB=$${RANLIB}" \
17678 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17679 info) \
17680 || exit 1
17681
17682@endif mpfr
17683
17684.PHONY: maybe-dvi-mpfr dvi-mpfr
17685maybe-dvi-mpfr:
17686@if mpfr
17687maybe-dvi-mpfr: dvi-mpfr
17688
17689dvi-mpfr: \
17690 configure-mpfr
17691 @[ -f ./mpfr/Makefile ] || exit 0; \
17692 r=`${PWD_COMMAND}`; export r; \
17693 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17694 $(HOST_EXPORTS) \
17695 for flag in $(EXTRA_HOST_FLAGS) ; do \
17696 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17697 done; \
17698 echo "Doing dvi in mpfr" ; \
17699 (cd $(HOST_SUBDIR)/mpfr && \
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 dvi) \
17705 || exit 1
17706
17707@endif mpfr
17708
17709.PHONY: maybe-pdf-mpfr pdf-mpfr
17710maybe-pdf-mpfr:
17711@if mpfr
17712maybe-pdf-mpfr: pdf-mpfr
17713
17714pdf-mpfr: \
17715 configure-mpfr
17716 @[ -f ./mpfr/Makefile ] || exit 0; \
17717 r=`${PWD_COMMAND}`; export r; \
17718 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17719 $(HOST_EXPORTS) \
17720 for flag in $(EXTRA_HOST_FLAGS) ; do \
17721 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17722 done; \
17723 echo "Doing pdf in mpfr" ; \
17724 (cd $(HOST_SUBDIR)/mpfr && \
17725 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17726 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17727 "RANLIB=$${RANLIB}" \
17728 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17729 pdf) \
17730 || exit 1
17731
17732@endif mpfr
17733
17734.PHONY: maybe-html-mpfr html-mpfr
17735maybe-html-mpfr:
17736@if mpfr
17737maybe-html-mpfr: html-mpfr
17738
17739html-mpfr: \
17740 configure-mpfr
17741 @[ -f ./mpfr/Makefile ] || exit 0; \
17742 r=`${PWD_COMMAND}`; export r; \
17743 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17744 $(HOST_EXPORTS) \
17745 for flag in $(EXTRA_HOST_FLAGS) ; do \
17746 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17747 done; \
17748 echo "Doing html in mpfr" ; \
17749 (cd $(HOST_SUBDIR)/mpfr && \
17750 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17751 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17752 "RANLIB=$${RANLIB}" \
17753 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17754 html) \
17755 || exit 1
17756
17757@endif mpfr
17758
17759.PHONY: maybe-TAGS-mpfr TAGS-mpfr
17760maybe-TAGS-mpfr:
17761@if mpfr
17762maybe-TAGS-mpfr: TAGS-mpfr
17763
17764TAGS-mpfr: \
17765 configure-mpfr
17766 @[ -f ./mpfr/Makefile ] || exit 0; \
17767 r=`${PWD_COMMAND}`; export r; \
17768 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17769 $(HOST_EXPORTS) \
17770 for flag in $(EXTRA_HOST_FLAGS) ; do \
17771 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17772 done; \
17773 echo "Doing TAGS in mpfr" ; \
17774 (cd $(HOST_SUBDIR)/mpfr && \
17775 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17776 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17777 "RANLIB=$${RANLIB}" \
17778 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17779 TAGS) \
17780 || exit 1
17781
17782@endif mpfr
17783
17784.PHONY: maybe-install-info-mpfr install-info-mpfr
17785maybe-install-info-mpfr:
17786@if mpfr
17787maybe-install-info-mpfr: install-info-mpfr
17788
17789install-info-mpfr: \
17790 configure-mpfr \
17791 info-mpfr
17792 @[ -f ./mpfr/Makefile ] || exit 0; \
17793 r=`${PWD_COMMAND}`; export r; \
17794 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17795 $(HOST_EXPORTS) \
17796 for flag in $(EXTRA_HOST_FLAGS) ; do \
17797 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17798 done; \
17799 echo "Doing install-info in mpfr" ; \
17800 (cd $(HOST_SUBDIR)/mpfr && \
17801 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17802 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17803 "RANLIB=$${RANLIB}" \
17804 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17805 install-info) \
17806 || exit 1
17807
17808@endif mpfr
17809
17810.PHONY: maybe-install-pdf-mpfr install-pdf-mpfr
17811maybe-install-pdf-mpfr:
17812@if mpfr
17813maybe-install-pdf-mpfr: install-pdf-mpfr
17814
17815install-pdf-mpfr: \
17816 configure-mpfr \
17817 pdf-mpfr
17818 @[ -f ./mpfr/Makefile ] || exit 0; \
17819 r=`${PWD_COMMAND}`; export r; \
17820 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17821 $(HOST_EXPORTS) \
17822 for flag in $(EXTRA_HOST_FLAGS) ; do \
17823 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17824 done; \
17825 echo "Doing install-pdf in mpfr" ; \
17826 (cd $(HOST_SUBDIR)/mpfr && \
17827 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17828 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17829 "RANLIB=$${RANLIB}" \
17830 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17831 install-pdf) \
17832 || exit 1
17833
17834@endif mpfr
17835
17836.PHONY: maybe-install-html-mpfr install-html-mpfr
17837maybe-install-html-mpfr:
17838@if mpfr
17839maybe-install-html-mpfr: install-html-mpfr
17840
17841install-html-mpfr: \
17842 configure-mpfr \
17843 html-mpfr
17844 @[ -f ./mpfr/Makefile ] || exit 0; \
17845 r=`${PWD_COMMAND}`; export r; \
17846 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17847 $(HOST_EXPORTS) \
17848 for flag in $(EXTRA_HOST_FLAGS) ; do \
17849 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17850 done; \
17851 echo "Doing install-html in mpfr" ; \
17852 (cd $(HOST_SUBDIR)/mpfr && \
17853 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17854 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17855 "RANLIB=$${RANLIB}" \
17856 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17857 install-html) \
17858 || exit 1
17859
17860@endif mpfr
17861
17862.PHONY: maybe-installcheck-mpfr installcheck-mpfr
17863maybe-installcheck-mpfr:
17864@if mpfr
17865maybe-installcheck-mpfr: installcheck-mpfr
17866
17867installcheck-mpfr: \
17868 configure-mpfr
17869 @[ -f ./mpfr/Makefile ] || exit 0; \
17870 r=`${PWD_COMMAND}`; export r; \
17871 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17872 $(HOST_EXPORTS) \
17873 for flag in $(EXTRA_HOST_FLAGS) ; do \
17874 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17875 done; \
17876 echo "Doing installcheck in mpfr" ; \
17877 (cd $(HOST_SUBDIR)/mpfr && \
17878 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17879 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17880 "RANLIB=$${RANLIB}" \
17881 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17882 installcheck) \
17883 || exit 1
17884
17885@endif mpfr
17886
17887.PHONY: maybe-mostlyclean-mpfr mostlyclean-mpfr
17888maybe-mostlyclean-mpfr:
17889@if mpfr
17890maybe-mostlyclean-mpfr: mostlyclean-mpfr
17891
17892mostlyclean-mpfr:
17893 @[ -f ./mpfr/Makefile ] || exit 0; \
17894 r=`${PWD_COMMAND}`; export r; \
17895 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17896 $(HOST_EXPORTS) \
17897 for flag in $(EXTRA_HOST_FLAGS) ; do \
17898 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17899 done; \
17900 echo "Doing mostlyclean in mpfr" ; \
17901 (cd $(HOST_SUBDIR)/mpfr && \
17902 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17903 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17904 "RANLIB=$${RANLIB}" \
17905 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17906 mostlyclean) \
17907 || exit 1
17908
17909@endif mpfr
17910
17911.PHONY: maybe-clean-mpfr clean-mpfr
17912maybe-clean-mpfr:
17913@if mpfr
17914maybe-clean-mpfr: clean-mpfr
17915
17916clean-mpfr:
17917 @[ -f ./mpfr/Makefile ] || exit 0; \
17918 r=`${PWD_COMMAND}`; export r; \
17919 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17920 $(HOST_EXPORTS) \
17921 for flag in $(EXTRA_HOST_FLAGS) ; do \
17922 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17923 done; \
17924 echo "Doing clean in mpfr" ; \
17925 (cd $(HOST_SUBDIR)/mpfr && \
17926 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17927 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17928 "RANLIB=$${RANLIB}" \
17929 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17930 clean) \
17931 || exit 1
17932
17933@endif mpfr
17934
17935.PHONY: maybe-distclean-mpfr distclean-mpfr
17936maybe-distclean-mpfr:
17937@if mpfr
17938maybe-distclean-mpfr: distclean-mpfr
17939
17940distclean-mpfr:
17941 @[ -f ./mpfr/Makefile ] || exit 0; \
17942 r=`${PWD_COMMAND}`; export r; \
17943 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17944 $(HOST_EXPORTS) \
17945 for flag in $(EXTRA_HOST_FLAGS) ; do \
17946 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17947 done; \
17948 echo "Doing distclean in mpfr" ; \
17949 (cd $(HOST_SUBDIR)/mpfr && \
17950 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17951 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17952 "RANLIB=$${RANLIB}" \
17953 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17954 distclean) \
17955 || exit 1
17956
17957@endif mpfr
17958
17959.PHONY: maybe-maintainer-clean-mpfr maintainer-clean-mpfr
17960maybe-maintainer-clean-mpfr:
17961@if mpfr
17962maybe-maintainer-clean-mpfr: maintainer-clean-mpfr
17963
17964maintainer-clean-mpfr:
17965 @[ -f ./mpfr/Makefile ] || exit 0; \
17966 r=`${PWD_COMMAND}`; export r; \
17967 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17968 $(HOST_EXPORTS) \
17969 for flag in $(EXTRA_HOST_FLAGS) ; do \
17970 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17971 done; \
17972 echo "Doing maintainer-clean in mpfr" ; \
17973 (cd $(HOST_SUBDIR)/mpfr && \
17974 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17975 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17976 "RANLIB=$${RANLIB}" \
17977 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17978 maintainer-clean) \
17979 || exit 1
17980
17981@endif mpfr
17982
17983
17984
17985.PHONY: configure-ppl maybe-configure-ppl
17986maybe-configure-ppl:
17987@if gcc-bootstrap
17988configure-ppl: stage_current
17989@endif gcc-bootstrap
17990@if ppl
17991maybe-configure-ppl: configure-ppl
17992configure-ppl:
17993 @r=`${PWD_COMMAND}`; export r; \
17994 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17995 test ! -f $(HOST_SUBDIR)/ppl/Makefile || exit 0; \
17996 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ppl ; \
17997 $(HOST_EXPORTS) \
17998 echo Configuring in $(HOST_SUBDIR)/ppl; \
17999 cd "$(HOST_SUBDIR)/ppl" || exit 1; \
18000 case $(srcdir) in \
18001 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
18002 *) topdir=`echo $(HOST_SUBDIR)/ppl/ | \
18003 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18004 esac; \
18005 srcdiroption="--srcdir=$${topdir}/ppl"; \
18006 libsrcdir="$$s/ppl"; \
18007 $(SHELL) $${libsrcdir}/configure \
18008 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
18009 --target=none-${host_vendor}-${host_os} $${srcdiroption} --disable-shared --with-libgmp-prefix=$$r/$(HOST_SUBDIR)/gmp/ --with-libgmpxx-prefix=$$r/$(HOST_SUBDIR)/gmp/ \
18010 || exit 1
18011@endif ppl
18012
18013
18014
18015.PHONY: configure-stage1-ppl maybe-configure-stage1-ppl
18016maybe-configure-stage1-ppl:
18017@if ppl-bootstrap
18018maybe-configure-stage1-ppl: configure-stage1-ppl
18019configure-stage1-ppl:
18020 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
18021 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ppl
18022 @r=`${PWD_COMMAND}`; export r; \
18023 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18024 test ! -f $(HOST_SUBDIR)/ppl/Makefile || exit 0; \
18025 $(HOST_EXPORTS) \
18026 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
18027 CXXFLAGS="$(STAGE1_CFLAGS)"; export CXXFLAGS; \
18028 echo Configuring stage 1 in $(HOST_SUBDIR)/ppl ; \
18029 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ppl ; \
18030 cd $(HOST_SUBDIR)/ppl || exit 1; \
18031 case $(srcdir) in \
18032 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
18033 *) topdir=`echo $(HOST_SUBDIR)/ppl/ | \
18034 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18035 esac; \
18036 srcdiroption="--srcdir=$${topdir}/ppl"; \
18037 libsrcdir="$$s/ppl"; \
18038 $(SHELL) $${libsrcdir}/configure \
18039 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
18040 --target=none-${host_vendor}-${host_os} $${srcdiroption} \
18041 \
18042 --disable-intermodule $(STAGE1_CHECKING) --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)" --disable-shared --with-libgmp-prefix=$$r/$(HOST_SUBDIR)/gmp/ --with-libgmpxx-prefix=$$r/$(HOST_SUBDIR)/gmp/
18043@endif ppl-bootstrap
18044
18045.PHONY: configure-stage2-ppl maybe-configure-stage2-ppl
18046maybe-configure-stage2-ppl:
18047@if ppl-bootstrap
18048maybe-configure-stage2-ppl: configure-stage2-ppl
18049configure-stage2-ppl:
18050 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
18051 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ppl
18052 @r=`${PWD_COMMAND}`; export r; \
18053 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18054 test ! -f $(HOST_SUBDIR)/ppl/Makefile || exit 0; \
18055 $(HOST_EXPORTS) \
18056 $(POSTSTAGE1_HOST_EXPORTS) \
18057 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
18058 CXXFLAGS="$(STAGE2_CFLAGS)"; export CXXFLAGS; \
18059 echo Configuring stage 2 in $(HOST_SUBDIR)/ppl ; \
18060 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ppl ; \
18061 cd $(HOST_SUBDIR)/ppl || exit 1; \
18062 case $(srcdir) in \
18063 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
18064 *) topdir=`echo $(HOST_SUBDIR)/ppl/ | \
18065 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18066 esac; \
18067 srcdiroption="--srcdir=$${topdir}/ppl"; \
18068 libsrcdir="$$s/ppl"; \
18069 $(SHELL) $${libsrcdir}/configure \
18070 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
18071 --target=none-${host_vendor}-${host_os} $${srcdiroption} \
18072 --with-build-libsubdir=$(HOST_SUBDIR) \
18073 @stage2_werror_flag@ --disable-shared --with-libgmp-prefix=$$r/$(HOST_SUBDIR)/gmp/ --with-libgmpxx-prefix=$$r/$(HOST_SUBDIR)/gmp/
18074@endif ppl-bootstrap
18075
18076.PHONY: configure-stageb2g0-ppl maybe-configure-stageb2g0-ppl
18077maybe-configure-stageb2g0-ppl:
18078@if ppl-bootstrap
18079maybe-configure-stageb2g0-ppl: configure-stageb2g0-ppl
18080configure-stageb2g0-ppl:
18081 @[ $(current_stage) = stageb2g0 ] || $(MAKE) stageb2g0-start
18082 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ppl
18083 @r=`${PWD_COMMAND}`; export r; \
18084 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18085 test ! -f $(HOST_SUBDIR)/ppl/Makefile || exit 0; \
18086 $(HOST_EXPORTS) \
18087 $(POSTSTAGE1_HOST_EXPORTS) \
18088 CFLAGS="$(STAGE2_CFLAGS) -g0"; export CFLAGS; \
18089 CXXFLAGS="$(STAGE2_CFLAGS) -g0"; export CXXFLAGS; \
18090 echo Configuring stage b2g0 in $(HOST_SUBDIR)/ppl ; \
18091 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ppl ; \
18092 cd $(HOST_SUBDIR)/ppl || exit 1; \
18093 case $(srcdir) in \
18094 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
18095 *) topdir=`echo $(HOST_SUBDIR)/ppl/ | \
18096 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18097 esac; \
18098 srcdiroption="--srcdir=$${topdir}/ppl"; \
18099 libsrcdir="$$s/ppl"; \
18100 $(SHELL) $${libsrcdir}/configure \
18101 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
18102 --target=none-${host_vendor}-${host_os} $${srcdiroption} \
18103 --with-build-libsubdir=$(HOST_SUBDIR) \
18104 @stage2_werror_flag@ --disable-shared --with-libgmp-prefix=$$r/$(HOST_SUBDIR)/gmp/ --with-libgmpxx-prefix=$$r/$(HOST_SUBDIR)/gmp/
18105@endif ppl-bootstrap
18106
18107.PHONY: configure-stage3-ppl maybe-configure-stage3-ppl
18108maybe-configure-stage3-ppl:
18109@if ppl-bootstrap
18110maybe-configure-stage3-ppl: configure-stage3-ppl
18111configure-stage3-ppl:
18112 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
18113 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ppl
18114 @r=`${PWD_COMMAND}`; export r; \
18115 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18116 test ! -f $(HOST_SUBDIR)/ppl/Makefile || exit 0; \
18117 $(HOST_EXPORTS) \
18118 $(POSTSTAGE1_HOST_EXPORTS) \
18119 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
18120 CXXFLAGS="$(STAGE3_CFLAGS)"; export CXXFLAGS; \
18121 echo Configuring stage 3 in $(HOST_SUBDIR)/ppl ; \
18122 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ppl ; \
18123 cd $(HOST_SUBDIR)/ppl || exit 1; \
18124 case $(srcdir) in \
18125 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
18126 *) topdir=`echo $(HOST_SUBDIR)/ppl/ | \
18127 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18128 esac; \
18129 srcdiroption="--srcdir=$${topdir}/ppl"; \
18130 libsrcdir="$$s/ppl"; \
18131 $(SHELL) $${libsrcdir}/configure \
18132 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
18133 --target=none-${host_vendor}-${host_os} $${srcdiroption} \
18134 --with-build-libsubdir=$(HOST_SUBDIR) \
18135 @stage2_werror_flag@ --disable-shared --with-libgmp-prefix=$$r/$(HOST_SUBDIR)/gmp/ --with-libgmpxx-prefix=$$r/$(HOST_SUBDIR)/gmp/
18136@endif ppl-bootstrap
18137
18138.PHONY: configure-stageb3g2-ppl maybe-configure-stageb3g2-ppl
18139maybe-configure-stageb3g2-ppl:
18140@if ppl-bootstrap
18141maybe-configure-stageb3g2-ppl: configure-stageb3g2-ppl
18142configure-stageb3g2-ppl:
18143 @[ $(current_stage) = stageb3g2 ] || $(MAKE) stageb3g2-start
18144 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ppl
18145 @r=`${PWD_COMMAND}`; export r; \
18146 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18147 test ! -f $(HOST_SUBDIR)/ppl/Makefile || exit 0; \
18148 $(HOST_EXPORTS) \
18149 $(POSTSTAGE1_HOST_EXPORTS) \
18150 CFLAGS="$(STAGE3_CFLAGS) -g2"; export CFLAGS; \
18151 CXXFLAGS="$(STAGE3_CFLAGS) -g2"; export CXXFLAGS; \
18152 echo Configuring stage b3g2 in $(HOST_SUBDIR)/ppl ; \
18153 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ppl ; \
18154 cd $(HOST_SUBDIR)/ppl || exit 1; \
18155 case $(srcdir) in \
18156 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
18157 *) topdir=`echo $(HOST_SUBDIR)/ppl/ | \
18158 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18159 esac; \
18160 srcdiroption="--srcdir=$${topdir}/ppl"; \
18161 libsrcdir="$$s/ppl"; \
18162 $(SHELL) $${libsrcdir}/configure \
18163 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
18164 --target=none-${host_vendor}-${host_os} $${srcdiroption} \
18165 --with-build-libsubdir=$(HOST_SUBDIR) \
18166 @stage2_werror_flag@ --disable-shared --with-libgmp-prefix=$$r/$(HOST_SUBDIR)/gmp/ --with-libgmpxx-prefix=$$r/$(HOST_SUBDIR)/gmp/
18167@endif ppl-bootstrap
18168
18169.PHONY: configure-stage4-ppl maybe-configure-stage4-ppl
18170maybe-configure-stage4-ppl:
18171@if ppl-bootstrap
18172maybe-configure-stage4-ppl: configure-stage4-ppl
18173configure-stage4-ppl:
18174 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
18175 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ppl
18176 @r=`${PWD_COMMAND}`; export r; \
18177 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18178 test ! -f $(HOST_SUBDIR)/ppl/Makefile || exit 0; \
18179 $(HOST_EXPORTS) \
18180 $(POSTSTAGE1_HOST_EXPORTS) \
18181 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
18182 CXXFLAGS="$(STAGE4_CFLAGS)"; export CXXFLAGS; \
18183 echo Configuring stage 4 in $(HOST_SUBDIR)/ppl ; \
18184 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ppl ; \
18185 cd $(HOST_SUBDIR)/ppl || exit 1; \
18186 case $(srcdir) in \
18187 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
18188 *) topdir=`echo $(HOST_SUBDIR)/ppl/ | \
18189 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18190 esac; \
18191 srcdiroption="--srcdir=$${topdir}/ppl"; \
18192 libsrcdir="$$s/ppl"; \
18193 $(SHELL) $${libsrcdir}/configure \
18194 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
18195 --target=none-${host_vendor}-${host_os} $${srcdiroption} \
18196 --with-build-libsubdir=$(HOST_SUBDIR) \
18197 @stage2_werror_flag@ --disable-shared --with-libgmp-prefix=$$r/$(HOST_SUBDIR)/gmp/ --with-libgmpxx-prefix=$$r/$(HOST_SUBDIR)/gmp/
18198@endif ppl-bootstrap
18199
18200.PHONY: configure-stageprofile-ppl maybe-configure-stageprofile-ppl
18201maybe-configure-stageprofile-ppl:
18202@if ppl-bootstrap
18203maybe-configure-stageprofile-ppl: configure-stageprofile-ppl
18204configure-stageprofile-ppl:
18205 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
18206 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ppl
18207 @r=`${PWD_COMMAND}`; export r; \
18208 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18209 test ! -f $(HOST_SUBDIR)/ppl/Makefile || exit 0; \
18210 $(HOST_EXPORTS) \
18211 $(POSTSTAGE1_HOST_EXPORTS) \
18212 CFLAGS="$(STAGE2_CFLAGS) -fprofile-generate"; export CFLAGS; \
18213 CXXFLAGS="$(STAGE2_CFLAGS) -fprofile-generate"; export CXXFLAGS; \
18214 echo Configuring stage profile in $(HOST_SUBDIR)/ppl ; \
18215 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ppl ; \
18216 cd $(HOST_SUBDIR)/ppl || exit 1; \
18217 case $(srcdir) in \
18218 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
18219 *) topdir=`echo $(HOST_SUBDIR)/ppl/ | \
18220 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18221 esac; \
18222 srcdiroption="--srcdir=$${topdir}/ppl"; \
18223 libsrcdir="$$s/ppl"; \
18224 $(SHELL) $${libsrcdir}/configure \
18225 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
18226 --target=none-${host_vendor}-${host_os} $${srcdiroption} \
18227 --with-build-libsubdir=$(HOST_SUBDIR) \
18228 @stage2_werror_flag@ --disable-shared --with-libgmp-prefix=$$r/$(HOST_SUBDIR)/gmp/ --with-libgmpxx-prefix=$$r/$(HOST_SUBDIR)/gmp/
18229@endif ppl-bootstrap
18230
18231.PHONY: configure-stagefeedback-ppl maybe-configure-stagefeedback-ppl
18232maybe-configure-stagefeedback-ppl:
18233@if ppl-bootstrap
18234maybe-configure-stagefeedback-ppl: configure-stagefeedback-ppl
18235configure-stagefeedback-ppl:
18236 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
18237 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ppl
18238 @r=`${PWD_COMMAND}`; export r; \
18239 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18240 test ! -f $(HOST_SUBDIR)/ppl/Makefile || exit 0; \
18241 $(HOST_EXPORTS) \
18242 $(POSTSTAGE1_HOST_EXPORTS) \
18243 CFLAGS="$(STAGE3_CFLAGS) -fprofile-use"; export CFLAGS; \
18244 CXXFLAGS="$(STAGE3_CFLAGS) -fprofile-use"; export CXXFLAGS; \
18245 echo Configuring stage feedback in $(HOST_SUBDIR)/ppl ; \
18246 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ppl ; \
18247 cd $(HOST_SUBDIR)/ppl || exit 1; \
18248 case $(srcdir) in \
18249 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
18250 *) topdir=`echo $(HOST_SUBDIR)/ppl/ | \
18251 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18252 esac; \
18253 srcdiroption="--srcdir=$${topdir}/ppl"; \
18254 libsrcdir="$$s/ppl"; \
18255 $(SHELL) $${libsrcdir}/configure \
18256 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
18257 --target=none-${host_vendor}-${host_os} $${srcdiroption} \
18258 --with-build-libsubdir=$(HOST_SUBDIR) \
18259 @stage2_werror_flag@ --disable-shared --with-libgmp-prefix=$$r/$(HOST_SUBDIR)/gmp/ --with-libgmpxx-prefix=$$r/$(HOST_SUBDIR)/gmp/
18260@endif ppl-bootstrap
18261
18262
18263
18264
18265
18266.PHONY: all-ppl maybe-all-ppl
18267maybe-all-ppl:
18268@if gcc-bootstrap
18269all-ppl: stage_current
18270@endif gcc-bootstrap
18271@if ppl
18272TARGET-ppl=all
18273maybe-all-ppl: all-ppl
18274all-ppl: configure-ppl
18275 @r=`${PWD_COMMAND}`; export r; \
18276 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18277 $(HOST_EXPORTS) \
18278 (cd $(HOST_SUBDIR)/ppl && \
18279 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
18280 $(TARGET-ppl))
18281@endif ppl
18282
18283
18284
18285.PHONY: all-stage1-ppl maybe-all-stage1-ppl
18286.PHONY: clean-stage1-ppl maybe-clean-stage1-ppl
18287maybe-all-stage1-ppl:
18288maybe-clean-stage1-ppl:
18289@if ppl-bootstrap
18290maybe-all-stage1-ppl: all-stage1-ppl
18291all-stage1: all-stage1-ppl
18292TARGET-stage1-ppl = $(TARGET-ppl)
18293all-stage1-ppl: configure-stage1-ppl
18294 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
18295 @r=`${PWD_COMMAND}`; export r; \
18296 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18297 $(HOST_EXPORTS) \
18298 cd $(HOST_SUBDIR)/ppl && \
18299 $(MAKE) $(BASE_FLAGS_TO_PASS) \
18300 CFLAGS="$(STAGE1_CFLAGS)" CXXFLAGS="$(STAGE1_CFLAGS)" \
18301 LIBCFLAGS="$(STAGE1_LIBCFLAGS)" \
18302 CFLAGS_FOR_TARGET="$(STAGE1_LIBCFLAGS)" \
18303 CXXFLAGS_FOR_TARGET="$(STAGE1_LIBCFLAGS)" $(EXTRA_HOST_FLAGS) \
18304 $(TARGET-stage1-ppl)
18305
18306maybe-clean-stage1-ppl: clean-stage1-ppl
18307clean-stage1: clean-stage1-ppl
18308clean-stage1-ppl:
18309 @if [ $(current_stage) = stage1 ]; then \
18310 [ -f $(HOST_SUBDIR)/ppl/Makefile ] || exit 0; \
18311 else \
18312 [ -f $(HOST_SUBDIR)/stage1-ppl/Makefile ] || exit 0; \
18313 $(MAKE) stage1-start; \
18314 fi; \
18315 cd $(HOST_SUBDIR)/ppl && \
18316 $(MAKE) $(EXTRA_HOST_FLAGS) \
18317 clean
18318@endif ppl-bootstrap
18319
18320
18321.PHONY: all-stage2-ppl maybe-all-stage2-ppl
18322.PHONY: clean-stage2-ppl maybe-clean-stage2-ppl
18323maybe-all-stage2-ppl:
18324maybe-clean-stage2-ppl:
18325@if ppl-bootstrap
18326maybe-all-stage2-ppl: all-stage2-ppl
18327all-stage2: all-stage2-ppl
18328TARGET-stage2-ppl = $(TARGET-ppl)
18329all-stage2-ppl: configure-stage2-ppl
18330 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
18331 @r=`${PWD_COMMAND}`; export r; \
18332 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18333 $(HOST_EXPORTS) \
18334 $(POSTSTAGE1_HOST_EXPORTS) \
18335 cd $(HOST_SUBDIR)/ppl && \
18336 $(MAKE) $(BASE_FLAGS_TO_PASS) \
18337 CFLAGS="$(STAGE2_CFLAGS)" CXXFLAGS="$(STAGE2_CFLAGS)" \
18338 LIBCFLAGS="$(STAGE2_LIBCFLAGS)" \
18339 CFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)" \
18340 CXXFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
18341 $(TARGET-stage2-ppl)
18342
18343maybe-clean-stage2-ppl: clean-stage2-ppl
18344clean-stage2: clean-stage2-ppl
18345clean-stage2-ppl:
18346 @if [ $(current_stage) = stage2 ]; then \
18347 [ -f $(HOST_SUBDIR)/ppl/Makefile ] || exit 0; \
18348 else \
18349 [ -f $(HOST_SUBDIR)/stage2-ppl/Makefile ] || exit 0; \
18350 $(MAKE) stage2-start; \
18351 fi; \
18352 cd $(HOST_SUBDIR)/ppl && \
18353 $(MAKE) $(EXTRA_HOST_FLAGS) \
18354 $(POSTSTAGE1_FLAGS_TO_PASS) \
18355 clean
18356@endif ppl-bootstrap
18357
18358
18359.PHONY: all-stageb2g0-ppl maybe-all-stageb2g0-ppl
18360.PHONY: clean-stageb2g0-ppl maybe-clean-stageb2g0-ppl
18361maybe-all-stageb2g0-ppl:
18362maybe-clean-stageb2g0-ppl:
18363@if ppl-bootstrap
18364maybe-all-stageb2g0-ppl: all-stageb2g0-ppl
18365all-stageb2g0: all-stageb2g0-ppl
18366TARGET-stageb2g0-ppl = $(TARGET-ppl)
18367all-stageb2g0-ppl: configure-stageb2g0-ppl
18368 @[ $(current_stage) = stageb2g0 ] || $(MAKE) stageb2g0-start
18369 @r=`${PWD_COMMAND}`; export r; \
18370 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18371 $(HOST_EXPORTS) \
18372 $(POSTSTAGE1_HOST_EXPORTS) \
18373 cd $(HOST_SUBDIR)/ppl && \
18374 $(MAKE) $(BASE_FLAGS_TO_PASS) \
18375 CFLAGS="$(STAGE2_CFLAGS) -g0" CXXFLAGS="$(STAGE2_CFLAGS) -g0" \
18376 LIBCFLAGS="$(STAGE2_LIBCFLAGS) -g0" \
18377 CFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS) -g0" \
18378 CXXFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS) -g0" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
18379 $(TARGET-stageb2g0-ppl)
18380
18381maybe-clean-stageb2g0-ppl: clean-stageb2g0-ppl
18382clean-stageb2g0: clean-stageb2g0-ppl
18383clean-stageb2g0-ppl:
18384 @if [ $(current_stage) = stageb2g0 ]; then \
18385 [ -f $(HOST_SUBDIR)/ppl/Makefile ] || exit 0; \
18386 else \
18387 [ -f $(HOST_SUBDIR)/stageb2g0-ppl/Makefile ] || exit 0; \
18388 $(MAKE) stageb2g0-start; \
18389 fi; \
18390 cd $(HOST_SUBDIR)/ppl && \
18391 $(MAKE) $(EXTRA_HOST_FLAGS) \
18392 $(POSTSTAGE1_FLAGS_TO_PASS) \
18393 clean
18394@endif ppl-bootstrap
18395
18396
18397.PHONY: all-stage3-ppl maybe-all-stage3-ppl
18398.PHONY: clean-stage3-ppl maybe-clean-stage3-ppl
18399maybe-all-stage3-ppl:
18400maybe-clean-stage3-ppl:
18401@if ppl-bootstrap
18402maybe-all-stage3-ppl: all-stage3-ppl
18403all-stage3: all-stage3-ppl
18404TARGET-stage3-ppl = $(TARGET-ppl)
18405all-stage3-ppl: configure-stage3-ppl
18406 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
18407 @r=`${PWD_COMMAND}`; export r; \
18408 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18409 $(HOST_EXPORTS) \
18410 $(POSTSTAGE1_HOST_EXPORTS) \
18411 cd $(HOST_SUBDIR)/ppl && \
18412 $(MAKE) $(BASE_FLAGS_TO_PASS) \
18413 CFLAGS="$(STAGE3_CFLAGS)" CXXFLAGS="$(STAGE3_CFLAGS)" \
18414 LIBCFLAGS="$(STAGE3_LIBCFLAGS)" \
18415 CFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS)" \
18416 CXXFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS)" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
18417 $(TARGET-stage3-ppl)
18418
18419maybe-clean-stage3-ppl: clean-stage3-ppl
18420clean-stage3: clean-stage3-ppl
18421clean-stage3-ppl:
18422 @if [ $(current_stage) = stage3 ]; then \
18423 [ -f $(HOST_SUBDIR)/ppl/Makefile ] || exit 0; \
18424 else \
18425 [ -f $(HOST_SUBDIR)/stage3-ppl/Makefile ] || exit 0; \
18426 $(MAKE) stage3-start; \
18427 fi; \
18428 cd $(HOST_SUBDIR)/ppl && \
18429 $(MAKE) $(EXTRA_HOST_FLAGS) \
18430 $(POSTSTAGE1_FLAGS_TO_PASS) \
18431 clean
18432@endif ppl-bootstrap
18433
18434
18435.PHONY: all-stageb3g2-ppl maybe-all-stageb3g2-ppl
18436.PHONY: clean-stageb3g2-ppl maybe-clean-stageb3g2-ppl
18437maybe-all-stageb3g2-ppl:
18438maybe-clean-stageb3g2-ppl:
18439@if ppl-bootstrap
18440maybe-all-stageb3g2-ppl: all-stageb3g2-ppl
18441all-stageb3g2: all-stageb3g2-ppl
18442TARGET-stageb3g2-ppl = $(TARGET-ppl)
18443all-stageb3g2-ppl: configure-stageb3g2-ppl
18444 @[ $(current_stage) = stageb3g2 ] || $(MAKE) stageb3g2-start
18445 @r=`${PWD_COMMAND}`; export r; \
18446 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18447 $(HOST_EXPORTS) \
18448 $(POSTSTAGE1_HOST_EXPORTS) \
18449 cd $(HOST_SUBDIR)/ppl && \
18450 $(MAKE) $(BASE_FLAGS_TO_PASS) \
18451 CFLAGS="$(STAGE3_CFLAGS) -g2" CXXFLAGS="$(STAGE3_CFLAGS) -g2" \
18452 LIBCFLAGS="$(STAGE3_LIBCFLAGS) -g2" \
18453 CFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS) -g2" \
18454 CXXFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS) -g2" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
18455 $(TARGET-stageb3g2-ppl)
18456
18457maybe-clean-stageb3g2-ppl: clean-stageb3g2-ppl
18458clean-stageb3g2: clean-stageb3g2-ppl
18459clean-stageb3g2-ppl:
18460 @if [ $(current_stage) = stageb3g2 ]; then \
18461 [ -f $(HOST_SUBDIR)/ppl/Makefile ] || exit 0; \
18462 else \
18463 [ -f $(HOST_SUBDIR)/stageb3g2-ppl/Makefile ] || exit 0; \
18464 $(MAKE) stageb3g2-start; \
18465 fi; \
18466 cd $(HOST_SUBDIR)/ppl && \
18467 $(MAKE) $(EXTRA_HOST_FLAGS) \
18468 $(POSTSTAGE1_FLAGS_TO_PASS) \
18469 clean
18470@endif ppl-bootstrap
18471
18472
18473.PHONY: all-stage4-ppl maybe-all-stage4-ppl
18474.PHONY: clean-stage4-ppl maybe-clean-stage4-ppl
18475maybe-all-stage4-ppl:
18476maybe-clean-stage4-ppl:
18477@if ppl-bootstrap
18478maybe-all-stage4-ppl: all-stage4-ppl
18479all-stage4: all-stage4-ppl
18480TARGET-stage4-ppl = $(TARGET-ppl)
18481all-stage4-ppl: configure-stage4-ppl
18482 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
18483 @r=`${PWD_COMMAND}`; export r; \
18484 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18485 $(HOST_EXPORTS) \
18486 $(POSTSTAGE1_HOST_EXPORTS) \
18487 cd $(HOST_SUBDIR)/ppl && \
18488 $(MAKE) $(BASE_FLAGS_TO_PASS) \
18489 CFLAGS="$(STAGE4_CFLAGS)" CXXFLAGS="$(STAGE4_CFLAGS)" \
18490 LIBCFLAGS="$(STAGE4_CFLAGS)" \
18491 CFLAGS_FOR_TARGET="$(STAGE4_CFLAGS)" \
18492 CXXFLAGS_FOR_TARGET="$(STAGE4_CFLAGS)" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
18493 $(TARGET-stage4-ppl)
18494
18495maybe-clean-stage4-ppl: clean-stage4-ppl
18496clean-stage4: clean-stage4-ppl
18497clean-stage4-ppl:
18498 @if [ $(current_stage) = stage4 ]; then \
18499 [ -f $(HOST_SUBDIR)/ppl/Makefile ] || exit 0; \
18500 else \
18501 [ -f $(HOST_SUBDIR)/stage4-ppl/Makefile ] || exit 0; \
18502 $(MAKE) stage4-start; \
18503 fi; \
18504 cd $(HOST_SUBDIR)/ppl && \
18505 $(MAKE) $(EXTRA_HOST_FLAGS) \
18506 $(POSTSTAGE1_FLAGS_TO_PASS) \
18507 clean
18508@endif ppl-bootstrap
18509
18510
18511.PHONY: all-stageprofile-ppl maybe-all-stageprofile-ppl
18512.PHONY: clean-stageprofile-ppl maybe-clean-stageprofile-ppl
18513maybe-all-stageprofile-ppl:
18514maybe-clean-stageprofile-ppl:
18515@if ppl-bootstrap
18516maybe-all-stageprofile-ppl: all-stageprofile-ppl
18517all-stageprofile: all-stageprofile-ppl
18518TARGET-stageprofile-ppl = $(TARGET-ppl)
18519all-stageprofile-ppl: configure-stageprofile-ppl
18520 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
18521 @r=`${PWD_COMMAND}`; export r; \
18522 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18523 $(HOST_EXPORTS) \
18524 $(POSTSTAGE1_HOST_EXPORTS) \
18525 cd $(HOST_SUBDIR)/ppl && \
18526 $(MAKE) $(BASE_FLAGS_TO_PASS) \
18527 CFLAGS="$(STAGE2_CFLAGS) -fprofile-generate" CXXFLAGS="$(STAGE2_CFLAGS) -fprofile-generate" \
18528 LIBCFLAGS="$(STAGE2_LIBCFLAGS)" \
18529 CFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)" \
18530 CXXFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
18531 $(TARGET-stageprofile-ppl)
18532
18533maybe-clean-stageprofile-ppl: clean-stageprofile-ppl
18534clean-stageprofile: clean-stageprofile-ppl
18535clean-stageprofile-ppl:
18536 @if [ $(current_stage) = stageprofile ]; then \
18537 [ -f $(HOST_SUBDIR)/ppl/Makefile ] || exit 0; \
18538 else \
18539 [ -f $(HOST_SUBDIR)/stageprofile-ppl/Makefile ] || exit 0; \
18540 $(MAKE) stageprofile-start; \
18541 fi; \
18542 cd $(HOST_SUBDIR)/ppl && \
18543 $(MAKE) $(EXTRA_HOST_FLAGS) \
18544 $(POSTSTAGE1_FLAGS_TO_PASS) \
18545 clean
18546@endif ppl-bootstrap
18547
18548
18549.PHONY: all-stagefeedback-ppl maybe-all-stagefeedback-ppl
18550.PHONY: clean-stagefeedback-ppl maybe-clean-stagefeedback-ppl
18551maybe-all-stagefeedback-ppl:
18552maybe-clean-stagefeedback-ppl:
18553@if ppl-bootstrap
18554maybe-all-stagefeedback-ppl: all-stagefeedback-ppl
18555all-stagefeedback: all-stagefeedback-ppl
18556TARGET-stagefeedback-ppl = $(TARGET-ppl)
18557all-stagefeedback-ppl: configure-stagefeedback-ppl
18558 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
18559 @r=`${PWD_COMMAND}`; export r; \
18560 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18561 $(HOST_EXPORTS) \
18562 $(POSTSTAGE1_HOST_EXPORTS) \
18563 cd $(HOST_SUBDIR)/ppl && \
18564 $(MAKE) $(BASE_FLAGS_TO_PASS) \
18565 CFLAGS="$(STAGE3_CFLAGS) -fprofile-use" CXXFLAGS="$(STAGE3_CFLAGS) -fprofile-use" \
18566 LIBCFLAGS="$(STAGE3_LIBCFLAGS) -fprofile-use" \
18567 CFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS) -fprofile-use" \
18568 CXXFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS) -fprofile-use" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
18569 $(TARGET-stagefeedback-ppl)
18570
18571maybe-clean-stagefeedback-ppl: clean-stagefeedback-ppl
18572clean-stagefeedback: clean-stagefeedback-ppl
18573clean-stagefeedback-ppl:
18574 @if [ $(current_stage) = stagefeedback ]; then \
18575 [ -f $(HOST_SUBDIR)/ppl/Makefile ] || exit 0; \
18576 else \
18577 [ -f $(HOST_SUBDIR)/stagefeedback-ppl/Makefile ] || exit 0; \
18578 $(MAKE) stagefeedback-start; \
18579 fi; \
18580 cd $(HOST_SUBDIR)/ppl && \
18581 $(MAKE) $(EXTRA_HOST_FLAGS) \
18582 $(POSTSTAGE1_FLAGS_TO_PASS) \
18583 clean
18584@endif ppl-bootstrap
18585
18586
18587
18588
18589
18590.PHONY: check-ppl maybe-check-ppl
18591maybe-check-ppl:
18592@if ppl
18593maybe-check-ppl: check-ppl
18594
18595check-ppl:
18596 @: $(MAKE); $(unstage)
18597 @r=`${PWD_COMMAND}`; export r; \
18598 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18599 $(HOST_EXPORTS) \
18600 (cd $(HOST_SUBDIR)/ppl && \
18601 $(MAKE) $(FLAGS_TO_PASS) check)
18602
18603@endif ppl
18604
18605.PHONY: install-ppl maybe-install-ppl
18606maybe-install-ppl:
18607@if ppl
18608maybe-install-ppl: install-ppl
18609
18610install-ppl:
18611
18612@endif ppl
18613
18614# Other targets (info, dvi, pdf, etc.)
18615
18616.PHONY: maybe-info-ppl info-ppl
18617maybe-info-ppl:
18618@if ppl
18619maybe-info-ppl: info-ppl
18620
18621info-ppl: \
18622 configure-ppl
18623 @[ -f ./ppl/Makefile ] || exit 0; \
18624 r=`${PWD_COMMAND}`; export r; \
18625 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18626 $(HOST_EXPORTS) \
18627 for flag in $(EXTRA_HOST_FLAGS) ; do \
18628 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18629 done; \
18630 echo "Doing info in ppl" ; \
18631 (cd $(HOST_SUBDIR)/ppl && \
18632 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18633 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18634 "RANLIB=$${RANLIB}" \
18635 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18636 info) \
18637 || exit 1
18638
18639@endif ppl
18640
18641.PHONY: maybe-dvi-ppl dvi-ppl
18642maybe-dvi-ppl:
18643@if ppl
18644maybe-dvi-ppl: dvi-ppl
18645
18646dvi-ppl: \
18647 configure-ppl
18648 @[ -f ./ppl/Makefile ] || exit 0; \
18649 r=`${PWD_COMMAND}`; export r; \
18650 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18651 $(HOST_EXPORTS) \
18652 for flag in $(EXTRA_HOST_FLAGS) ; do \
18653 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18654 done; \
18655 echo "Doing dvi in ppl" ; \
18656 (cd $(HOST_SUBDIR)/ppl && \
18657 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18658 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18659 "RANLIB=$${RANLIB}" \
18660 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18661 dvi) \
18662 || exit 1
18663
18664@endif ppl
18665
18666.PHONY: maybe-pdf-ppl pdf-ppl
18667maybe-pdf-ppl:
18668@if ppl
18669maybe-pdf-ppl: pdf-ppl
18670
18671pdf-ppl: \
18672 configure-ppl
18673 @[ -f ./ppl/Makefile ] || exit 0; \
18674 r=`${PWD_COMMAND}`; export r; \
18675 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18676 $(HOST_EXPORTS) \
18677 for flag in $(EXTRA_HOST_FLAGS) ; do \
18678 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18679 done; \
18680 echo "Doing pdf in ppl" ; \
18681 (cd $(HOST_SUBDIR)/ppl && \
18682 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18683 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18684 "RANLIB=$${RANLIB}" \
18685 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18686 pdf) \
18687 || exit 1
18688
18689@endif ppl
18690
18691.PHONY: maybe-html-ppl html-ppl
18692maybe-html-ppl:
18693@if ppl
18694maybe-html-ppl: html-ppl
18695
18696html-ppl: \
18697 configure-ppl
18698 @[ -f ./ppl/Makefile ] || exit 0; \
18699 r=`${PWD_COMMAND}`; export r; \
18700 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18701 $(HOST_EXPORTS) \
18702 for flag in $(EXTRA_HOST_FLAGS) ; do \
18703 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18704 done; \
18705 echo "Doing html in ppl" ; \
18706 (cd $(HOST_SUBDIR)/ppl && \
18707 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18708 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18709 "RANLIB=$${RANLIB}" \
18710 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18711 html) \
18712 || exit 1
18713
18714@endif ppl
18715
18716.PHONY: maybe-TAGS-ppl TAGS-ppl
18717maybe-TAGS-ppl:
18718@if ppl
18719maybe-TAGS-ppl: TAGS-ppl
18720
18721TAGS-ppl: \
18722 configure-ppl
18723 @[ -f ./ppl/Makefile ] || exit 0; \
18724 r=`${PWD_COMMAND}`; export r; \
18725 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18726 $(HOST_EXPORTS) \
18727 for flag in $(EXTRA_HOST_FLAGS) ; do \
18728 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18729 done; \
18730 echo "Doing TAGS in ppl" ; \
18731 (cd $(HOST_SUBDIR)/ppl && \
18732 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18733 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18734 "RANLIB=$${RANLIB}" \
18735 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18736 TAGS) \
18737 || exit 1
18738
18739@endif ppl
18740
18741.PHONY: maybe-install-info-ppl install-info-ppl
18742maybe-install-info-ppl:
18743@if ppl
18744maybe-install-info-ppl: install-info-ppl
18745
18746install-info-ppl: \
18747 configure-ppl \
18748 info-ppl
18749 @[ -f ./ppl/Makefile ] || exit 0; \
18750 r=`${PWD_COMMAND}`; export r; \
18751 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18752 $(HOST_EXPORTS) \
18753 for flag in $(EXTRA_HOST_FLAGS) ; do \
18754 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18755 done; \
18756 echo "Doing install-info in ppl" ; \
18757 (cd $(HOST_SUBDIR)/ppl && \
18758 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18759 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18760 "RANLIB=$${RANLIB}" \
18761 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18762 install-info) \
18763 || exit 1
18764
18765@endif ppl
18766
18767.PHONY: maybe-install-pdf-ppl install-pdf-ppl
18768maybe-install-pdf-ppl:
18769@if ppl
18770maybe-install-pdf-ppl: install-pdf-ppl
18771
18772install-pdf-ppl: \
18773 configure-ppl \
18774 pdf-ppl
18775 @[ -f ./ppl/Makefile ] || exit 0; \
18776 r=`${PWD_COMMAND}`; export r; \
18777 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18778 $(HOST_EXPORTS) \
18779 for flag in $(EXTRA_HOST_FLAGS) ; do \
18780 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18781 done; \
18782 echo "Doing install-pdf in ppl" ; \
18783 (cd $(HOST_SUBDIR)/ppl && \
18784 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18785 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18786 "RANLIB=$${RANLIB}" \
18787 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18788 install-pdf) \
18789 || exit 1
18790
18791@endif ppl
18792
18793.PHONY: maybe-install-html-ppl install-html-ppl
18794maybe-install-html-ppl:
18795@if ppl
18796maybe-install-html-ppl: install-html-ppl
18797
18798install-html-ppl: \
18799 configure-ppl \
18800 html-ppl
18801 @[ -f ./ppl/Makefile ] || exit 0; \
18802 r=`${PWD_COMMAND}`; export r; \
18803 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18804 $(HOST_EXPORTS) \
18805 for flag in $(EXTRA_HOST_FLAGS) ; do \
18806 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18807 done; \
18808 echo "Doing install-html in ppl" ; \
18809 (cd $(HOST_SUBDIR)/ppl && \
18810 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18811 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18812 "RANLIB=$${RANLIB}" \
18813 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18814 install-html) \
18815 || exit 1
18816
18817@endif ppl
18818
18819.PHONY: maybe-installcheck-ppl installcheck-ppl
18820maybe-installcheck-ppl:
18821@if ppl
18822maybe-installcheck-ppl: installcheck-ppl
18823
18824installcheck-ppl: \
18825 configure-ppl
18826 @[ -f ./ppl/Makefile ] || exit 0; \
42f55f77
PB
18827 r=`${PWD_COMMAND}`; export r; \
18828 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18829 $(HOST_EXPORTS) \
18830 for flag in $(EXTRA_HOST_FLAGS) ; do \
18831 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18832 done; \
311b6756
JM
18833 echo "Doing installcheck in ppl" ; \
18834 (cd $(HOST_SUBDIR)/ppl && \
42f55f77
PB
18835 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18836 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18837 "RANLIB=$${RANLIB}" \
bffcbe34 18838 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42f55f77
PB
18839 installcheck) \
18840 || exit 1
18841
311b6756 18842@endif ppl
42f55f77 18843
311b6756
JM
18844.PHONY: maybe-mostlyclean-ppl mostlyclean-ppl
18845maybe-mostlyclean-ppl:
18846@if ppl
18847maybe-mostlyclean-ppl: mostlyclean-ppl
42f55f77 18848
311b6756
JM
18849mostlyclean-ppl:
18850 @[ -f ./ppl/Makefile ] || exit 0; \
42f55f77
PB
18851 r=`${PWD_COMMAND}`; export r; \
18852 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18853 $(HOST_EXPORTS) \
18854 for flag in $(EXTRA_HOST_FLAGS) ; do \
18855 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18856 done; \
311b6756
JM
18857 echo "Doing mostlyclean in ppl" ; \
18858 (cd $(HOST_SUBDIR)/ppl && \
42f55f77
PB
18859 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18860 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18861 "RANLIB=$${RANLIB}" \
bffcbe34 18862 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42f55f77
PB
18863 mostlyclean) \
18864 || exit 1
18865
311b6756 18866@endif ppl
42f55f77 18867
311b6756
JM
18868.PHONY: maybe-clean-ppl clean-ppl
18869maybe-clean-ppl:
18870@if ppl
18871maybe-clean-ppl: clean-ppl
42f55f77 18872
311b6756
JM
18873clean-ppl:
18874 @[ -f ./ppl/Makefile ] || exit 0; \
42f55f77
PB
18875 r=`${PWD_COMMAND}`; export r; \
18876 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18877 $(HOST_EXPORTS) \
18878 for flag in $(EXTRA_HOST_FLAGS) ; do \
18879 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18880 done; \
311b6756
JM
18881 echo "Doing clean in ppl" ; \
18882 (cd $(HOST_SUBDIR)/ppl && \
42f55f77
PB
18883 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18884 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18885 "RANLIB=$${RANLIB}" \
bffcbe34 18886 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42f55f77
PB
18887 clean) \
18888 || exit 1
18889
311b6756 18890@endif ppl
42f55f77 18891
311b6756
JM
18892.PHONY: maybe-distclean-ppl distclean-ppl
18893maybe-distclean-ppl:
18894@if ppl
18895maybe-distclean-ppl: distclean-ppl
42f55f77 18896
311b6756
JM
18897distclean-ppl:
18898 @[ -f ./ppl/Makefile ] || exit 0; \
42f55f77
PB
18899 r=`${PWD_COMMAND}`; export r; \
18900 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18901 $(HOST_EXPORTS) \
18902 for flag in $(EXTRA_HOST_FLAGS) ; do \
18903 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18904 done; \
311b6756
JM
18905 echo "Doing distclean in ppl" ; \
18906 (cd $(HOST_SUBDIR)/ppl && \
42f55f77
PB
18907 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18908 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18909 "RANLIB=$${RANLIB}" \
bffcbe34 18910 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42f55f77
PB
18911 distclean) \
18912 || exit 1
18913
311b6756 18914@endif ppl
42f55f77 18915
311b6756
JM
18916.PHONY: maybe-maintainer-clean-ppl maintainer-clean-ppl
18917maybe-maintainer-clean-ppl:
18918@if ppl
18919maybe-maintainer-clean-ppl: maintainer-clean-ppl
42f55f77 18920
311b6756
JM
18921maintainer-clean-ppl:
18922 @[ -f ./ppl/Makefile ] || exit 0; \
42f55f77
PB
18923 r=`${PWD_COMMAND}`; export r; \
18924 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18925 $(HOST_EXPORTS) \
18926 for flag in $(EXTRA_HOST_FLAGS) ; do \
18927 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18928 done; \
311b6756
JM
18929 echo "Doing maintainer-clean in ppl" ; \
18930 (cd $(HOST_SUBDIR)/ppl && \
42f55f77
PB
18931 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18932 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18933 "RANLIB=$${RANLIB}" \
bffcbe34 18934 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42f55f77
PB
18935 maintainer-clean) \
18936 || exit 1
18937
311b6756 18938@endif ppl
42f55f77
PB
18939
18940
18941
311b6756
JM
18942.PHONY: configure-cloog maybe-configure-cloog
18943maybe-configure-cloog:
42f55f77 18944@if gcc-bootstrap
311b6756 18945configure-cloog: stage_current
42f55f77 18946@endif gcc-bootstrap
311b6756
JM
18947@if cloog
18948maybe-configure-cloog: configure-cloog
18949configure-cloog:
42f55f77
PB
18950 @r=`${PWD_COMMAND}`; export r; \
18951 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
311b6756
JM
18952 test ! -f $(HOST_SUBDIR)/cloog/Makefile || exit 0; \
18953 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cloog ; \
42f55f77 18954 $(HOST_EXPORTS) \
311b6756
JM
18955 echo Configuring in $(HOST_SUBDIR)/cloog; \
18956 cd "$(HOST_SUBDIR)/cloog" || exit 1; \
42f55f77
PB
18957 case $(srcdir) in \
18958 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
311b6756 18959 *) topdir=`echo $(HOST_SUBDIR)/cloog/ | \
42f55f77
PB
18960 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18961 esac; \
311b6756
JM
18962 srcdiroption="--srcdir=$${topdir}/cloog"; \
18963 libsrcdir="$$s/cloog"; \
42f55f77
PB
18964 $(SHELL) $${libsrcdir}/configure \
18965 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
311b6756 18966 --target=none-${host_vendor}-${host_os} $${srcdiroption} --disable-shared --with-gmp-library=$$r/$(HOST_SUBDIR)/gmp/.libs --with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-ppl=$$r/$(HOST_SUBDIR)/ppl/ --with-bits=gmp \
42f55f77 18967 || exit 1
311b6756 18968@endif cloog
42f55f77
PB
18969
18970
18971
311b6756
JM
18972.PHONY: configure-stage1-cloog maybe-configure-stage1-cloog
18973maybe-configure-stage1-cloog:
18974@if cloog-bootstrap
18975maybe-configure-stage1-cloog: configure-stage1-cloog
18976configure-stage1-cloog:
42f55f77 18977 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
311b6756 18978 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cloog
42f55f77
PB
18979 @r=`${PWD_COMMAND}`; export r; \
18980 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
311b6756 18981 test ! -f $(HOST_SUBDIR)/cloog/Makefile || exit 0; \
6532abb6 18982 $(HOST_EXPORTS) \
2ba09444 18983 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
6532abb6 18984 CXXFLAGS="$(STAGE1_CFLAGS)"; export CXXFLAGS; \
311b6756
JM
18985 echo Configuring stage 1 in $(HOST_SUBDIR)/cloog ; \
18986 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cloog ; \
18987 cd $(HOST_SUBDIR)/cloog || exit 1; \
42f55f77
PB
18988 case $(srcdir) in \
18989 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
311b6756 18990 *) topdir=`echo $(HOST_SUBDIR)/cloog/ | \
42f55f77
PB
18991 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18992 esac; \
311b6756
JM
18993 srcdiroption="--srcdir=$${topdir}/cloog"; \
18994 libsrcdir="$$s/cloog"; \
42f55f77
PB
18995 $(SHELL) $${libsrcdir}/configure \
18996 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
18997 --target=none-${host_vendor}-${host_os} $${srcdiroption} \
18998 \
311b6756
JM
18999 --disable-intermodule $(STAGE1_CHECKING) --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)" --disable-shared --with-gmp-library=$$r/$(HOST_SUBDIR)/gmp/.libs --with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-ppl=$$r/$(HOST_SUBDIR)/ppl/ --with-bits=gmp
19000@endif cloog-bootstrap
19001
19002.PHONY: configure-stage2-cloog maybe-configure-stage2-cloog
19003maybe-configure-stage2-cloog:
19004@if cloog-bootstrap
19005maybe-configure-stage2-cloog: configure-stage2-cloog
19006configure-stage2-cloog:
42f55f77 19007 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
311b6756 19008 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cloog
42f55f77
PB
19009 @r=`${PWD_COMMAND}`; export r; \
19010 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
311b6756 19011 test ! -f $(HOST_SUBDIR)/cloog/Makefile || exit 0; \
42f55f77 19012 $(HOST_EXPORTS) \
6532abb6 19013 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 19014 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
6532abb6 19015 CXXFLAGS="$(STAGE2_CFLAGS)"; export CXXFLAGS; \
311b6756
JM
19016 echo Configuring stage 2 in $(HOST_SUBDIR)/cloog ; \
19017 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cloog ; \
19018 cd $(HOST_SUBDIR)/cloog || exit 1; \
42f55f77
PB
19019 case $(srcdir) in \
19020 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
311b6756 19021 *) topdir=`echo $(HOST_SUBDIR)/cloog/ | \
42f55f77
PB
19022 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19023 esac; \
311b6756
JM
19024 srcdiroption="--srcdir=$${topdir}/cloog"; \
19025 libsrcdir="$$s/cloog"; \
42f55f77
PB
19026 $(SHELL) $${libsrcdir}/configure \
19027 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
19028 --target=none-${host_vendor}-${host_os} $${srcdiroption} \
19029 --with-build-libsubdir=$(HOST_SUBDIR) \
311b6756
JM
19030 @stage2_werror_flag@ --disable-shared --with-gmp-library=$$r/$(HOST_SUBDIR)/gmp/.libs --with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-ppl=$$r/$(HOST_SUBDIR)/ppl/ --with-bits=gmp
19031@endif cloog-bootstrap
19032
19033.PHONY: configure-stageb2g0-cloog maybe-configure-stageb2g0-cloog
19034maybe-configure-stageb2g0-cloog:
19035@if cloog-bootstrap
19036maybe-configure-stageb2g0-cloog: configure-stageb2g0-cloog
19037configure-stageb2g0-cloog:
2b41ef78 19038 @[ $(current_stage) = stageb2g0 ] || $(MAKE) stageb2g0-start
311b6756 19039 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cloog
2b41ef78
AO
19040 @r=`${PWD_COMMAND}`; export r; \
19041 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
311b6756 19042 test ! -f $(HOST_SUBDIR)/cloog/Makefile || exit 0; \
2b41ef78 19043 $(HOST_EXPORTS) \
6532abb6 19044 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 19045 CFLAGS="$(STAGE2_CFLAGS) -g0"; export CFLAGS; \
6532abb6 19046 CXXFLAGS="$(STAGE2_CFLAGS) -g0"; export CXXFLAGS; \
311b6756
JM
19047 echo Configuring stage b2g0 in $(HOST_SUBDIR)/cloog ; \
19048 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cloog ; \
19049 cd $(HOST_SUBDIR)/cloog || exit 1; \
2b41ef78
AO
19050 case $(srcdir) in \
19051 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
311b6756 19052 *) topdir=`echo $(HOST_SUBDIR)/cloog/ | \
2b41ef78
AO
19053 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19054 esac; \
311b6756
JM
19055 srcdiroption="--srcdir=$${topdir}/cloog"; \
19056 libsrcdir="$$s/cloog"; \
2b41ef78
AO
19057 $(SHELL) $${libsrcdir}/configure \
19058 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
19059 --target=none-${host_vendor}-${host_os} $${srcdiroption} \
19060 --with-build-libsubdir=$(HOST_SUBDIR) \
311b6756
JM
19061 @stage2_werror_flag@ --disable-shared --with-gmp-library=$$r/$(HOST_SUBDIR)/gmp/.libs --with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-ppl=$$r/$(HOST_SUBDIR)/ppl/ --with-bits=gmp
19062@endif cloog-bootstrap
19063
19064.PHONY: configure-stage3-cloog maybe-configure-stage3-cloog
19065maybe-configure-stage3-cloog:
19066@if cloog-bootstrap
19067maybe-configure-stage3-cloog: configure-stage3-cloog
19068configure-stage3-cloog:
42f55f77 19069 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
311b6756 19070 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cloog
42f55f77
PB
19071 @r=`${PWD_COMMAND}`; export r; \
19072 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
311b6756 19073 test ! -f $(HOST_SUBDIR)/cloog/Makefile || exit 0; \
42f55f77 19074 $(HOST_EXPORTS) \
6532abb6 19075 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 19076 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
6532abb6 19077 CXXFLAGS="$(STAGE3_CFLAGS)"; export CXXFLAGS; \
311b6756
JM
19078 echo Configuring stage 3 in $(HOST_SUBDIR)/cloog ; \
19079 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cloog ; \
19080 cd $(HOST_SUBDIR)/cloog || exit 1; \
42f55f77
PB
19081 case $(srcdir) in \
19082 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
311b6756 19083 *) topdir=`echo $(HOST_SUBDIR)/cloog/ | \
42f55f77
PB
19084 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19085 esac; \
311b6756
JM
19086 srcdiroption="--srcdir=$${topdir}/cloog"; \
19087 libsrcdir="$$s/cloog"; \
42f55f77
PB
19088 $(SHELL) $${libsrcdir}/configure \
19089 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
19090 --target=none-${host_vendor}-${host_os} $${srcdiroption} \
19091 --with-build-libsubdir=$(HOST_SUBDIR) \
311b6756
JM
19092 @stage2_werror_flag@ --disable-shared --with-gmp-library=$$r/$(HOST_SUBDIR)/gmp/.libs --with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-ppl=$$r/$(HOST_SUBDIR)/ppl/ --with-bits=gmp
19093@endif cloog-bootstrap
19094
19095.PHONY: configure-stageb3g2-cloog maybe-configure-stageb3g2-cloog
19096maybe-configure-stageb3g2-cloog:
19097@if cloog-bootstrap
19098maybe-configure-stageb3g2-cloog: configure-stageb3g2-cloog
19099configure-stageb3g2-cloog:
2b41ef78 19100 @[ $(current_stage) = stageb3g2 ] || $(MAKE) stageb3g2-start
311b6756 19101 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cloog
2b41ef78
AO
19102 @r=`${PWD_COMMAND}`; export r; \
19103 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
311b6756 19104 test ! -f $(HOST_SUBDIR)/cloog/Makefile || exit 0; \
2b41ef78 19105 $(HOST_EXPORTS) \
6532abb6 19106 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 19107 CFLAGS="$(STAGE3_CFLAGS) -g2"; export CFLAGS; \
6532abb6 19108 CXXFLAGS="$(STAGE3_CFLAGS) -g2"; export CXXFLAGS; \
311b6756
JM
19109 echo Configuring stage b3g2 in $(HOST_SUBDIR)/cloog ; \
19110 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cloog ; \
19111 cd $(HOST_SUBDIR)/cloog || exit 1; \
2b41ef78
AO
19112 case $(srcdir) in \
19113 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
311b6756 19114 *) topdir=`echo $(HOST_SUBDIR)/cloog/ | \
2b41ef78
AO
19115 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19116 esac; \
311b6756
JM
19117 srcdiroption="--srcdir=$${topdir}/cloog"; \
19118 libsrcdir="$$s/cloog"; \
2b41ef78
AO
19119 $(SHELL) $${libsrcdir}/configure \
19120 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
19121 --target=none-${host_vendor}-${host_os} $${srcdiroption} \
19122 --with-build-libsubdir=$(HOST_SUBDIR) \
311b6756
JM
19123 @stage2_werror_flag@ --disable-shared --with-gmp-library=$$r/$(HOST_SUBDIR)/gmp/.libs --with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-ppl=$$r/$(HOST_SUBDIR)/ppl/ --with-bits=gmp
19124@endif cloog-bootstrap
19125
19126.PHONY: configure-stage4-cloog maybe-configure-stage4-cloog
19127maybe-configure-stage4-cloog:
19128@if cloog-bootstrap
19129maybe-configure-stage4-cloog: configure-stage4-cloog
19130configure-stage4-cloog:
42f55f77 19131 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
311b6756 19132 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cloog
42f55f77
PB
19133 @r=`${PWD_COMMAND}`; export r; \
19134 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
311b6756 19135 test ! -f $(HOST_SUBDIR)/cloog/Makefile || exit 0; \
42f55f77 19136 $(HOST_EXPORTS) \
6532abb6 19137 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 19138 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
6532abb6 19139 CXXFLAGS="$(STAGE4_CFLAGS)"; export CXXFLAGS; \
311b6756
JM
19140 echo Configuring stage 4 in $(HOST_SUBDIR)/cloog ; \
19141 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cloog ; \
19142 cd $(HOST_SUBDIR)/cloog || exit 1; \
42f55f77
PB
19143 case $(srcdir) in \
19144 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
311b6756 19145 *) topdir=`echo $(HOST_SUBDIR)/cloog/ | \
42f55f77
PB
19146 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19147 esac; \
311b6756
JM
19148 srcdiroption="--srcdir=$${topdir}/cloog"; \
19149 libsrcdir="$$s/cloog"; \
42f55f77
PB
19150 $(SHELL) $${libsrcdir}/configure \
19151 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
19152 --target=none-${host_vendor}-${host_os} $${srcdiroption} \
19153 --with-build-libsubdir=$(HOST_SUBDIR) \
311b6756
JM
19154 @stage2_werror_flag@ --disable-shared --with-gmp-library=$$r/$(HOST_SUBDIR)/gmp/.libs --with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-ppl=$$r/$(HOST_SUBDIR)/ppl/ --with-bits=gmp
19155@endif cloog-bootstrap
19156
19157.PHONY: configure-stageprofile-cloog maybe-configure-stageprofile-cloog
19158maybe-configure-stageprofile-cloog:
19159@if cloog-bootstrap
19160maybe-configure-stageprofile-cloog: configure-stageprofile-cloog
19161configure-stageprofile-cloog:
42f55f77 19162 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
311b6756 19163 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cloog
42f55f77
PB
19164 @r=`${PWD_COMMAND}`; export r; \
19165 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
311b6756 19166 test ! -f $(HOST_SUBDIR)/cloog/Makefile || exit 0; \
42f55f77 19167 $(HOST_EXPORTS) \
6532abb6 19168 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 19169 CFLAGS="$(STAGE2_CFLAGS) -fprofile-generate"; export CFLAGS; \
6532abb6 19170 CXXFLAGS="$(STAGE2_CFLAGS) -fprofile-generate"; export CXXFLAGS; \
311b6756
JM
19171 echo Configuring stage profile in $(HOST_SUBDIR)/cloog ; \
19172 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cloog ; \
19173 cd $(HOST_SUBDIR)/cloog || exit 1; \
42f55f77
PB
19174 case $(srcdir) in \
19175 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
311b6756 19176 *) topdir=`echo $(HOST_SUBDIR)/cloog/ | \
42f55f77
PB
19177 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19178 esac; \
311b6756
JM
19179 srcdiroption="--srcdir=$${topdir}/cloog"; \
19180 libsrcdir="$$s/cloog"; \
42f55f77
PB
19181 $(SHELL) $${libsrcdir}/configure \
19182 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
19183 --target=none-${host_vendor}-${host_os} $${srcdiroption} \
19184 --with-build-libsubdir=$(HOST_SUBDIR) \
311b6756
JM
19185 @stage2_werror_flag@ --disable-shared --with-gmp-library=$$r/$(HOST_SUBDIR)/gmp/.libs --with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-ppl=$$r/$(HOST_SUBDIR)/ppl/ --with-bits=gmp
19186@endif cloog-bootstrap
19187
19188.PHONY: configure-stagefeedback-cloog maybe-configure-stagefeedback-cloog
19189maybe-configure-stagefeedback-cloog:
19190@if cloog-bootstrap
19191maybe-configure-stagefeedback-cloog: configure-stagefeedback-cloog
19192configure-stagefeedback-cloog:
42f55f77 19193 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
311b6756 19194 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cloog
42f55f77
PB
19195 @r=`${PWD_COMMAND}`; export r; \
19196 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
311b6756 19197 test ! -f $(HOST_SUBDIR)/cloog/Makefile || exit 0; \
42f55f77 19198 $(HOST_EXPORTS) \
6532abb6 19199 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 19200 CFLAGS="$(STAGE3_CFLAGS) -fprofile-use"; export CFLAGS; \
6532abb6 19201 CXXFLAGS="$(STAGE3_CFLAGS) -fprofile-use"; export CXXFLAGS; \
311b6756
JM
19202 echo Configuring stage feedback in $(HOST_SUBDIR)/cloog ; \
19203 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cloog ; \
19204 cd $(HOST_SUBDIR)/cloog || exit 1; \
42f55f77
PB
19205 case $(srcdir) in \
19206 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
311b6756 19207 *) topdir=`echo $(HOST_SUBDIR)/cloog/ | \
42f55f77
PB
19208 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19209 esac; \
311b6756
JM
19210 srcdiroption="--srcdir=$${topdir}/cloog"; \
19211 libsrcdir="$$s/cloog"; \
42f55f77
PB
19212 $(SHELL) $${libsrcdir}/configure \
19213 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
19214 --target=none-${host_vendor}-${host_os} $${srcdiroption} \
19215 --with-build-libsubdir=$(HOST_SUBDIR) \
311b6756
JM
19216 @stage2_werror_flag@ --disable-shared --with-gmp-library=$$r/$(HOST_SUBDIR)/gmp/.libs --with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-ppl=$$r/$(HOST_SUBDIR)/ppl/ --with-bits=gmp
19217@endif cloog-bootstrap
42f55f77
PB
19218
19219
19220
19221
19222
311b6756
JM
19223.PHONY: all-cloog maybe-all-cloog
19224maybe-all-cloog:
42f55f77 19225@if gcc-bootstrap
311b6756 19226all-cloog: stage_current
42f55f77 19227@endif gcc-bootstrap
311b6756
JM
19228@if cloog
19229TARGET-cloog=all
19230maybe-all-cloog: all-cloog
19231all-cloog: configure-cloog
42f55f77
PB
19232 @r=`${PWD_COMMAND}`; export r; \
19233 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19234 $(HOST_EXPORTS) \
311b6756 19235 (cd $(HOST_SUBDIR)/cloog && \
6532abb6 19236 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
311b6756
JM
19237 $(TARGET-cloog))
19238@endif cloog
42f55f77
PB
19239
19240
19241
311b6756
JM
19242.PHONY: all-stage1-cloog maybe-all-stage1-cloog
19243.PHONY: clean-stage1-cloog maybe-clean-stage1-cloog
19244maybe-all-stage1-cloog:
19245maybe-clean-stage1-cloog:
19246@if cloog-bootstrap
19247maybe-all-stage1-cloog: all-stage1-cloog
19248all-stage1: all-stage1-cloog
19249TARGET-stage1-cloog = $(TARGET-cloog)
19250all-stage1-cloog: configure-stage1-cloog
42f55f77
PB
19251 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
19252 @r=`${PWD_COMMAND}`; export r; \
19253 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19254 $(HOST_EXPORTS) \
311b6756 19255 cd $(HOST_SUBDIR)/cloog && \
6532abb6
PB
19256 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19257 CFLAGS="$(STAGE1_CFLAGS)" CXXFLAGS="$(STAGE1_CFLAGS)" \
19258 LIBCFLAGS="$(STAGE1_LIBCFLAGS)" \
19259 CFLAGS_FOR_TARGET="$(STAGE1_LIBCFLAGS)" \
19260 CXXFLAGS_FOR_TARGET="$(STAGE1_LIBCFLAGS)" $(EXTRA_HOST_FLAGS) \
311b6756 19261 $(TARGET-stage1-cloog)
42f55f77 19262
311b6756
JM
19263maybe-clean-stage1-cloog: clean-stage1-cloog
19264clean-stage1: clean-stage1-cloog
19265clean-stage1-cloog:
42f55f77 19266 @if [ $(current_stage) = stage1 ]; then \
311b6756 19267 [ -f $(HOST_SUBDIR)/cloog/Makefile ] || exit 0; \
42f55f77 19268 else \
311b6756 19269 [ -f $(HOST_SUBDIR)/stage1-cloog/Makefile ] || exit 0; \
42f55f77
PB
19270 $(MAKE) stage1-start; \
19271 fi; \
311b6756 19272 cd $(HOST_SUBDIR)/cloog && \
6532abb6 19273 $(MAKE) $(EXTRA_HOST_FLAGS) \
2ba09444 19274 clean
311b6756
JM
19275@endif cloog-bootstrap
19276
19277
19278.PHONY: all-stage2-cloog maybe-all-stage2-cloog
19279.PHONY: clean-stage2-cloog maybe-clean-stage2-cloog
19280maybe-all-stage2-cloog:
19281maybe-clean-stage2-cloog:
19282@if cloog-bootstrap
19283maybe-all-stage2-cloog: all-stage2-cloog
19284all-stage2: all-stage2-cloog
19285TARGET-stage2-cloog = $(TARGET-cloog)
19286all-stage2-cloog: configure-stage2-cloog
42f55f77
PB
19287 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
19288 @r=`${PWD_COMMAND}`; export r; \
19289 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19290 $(HOST_EXPORTS) \
19291 $(POSTSTAGE1_HOST_EXPORTS) \
311b6756 19292 cd $(HOST_SUBDIR)/cloog && \
6532abb6
PB
19293 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19294 CFLAGS="$(STAGE2_CFLAGS)" CXXFLAGS="$(STAGE2_CFLAGS)" \
19295 LIBCFLAGS="$(STAGE2_LIBCFLAGS)" \
19296 CFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)" \
19297 CXXFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
311b6756 19298 $(TARGET-stage2-cloog)
42f55f77 19299
311b6756
JM
19300maybe-clean-stage2-cloog: clean-stage2-cloog
19301clean-stage2: clean-stage2-cloog
19302clean-stage2-cloog:
42f55f77 19303 @if [ $(current_stage) = stage2 ]; then \
311b6756 19304 [ -f $(HOST_SUBDIR)/cloog/Makefile ] || exit 0; \
42f55f77 19305 else \
311b6756 19306 [ -f $(HOST_SUBDIR)/stage2-cloog/Makefile ] || exit 0; \
42f55f77
PB
19307 $(MAKE) stage2-start; \
19308 fi; \
311b6756 19309 cd $(HOST_SUBDIR)/cloog && \
6532abb6 19310 $(MAKE) $(EXTRA_HOST_FLAGS) \
42f55f77 19311 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 19312 clean
311b6756
JM
19313@endif cloog-bootstrap
19314
19315
19316.PHONY: all-stageb2g0-cloog maybe-all-stageb2g0-cloog
19317.PHONY: clean-stageb2g0-cloog maybe-clean-stageb2g0-cloog
19318maybe-all-stageb2g0-cloog:
19319maybe-clean-stageb2g0-cloog:
19320@if cloog-bootstrap
19321maybe-all-stageb2g0-cloog: all-stageb2g0-cloog
19322all-stageb2g0: all-stageb2g0-cloog
19323TARGET-stageb2g0-cloog = $(TARGET-cloog)
19324all-stageb2g0-cloog: configure-stageb2g0-cloog
2b41ef78
AO
19325 @[ $(current_stage) = stageb2g0 ] || $(MAKE) stageb2g0-start
19326 @r=`${PWD_COMMAND}`; export r; \
19327 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19328 $(HOST_EXPORTS) \
19329 $(POSTSTAGE1_HOST_EXPORTS) \
311b6756 19330 cd $(HOST_SUBDIR)/cloog && \
6532abb6
PB
19331 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19332 CFLAGS="$(STAGE2_CFLAGS) -g0" CXXFLAGS="$(STAGE2_CFLAGS) -g0" \
19333 LIBCFLAGS="$(STAGE2_LIBCFLAGS) -g0" \
19334 CFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS) -g0" \
19335 CXXFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS) -g0" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
311b6756 19336 $(TARGET-stageb2g0-cloog)
2b41ef78 19337
311b6756
JM
19338maybe-clean-stageb2g0-cloog: clean-stageb2g0-cloog
19339clean-stageb2g0: clean-stageb2g0-cloog
19340clean-stageb2g0-cloog:
2b41ef78 19341 @if [ $(current_stage) = stageb2g0 ]; then \
311b6756 19342 [ -f $(HOST_SUBDIR)/cloog/Makefile ] || exit 0; \
2b41ef78 19343 else \
311b6756 19344 [ -f $(HOST_SUBDIR)/stageb2g0-cloog/Makefile ] || exit 0; \
2b41ef78
AO
19345 $(MAKE) stageb2g0-start; \
19346 fi; \
311b6756 19347 cd $(HOST_SUBDIR)/cloog && \
6532abb6 19348 $(MAKE) $(EXTRA_HOST_FLAGS) \
2b41ef78
AO
19349 $(POSTSTAGE1_FLAGS_TO_PASS) \
19350 clean
311b6756
JM
19351@endif cloog-bootstrap
19352
19353
19354.PHONY: all-stage3-cloog maybe-all-stage3-cloog
19355.PHONY: clean-stage3-cloog maybe-clean-stage3-cloog
19356maybe-all-stage3-cloog:
19357maybe-clean-stage3-cloog:
19358@if cloog-bootstrap
19359maybe-all-stage3-cloog: all-stage3-cloog
19360all-stage3: all-stage3-cloog
19361TARGET-stage3-cloog = $(TARGET-cloog)
19362all-stage3-cloog: configure-stage3-cloog
42f55f77
PB
19363 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
19364 @r=`${PWD_COMMAND}`; export r; \
19365 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19366 $(HOST_EXPORTS) \
19367 $(POSTSTAGE1_HOST_EXPORTS) \
311b6756 19368 cd $(HOST_SUBDIR)/cloog && \
6532abb6
PB
19369 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19370 CFLAGS="$(STAGE3_CFLAGS)" CXXFLAGS="$(STAGE3_CFLAGS)" \
19371 LIBCFLAGS="$(STAGE3_LIBCFLAGS)" \
19372 CFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS)" \
19373 CXXFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS)" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
311b6756 19374 $(TARGET-stage3-cloog)
42f55f77 19375
311b6756
JM
19376maybe-clean-stage3-cloog: clean-stage3-cloog
19377clean-stage3: clean-stage3-cloog
19378clean-stage3-cloog:
42f55f77 19379 @if [ $(current_stage) = stage3 ]; then \
311b6756 19380 [ -f $(HOST_SUBDIR)/cloog/Makefile ] || exit 0; \
42f55f77 19381 else \
311b6756 19382 [ -f $(HOST_SUBDIR)/stage3-cloog/Makefile ] || exit 0; \
42f55f77
PB
19383 $(MAKE) stage3-start; \
19384 fi; \
311b6756 19385 cd $(HOST_SUBDIR)/cloog && \
6532abb6 19386 $(MAKE) $(EXTRA_HOST_FLAGS) \
42f55f77 19387 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 19388 clean
311b6756
JM
19389@endif cloog-bootstrap
19390
19391
19392.PHONY: all-stageb3g2-cloog maybe-all-stageb3g2-cloog
19393.PHONY: clean-stageb3g2-cloog maybe-clean-stageb3g2-cloog
19394maybe-all-stageb3g2-cloog:
19395maybe-clean-stageb3g2-cloog:
19396@if cloog-bootstrap
19397maybe-all-stageb3g2-cloog: all-stageb3g2-cloog
19398all-stageb3g2: all-stageb3g2-cloog
19399TARGET-stageb3g2-cloog = $(TARGET-cloog)
19400all-stageb3g2-cloog: configure-stageb3g2-cloog
2b41ef78
AO
19401 @[ $(current_stage) = stageb3g2 ] || $(MAKE) stageb3g2-start
19402 @r=`${PWD_COMMAND}`; export r; \
19403 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19404 $(HOST_EXPORTS) \
19405 $(POSTSTAGE1_HOST_EXPORTS) \
311b6756 19406 cd $(HOST_SUBDIR)/cloog && \
6532abb6
PB
19407 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19408 CFLAGS="$(STAGE3_CFLAGS) -g2" CXXFLAGS="$(STAGE3_CFLAGS) -g2" \
19409 LIBCFLAGS="$(STAGE3_LIBCFLAGS) -g2" \
19410 CFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS) -g2" \
19411 CXXFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS) -g2" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
311b6756 19412 $(TARGET-stageb3g2-cloog)
2b41ef78 19413
311b6756
JM
19414maybe-clean-stageb3g2-cloog: clean-stageb3g2-cloog
19415clean-stageb3g2: clean-stageb3g2-cloog
19416clean-stageb3g2-cloog:
2b41ef78 19417 @if [ $(current_stage) = stageb3g2 ]; then \
311b6756 19418 [ -f $(HOST_SUBDIR)/cloog/Makefile ] || exit 0; \
2b41ef78 19419 else \
311b6756 19420 [ -f $(HOST_SUBDIR)/stageb3g2-cloog/Makefile ] || exit 0; \
2b41ef78
AO
19421 $(MAKE) stageb3g2-start; \
19422 fi; \
311b6756 19423 cd $(HOST_SUBDIR)/cloog && \
6532abb6 19424 $(MAKE) $(EXTRA_HOST_FLAGS) \
2b41ef78
AO
19425 $(POSTSTAGE1_FLAGS_TO_PASS) \
19426 clean
311b6756
JM
19427@endif cloog-bootstrap
19428
19429
19430.PHONY: all-stage4-cloog maybe-all-stage4-cloog
19431.PHONY: clean-stage4-cloog maybe-clean-stage4-cloog
19432maybe-all-stage4-cloog:
19433maybe-clean-stage4-cloog:
19434@if cloog-bootstrap
19435maybe-all-stage4-cloog: all-stage4-cloog
19436all-stage4: all-stage4-cloog
19437TARGET-stage4-cloog = $(TARGET-cloog)
19438all-stage4-cloog: configure-stage4-cloog
42f55f77
PB
19439 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
19440 @r=`${PWD_COMMAND}`; export r; \
19441 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19442 $(HOST_EXPORTS) \
19443 $(POSTSTAGE1_HOST_EXPORTS) \
311b6756 19444 cd $(HOST_SUBDIR)/cloog && \
6532abb6
PB
19445 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19446 CFLAGS="$(STAGE4_CFLAGS)" CXXFLAGS="$(STAGE4_CFLAGS)" \
19447 LIBCFLAGS="$(STAGE4_CFLAGS)" \
19448 CFLAGS_FOR_TARGET="$(STAGE4_CFLAGS)" \
19449 CXXFLAGS_FOR_TARGET="$(STAGE4_CFLAGS)" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
311b6756 19450 $(TARGET-stage4-cloog)
42f55f77 19451
311b6756
JM
19452maybe-clean-stage4-cloog: clean-stage4-cloog
19453clean-stage4: clean-stage4-cloog
19454clean-stage4-cloog:
42f55f77 19455 @if [ $(current_stage) = stage4 ]; then \
311b6756 19456 [ -f $(HOST_SUBDIR)/cloog/Makefile ] || exit 0; \
42f55f77 19457 else \
311b6756 19458 [ -f $(HOST_SUBDIR)/stage4-cloog/Makefile ] || exit 0; \
42f55f77
PB
19459 $(MAKE) stage4-start; \
19460 fi; \
311b6756 19461 cd $(HOST_SUBDIR)/cloog && \
6532abb6 19462 $(MAKE) $(EXTRA_HOST_FLAGS) \
42f55f77 19463 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 19464 clean
311b6756
JM
19465@endif cloog-bootstrap
19466
19467
19468.PHONY: all-stageprofile-cloog maybe-all-stageprofile-cloog
19469.PHONY: clean-stageprofile-cloog maybe-clean-stageprofile-cloog
19470maybe-all-stageprofile-cloog:
19471maybe-clean-stageprofile-cloog:
19472@if cloog-bootstrap
19473maybe-all-stageprofile-cloog: all-stageprofile-cloog
19474all-stageprofile: all-stageprofile-cloog
19475TARGET-stageprofile-cloog = $(TARGET-cloog)
19476all-stageprofile-cloog: configure-stageprofile-cloog
42f55f77
PB
19477 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
19478 @r=`${PWD_COMMAND}`; export r; \
19479 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19480 $(HOST_EXPORTS) \
19481 $(POSTSTAGE1_HOST_EXPORTS) \
311b6756 19482 cd $(HOST_SUBDIR)/cloog && \
6532abb6
PB
19483 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19484 CFLAGS="$(STAGE2_CFLAGS) -fprofile-generate" CXXFLAGS="$(STAGE2_CFLAGS) -fprofile-generate" \
455b4f90
PB
19485 LIBCFLAGS="$(STAGE2_LIBCFLAGS)" \
19486 CFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)" \
19487 CXXFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
311b6756 19488 $(TARGET-stageprofile-cloog)
42f55f77 19489
311b6756
JM
19490maybe-clean-stageprofile-cloog: clean-stageprofile-cloog
19491clean-stageprofile: clean-stageprofile-cloog
19492clean-stageprofile-cloog:
42f55f77 19493 @if [ $(current_stage) = stageprofile ]; then \
311b6756 19494 [ -f $(HOST_SUBDIR)/cloog/Makefile ] || exit 0; \
42f55f77 19495 else \
311b6756 19496 [ -f $(HOST_SUBDIR)/stageprofile-cloog/Makefile ] || exit 0; \
42f55f77
PB
19497 $(MAKE) stageprofile-start; \
19498 fi; \
311b6756 19499 cd $(HOST_SUBDIR)/cloog && \
6532abb6 19500 $(MAKE) $(EXTRA_HOST_FLAGS) \
42f55f77 19501 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 19502 clean
311b6756
JM
19503@endif cloog-bootstrap
19504
19505
19506.PHONY: all-stagefeedback-cloog maybe-all-stagefeedback-cloog
19507.PHONY: clean-stagefeedback-cloog maybe-clean-stagefeedback-cloog
19508maybe-all-stagefeedback-cloog:
19509maybe-clean-stagefeedback-cloog:
19510@if cloog-bootstrap
19511maybe-all-stagefeedback-cloog: all-stagefeedback-cloog
19512all-stagefeedback: all-stagefeedback-cloog
19513TARGET-stagefeedback-cloog = $(TARGET-cloog)
19514all-stagefeedback-cloog: configure-stagefeedback-cloog
42f55f77
PB
19515 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
19516 @r=`${PWD_COMMAND}`; export r; \
19517 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19518 $(HOST_EXPORTS) \
19519 $(POSTSTAGE1_HOST_EXPORTS) \
311b6756 19520 cd $(HOST_SUBDIR)/cloog && \
6532abb6
PB
19521 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19522 CFLAGS="$(STAGE3_CFLAGS) -fprofile-use" CXXFLAGS="$(STAGE3_CFLAGS) -fprofile-use" \
19523 LIBCFLAGS="$(STAGE3_LIBCFLAGS) -fprofile-use" \
19524 CFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS) -fprofile-use" \
19525 CXXFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS) -fprofile-use" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
311b6756 19526 $(TARGET-stagefeedback-cloog)
42f55f77 19527
311b6756
JM
19528maybe-clean-stagefeedback-cloog: clean-stagefeedback-cloog
19529clean-stagefeedback: clean-stagefeedback-cloog
19530clean-stagefeedback-cloog:
42f55f77 19531 @if [ $(current_stage) = stagefeedback ]; then \
311b6756 19532 [ -f $(HOST_SUBDIR)/cloog/Makefile ] || exit 0; \
42f55f77 19533 else \
311b6756 19534 [ -f $(HOST_SUBDIR)/stagefeedback-cloog/Makefile ] || exit 0; \
42f55f77
PB
19535 $(MAKE) stagefeedback-start; \
19536 fi; \
311b6756 19537 cd $(HOST_SUBDIR)/cloog && \
6532abb6 19538 $(MAKE) $(EXTRA_HOST_FLAGS) \
42f55f77 19539 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 19540 clean
311b6756 19541@endif cloog-bootstrap
42f55f77
PB
19542
19543
19544
19545
19546
311b6756
JM
19547.PHONY: check-cloog maybe-check-cloog
19548maybe-check-cloog:
19549@if cloog
19550maybe-check-cloog: check-cloog
42f55f77 19551
311b6756 19552check-cloog:
42f55f77
PB
19553 @: $(MAKE); $(unstage)
19554 @r=`${PWD_COMMAND}`; export r; \
19555 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19556 $(HOST_EXPORTS) \
311b6756 19557 (cd $(HOST_SUBDIR)/cloog && \
42f55f77
PB
19558 $(MAKE) $(FLAGS_TO_PASS) check)
19559
311b6756 19560@endif cloog
42f55f77 19561
311b6756
JM
19562.PHONY: install-cloog maybe-install-cloog
19563maybe-install-cloog:
19564@if cloog
19565maybe-install-cloog: install-cloog
42f55f77 19566
311b6756 19567install-cloog:
42f55f77 19568
311b6756 19569@endif cloog
42f55f77
PB
19570
19571# Other targets (info, dvi, pdf, etc.)
19572
311b6756
JM
19573.PHONY: maybe-info-cloog info-cloog
19574maybe-info-cloog:
19575@if cloog
19576maybe-info-cloog: info-cloog
42f55f77 19577
311b6756
JM
19578info-cloog: \
19579 configure-cloog
19580 @[ -f ./cloog/Makefile ] || exit 0; \
42f55f77
PB
19581 r=`${PWD_COMMAND}`; export r; \
19582 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19583 $(HOST_EXPORTS) \
19584 for flag in $(EXTRA_HOST_FLAGS) ; do \
19585 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19586 done; \
311b6756
JM
19587 echo "Doing info in cloog" ; \
19588 (cd $(HOST_SUBDIR)/cloog && \
42f55f77
PB
19589 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19590 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19591 "RANLIB=$${RANLIB}" \
bffcbe34 19592 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42f55f77
PB
19593 info) \
19594 || exit 1
19595
311b6756 19596@endif cloog
42f55f77 19597
311b6756
JM
19598.PHONY: maybe-dvi-cloog dvi-cloog
19599maybe-dvi-cloog:
19600@if cloog
19601maybe-dvi-cloog: dvi-cloog
42f55f77 19602
311b6756
JM
19603dvi-cloog: \
19604 configure-cloog
19605 @[ -f ./cloog/Makefile ] || exit 0; \
42f55f77
PB
19606 r=`${PWD_COMMAND}`; export r; \
19607 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19608 $(HOST_EXPORTS) \
19609 for flag in $(EXTRA_HOST_FLAGS) ; do \
19610 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19611 done; \
311b6756
JM
19612 echo "Doing dvi in cloog" ; \
19613 (cd $(HOST_SUBDIR)/cloog && \
42f55f77
PB
19614 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19615 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19616 "RANLIB=$${RANLIB}" \
bffcbe34 19617 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42f55f77
PB
19618 dvi) \
19619 || exit 1
19620
311b6756 19621@endif cloog
42f55f77 19622
311b6756
JM
19623.PHONY: maybe-pdf-cloog pdf-cloog
19624maybe-pdf-cloog:
19625@if cloog
19626maybe-pdf-cloog: pdf-cloog
42f55f77 19627
311b6756
JM
19628pdf-cloog: \
19629 configure-cloog
19630 @[ -f ./cloog/Makefile ] || exit 0; \
42f55f77
PB
19631 r=`${PWD_COMMAND}`; export r; \
19632 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19633 $(HOST_EXPORTS) \
19634 for flag in $(EXTRA_HOST_FLAGS) ; do \
19635 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19636 done; \
311b6756
JM
19637 echo "Doing pdf in cloog" ; \
19638 (cd $(HOST_SUBDIR)/cloog && \
42f55f77
PB
19639 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19640 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19641 "RANLIB=$${RANLIB}" \
bffcbe34 19642 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42f55f77
PB
19643 pdf) \
19644 || exit 1
19645
311b6756 19646@endif cloog
42f55f77 19647
311b6756
JM
19648.PHONY: maybe-html-cloog html-cloog
19649maybe-html-cloog:
19650@if cloog
19651maybe-html-cloog: html-cloog
42f55f77 19652
311b6756
JM
19653html-cloog: \
19654 configure-cloog
19655 @[ -f ./cloog/Makefile ] || exit 0; \
42f55f77
PB
19656 r=`${PWD_COMMAND}`; export r; \
19657 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19658 $(HOST_EXPORTS) \
19659 for flag in $(EXTRA_HOST_FLAGS) ; do \
19660 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19661 done; \
311b6756
JM
19662 echo "Doing html in cloog" ; \
19663 (cd $(HOST_SUBDIR)/cloog && \
42f55f77
PB
19664 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19665 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19666 "RANLIB=$${RANLIB}" \
bffcbe34 19667 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42f55f77
PB
19668 html) \
19669 || exit 1
19670
311b6756 19671@endif cloog
42f55f77 19672
311b6756
JM
19673.PHONY: maybe-TAGS-cloog TAGS-cloog
19674maybe-TAGS-cloog:
19675@if cloog
19676maybe-TAGS-cloog: TAGS-cloog
42f55f77 19677
311b6756
JM
19678TAGS-cloog: \
19679 configure-cloog
19680 @[ -f ./cloog/Makefile ] || exit 0; \
42f55f77
PB
19681 r=`${PWD_COMMAND}`; export r; \
19682 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19683 $(HOST_EXPORTS) \
19684 for flag in $(EXTRA_HOST_FLAGS) ; do \
19685 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19686 done; \
311b6756
JM
19687 echo "Doing TAGS in cloog" ; \
19688 (cd $(HOST_SUBDIR)/cloog && \
42f55f77
PB
19689 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19690 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19691 "RANLIB=$${RANLIB}" \
bffcbe34 19692 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42f55f77
PB
19693 TAGS) \
19694 || exit 1
19695
311b6756 19696@endif cloog
42f55f77 19697
311b6756
JM
19698.PHONY: maybe-install-info-cloog install-info-cloog
19699maybe-install-info-cloog:
19700@if cloog
19701maybe-install-info-cloog: install-info-cloog
42f55f77 19702
311b6756
JM
19703install-info-cloog: \
19704 configure-cloog \
19705 info-cloog
19706 @[ -f ./cloog/Makefile ] || exit 0; \
42f55f77
PB
19707 r=`${PWD_COMMAND}`; export r; \
19708 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19709 $(HOST_EXPORTS) \
19710 for flag in $(EXTRA_HOST_FLAGS) ; do \
19711 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19712 done; \
311b6756
JM
19713 echo "Doing install-info in cloog" ; \
19714 (cd $(HOST_SUBDIR)/cloog && \
42f55f77
PB
19715 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19716 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19717 "RANLIB=$${RANLIB}" \
bffcbe34 19718 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42f55f77
PB
19719 install-info) \
19720 || exit 1
19721
311b6756 19722@endif cloog
42f55f77 19723
311b6756
JM
19724.PHONY: maybe-install-pdf-cloog install-pdf-cloog
19725maybe-install-pdf-cloog:
19726@if cloog
19727maybe-install-pdf-cloog: install-pdf-cloog
d4954b6d 19728
311b6756
JM
19729install-pdf-cloog: \
19730 configure-cloog \
19731 pdf-cloog
19732 @[ -f ./cloog/Makefile ] || exit 0; \
d4954b6d
DD
19733 r=`${PWD_COMMAND}`; export r; \
19734 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19735 $(HOST_EXPORTS) \
19736 for flag in $(EXTRA_HOST_FLAGS) ; do \
19737 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19738 done; \
311b6756
JM
19739 echo "Doing install-pdf in cloog" ; \
19740 (cd $(HOST_SUBDIR)/cloog && \
d4954b6d
DD
19741 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19742 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19743 "RANLIB=$${RANLIB}" \
bffcbe34 19744 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
19745 install-pdf) \
19746 || exit 1
19747
311b6756 19748@endif cloog
d4954b6d 19749
311b6756
JM
19750.PHONY: maybe-install-html-cloog install-html-cloog
19751maybe-install-html-cloog:
19752@if cloog
19753maybe-install-html-cloog: install-html-cloog
42f55f77 19754
311b6756
JM
19755install-html-cloog: \
19756 configure-cloog \
19757 html-cloog
19758 @[ -f ./cloog/Makefile ] || exit 0; \
42f55f77
PB
19759 r=`${PWD_COMMAND}`; export r; \
19760 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19761 $(HOST_EXPORTS) \
19762 for flag in $(EXTRA_HOST_FLAGS) ; do \
19763 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19764 done; \
311b6756
JM
19765 echo "Doing install-html in cloog" ; \
19766 (cd $(HOST_SUBDIR)/cloog && \
42f55f77
PB
19767 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19768 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19769 "RANLIB=$${RANLIB}" \
bffcbe34 19770 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42f55f77
PB
19771 install-html) \
19772 || exit 1
19773
311b6756 19774@endif cloog
42f55f77 19775
311b6756
JM
19776.PHONY: maybe-installcheck-cloog installcheck-cloog
19777maybe-installcheck-cloog:
19778@if cloog
19779maybe-installcheck-cloog: installcheck-cloog
42f55f77 19780
311b6756
JM
19781installcheck-cloog: \
19782 configure-cloog
19783 @[ -f ./cloog/Makefile ] || exit 0; \
42f55f77
PB
19784 r=`${PWD_COMMAND}`; export r; \
19785 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19786 $(HOST_EXPORTS) \
19787 for flag in $(EXTRA_HOST_FLAGS) ; do \
19788 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19789 done; \
311b6756
JM
19790 echo "Doing installcheck in cloog" ; \
19791 (cd $(HOST_SUBDIR)/cloog && \
42f55f77
PB
19792 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19793 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19794 "RANLIB=$${RANLIB}" \
bffcbe34 19795 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42f55f77
PB
19796 installcheck) \
19797 || exit 1
19798
311b6756 19799@endif cloog
42f55f77 19800
311b6756
JM
19801.PHONY: maybe-mostlyclean-cloog mostlyclean-cloog
19802maybe-mostlyclean-cloog:
19803@if cloog
19804maybe-mostlyclean-cloog: mostlyclean-cloog
42f55f77 19805
311b6756
JM
19806mostlyclean-cloog:
19807 @[ -f ./cloog/Makefile ] || exit 0; \
42f55f77
PB
19808 r=`${PWD_COMMAND}`; export r; \
19809 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19810 $(HOST_EXPORTS) \
19811 for flag in $(EXTRA_HOST_FLAGS) ; do \
19812 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19813 done; \
311b6756
JM
19814 echo "Doing mostlyclean in cloog" ; \
19815 (cd $(HOST_SUBDIR)/cloog && \
42f55f77
PB
19816 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19817 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19818 "RANLIB=$${RANLIB}" \
bffcbe34 19819 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42f55f77
PB
19820 mostlyclean) \
19821 || exit 1
19822
311b6756 19823@endif cloog
42f55f77 19824
311b6756
JM
19825.PHONY: maybe-clean-cloog clean-cloog
19826maybe-clean-cloog:
19827@if cloog
19828maybe-clean-cloog: clean-cloog
42f55f77 19829
311b6756
JM
19830clean-cloog:
19831 @[ -f ./cloog/Makefile ] || exit 0; \
42f55f77
PB
19832 r=`${PWD_COMMAND}`; export r; \
19833 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19834 $(HOST_EXPORTS) \
19835 for flag in $(EXTRA_HOST_FLAGS) ; do \
19836 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19837 done; \
311b6756
JM
19838 echo "Doing clean in cloog" ; \
19839 (cd $(HOST_SUBDIR)/cloog && \
42f55f77
PB
19840 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19841 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19842 "RANLIB=$${RANLIB}" \
bffcbe34 19843 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42f55f77
PB
19844 clean) \
19845 || exit 1
19846
311b6756 19847@endif cloog
42f55f77 19848
311b6756
JM
19849.PHONY: maybe-distclean-cloog distclean-cloog
19850maybe-distclean-cloog:
19851@if cloog
19852maybe-distclean-cloog: distclean-cloog
42f55f77 19853
311b6756
JM
19854distclean-cloog:
19855 @[ -f ./cloog/Makefile ] || exit 0; \
42f55f77
PB
19856 r=`${PWD_COMMAND}`; export r; \
19857 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19858 $(HOST_EXPORTS) \
19859 for flag in $(EXTRA_HOST_FLAGS) ; do \
19860 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19861 done; \
311b6756
JM
19862 echo "Doing distclean in cloog" ; \
19863 (cd $(HOST_SUBDIR)/cloog && \
42f55f77
PB
19864 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19865 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19866 "RANLIB=$${RANLIB}" \
bffcbe34 19867 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42f55f77
PB
19868 distclean) \
19869 || exit 1
19870
311b6756 19871@endif cloog
42f55f77 19872
311b6756
JM
19873.PHONY: maybe-maintainer-clean-cloog maintainer-clean-cloog
19874maybe-maintainer-clean-cloog:
19875@if cloog
19876maybe-maintainer-clean-cloog: maintainer-clean-cloog
42f55f77 19877
311b6756
JM
19878maintainer-clean-cloog:
19879 @[ -f ./cloog/Makefile ] || exit 0; \
42f55f77
PB
19880 r=`${PWD_COMMAND}`; export r; \
19881 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19882 $(HOST_EXPORTS) \
19883 for flag in $(EXTRA_HOST_FLAGS) ; do \
19884 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19885 done; \
311b6756
JM
19886 echo "Doing maintainer-clean in cloog" ; \
19887 (cd $(HOST_SUBDIR)/cloog && \
42f55f77
PB
19888 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19889 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19890 "RANLIB=$${RANLIB}" \
bffcbe34 19891 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42f55f77
PB
19892 maintainer-clean) \
19893 || exit 1
19894
311b6756 19895@endif cloog
42f55f77
PB
19896
19897
19898
d5eec917
PB
19899.PHONY: configure-gnuserv maybe-configure-gnuserv
19900maybe-configure-gnuserv:
e1e5148c
CD
19901@if gcc-bootstrap
19902configure-gnuserv: stage_current
19903@endif gcc-bootstrap
d5eec917
PB
19904@if gnuserv
19905maybe-configure-gnuserv: configure-gnuserv
ec92c4d6 19906configure-gnuserv:
15b527ca 19907 @: $(MAKE); $(unstage)
ec92c4d6 19908 @r=`${PWD_COMMAND}`; export r; \
8ec98d6c 19909 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
19910 test ! -f $(HOST_SUBDIR)/gnuserv/Makefile || exit 0; \
19911 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gnuserv ; \
a675b75a 19912 $(HOST_EXPORTS) \
f0fdfd34
PB
19913 echo Configuring in $(HOST_SUBDIR)/gnuserv; \
19914 cd "$(HOST_SUBDIR)/gnuserv" || exit 1; \
8ec98d6c 19915 case $(srcdir) in \
7fc2ca22
PB
19916 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19917 *) topdir=`echo $(HOST_SUBDIR)/gnuserv/ | \
19918 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 19919 esac; \
7fc2ca22
PB
19920 srcdiroption="--srcdir=$${topdir}/gnuserv"; \
19921 libsrcdir="$$s/gnuserv"; \
8ec98d6c 19922 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
19923 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
19924 --target=${target_alias} $${srcdiroption} \
657b58f4 19925 || exit 1
d5eec917 19926@endif gnuserv
657b58f4 19927
f0fdfd34
PB
19928
19929
a8a96878
PB
19930
19931
d5eec917
PB
19932.PHONY: all-gnuserv maybe-all-gnuserv
19933maybe-all-gnuserv:
e1e5148c
CD
19934@if gcc-bootstrap
19935all-gnuserv: stage_current
19936@endif gcc-bootstrap
d5eec917 19937@if gnuserv
5e6b1f07 19938TARGET-gnuserv=all
d5eec917
PB
19939maybe-all-gnuserv: all-gnuserv
19940all-gnuserv: configure-gnuserv
15b527ca 19941 @: $(MAKE); $(unstage)
8ec98d6c
NN
19942 @r=`${PWD_COMMAND}`; export r; \
19943 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 19944 $(HOST_EXPORTS) \
7fc2ca22 19945 (cd $(HOST_SUBDIR)/gnuserv && \
6532abb6
PB
19946 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
19947 $(TARGET-gnuserv))
d5eec917 19948@endif gnuserv
657b58f4 19949
f0fdfd34 19950
a8a96878
PB
19951
19952
d5eec917
PB
19953.PHONY: check-gnuserv maybe-check-gnuserv
19954maybe-check-gnuserv:
19955@if gnuserv
19956maybe-check-gnuserv: check-gnuserv
657b58f4 19957
d5eec917 19958check-gnuserv:
15b527ca 19959 @: $(MAKE); $(unstage)
8ec98d6c 19960 @r=`${PWD_COMMAND}`; export r; \
5230d454 19961 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 19962 $(HOST_EXPORTS) \
7fc2ca22
PB
19963 (cd $(HOST_SUBDIR)/gnuserv && \
19964 $(MAKE) $(FLAGS_TO_PASS) check)
657b58f4 19965
d5eec917 19966@endif gnuserv
657b58f4 19967
d5eec917
PB
19968.PHONY: install-gnuserv maybe-install-gnuserv
19969maybe-install-gnuserv:
19970@if gnuserv
19971maybe-install-gnuserv: install-gnuserv
657b58f4 19972
d5eec917 19973install-gnuserv: installdirs
15b527ca 19974 @: $(MAKE); $(unstage)
8ec98d6c 19975 @r=`${PWD_COMMAND}`; export r; \
5230d454 19976 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 19977 $(HOST_EXPORTS) \
7fc2ca22 19978 (cd $(HOST_SUBDIR)/gnuserv && \
93c60b6d 19979 $(MAKE) $(FLAGS_TO_PASS) install)
657b58f4 19980
d5eec917 19981@endif gnuserv
657b58f4 19982
39bbbb69 19983# Other targets (info, dvi, pdf, etc.)
657b58f4 19984
d5eec917
PB
19985.PHONY: maybe-info-gnuserv info-gnuserv
19986maybe-info-gnuserv:
19987@if gnuserv
19988maybe-info-gnuserv: info-gnuserv
8ec98d6c 19989
d5eec917
PB
19990info-gnuserv: \
19991 configure-gnuserv
15b527ca 19992 @: $(MAKE); $(unstage)
d5eec917 19993 @[ -f ./gnuserv/Makefile ] || exit 0; \
5230d454
L
19994 r=`${PWD_COMMAND}`; export r; \
19995 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 19996 $(HOST_EXPORTS) \
d5eec917 19997 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
19998 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19999 done; \
d5eec917 20000 echo "Doing info in gnuserv" ; \
7fc2ca22 20001 (cd $(HOST_SUBDIR)/gnuserv && \
657b58f4
NN
20002 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20003 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20004 "RANLIB=$${RANLIB}" \
bffcbe34 20005 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 20006 info) \
657b58f4
NN
20007 || exit 1
20008
d5eec917 20009@endif gnuserv
657b58f4 20010
d5eec917
PB
20011.PHONY: maybe-dvi-gnuserv dvi-gnuserv
20012maybe-dvi-gnuserv:
20013@if gnuserv
20014maybe-dvi-gnuserv: dvi-gnuserv
657b58f4 20015
d5eec917
PB
20016dvi-gnuserv: \
20017 configure-gnuserv
15b527ca 20018 @: $(MAKE); $(unstage)
d5eec917 20019 @[ -f ./gnuserv/Makefile ] || exit 0; \
5230d454
L
20020 r=`${PWD_COMMAND}`; export r; \
20021 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 20022 $(HOST_EXPORTS) \
d5eec917 20023 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
20024 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20025 done; \
d5eec917 20026 echo "Doing dvi in gnuserv" ; \
7fc2ca22 20027 (cd $(HOST_SUBDIR)/gnuserv && \
657b58f4
NN
20028 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20029 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20030 "RANLIB=$${RANLIB}" \
bffcbe34 20031 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 20032 dvi) \
657b58f4
NN
20033 || exit 1
20034
d5eec917 20035@endif gnuserv
657b58f4 20036
39bbbb69
DD
20037.PHONY: maybe-pdf-gnuserv pdf-gnuserv
20038maybe-pdf-gnuserv:
20039@if gnuserv
20040maybe-pdf-gnuserv: pdf-gnuserv
20041
20042pdf-gnuserv: \
20043 configure-gnuserv
20044 @: $(MAKE); $(unstage)
20045 @[ -f ./gnuserv/Makefile ] || exit 0; \
20046 r=`${PWD_COMMAND}`; export r; \
20047 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20048 $(HOST_EXPORTS) \
20049 for flag in $(EXTRA_HOST_FLAGS) ; do \
20050 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20051 done; \
20052 echo "Doing pdf in gnuserv" ; \
20053 (cd $(HOST_SUBDIR)/gnuserv && \
20054 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20055 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20056 "RANLIB=$${RANLIB}" \
bffcbe34 20057 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
20058 pdf) \
20059 || exit 1
20060
20061@endif gnuserv
20062
b6fb961f
MS
20063.PHONY: maybe-html-gnuserv html-gnuserv
20064maybe-html-gnuserv:
20065@if gnuserv
20066maybe-html-gnuserv: html-gnuserv
20067
20068html-gnuserv: \
20069 configure-gnuserv
15b527ca 20070 @: $(MAKE); $(unstage)
b6fb961f
MS
20071 @[ -f ./gnuserv/Makefile ] || exit 0; \
20072 r=`${PWD_COMMAND}`; export r; \
20073 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
20074 $(HOST_EXPORTS) \
20075 for flag in $(EXTRA_HOST_FLAGS) ; do \
20076 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20077 done; \
20078 echo "Doing html in gnuserv" ; \
7fc2ca22 20079 (cd $(HOST_SUBDIR)/gnuserv && \
b6fb961f
MS
20080 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20081 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20082 "RANLIB=$${RANLIB}" \
bffcbe34 20083 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
20084 html) \
20085 || exit 1
20086
20087@endif gnuserv
20088
d5eec917
PB
20089.PHONY: maybe-TAGS-gnuserv TAGS-gnuserv
20090maybe-TAGS-gnuserv:
20091@if gnuserv
20092maybe-TAGS-gnuserv: TAGS-gnuserv
657b58f4 20093
d5eec917
PB
20094TAGS-gnuserv: \
20095 configure-gnuserv
15b527ca 20096 @: $(MAKE); $(unstage)
d5eec917 20097 @[ -f ./gnuserv/Makefile ] || exit 0; \
5230d454
L
20098 r=`${PWD_COMMAND}`; export r; \
20099 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 20100 $(HOST_EXPORTS) \
d5eec917 20101 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
20102 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20103 done; \
d5eec917 20104 echo "Doing TAGS in gnuserv" ; \
7fc2ca22 20105 (cd $(HOST_SUBDIR)/gnuserv && \
657b58f4
NN
20106 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20107 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20108 "RANLIB=$${RANLIB}" \
bffcbe34 20109 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 20110 TAGS) \
657b58f4
NN
20111 || exit 1
20112
d5eec917 20113@endif gnuserv
657b58f4 20114
d5eec917
PB
20115.PHONY: maybe-install-info-gnuserv install-info-gnuserv
20116maybe-install-info-gnuserv:
20117@if gnuserv
20118maybe-install-info-gnuserv: install-info-gnuserv
657b58f4 20119
d5eec917
PB
20120install-info-gnuserv: \
20121 configure-gnuserv \
20122 info-gnuserv
15b527ca 20123 @: $(MAKE); $(unstage)
d5eec917 20124 @[ -f ./gnuserv/Makefile ] || exit 0; \
5230d454
L
20125 r=`${PWD_COMMAND}`; export r; \
20126 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 20127 $(HOST_EXPORTS) \
d5eec917 20128 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
20129 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20130 done; \
d5eec917 20131 echo "Doing install-info in gnuserv" ; \
7fc2ca22 20132 (cd $(HOST_SUBDIR)/gnuserv && \
657b58f4
NN
20133 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20134 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20135 "RANLIB=$${RANLIB}" \
bffcbe34 20136 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 20137 install-info) \
657b58f4
NN
20138 || exit 1
20139
d5eec917 20140@endif gnuserv
657b58f4 20141
d4954b6d
DD
20142.PHONY: maybe-install-pdf-gnuserv install-pdf-gnuserv
20143maybe-install-pdf-gnuserv:
20144@if gnuserv
20145maybe-install-pdf-gnuserv: install-pdf-gnuserv
20146
20147install-pdf-gnuserv: \
20148 configure-gnuserv \
20149 pdf-gnuserv
20150 @: $(MAKE); $(unstage)
20151 @[ -f ./gnuserv/Makefile ] || exit 0; \
20152 r=`${PWD_COMMAND}`; export r; \
20153 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20154 $(HOST_EXPORTS) \
20155 for flag in $(EXTRA_HOST_FLAGS) ; do \
20156 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20157 done; \
20158 echo "Doing install-pdf in gnuserv" ; \
20159 (cd $(HOST_SUBDIR)/gnuserv && \
20160 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20161 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20162 "RANLIB=$${RANLIB}" \
bffcbe34 20163 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
20164 install-pdf) \
20165 || exit 1
20166
20167@endif gnuserv
20168
83c9add4
CD
20169.PHONY: maybe-install-html-gnuserv install-html-gnuserv
20170maybe-install-html-gnuserv:
20171@if gnuserv
20172maybe-install-html-gnuserv: install-html-gnuserv
20173
20174install-html-gnuserv: \
20175 configure-gnuserv \
20176 html-gnuserv
20177 @: $(MAKE); $(unstage)
20178 @[ -f ./gnuserv/Makefile ] || exit 0; \
20179 r=`${PWD_COMMAND}`; export r; \
20180 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20181 $(HOST_EXPORTS) \
20182 for flag in $(EXTRA_HOST_FLAGS) ; do \
20183 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20184 done; \
20185 echo "Doing install-html in gnuserv" ; \
20186 (cd $(HOST_SUBDIR)/gnuserv && \
20187 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20188 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20189 "RANLIB=$${RANLIB}" \
bffcbe34 20190 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
20191 install-html) \
20192 || exit 1
20193
20194@endif gnuserv
20195
d5eec917
PB
20196.PHONY: maybe-installcheck-gnuserv installcheck-gnuserv
20197maybe-installcheck-gnuserv:
20198@if gnuserv
20199maybe-installcheck-gnuserv: installcheck-gnuserv
657b58f4 20200
d5eec917
PB
20201installcheck-gnuserv: \
20202 configure-gnuserv
15b527ca 20203 @: $(MAKE); $(unstage)
d5eec917 20204 @[ -f ./gnuserv/Makefile ] || exit 0; \
5230d454
L
20205 r=`${PWD_COMMAND}`; export r; \
20206 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 20207 $(HOST_EXPORTS) \
d5eec917 20208 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
20209 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20210 done; \
d5eec917 20211 echo "Doing installcheck in gnuserv" ; \
7fc2ca22 20212 (cd $(HOST_SUBDIR)/gnuserv && \
657b58f4
NN
20213 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20214 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20215 "RANLIB=$${RANLIB}" \
bffcbe34 20216 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 20217 installcheck) \
657b58f4
NN
20218 || exit 1
20219
d5eec917 20220@endif gnuserv
657b58f4 20221
d5eec917
PB
20222.PHONY: maybe-mostlyclean-gnuserv mostlyclean-gnuserv
20223maybe-mostlyclean-gnuserv:
20224@if gnuserv
20225maybe-mostlyclean-gnuserv: mostlyclean-gnuserv
657b58f4 20226
d5eec917 20227mostlyclean-gnuserv:
15b527ca 20228 @: $(MAKE); $(unstage)
d5eec917 20229 @[ -f ./gnuserv/Makefile ] || exit 0; \
5230d454
L
20230 r=`${PWD_COMMAND}`; export r; \
20231 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 20232 $(HOST_EXPORTS) \
d5eec917 20233 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
20234 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20235 done; \
d5eec917 20236 echo "Doing mostlyclean in gnuserv" ; \
7fc2ca22 20237 (cd $(HOST_SUBDIR)/gnuserv && \
657b58f4
NN
20238 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20239 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20240 "RANLIB=$${RANLIB}" \
bffcbe34 20241 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 20242 mostlyclean) \
657b58f4
NN
20243 || exit 1
20244
d5eec917 20245@endif gnuserv
657b58f4 20246
d5eec917
PB
20247.PHONY: maybe-clean-gnuserv clean-gnuserv
20248maybe-clean-gnuserv:
20249@if gnuserv
20250maybe-clean-gnuserv: clean-gnuserv
657b58f4 20251
d5eec917 20252clean-gnuserv:
15b527ca 20253 @: $(MAKE); $(unstage)
d5eec917 20254 @[ -f ./gnuserv/Makefile ] || exit 0; \
5230d454
L
20255 r=`${PWD_COMMAND}`; export r; \
20256 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 20257 $(HOST_EXPORTS) \
d5eec917 20258 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
20259 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20260 done; \
d5eec917 20261 echo "Doing clean in gnuserv" ; \
7fc2ca22 20262 (cd $(HOST_SUBDIR)/gnuserv && \
657b58f4
NN
20263 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20264 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20265 "RANLIB=$${RANLIB}" \
bffcbe34 20266 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 20267 clean) \
657b58f4
NN
20268 || exit 1
20269
d5eec917 20270@endif gnuserv
657b58f4 20271
d5eec917
PB
20272.PHONY: maybe-distclean-gnuserv distclean-gnuserv
20273maybe-distclean-gnuserv:
20274@if gnuserv
20275maybe-distclean-gnuserv: distclean-gnuserv
657b58f4 20276
d5eec917 20277distclean-gnuserv:
15b527ca 20278 @: $(MAKE); $(unstage)
d5eec917 20279 @[ -f ./gnuserv/Makefile ] || exit 0; \
5230d454
L
20280 r=`${PWD_COMMAND}`; export r; \
20281 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 20282 $(HOST_EXPORTS) \
d5eec917 20283 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
20284 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20285 done; \
d5eec917 20286 echo "Doing distclean in gnuserv" ; \
7fc2ca22 20287 (cd $(HOST_SUBDIR)/gnuserv && \
657b58f4
NN
20288 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20289 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20290 "RANLIB=$${RANLIB}" \
bffcbe34 20291 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 20292 distclean) \
657b58f4
NN
20293 || exit 1
20294
d5eec917 20295@endif gnuserv
657b58f4 20296
d5eec917
PB
20297.PHONY: maybe-maintainer-clean-gnuserv maintainer-clean-gnuserv
20298maybe-maintainer-clean-gnuserv:
20299@if gnuserv
20300maybe-maintainer-clean-gnuserv: maintainer-clean-gnuserv
657b58f4 20301
d5eec917 20302maintainer-clean-gnuserv:
15b527ca 20303 @: $(MAKE); $(unstage)
d5eec917 20304 @[ -f ./gnuserv/Makefile ] || exit 0; \
5230d454
L
20305 r=`${PWD_COMMAND}`; export r; \
20306 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 20307 $(HOST_EXPORTS) \
d5eec917 20308 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
20309 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20310 done; \
d5eec917 20311 echo "Doing maintainer-clean in gnuserv" ; \
7fc2ca22 20312 (cd $(HOST_SUBDIR)/gnuserv && \
657b58f4
NN
20313 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20314 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20315 "RANLIB=$${RANLIB}" \
bffcbe34 20316 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 20317 maintainer-clean) \
657b58f4
NN
20318 || exit 1
20319
d5eec917 20320@endif gnuserv
657b58f4 20321
657b58f4 20322
f0fdfd34 20323
b916272a
ILT
20324.PHONY: configure-gold maybe-configure-gold
20325maybe-configure-gold:
20326@if gcc-bootstrap
20327configure-gold: stage_current
20328@endif gcc-bootstrap
20329@if gold
20330maybe-configure-gold: configure-gold
20331configure-gold:
20332 @r=`${PWD_COMMAND}`; export r; \
20333 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20334 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
20335 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold ; \
20336 $(HOST_EXPORTS) \
20337 echo Configuring in $(HOST_SUBDIR)/gold; \
20338 cd "$(HOST_SUBDIR)/gold" || exit 1; \
20339 case $(srcdir) in \
20340 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
20341 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
20342 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20343 esac; \
20344 srcdiroption="--srcdir=$${topdir}/gold"; \
20345 libsrcdir="$$s/gold"; \
20346 $(SHELL) $${libsrcdir}/configure \
20347 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
20348 --target=${target_alias} $${srcdiroption} \
20349 || exit 1
20350@endif gold
20351
20352
20353
20354.PHONY: configure-stage1-gold maybe-configure-stage1-gold
20355maybe-configure-stage1-gold:
20356@if gold-bootstrap
20357maybe-configure-stage1-gold: configure-stage1-gold
20358configure-stage1-gold:
20359 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
20360 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
20361 @r=`${PWD_COMMAND}`; export r; \
20362 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20363 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
20364 $(HOST_EXPORTS) \
20365 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
20366 CXXFLAGS="$(STAGE1_CFLAGS)"; export CXXFLAGS; \
20367 echo Configuring stage 1 in $(HOST_SUBDIR)/gold ; \
20368 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold ; \
20369 cd $(HOST_SUBDIR)/gold || exit 1; \
20370 case $(srcdir) in \
20371 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
20372 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
20373 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20374 esac; \
20375 srcdiroption="--srcdir=$${topdir}/gold"; \
20376 libsrcdir="$$s/gold"; \
20377 $(SHELL) $${libsrcdir}/configure \
20378 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
20379 --target=${target_alias} $${srcdiroption} \
20380 \
20381 --disable-intermodule $(STAGE1_CHECKING) --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
20382@endif gold-bootstrap
20383
20384.PHONY: configure-stage2-gold maybe-configure-stage2-gold
20385maybe-configure-stage2-gold:
20386@if gold-bootstrap
20387maybe-configure-stage2-gold: configure-stage2-gold
20388configure-stage2-gold:
20389 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
20390 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
20391 @r=`${PWD_COMMAND}`; export r; \
20392 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20393 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
20394 $(HOST_EXPORTS) \
20395 $(POSTSTAGE1_HOST_EXPORTS) \
20396 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
20397 CXXFLAGS="$(STAGE2_CFLAGS)"; export CXXFLAGS; \
20398 echo Configuring stage 2 in $(HOST_SUBDIR)/gold ; \
20399 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold ; \
20400 cd $(HOST_SUBDIR)/gold || exit 1; \
20401 case $(srcdir) in \
20402 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
20403 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
20404 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20405 esac; \
20406 srcdiroption="--srcdir=$${topdir}/gold"; \
20407 libsrcdir="$$s/gold"; \
20408 $(SHELL) $${libsrcdir}/configure \
20409 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
20410 --target=${target_alias} $${srcdiroption} \
20411 --with-build-libsubdir=$(HOST_SUBDIR) \
20412 @stage2_werror_flag@
20413@endif gold-bootstrap
20414
20415.PHONY: configure-stageb2g0-gold maybe-configure-stageb2g0-gold
20416maybe-configure-stageb2g0-gold:
20417@if gold-bootstrap
20418maybe-configure-stageb2g0-gold: configure-stageb2g0-gold
20419configure-stageb2g0-gold:
20420 @[ $(current_stage) = stageb2g0 ] || $(MAKE) stageb2g0-start
20421 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
20422 @r=`${PWD_COMMAND}`; export r; \
20423 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20424 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
20425 $(HOST_EXPORTS) \
20426 $(POSTSTAGE1_HOST_EXPORTS) \
20427 CFLAGS="$(STAGE2_CFLAGS) -g0"; export CFLAGS; \
20428 CXXFLAGS="$(STAGE2_CFLAGS) -g0"; export CXXFLAGS; \
20429 echo Configuring stage b2g0 in $(HOST_SUBDIR)/gold ; \
20430 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold ; \
20431 cd $(HOST_SUBDIR)/gold || exit 1; \
20432 case $(srcdir) in \
20433 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
20434 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
20435 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20436 esac; \
20437 srcdiroption="--srcdir=$${topdir}/gold"; \
20438 libsrcdir="$$s/gold"; \
20439 $(SHELL) $${libsrcdir}/configure \
20440 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
20441 --target=${target_alias} $${srcdiroption} \
20442 --with-build-libsubdir=$(HOST_SUBDIR) \
20443 @stage2_werror_flag@
20444@endif gold-bootstrap
20445
20446.PHONY: configure-stage3-gold maybe-configure-stage3-gold
20447maybe-configure-stage3-gold:
20448@if gold-bootstrap
20449maybe-configure-stage3-gold: configure-stage3-gold
20450configure-stage3-gold:
20451 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
20452 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
20453 @r=`${PWD_COMMAND}`; export r; \
20454 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20455 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
20456 $(HOST_EXPORTS) \
20457 $(POSTSTAGE1_HOST_EXPORTS) \
20458 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
20459 CXXFLAGS="$(STAGE3_CFLAGS)"; export CXXFLAGS; \
20460 echo Configuring stage 3 in $(HOST_SUBDIR)/gold ; \
20461 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold ; \
20462 cd $(HOST_SUBDIR)/gold || exit 1; \
20463 case $(srcdir) in \
20464 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
20465 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
20466 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20467 esac; \
20468 srcdiroption="--srcdir=$${topdir}/gold"; \
20469 libsrcdir="$$s/gold"; \
20470 $(SHELL) $${libsrcdir}/configure \
20471 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
20472 --target=${target_alias} $${srcdiroption} \
20473 --with-build-libsubdir=$(HOST_SUBDIR) \
20474 @stage2_werror_flag@
20475@endif gold-bootstrap
20476
20477.PHONY: configure-stageb3g2-gold maybe-configure-stageb3g2-gold
20478maybe-configure-stageb3g2-gold:
20479@if gold-bootstrap
20480maybe-configure-stageb3g2-gold: configure-stageb3g2-gold
20481configure-stageb3g2-gold:
20482 @[ $(current_stage) = stageb3g2 ] || $(MAKE) stageb3g2-start
20483 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
20484 @r=`${PWD_COMMAND}`; export r; \
20485 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20486 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
20487 $(HOST_EXPORTS) \
20488 $(POSTSTAGE1_HOST_EXPORTS) \
20489 CFLAGS="$(STAGE3_CFLAGS) -g2"; export CFLAGS; \
20490 CXXFLAGS="$(STAGE3_CFLAGS) -g2"; export CXXFLAGS; \
20491 echo Configuring stage b3g2 in $(HOST_SUBDIR)/gold ; \
20492 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold ; \
20493 cd $(HOST_SUBDIR)/gold || exit 1; \
20494 case $(srcdir) in \
20495 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
20496 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
20497 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20498 esac; \
20499 srcdiroption="--srcdir=$${topdir}/gold"; \
20500 libsrcdir="$$s/gold"; \
20501 $(SHELL) $${libsrcdir}/configure \
20502 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
20503 --target=${target_alias} $${srcdiroption} \
20504 --with-build-libsubdir=$(HOST_SUBDIR) \
20505 @stage2_werror_flag@
20506@endif gold-bootstrap
20507
20508.PHONY: configure-stage4-gold maybe-configure-stage4-gold
20509maybe-configure-stage4-gold:
20510@if gold-bootstrap
20511maybe-configure-stage4-gold: configure-stage4-gold
20512configure-stage4-gold:
20513 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
20514 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
20515 @r=`${PWD_COMMAND}`; export r; \
20516 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20517 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
20518 $(HOST_EXPORTS) \
20519 $(POSTSTAGE1_HOST_EXPORTS) \
20520 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
20521 CXXFLAGS="$(STAGE4_CFLAGS)"; export CXXFLAGS; \
20522 echo Configuring stage 4 in $(HOST_SUBDIR)/gold ; \
20523 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold ; \
20524 cd $(HOST_SUBDIR)/gold || exit 1; \
20525 case $(srcdir) in \
20526 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
20527 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
20528 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20529 esac; \
20530 srcdiroption="--srcdir=$${topdir}/gold"; \
20531 libsrcdir="$$s/gold"; \
20532 $(SHELL) $${libsrcdir}/configure \
20533 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
20534 --target=${target_alias} $${srcdiroption} \
20535 --with-build-libsubdir=$(HOST_SUBDIR) \
20536 @stage2_werror_flag@
20537@endif gold-bootstrap
20538
20539.PHONY: configure-stageprofile-gold maybe-configure-stageprofile-gold
20540maybe-configure-stageprofile-gold:
20541@if gold-bootstrap
20542maybe-configure-stageprofile-gold: configure-stageprofile-gold
20543configure-stageprofile-gold:
20544 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
20545 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
20546 @r=`${PWD_COMMAND}`; export r; \
20547 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20548 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
20549 $(HOST_EXPORTS) \
20550 $(POSTSTAGE1_HOST_EXPORTS) \
20551 CFLAGS="$(STAGE2_CFLAGS) -fprofile-generate"; export CFLAGS; \
20552 CXXFLAGS="$(STAGE2_CFLAGS) -fprofile-generate"; export CXXFLAGS; \
20553 echo Configuring stage profile in $(HOST_SUBDIR)/gold ; \
20554 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold ; \
20555 cd $(HOST_SUBDIR)/gold || exit 1; \
20556 case $(srcdir) in \
20557 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
20558 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
20559 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20560 esac; \
20561 srcdiroption="--srcdir=$${topdir}/gold"; \
20562 libsrcdir="$$s/gold"; \
20563 $(SHELL) $${libsrcdir}/configure \
20564 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
20565 --target=${target_alias} $${srcdiroption} \
20566 --with-build-libsubdir=$(HOST_SUBDIR) \
20567 @stage2_werror_flag@
20568@endif gold-bootstrap
20569
20570.PHONY: configure-stagefeedback-gold maybe-configure-stagefeedback-gold
20571maybe-configure-stagefeedback-gold:
20572@if gold-bootstrap
20573maybe-configure-stagefeedback-gold: configure-stagefeedback-gold
20574configure-stagefeedback-gold:
20575 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
20576 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
20577 @r=`${PWD_COMMAND}`; export r; \
20578 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20579 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
20580 $(HOST_EXPORTS) \
20581 $(POSTSTAGE1_HOST_EXPORTS) \
20582 CFLAGS="$(STAGE3_CFLAGS) -fprofile-use"; export CFLAGS; \
20583 CXXFLAGS="$(STAGE3_CFLAGS) -fprofile-use"; export CXXFLAGS; \
20584 echo Configuring stage feedback in $(HOST_SUBDIR)/gold ; \
20585 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold ; \
20586 cd $(HOST_SUBDIR)/gold || exit 1; \
20587 case $(srcdir) in \
20588 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
20589 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
20590 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20591 esac; \
20592 srcdiroption="--srcdir=$${topdir}/gold"; \
20593 libsrcdir="$$s/gold"; \
20594 $(SHELL) $${libsrcdir}/configure \
20595 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
20596 --target=${target_alias} $${srcdiroption} \
20597 --with-build-libsubdir=$(HOST_SUBDIR) \
20598 @stage2_werror_flag@
20599@endif gold-bootstrap
20600
20601
20602
20603
20604
20605.PHONY: all-gold maybe-all-gold
20606maybe-all-gold:
20607@if gcc-bootstrap
20608all-gold: stage_current
20609@endif gcc-bootstrap
20610@if gold
20611TARGET-gold=all
20612maybe-all-gold: all-gold
20613all-gold: configure-gold
20614 @r=`${PWD_COMMAND}`; export r; \
20615 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20616 $(HOST_EXPORTS) \
20617 (cd $(HOST_SUBDIR)/gold && \
20618 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
20619 $(TARGET-gold))
20620@endif gold
20621
20622
20623
20624.PHONY: all-stage1-gold maybe-all-stage1-gold
20625.PHONY: clean-stage1-gold maybe-clean-stage1-gold
20626maybe-all-stage1-gold:
20627maybe-clean-stage1-gold:
20628@if gold-bootstrap
20629maybe-all-stage1-gold: all-stage1-gold
20630all-stage1: all-stage1-gold
20631TARGET-stage1-gold = $(TARGET-gold)
20632all-stage1-gold: configure-stage1-gold
20633 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
20634 @r=`${PWD_COMMAND}`; export r; \
20635 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20636 $(HOST_EXPORTS) \
20637 cd $(HOST_SUBDIR)/gold && \
20638 $(MAKE) $(BASE_FLAGS_TO_PASS) \
20639 CFLAGS="$(STAGE1_CFLAGS)" CXXFLAGS="$(STAGE1_CFLAGS)" \
20640 LIBCFLAGS="$(STAGE1_LIBCFLAGS)" \
20641 CFLAGS_FOR_TARGET="$(STAGE1_LIBCFLAGS)" \
20642 CXXFLAGS_FOR_TARGET="$(STAGE1_LIBCFLAGS)" $(EXTRA_HOST_FLAGS) \
20643 $(TARGET-stage1-gold)
20644
20645maybe-clean-stage1-gold: clean-stage1-gold
20646clean-stage1: clean-stage1-gold
20647clean-stage1-gold:
20648 @if [ $(current_stage) = stage1 ]; then \
20649 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
20650 else \
20651 [ -f $(HOST_SUBDIR)/stage1-gold/Makefile ] || exit 0; \
20652 $(MAKE) stage1-start; \
20653 fi; \
20654 cd $(HOST_SUBDIR)/gold && \
20655 $(MAKE) $(EXTRA_HOST_FLAGS) \
20656 clean
20657@endif gold-bootstrap
20658
20659
20660.PHONY: all-stage2-gold maybe-all-stage2-gold
20661.PHONY: clean-stage2-gold maybe-clean-stage2-gold
20662maybe-all-stage2-gold:
20663maybe-clean-stage2-gold:
20664@if gold-bootstrap
20665maybe-all-stage2-gold: all-stage2-gold
20666all-stage2: all-stage2-gold
20667TARGET-stage2-gold = $(TARGET-gold)
20668all-stage2-gold: configure-stage2-gold
20669 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
20670 @r=`${PWD_COMMAND}`; export r; \
20671 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20672 $(HOST_EXPORTS) \
20673 $(POSTSTAGE1_HOST_EXPORTS) \
20674 cd $(HOST_SUBDIR)/gold && \
20675 $(MAKE) $(BASE_FLAGS_TO_PASS) \
20676 CFLAGS="$(STAGE2_CFLAGS)" CXXFLAGS="$(STAGE2_CFLAGS)" \
20677 LIBCFLAGS="$(STAGE2_LIBCFLAGS)" \
20678 CFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)" \
20679 CXXFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
20680 $(TARGET-stage2-gold)
20681
20682maybe-clean-stage2-gold: clean-stage2-gold
20683clean-stage2: clean-stage2-gold
20684clean-stage2-gold:
20685 @if [ $(current_stage) = stage2 ]; then \
20686 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
20687 else \
20688 [ -f $(HOST_SUBDIR)/stage2-gold/Makefile ] || exit 0; \
20689 $(MAKE) stage2-start; \
20690 fi; \
20691 cd $(HOST_SUBDIR)/gold && \
20692 $(MAKE) $(EXTRA_HOST_FLAGS) \
20693 $(POSTSTAGE1_FLAGS_TO_PASS) \
20694 clean
20695@endif gold-bootstrap
20696
20697
20698.PHONY: all-stageb2g0-gold maybe-all-stageb2g0-gold
20699.PHONY: clean-stageb2g0-gold maybe-clean-stageb2g0-gold
20700maybe-all-stageb2g0-gold:
20701maybe-clean-stageb2g0-gold:
20702@if gold-bootstrap
20703maybe-all-stageb2g0-gold: all-stageb2g0-gold
20704all-stageb2g0: all-stageb2g0-gold
20705TARGET-stageb2g0-gold = $(TARGET-gold)
20706all-stageb2g0-gold: configure-stageb2g0-gold
20707 @[ $(current_stage) = stageb2g0 ] || $(MAKE) stageb2g0-start
20708 @r=`${PWD_COMMAND}`; export r; \
20709 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20710 $(HOST_EXPORTS) \
20711 $(POSTSTAGE1_HOST_EXPORTS) \
20712 cd $(HOST_SUBDIR)/gold && \
20713 $(MAKE) $(BASE_FLAGS_TO_PASS) \
20714 CFLAGS="$(STAGE2_CFLAGS) -g0" CXXFLAGS="$(STAGE2_CFLAGS) -g0" \
20715 LIBCFLAGS="$(STAGE2_LIBCFLAGS) -g0" \
20716 CFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS) -g0" \
20717 CXXFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS) -g0" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
20718 $(TARGET-stageb2g0-gold)
20719
20720maybe-clean-stageb2g0-gold: clean-stageb2g0-gold
20721clean-stageb2g0: clean-stageb2g0-gold
20722clean-stageb2g0-gold:
20723 @if [ $(current_stage) = stageb2g0 ]; then \
20724 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
20725 else \
20726 [ -f $(HOST_SUBDIR)/stageb2g0-gold/Makefile ] || exit 0; \
20727 $(MAKE) stageb2g0-start; \
20728 fi; \
20729 cd $(HOST_SUBDIR)/gold && \
20730 $(MAKE) $(EXTRA_HOST_FLAGS) \
20731 $(POSTSTAGE1_FLAGS_TO_PASS) \
20732 clean
20733@endif gold-bootstrap
20734
20735
20736.PHONY: all-stage3-gold maybe-all-stage3-gold
20737.PHONY: clean-stage3-gold maybe-clean-stage3-gold
20738maybe-all-stage3-gold:
20739maybe-clean-stage3-gold:
20740@if gold-bootstrap
20741maybe-all-stage3-gold: all-stage3-gold
20742all-stage3: all-stage3-gold
20743TARGET-stage3-gold = $(TARGET-gold)
20744all-stage3-gold: configure-stage3-gold
20745 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
20746 @r=`${PWD_COMMAND}`; export r; \
20747 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20748 $(HOST_EXPORTS) \
20749 $(POSTSTAGE1_HOST_EXPORTS) \
20750 cd $(HOST_SUBDIR)/gold && \
20751 $(MAKE) $(BASE_FLAGS_TO_PASS) \
20752 CFLAGS="$(STAGE3_CFLAGS)" CXXFLAGS="$(STAGE3_CFLAGS)" \
20753 LIBCFLAGS="$(STAGE3_LIBCFLAGS)" \
20754 CFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS)" \
20755 CXXFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS)" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
20756 $(TARGET-stage3-gold)
20757
20758maybe-clean-stage3-gold: clean-stage3-gold
20759clean-stage3: clean-stage3-gold
20760clean-stage3-gold:
20761 @if [ $(current_stage) = stage3 ]; then \
20762 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
20763 else \
20764 [ -f $(HOST_SUBDIR)/stage3-gold/Makefile ] || exit 0; \
20765 $(MAKE) stage3-start; \
20766 fi; \
20767 cd $(HOST_SUBDIR)/gold && \
20768 $(MAKE) $(EXTRA_HOST_FLAGS) \
20769 $(POSTSTAGE1_FLAGS_TO_PASS) \
20770 clean
20771@endif gold-bootstrap
20772
20773
20774.PHONY: all-stageb3g2-gold maybe-all-stageb3g2-gold
20775.PHONY: clean-stageb3g2-gold maybe-clean-stageb3g2-gold
20776maybe-all-stageb3g2-gold:
20777maybe-clean-stageb3g2-gold:
20778@if gold-bootstrap
20779maybe-all-stageb3g2-gold: all-stageb3g2-gold
20780all-stageb3g2: all-stageb3g2-gold
20781TARGET-stageb3g2-gold = $(TARGET-gold)
20782all-stageb3g2-gold: configure-stageb3g2-gold
20783 @[ $(current_stage) = stageb3g2 ] || $(MAKE) stageb3g2-start
20784 @r=`${PWD_COMMAND}`; export r; \
20785 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20786 $(HOST_EXPORTS) \
20787 $(POSTSTAGE1_HOST_EXPORTS) \
20788 cd $(HOST_SUBDIR)/gold && \
20789 $(MAKE) $(BASE_FLAGS_TO_PASS) \
20790 CFLAGS="$(STAGE3_CFLAGS) -g2" CXXFLAGS="$(STAGE3_CFLAGS) -g2" \
20791 LIBCFLAGS="$(STAGE3_LIBCFLAGS) -g2" \
20792 CFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS) -g2" \
20793 CXXFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS) -g2" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
20794 $(TARGET-stageb3g2-gold)
20795
20796maybe-clean-stageb3g2-gold: clean-stageb3g2-gold
20797clean-stageb3g2: clean-stageb3g2-gold
20798clean-stageb3g2-gold:
20799 @if [ $(current_stage) = stageb3g2 ]; then \
20800 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
20801 else \
20802 [ -f $(HOST_SUBDIR)/stageb3g2-gold/Makefile ] || exit 0; \
20803 $(MAKE) stageb3g2-start; \
20804 fi; \
20805 cd $(HOST_SUBDIR)/gold && \
20806 $(MAKE) $(EXTRA_HOST_FLAGS) \
20807 $(POSTSTAGE1_FLAGS_TO_PASS) \
20808 clean
20809@endif gold-bootstrap
20810
20811
20812.PHONY: all-stage4-gold maybe-all-stage4-gold
20813.PHONY: clean-stage4-gold maybe-clean-stage4-gold
20814maybe-all-stage4-gold:
20815maybe-clean-stage4-gold:
20816@if gold-bootstrap
20817maybe-all-stage4-gold: all-stage4-gold
20818all-stage4: all-stage4-gold
20819TARGET-stage4-gold = $(TARGET-gold)
20820all-stage4-gold: configure-stage4-gold
20821 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
20822 @r=`${PWD_COMMAND}`; export r; \
20823 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20824 $(HOST_EXPORTS) \
20825 $(POSTSTAGE1_HOST_EXPORTS) \
20826 cd $(HOST_SUBDIR)/gold && \
20827 $(MAKE) $(BASE_FLAGS_TO_PASS) \
20828 CFLAGS="$(STAGE4_CFLAGS)" CXXFLAGS="$(STAGE4_CFLAGS)" \
20829 LIBCFLAGS="$(STAGE4_CFLAGS)" \
20830 CFLAGS_FOR_TARGET="$(STAGE4_CFLAGS)" \
20831 CXXFLAGS_FOR_TARGET="$(STAGE4_CFLAGS)" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
20832 $(TARGET-stage4-gold)
20833
20834maybe-clean-stage4-gold: clean-stage4-gold
20835clean-stage4: clean-stage4-gold
20836clean-stage4-gold:
20837 @if [ $(current_stage) = stage4 ]; then \
20838 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
20839 else \
20840 [ -f $(HOST_SUBDIR)/stage4-gold/Makefile ] || exit 0; \
20841 $(MAKE) stage4-start; \
20842 fi; \
20843 cd $(HOST_SUBDIR)/gold && \
20844 $(MAKE) $(EXTRA_HOST_FLAGS) \
20845 $(POSTSTAGE1_FLAGS_TO_PASS) \
20846 clean
20847@endif gold-bootstrap
20848
20849
20850.PHONY: all-stageprofile-gold maybe-all-stageprofile-gold
20851.PHONY: clean-stageprofile-gold maybe-clean-stageprofile-gold
20852maybe-all-stageprofile-gold:
20853maybe-clean-stageprofile-gold:
20854@if gold-bootstrap
20855maybe-all-stageprofile-gold: all-stageprofile-gold
20856all-stageprofile: all-stageprofile-gold
20857TARGET-stageprofile-gold = $(TARGET-gold)
20858all-stageprofile-gold: configure-stageprofile-gold
20859 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
20860 @r=`${PWD_COMMAND}`; export r; \
20861 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20862 $(HOST_EXPORTS) \
20863 $(POSTSTAGE1_HOST_EXPORTS) \
20864 cd $(HOST_SUBDIR)/gold && \
20865 $(MAKE) $(BASE_FLAGS_TO_PASS) \
20866 CFLAGS="$(STAGE2_CFLAGS) -fprofile-generate" CXXFLAGS="$(STAGE2_CFLAGS) -fprofile-generate" \
20867 LIBCFLAGS="$(STAGE2_LIBCFLAGS)" \
20868 CFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)" \
20869 CXXFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
20870 $(TARGET-stageprofile-gold)
20871
20872maybe-clean-stageprofile-gold: clean-stageprofile-gold
20873clean-stageprofile: clean-stageprofile-gold
20874clean-stageprofile-gold:
20875 @if [ $(current_stage) = stageprofile ]; then \
20876 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
20877 else \
20878 [ -f $(HOST_SUBDIR)/stageprofile-gold/Makefile ] || exit 0; \
20879 $(MAKE) stageprofile-start; \
20880 fi; \
20881 cd $(HOST_SUBDIR)/gold && \
20882 $(MAKE) $(EXTRA_HOST_FLAGS) \
20883 $(POSTSTAGE1_FLAGS_TO_PASS) \
20884 clean
20885@endif gold-bootstrap
20886
20887
20888.PHONY: all-stagefeedback-gold maybe-all-stagefeedback-gold
20889.PHONY: clean-stagefeedback-gold maybe-clean-stagefeedback-gold
20890maybe-all-stagefeedback-gold:
20891maybe-clean-stagefeedback-gold:
20892@if gold-bootstrap
20893maybe-all-stagefeedback-gold: all-stagefeedback-gold
20894all-stagefeedback: all-stagefeedback-gold
20895TARGET-stagefeedback-gold = $(TARGET-gold)
20896all-stagefeedback-gold: configure-stagefeedback-gold
20897 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
20898 @r=`${PWD_COMMAND}`; export r; \
20899 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20900 $(HOST_EXPORTS) \
20901 $(POSTSTAGE1_HOST_EXPORTS) \
20902 cd $(HOST_SUBDIR)/gold && \
20903 $(MAKE) $(BASE_FLAGS_TO_PASS) \
20904 CFLAGS="$(STAGE3_CFLAGS) -fprofile-use" CXXFLAGS="$(STAGE3_CFLAGS) -fprofile-use" \
20905 LIBCFLAGS="$(STAGE3_LIBCFLAGS) -fprofile-use" \
20906 CFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS) -fprofile-use" \
20907 CXXFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS) -fprofile-use" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
20908 $(TARGET-stagefeedback-gold)
20909
20910maybe-clean-stagefeedback-gold: clean-stagefeedback-gold
20911clean-stagefeedback: clean-stagefeedback-gold
20912clean-stagefeedback-gold:
20913 @if [ $(current_stage) = stagefeedback ]; then \
20914 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
20915 else \
20916 [ -f $(HOST_SUBDIR)/stagefeedback-gold/Makefile ] || exit 0; \
20917 $(MAKE) stagefeedback-start; \
20918 fi; \
20919 cd $(HOST_SUBDIR)/gold && \
20920 $(MAKE) $(EXTRA_HOST_FLAGS) \
20921 $(POSTSTAGE1_FLAGS_TO_PASS) \
20922 clean
20923@endif gold-bootstrap
20924
20925
20926
20927
20928
20929.PHONY: check-gold maybe-check-gold
20930maybe-check-gold:
20931@if gold
20932maybe-check-gold: check-gold
20933
20934check-gold:
20935 @: $(MAKE); $(unstage)
20936 @r=`${PWD_COMMAND}`; export r; \
20937 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20938 $(HOST_EXPORTS) \
20939 (cd $(HOST_SUBDIR)/gold && \
20940 $(MAKE) $(FLAGS_TO_PASS) check)
20941
20942@endif gold
20943
20944.PHONY: install-gold maybe-install-gold
20945maybe-install-gold:
20946@if gold
20947maybe-install-gold: install-gold
20948
20949install-gold: installdirs
20950 @: $(MAKE); $(unstage)
20951 @r=`${PWD_COMMAND}`; export r; \
20952 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20953 $(HOST_EXPORTS) \
20954 (cd $(HOST_SUBDIR)/gold && \
20955 $(MAKE) $(FLAGS_TO_PASS) install)
20956
20957@endif gold
20958
20959# Other targets (info, dvi, pdf, etc.)
20960
20961.PHONY: maybe-info-gold info-gold
20962maybe-info-gold:
20963@if gold
20964maybe-info-gold: info-gold
20965
20966info-gold: \
20967 configure-gold
20968 @[ -f ./gold/Makefile ] || exit 0; \
20969 r=`${PWD_COMMAND}`; export r; \
20970 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20971 $(HOST_EXPORTS) \
20972 for flag in $(EXTRA_HOST_FLAGS) ; do \
20973 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20974 done; \
20975 echo "Doing info in gold" ; \
20976 (cd $(HOST_SUBDIR)/gold && \
20977 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20978 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20979 "RANLIB=$${RANLIB}" \
20980 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20981 info) \
20982 || exit 1
20983
20984@endif gold
20985
20986.PHONY: maybe-dvi-gold dvi-gold
20987maybe-dvi-gold:
20988@if gold
20989maybe-dvi-gold: dvi-gold
20990
20991dvi-gold: \
20992 configure-gold
20993 @[ -f ./gold/Makefile ] || exit 0; \
20994 r=`${PWD_COMMAND}`; export r; \
20995 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20996 $(HOST_EXPORTS) \
20997 for flag in $(EXTRA_HOST_FLAGS) ; do \
20998 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20999 done; \
21000 echo "Doing dvi in gold" ; \
21001 (cd $(HOST_SUBDIR)/gold && \
21002 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21003 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21004 "RANLIB=$${RANLIB}" \
21005 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21006 dvi) \
21007 || exit 1
21008
21009@endif gold
21010
21011.PHONY: maybe-pdf-gold pdf-gold
21012maybe-pdf-gold:
21013@if gold
21014maybe-pdf-gold: pdf-gold
21015
21016pdf-gold: \
21017 configure-gold
21018 @[ -f ./gold/Makefile ] || exit 0; \
21019 r=`${PWD_COMMAND}`; export r; \
21020 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21021 $(HOST_EXPORTS) \
21022 for flag in $(EXTRA_HOST_FLAGS) ; do \
21023 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21024 done; \
21025 echo "Doing pdf in gold" ; \
21026 (cd $(HOST_SUBDIR)/gold && \
21027 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21028 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21029 "RANLIB=$${RANLIB}" \
21030 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21031 pdf) \
21032 || exit 1
21033
21034@endif gold
21035
21036.PHONY: maybe-html-gold html-gold
21037maybe-html-gold:
21038@if gold
21039maybe-html-gold: html-gold
21040
21041html-gold: \
21042 configure-gold
21043 @[ -f ./gold/Makefile ] || exit 0; \
21044 r=`${PWD_COMMAND}`; export r; \
21045 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21046 $(HOST_EXPORTS) \
21047 for flag in $(EXTRA_HOST_FLAGS) ; do \
21048 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21049 done; \
21050 echo "Doing html in gold" ; \
21051 (cd $(HOST_SUBDIR)/gold && \
21052 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21053 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21054 "RANLIB=$${RANLIB}" \
21055 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21056 html) \
21057 || exit 1
21058
21059@endif gold
21060
21061.PHONY: maybe-TAGS-gold TAGS-gold
21062maybe-TAGS-gold:
21063@if gold
21064maybe-TAGS-gold: TAGS-gold
21065
21066TAGS-gold: \
21067 configure-gold
21068 @[ -f ./gold/Makefile ] || exit 0; \
21069 r=`${PWD_COMMAND}`; export r; \
21070 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21071 $(HOST_EXPORTS) \
21072 for flag in $(EXTRA_HOST_FLAGS) ; do \
21073 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21074 done; \
21075 echo "Doing TAGS in gold" ; \
21076 (cd $(HOST_SUBDIR)/gold && \
21077 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21078 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21079 "RANLIB=$${RANLIB}" \
21080 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21081 TAGS) \
21082 || exit 1
21083
21084@endif gold
21085
21086.PHONY: maybe-install-info-gold install-info-gold
21087maybe-install-info-gold:
21088@if gold
21089maybe-install-info-gold: install-info-gold
21090
21091install-info-gold: \
21092 configure-gold \
21093 info-gold
21094 @[ -f ./gold/Makefile ] || exit 0; \
21095 r=`${PWD_COMMAND}`; export r; \
21096 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21097 $(HOST_EXPORTS) \
21098 for flag in $(EXTRA_HOST_FLAGS) ; do \
21099 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21100 done; \
21101 echo "Doing install-info in gold" ; \
21102 (cd $(HOST_SUBDIR)/gold && \
21103 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21104 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21105 "RANLIB=$${RANLIB}" \
21106 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21107 install-info) \
21108 || exit 1
21109
21110@endif gold
21111
21112.PHONY: maybe-install-pdf-gold install-pdf-gold
21113maybe-install-pdf-gold:
21114@if gold
21115maybe-install-pdf-gold: install-pdf-gold
21116
21117install-pdf-gold: \
21118 configure-gold \
21119 pdf-gold
21120 @[ -f ./gold/Makefile ] || exit 0; \
21121 r=`${PWD_COMMAND}`; export r; \
21122 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21123 $(HOST_EXPORTS) \
21124 for flag in $(EXTRA_HOST_FLAGS) ; do \
21125 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21126 done; \
21127 echo "Doing install-pdf in gold" ; \
21128 (cd $(HOST_SUBDIR)/gold && \
21129 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21130 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21131 "RANLIB=$${RANLIB}" \
21132 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21133 install-pdf) \
21134 || exit 1
21135
21136@endif gold
21137
21138.PHONY: maybe-install-html-gold install-html-gold
21139maybe-install-html-gold:
21140@if gold
21141maybe-install-html-gold: install-html-gold
21142
21143install-html-gold: \
21144 configure-gold \
21145 html-gold
21146 @[ -f ./gold/Makefile ] || exit 0; \
21147 r=`${PWD_COMMAND}`; export r; \
21148 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21149 $(HOST_EXPORTS) \
21150 for flag in $(EXTRA_HOST_FLAGS) ; do \
21151 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21152 done; \
21153 echo "Doing install-html in gold" ; \
21154 (cd $(HOST_SUBDIR)/gold && \
21155 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21156 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21157 "RANLIB=$${RANLIB}" \
21158 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21159 install-html) \
21160 || exit 1
21161
21162@endif gold
21163
21164.PHONY: maybe-installcheck-gold installcheck-gold
21165maybe-installcheck-gold:
21166@if gold
21167maybe-installcheck-gold: installcheck-gold
21168
21169installcheck-gold: \
21170 configure-gold
21171 @[ -f ./gold/Makefile ] || exit 0; \
21172 r=`${PWD_COMMAND}`; export r; \
21173 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21174 $(HOST_EXPORTS) \
21175 for flag in $(EXTRA_HOST_FLAGS) ; do \
21176 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21177 done; \
21178 echo "Doing installcheck in gold" ; \
21179 (cd $(HOST_SUBDIR)/gold && \
21180 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21181 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21182 "RANLIB=$${RANLIB}" \
21183 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21184 installcheck) \
21185 || exit 1
21186
21187@endif gold
21188
21189.PHONY: maybe-mostlyclean-gold mostlyclean-gold
21190maybe-mostlyclean-gold:
21191@if gold
21192maybe-mostlyclean-gold: mostlyclean-gold
21193
21194mostlyclean-gold:
21195 @[ -f ./gold/Makefile ] || exit 0; \
21196 r=`${PWD_COMMAND}`; export r; \
21197 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21198 $(HOST_EXPORTS) \
21199 for flag in $(EXTRA_HOST_FLAGS) ; do \
21200 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21201 done; \
21202 echo "Doing mostlyclean in gold" ; \
21203 (cd $(HOST_SUBDIR)/gold && \
21204 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21205 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21206 "RANLIB=$${RANLIB}" \
21207 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21208 mostlyclean) \
21209 || exit 1
21210
21211@endif gold
21212
21213.PHONY: maybe-clean-gold clean-gold
21214maybe-clean-gold:
21215@if gold
21216maybe-clean-gold: clean-gold
21217
21218clean-gold:
21219 @[ -f ./gold/Makefile ] || exit 0; \
21220 r=`${PWD_COMMAND}`; export r; \
21221 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21222 $(HOST_EXPORTS) \
21223 for flag in $(EXTRA_HOST_FLAGS) ; do \
21224 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21225 done; \
21226 echo "Doing clean in gold" ; \
21227 (cd $(HOST_SUBDIR)/gold && \
21228 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21229 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21230 "RANLIB=$${RANLIB}" \
21231 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21232 clean) \
21233 || exit 1
21234
21235@endif gold
21236
21237.PHONY: maybe-distclean-gold distclean-gold
21238maybe-distclean-gold:
21239@if gold
21240maybe-distclean-gold: distclean-gold
21241
21242distclean-gold:
21243 @[ -f ./gold/Makefile ] || exit 0; \
21244 r=`${PWD_COMMAND}`; export r; \
21245 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21246 $(HOST_EXPORTS) \
21247 for flag in $(EXTRA_HOST_FLAGS) ; do \
21248 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21249 done; \
21250 echo "Doing distclean in gold" ; \
21251 (cd $(HOST_SUBDIR)/gold && \
21252 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21253 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21254 "RANLIB=$${RANLIB}" \
21255 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21256 distclean) \
21257 || exit 1
21258
21259@endif gold
21260
21261.PHONY: maybe-maintainer-clean-gold maintainer-clean-gold
21262maybe-maintainer-clean-gold:
21263@if gold
21264maybe-maintainer-clean-gold: maintainer-clean-gold
21265
21266maintainer-clean-gold:
21267 @[ -f ./gold/Makefile ] || exit 0; \
21268 r=`${PWD_COMMAND}`; export r; \
21269 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21270 $(HOST_EXPORTS) \
21271 for flag in $(EXTRA_HOST_FLAGS) ; do \
21272 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21273 done; \
21274 echo "Doing maintainer-clean in gold" ; \
21275 (cd $(HOST_SUBDIR)/gold && \
21276 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21277 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21278 "RANLIB=$${RANLIB}" \
21279 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21280 maintainer-clean) \
21281 || exit 1
21282
21283@endif gold
21284
21285
21286
d5eec917
PB
21287.PHONY: configure-gprof maybe-configure-gprof
21288maybe-configure-gprof:
e1e5148c
CD
21289@if gcc-bootstrap
21290configure-gprof: stage_current
21291@endif gcc-bootstrap
d5eec917
PB
21292@if gprof
21293maybe-configure-gprof: configure-gprof
ec92c4d6 21294configure-gprof:
15b527ca 21295 @: $(MAKE); $(unstage)
ec92c4d6 21296 @r=`${PWD_COMMAND}`; export r; \
5230d454 21297 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
21298 test ! -f $(HOST_SUBDIR)/gprof/Makefile || exit 0; \
21299 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gprof ; \
a675b75a 21300 $(HOST_EXPORTS) \
f0fdfd34
PB
21301 echo Configuring in $(HOST_SUBDIR)/gprof; \
21302 cd "$(HOST_SUBDIR)/gprof" || exit 1; \
8ec98d6c 21303 case $(srcdir) in \
7fc2ca22
PB
21304 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
21305 *) topdir=`echo $(HOST_SUBDIR)/gprof/ | \
21306 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 21307 esac; \
7fc2ca22
PB
21308 srcdiroption="--srcdir=$${topdir}/gprof"; \
21309 libsrcdir="$$s/gprof"; \
8ec98d6c 21310 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
21311 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
21312 --target=${target_alias} $${srcdiroption} \
657b58f4 21313 || exit 1
d5eec917 21314@endif gprof
657b58f4 21315
f0fdfd34
PB
21316
21317
a8a96878
PB
21318
21319
d5eec917
PB
21320.PHONY: all-gprof maybe-all-gprof
21321maybe-all-gprof:
e1e5148c
CD
21322@if gcc-bootstrap
21323all-gprof: stage_current
21324@endif gcc-bootstrap
d5eec917 21325@if gprof
5e6b1f07 21326TARGET-gprof=all
d5eec917
PB
21327maybe-all-gprof: all-gprof
21328all-gprof: configure-gprof
15b527ca 21329 @: $(MAKE); $(unstage)
8ec98d6c
NN
21330 @r=`${PWD_COMMAND}`; export r; \
21331 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 21332 $(HOST_EXPORTS) \
7fc2ca22 21333 (cd $(HOST_SUBDIR)/gprof && \
6532abb6
PB
21334 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
21335 $(TARGET-gprof))
d5eec917 21336@endif gprof
657b58f4 21337
f0fdfd34 21338
a8a96878
PB
21339
21340
d5eec917
PB
21341.PHONY: check-gprof maybe-check-gprof
21342maybe-check-gprof:
21343@if gprof
21344maybe-check-gprof: check-gprof
657b58f4 21345
d5eec917 21346check-gprof:
15b527ca 21347 @: $(MAKE); $(unstage)
8ec98d6c 21348 @r=`${PWD_COMMAND}`; export r; \
5230d454 21349 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 21350 $(HOST_EXPORTS) \
7fc2ca22
PB
21351 (cd $(HOST_SUBDIR)/gprof && \
21352 $(MAKE) $(FLAGS_TO_PASS) check)
657b58f4 21353
d5eec917 21354@endif gprof
657b58f4 21355
d5eec917
PB
21356.PHONY: install-gprof maybe-install-gprof
21357maybe-install-gprof:
21358@if gprof
21359maybe-install-gprof: install-gprof
8ec98d6c 21360
d5eec917 21361install-gprof: installdirs
15b527ca 21362 @: $(MAKE); $(unstage)
8ec98d6c 21363 @r=`${PWD_COMMAND}`; export r; \
5230d454 21364 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 21365 $(HOST_EXPORTS) \
7fc2ca22 21366 (cd $(HOST_SUBDIR)/gprof && \
93c60b6d 21367 $(MAKE) $(FLAGS_TO_PASS) install)
657b58f4 21368
d5eec917 21369@endif gprof
657b58f4 21370
39bbbb69 21371# Other targets (info, dvi, pdf, etc.)
657b58f4 21372
d5eec917
PB
21373.PHONY: maybe-info-gprof info-gprof
21374maybe-info-gprof:
21375@if gprof
21376maybe-info-gprof: info-gprof
8ec98d6c 21377
d5eec917
PB
21378info-gprof: \
21379 configure-gprof
15b527ca 21380 @: $(MAKE); $(unstage)
d5eec917 21381 @[ -f ./gprof/Makefile ] || exit 0; \
5230d454
L
21382 r=`${PWD_COMMAND}`; export r; \
21383 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 21384 $(HOST_EXPORTS) \
d5eec917 21385 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
21386 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21387 done; \
d5eec917 21388 echo "Doing info in gprof" ; \
7fc2ca22 21389 (cd $(HOST_SUBDIR)/gprof && \
657b58f4
NN
21390 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21391 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21392 "RANLIB=$${RANLIB}" \
bffcbe34 21393 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 21394 info) \
657b58f4
NN
21395 || exit 1
21396
d5eec917 21397@endif gprof
657b58f4 21398
d5eec917
PB
21399.PHONY: maybe-dvi-gprof dvi-gprof
21400maybe-dvi-gprof:
21401@if gprof
21402maybe-dvi-gprof: dvi-gprof
657b58f4 21403
d5eec917
PB
21404dvi-gprof: \
21405 configure-gprof
15b527ca 21406 @: $(MAKE); $(unstage)
d5eec917 21407 @[ -f ./gprof/Makefile ] || exit 0; \
5230d454
L
21408 r=`${PWD_COMMAND}`; export r; \
21409 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 21410 $(HOST_EXPORTS) \
d5eec917 21411 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
21412 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21413 done; \
d5eec917 21414 echo "Doing dvi in gprof" ; \
7fc2ca22 21415 (cd $(HOST_SUBDIR)/gprof && \
657b58f4
NN
21416 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21417 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21418 "RANLIB=$${RANLIB}" \
bffcbe34 21419 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 21420 dvi) \
657b58f4
NN
21421 || exit 1
21422
d5eec917 21423@endif gprof
657b58f4 21424
39bbbb69
DD
21425.PHONY: maybe-pdf-gprof pdf-gprof
21426maybe-pdf-gprof:
21427@if gprof
21428maybe-pdf-gprof: pdf-gprof
21429
21430pdf-gprof: \
21431 configure-gprof
21432 @: $(MAKE); $(unstage)
21433 @[ -f ./gprof/Makefile ] || exit 0; \
21434 r=`${PWD_COMMAND}`; export r; \
21435 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21436 $(HOST_EXPORTS) \
21437 for flag in $(EXTRA_HOST_FLAGS) ; do \
21438 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21439 done; \
21440 echo "Doing pdf in gprof" ; \
21441 (cd $(HOST_SUBDIR)/gprof && \
21442 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21443 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21444 "RANLIB=$${RANLIB}" \
bffcbe34 21445 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
21446 pdf) \
21447 || exit 1
21448
21449@endif gprof
21450
b6fb961f
MS
21451.PHONY: maybe-html-gprof html-gprof
21452maybe-html-gprof:
21453@if gprof
21454maybe-html-gprof: html-gprof
21455
21456html-gprof: \
21457 configure-gprof
15b527ca 21458 @: $(MAKE); $(unstage)
b6fb961f
MS
21459 @[ -f ./gprof/Makefile ] || exit 0; \
21460 r=`${PWD_COMMAND}`; export r; \
21461 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
21462 $(HOST_EXPORTS) \
21463 for flag in $(EXTRA_HOST_FLAGS) ; do \
21464 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21465 done; \
21466 echo "Doing html in gprof" ; \
7fc2ca22 21467 (cd $(HOST_SUBDIR)/gprof && \
b6fb961f
MS
21468 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21469 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21470 "RANLIB=$${RANLIB}" \
bffcbe34 21471 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
21472 html) \
21473 || exit 1
21474
21475@endif gprof
21476
d5eec917
PB
21477.PHONY: maybe-TAGS-gprof TAGS-gprof
21478maybe-TAGS-gprof:
21479@if gprof
21480maybe-TAGS-gprof: TAGS-gprof
657b58f4 21481
d5eec917
PB
21482TAGS-gprof: \
21483 configure-gprof
15b527ca 21484 @: $(MAKE); $(unstage)
d5eec917 21485 @[ -f ./gprof/Makefile ] || exit 0; \
5230d454
L
21486 r=`${PWD_COMMAND}`; export r; \
21487 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 21488 $(HOST_EXPORTS) \
d5eec917 21489 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
21490 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21491 done; \
d5eec917 21492 echo "Doing TAGS in gprof" ; \
7fc2ca22 21493 (cd $(HOST_SUBDIR)/gprof && \
657b58f4
NN
21494 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21495 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21496 "RANLIB=$${RANLIB}" \
bffcbe34 21497 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 21498 TAGS) \
657b58f4
NN
21499 || exit 1
21500
d5eec917 21501@endif gprof
657b58f4 21502
d5eec917
PB
21503.PHONY: maybe-install-info-gprof install-info-gprof
21504maybe-install-info-gprof:
21505@if gprof
21506maybe-install-info-gprof: install-info-gprof
657b58f4 21507
d5eec917
PB
21508install-info-gprof: \
21509 configure-gprof \
21510 info-gprof
15b527ca 21511 @: $(MAKE); $(unstage)
d5eec917 21512 @[ -f ./gprof/Makefile ] || exit 0; \
5230d454
L
21513 r=`${PWD_COMMAND}`; export r; \
21514 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 21515 $(HOST_EXPORTS) \
d5eec917 21516 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
21517 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21518 done; \
d5eec917 21519 echo "Doing install-info in gprof" ; \
7fc2ca22 21520 (cd $(HOST_SUBDIR)/gprof && \
657b58f4
NN
21521 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21522 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21523 "RANLIB=$${RANLIB}" \
bffcbe34 21524 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 21525 install-info) \
657b58f4
NN
21526 || exit 1
21527
d5eec917 21528@endif gprof
657b58f4 21529
d4954b6d
DD
21530.PHONY: maybe-install-pdf-gprof install-pdf-gprof
21531maybe-install-pdf-gprof:
21532@if gprof
21533maybe-install-pdf-gprof: install-pdf-gprof
21534
21535install-pdf-gprof: \
21536 configure-gprof \
21537 pdf-gprof
21538 @: $(MAKE); $(unstage)
21539 @[ -f ./gprof/Makefile ] || exit 0; \
21540 r=`${PWD_COMMAND}`; export r; \
21541 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21542 $(HOST_EXPORTS) \
21543 for flag in $(EXTRA_HOST_FLAGS) ; do \
21544 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21545 done; \
21546 echo "Doing install-pdf in gprof" ; \
21547 (cd $(HOST_SUBDIR)/gprof && \
21548 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21549 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21550 "RANLIB=$${RANLIB}" \
bffcbe34 21551 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
21552 install-pdf) \
21553 || exit 1
21554
21555@endif gprof
21556
83c9add4
CD
21557.PHONY: maybe-install-html-gprof install-html-gprof
21558maybe-install-html-gprof:
21559@if gprof
21560maybe-install-html-gprof: install-html-gprof
21561
21562install-html-gprof: \
21563 configure-gprof \
21564 html-gprof
21565 @: $(MAKE); $(unstage)
21566 @[ -f ./gprof/Makefile ] || exit 0; \
21567 r=`${PWD_COMMAND}`; export r; \
21568 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21569 $(HOST_EXPORTS) \
21570 for flag in $(EXTRA_HOST_FLAGS) ; do \
21571 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21572 done; \
21573 echo "Doing install-html in gprof" ; \
21574 (cd $(HOST_SUBDIR)/gprof && \
21575 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21576 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21577 "RANLIB=$${RANLIB}" \
bffcbe34 21578 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
21579 install-html) \
21580 || exit 1
21581
21582@endif gprof
21583
d5eec917
PB
21584.PHONY: maybe-installcheck-gprof installcheck-gprof
21585maybe-installcheck-gprof:
21586@if gprof
21587maybe-installcheck-gprof: installcheck-gprof
657b58f4 21588
d5eec917
PB
21589installcheck-gprof: \
21590 configure-gprof
15b527ca 21591 @: $(MAKE); $(unstage)
d5eec917 21592 @[ -f ./gprof/Makefile ] || exit 0; \
5230d454
L
21593 r=`${PWD_COMMAND}`; export r; \
21594 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 21595 $(HOST_EXPORTS) \
d5eec917 21596 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
21597 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21598 done; \
d5eec917 21599 echo "Doing installcheck in gprof" ; \
7fc2ca22 21600 (cd $(HOST_SUBDIR)/gprof && \
657b58f4
NN
21601 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21602 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21603 "RANLIB=$${RANLIB}" \
bffcbe34 21604 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 21605 installcheck) \
657b58f4
NN
21606 || exit 1
21607
d5eec917 21608@endif gprof
657b58f4 21609
d5eec917
PB
21610.PHONY: maybe-mostlyclean-gprof mostlyclean-gprof
21611maybe-mostlyclean-gprof:
21612@if gprof
21613maybe-mostlyclean-gprof: mostlyclean-gprof
657b58f4 21614
d5eec917 21615mostlyclean-gprof:
15b527ca 21616 @: $(MAKE); $(unstage)
d5eec917 21617 @[ -f ./gprof/Makefile ] || exit 0; \
5230d454
L
21618 r=`${PWD_COMMAND}`; export r; \
21619 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 21620 $(HOST_EXPORTS) \
d5eec917 21621 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
21622 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21623 done; \
d5eec917 21624 echo "Doing mostlyclean in gprof" ; \
7fc2ca22 21625 (cd $(HOST_SUBDIR)/gprof && \
657b58f4
NN
21626 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21627 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21628 "RANLIB=$${RANLIB}" \
bffcbe34 21629 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 21630 mostlyclean) \
657b58f4
NN
21631 || exit 1
21632
d5eec917 21633@endif gprof
657b58f4 21634
d5eec917
PB
21635.PHONY: maybe-clean-gprof clean-gprof
21636maybe-clean-gprof:
21637@if gprof
21638maybe-clean-gprof: clean-gprof
657b58f4 21639
d5eec917 21640clean-gprof:
15b527ca 21641 @: $(MAKE); $(unstage)
d5eec917 21642 @[ -f ./gprof/Makefile ] || exit 0; \
5230d454
L
21643 r=`${PWD_COMMAND}`; export r; \
21644 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 21645 $(HOST_EXPORTS) \
d5eec917 21646 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
21647 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21648 done; \
d5eec917 21649 echo "Doing clean in gprof" ; \
7fc2ca22 21650 (cd $(HOST_SUBDIR)/gprof && \
657b58f4
NN
21651 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21652 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21653 "RANLIB=$${RANLIB}" \
bffcbe34 21654 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 21655 clean) \
657b58f4
NN
21656 || exit 1
21657
d5eec917 21658@endif gprof
657b58f4 21659
d5eec917
PB
21660.PHONY: maybe-distclean-gprof distclean-gprof
21661maybe-distclean-gprof:
21662@if gprof
21663maybe-distclean-gprof: distclean-gprof
657b58f4 21664
d5eec917 21665distclean-gprof:
15b527ca 21666 @: $(MAKE); $(unstage)
d5eec917 21667 @[ -f ./gprof/Makefile ] || exit 0; \
5230d454
L
21668 r=`${PWD_COMMAND}`; export r; \
21669 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 21670 $(HOST_EXPORTS) \
d5eec917 21671 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
21672 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21673 done; \
d5eec917 21674 echo "Doing distclean in gprof" ; \
7fc2ca22 21675 (cd $(HOST_SUBDIR)/gprof && \
657b58f4
NN
21676 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21677 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21678 "RANLIB=$${RANLIB}" \
bffcbe34 21679 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 21680 distclean) \
657b58f4
NN
21681 || exit 1
21682
d5eec917 21683@endif gprof
657b58f4 21684
d5eec917
PB
21685.PHONY: maybe-maintainer-clean-gprof maintainer-clean-gprof
21686maybe-maintainer-clean-gprof:
21687@if gprof
21688maybe-maintainer-clean-gprof: maintainer-clean-gprof
657b58f4 21689
d5eec917 21690maintainer-clean-gprof:
15b527ca 21691 @: $(MAKE); $(unstage)
d5eec917 21692 @[ -f ./gprof/Makefile ] || exit 0; \
5230d454
L
21693 r=`${PWD_COMMAND}`; export r; \
21694 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 21695 $(HOST_EXPORTS) \
d5eec917 21696 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
21697 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21698 done; \
d5eec917 21699 echo "Doing maintainer-clean in gprof" ; \
7fc2ca22 21700 (cd $(HOST_SUBDIR)/gprof && \
657b58f4
NN
21701 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21702 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21703 "RANLIB=$${RANLIB}" \
bffcbe34 21704 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 21705 maintainer-clean) \
657b58f4
NN
21706 || exit 1
21707
d5eec917 21708@endif gprof
657b58f4 21709
657b58f4 21710
f0fdfd34 21711
d5eec917
PB
21712.PHONY: configure-gzip maybe-configure-gzip
21713maybe-configure-gzip:
e1e5148c
CD
21714@if gcc-bootstrap
21715configure-gzip: stage_current
21716@endif gcc-bootstrap
d5eec917
PB
21717@if gzip
21718maybe-configure-gzip: configure-gzip
ec92c4d6 21719configure-gzip:
15b527ca 21720 @: $(MAKE); $(unstage)
ec92c4d6 21721 @r=`${PWD_COMMAND}`; export r; \
5230d454 21722 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
21723 test ! -f $(HOST_SUBDIR)/gzip/Makefile || exit 0; \
21724 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gzip ; \
a675b75a 21725 $(HOST_EXPORTS) \
f0fdfd34
PB
21726 echo Configuring in $(HOST_SUBDIR)/gzip; \
21727 cd "$(HOST_SUBDIR)/gzip" || exit 1; \
8ec98d6c 21728 case $(srcdir) in \
7fc2ca22
PB
21729 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
21730 *) topdir=`echo $(HOST_SUBDIR)/gzip/ | \
21731 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 21732 esac; \
7fc2ca22
PB
21733 srcdiroption="--srcdir=$${topdir}/gzip"; \
21734 libsrcdir="$$s/gzip"; \
8ec98d6c 21735 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
21736 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
21737 --target=${target_alias} $${srcdiroption} \
657b58f4 21738 || exit 1
d5eec917 21739@endif gzip
657b58f4 21740
f0fdfd34
PB
21741
21742
a8a96878
PB
21743
21744
d5eec917
PB
21745.PHONY: all-gzip maybe-all-gzip
21746maybe-all-gzip:
e1e5148c
CD
21747@if gcc-bootstrap
21748all-gzip: stage_current
21749@endif gcc-bootstrap
d5eec917 21750@if gzip
5e6b1f07 21751TARGET-gzip=all
d5eec917
PB
21752maybe-all-gzip: all-gzip
21753all-gzip: configure-gzip
15b527ca 21754 @: $(MAKE); $(unstage)
8ec98d6c
NN
21755 @r=`${PWD_COMMAND}`; export r; \
21756 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 21757 $(HOST_EXPORTS) \
7fc2ca22 21758 (cd $(HOST_SUBDIR)/gzip && \
6532abb6
PB
21759 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
21760 $(TARGET-gzip))
d5eec917 21761@endif gzip
657b58f4 21762
f0fdfd34 21763
a8a96878
PB
21764
21765
d5eec917
PB
21766.PHONY: check-gzip maybe-check-gzip
21767maybe-check-gzip:
21768@if gzip
21769maybe-check-gzip: check-gzip
657b58f4 21770
d5eec917 21771check-gzip:
15b527ca 21772 @: $(MAKE); $(unstage)
8ec98d6c 21773 @r=`${PWD_COMMAND}`; export r; \
5230d454 21774 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 21775 $(HOST_EXPORTS) \
7fc2ca22
PB
21776 (cd $(HOST_SUBDIR)/gzip && \
21777 $(MAKE) $(FLAGS_TO_PASS) check)
657b58f4 21778
d5eec917 21779@endif gzip
657b58f4 21780
d5eec917
PB
21781.PHONY: install-gzip maybe-install-gzip
21782maybe-install-gzip:
21783@if gzip
21784maybe-install-gzip: install-gzip
657b58f4 21785
d5eec917 21786install-gzip: installdirs
15b527ca 21787 @: $(MAKE); $(unstage)
8ec98d6c 21788 @r=`${PWD_COMMAND}`; export r; \
5230d454 21789 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 21790 $(HOST_EXPORTS) \
7fc2ca22 21791 (cd $(HOST_SUBDIR)/gzip && \
93c60b6d 21792 $(MAKE) $(FLAGS_TO_PASS) install)
657b58f4 21793
d5eec917 21794@endif gzip
657b58f4 21795
39bbbb69 21796# Other targets (info, dvi, pdf, etc.)
657b58f4 21797
d5eec917
PB
21798.PHONY: maybe-info-gzip info-gzip
21799maybe-info-gzip:
21800@if gzip
21801maybe-info-gzip: info-gzip
8ec98d6c 21802
d5eec917
PB
21803info-gzip: \
21804 configure-gzip
15b527ca 21805 @: $(MAKE); $(unstage)
d5eec917 21806 @[ -f ./gzip/Makefile ] || exit 0; \
5230d454
L
21807 r=`${PWD_COMMAND}`; export r; \
21808 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 21809 $(HOST_EXPORTS) \
d5eec917 21810 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
21811 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21812 done; \
d5eec917 21813 echo "Doing info in gzip" ; \
7fc2ca22 21814 (cd $(HOST_SUBDIR)/gzip && \
657b58f4
NN
21815 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21816 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21817 "RANLIB=$${RANLIB}" \
bffcbe34 21818 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 21819 info) \
657b58f4
NN
21820 || exit 1
21821
d5eec917 21822@endif gzip
657b58f4 21823
d5eec917
PB
21824.PHONY: maybe-dvi-gzip dvi-gzip
21825maybe-dvi-gzip:
21826@if gzip
21827maybe-dvi-gzip: dvi-gzip
657b58f4 21828
d5eec917
PB
21829dvi-gzip: \
21830 configure-gzip
15b527ca 21831 @: $(MAKE); $(unstage)
d5eec917 21832 @[ -f ./gzip/Makefile ] || exit 0; \
5230d454
L
21833 r=`${PWD_COMMAND}`; export r; \
21834 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 21835 $(HOST_EXPORTS) \
d5eec917 21836 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
21837 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21838 done; \
d5eec917 21839 echo "Doing dvi in gzip" ; \
7fc2ca22 21840 (cd $(HOST_SUBDIR)/gzip && \
657b58f4
NN
21841 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21842 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21843 "RANLIB=$${RANLIB}" \
bffcbe34 21844 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 21845 dvi) \
657b58f4
NN
21846 || exit 1
21847
d5eec917 21848@endif gzip
657b58f4 21849
39bbbb69
DD
21850.PHONY: maybe-pdf-gzip pdf-gzip
21851maybe-pdf-gzip:
21852@if gzip
21853maybe-pdf-gzip: pdf-gzip
21854
21855pdf-gzip: \
21856 configure-gzip
21857 @: $(MAKE); $(unstage)
21858 @[ -f ./gzip/Makefile ] || exit 0; \
21859 r=`${PWD_COMMAND}`; export r; \
21860 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21861 $(HOST_EXPORTS) \
21862 for flag in $(EXTRA_HOST_FLAGS) ; do \
21863 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21864 done; \
21865 echo "Doing pdf in gzip" ; \
21866 (cd $(HOST_SUBDIR)/gzip && \
21867 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21868 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21869 "RANLIB=$${RANLIB}" \
bffcbe34 21870 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
21871 pdf) \
21872 || exit 1
21873
21874@endif gzip
21875
b6fb961f
MS
21876.PHONY: maybe-html-gzip html-gzip
21877maybe-html-gzip:
21878@if gzip
21879maybe-html-gzip: html-gzip
21880
21881html-gzip: \
21882 configure-gzip
15b527ca 21883 @: $(MAKE); $(unstage)
b6fb961f
MS
21884 @[ -f ./gzip/Makefile ] || exit 0; \
21885 r=`${PWD_COMMAND}`; export r; \
21886 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
21887 $(HOST_EXPORTS) \
21888 for flag in $(EXTRA_HOST_FLAGS) ; do \
21889 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21890 done; \
21891 echo "Doing html in gzip" ; \
7fc2ca22 21892 (cd $(HOST_SUBDIR)/gzip && \
b6fb961f
MS
21893 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21894 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21895 "RANLIB=$${RANLIB}" \
bffcbe34 21896 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
21897 html) \
21898 || exit 1
21899
21900@endif gzip
21901
d5eec917
PB
21902.PHONY: maybe-TAGS-gzip TAGS-gzip
21903maybe-TAGS-gzip:
21904@if gzip
21905maybe-TAGS-gzip: TAGS-gzip
657b58f4 21906
d5eec917
PB
21907TAGS-gzip: \
21908 configure-gzip
15b527ca 21909 @: $(MAKE); $(unstage)
d5eec917 21910 @[ -f ./gzip/Makefile ] || exit 0; \
5230d454
L
21911 r=`${PWD_COMMAND}`; export r; \
21912 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 21913 $(HOST_EXPORTS) \
d5eec917 21914 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
21915 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21916 done; \
d5eec917 21917 echo "Doing TAGS in gzip" ; \
7fc2ca22 21918 (cd $(HOST_SUBDIR)/gzip && \
657b58f4
NN
21919 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21920 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21921 "RANLIB=$${RANLIB}" \
bffcbe34 21922 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 21923 TAGS) \
657b58f4
NN
21924 || exit 1
21925
d5eec917 21926@endif gzip
657b58f4 21927
d5eec917
PB
21928.PHONY: maybe-install-info-gzip install-info-gzip
21929maybe-install-info-gzip:
21930@if gzip
21931maybe-install-info-gzip: install-info-gzip
657b58f4 21932
d5eec917
PB
21933install-info-gzip: \
21934 configure-gzip \
21935 info-gzip
15b527ca 21936 @: $(MAKE); $(unstage)
d5eec917 21937 @[ -f ./gzip/Makefile ] || exit 0; \
5230d454
L
21938 r=`${PWD_COMMAND}`; export r; \
21939 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 21940 $(HOST_EXPORTS) \
d5eec917 21941 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
21942 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21943 done; \
d5eec917 21944 echo "Doing install-info in gzip" ; \
7fc2ca22 21945 (cd $(HOST_SUBDIR)/gzip && \
657b58f4
NN
21946 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21947 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21948 "RANLIB=$${RANLIB}" \
bffcbe34 21949 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 21950 install-info) \
657b58f4
NN
21951 || exit 1
21952
d5eec917 21953@endif gzip
657b58f4 21954
d4954b6d
DD
21955.PHONY: maybe-install-pdf-gzip install-pdf-gzip
21956maybe-install-pdf-gzip:
21957@if gzip
21958maybe-install-pdf-gzip: install-pdf-gzip
21959
21960install-pdf-gzip: \
21961 configure-gzip \
21962 pdf-gzip
21963 @: $(MAKE); $(unstage)
21964 @[ -f ./gzip/Makefile ] || exit 0; \
21965 r=`${PWD_COMMAND}`; export r; \
21966 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21967 $(HOST_EXPORTS) \
21968 for flag in $(EXTRA_HOST_FLAGS) ; do \
21969 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21970 done; \
21971 echo "Doing install-pdf in gzip" ; \
21972 (cd $(HOST_SUBDIR)/gzip && \
21973 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21974 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21975 "RANLIB=$${RANLIB}" \
bffcbe34 21976 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
21977 install-pdf) \
21978 || exit 1
21979
21980@endif gzip
21981
83c9add4
CD
21982.PHONY: maybe-install-html-gzip install-html-gzip
21983maybe-install-html-gzip:
21984@if gzip
21985maybe-install-html-gzip: install-html-gzip
21986
21987install-html-gzip: \
21988 configure-gzip \
21989 html-gzip
21990 @: $(MAKE); $(unstage)
21991 @[ -f ./gzip/Makefile ] || exit 0; \
21992 r=`${PWD_COMMAND}`; export r; \
21993 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21994 $(HOST_EXPORTS) \
21995 for flag in $(EXTRA_HOST_FLAGS) ; do \
21996 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21997 done; \
21998 echo "Doing install-html in gzip" ; \
21999 (cd $(HOST_SUBDIR)/gzip && \
22000 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22001 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22002 "RANLIB=$${RANLIB}" \
bffcbe34 22003 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
22004 install-html) \
22005 || exit 1
22006
22007@endif gzip
22008
d5eec917
PB
22009.PHONY: maybe-installcheck-gzip installcheck-gzip
22010maybe-installcheck-gzip:
22011@if gzip
22012maybe-installcheck-gzip: installcheck-gzip
657b58f4 22013
d5eec917
PB
22014installcheck-gzip: \
22015 configure-gzip
15b527ca 22016 @: $(MAKE); $(unstage)
d5eec917 22017 @[ -f ./gzip/Makefile ] || exit 0; \
5230d454
L
22018 r=`${PWD_COMMAND}`; export r; \
22019 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 22020 $(HOST_EXPORTS) \
d5eec917 22021 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
22022 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22023 done; \
d5eec917 22024 echo "Doing installcheck in gzip" ; \
7fc2ca22 22025 (cd $(HOST_SUBDIR)/gzip && \
657b58f4
NN
22026 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22027 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22028 "RANLIB=$${RANLIB}" \
bffcbe34 22029 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 22030 installcheck) \
657b58f4
NN
22031 || exit 1
22032
d5eec917 22033@endif gzip
657b58f4 22034
d5eec917
PB
22035.PHONY: maybe-mostlyclean-gzip mostlyclean-gzip
22036maybe-mostlyclean-gzip:
22037@if gzip
22038maybe-mostlyclean-gzip: mostlyclean-gzip
657b58f4 22039
d5eec917 22040mostlyclean-gzip:
15b527ca 22041 @: $(MAKE); $(unstage)
d5eec917 22042 @[ -f ./gzip/Makefile ] || exit 0; \
5230d454
L
22043 r=`${PWD_COMMAND}`; export r; \
22044 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 22045 $(HOST_EXPORTS) \
d5eec917 22046 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
22047 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22048 done; \
d5eec917 22049 echo "Doing mostlyclean in gzip" ; \
7fc2ca22 22050 (cd $(HOST_SUBDIR)/gzip && \
657b58f4
NN
22051 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22052 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22053 "RANLIB=$${RANLIB}" \
bffcbe34 22054 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 22055 mostlyclean) \
657b58f4
NN
22056 || exit 1
22057
d5eec917 22058@endif gzip
657b58f4 22059
d5eec917
PB
22060.PHONY: maybe-clean-gzip clean-gzip
22061maybe-clean-gzip:
22062@if gzip
22063maybe-clean-gzip: clean-gzip
657b58f4 22064
d5eec917 22065clean-gzip:
15b527ca 22066 @: $(MAKE); $(unstage)
d5eec917 22067 @[ -f ./gzip/Makefile ] || exit 0; \
5230d454
L
22068 r=`${PWD_COMMAND}`; export r; \
22069 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 22070 $(HOST_EXPORTS) \
d5eec917 22071 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
22072 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22073 done; \
d5eec917 22074 echo "Doing clean in gzip" ; \
7fc2ca22 22075 (cd $(HOST_SUBDIR)/gzip && \
657b58f4
NN
22076 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22077 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22078 "RANLIB=$${RANLIB}" \
bffcbe34 22079 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 22080 clean) \
657b58f4
NN
22081 || exit 1
22082
d5eec917 22083@endif gzip
657b58f4 22084
d5eec917
PB
22085.PHONY: maybe-distclean-gzip distclean-gzip
22086maybe-distclean-gzip:
22087@if gzip
22088maybe-distclean-gzip: distclean-gzip
657b58f4 22089
d5eec917 22090distclean-gzip:
15b527ca 22091 @: $(MAKE); $(unstage)
d5eec917 22092 @[ -f ./gzip/Makefile ] || exit 0; \
5230d454
L
22093 r=`${PWD_COMMAND}`; export r; \
22094 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 22095 $(HOST_EXPORTS) \
d5eec917 22096 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
22097 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22098 done; \
d5eec917 22099 echo "Doing distclean in gzip" ; \
7fc2ca22 22100 (cd $(HOST_SUBDIR)/gzip && \
657b58f4
NN
22101 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22102 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22103 "RANLIB=$${RANLIB}" \
bffcbe34 22104 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 22105 distclean) \
657b58f4
NN
22106 || exit 1
22107
d5eec917 22108@endif gzip
657b58f4 22109
d5eec917
PB
22110.PHONY: maybe-maintainer-clean-gzip maintainer-clean-gzip
22111maybe-maintainer-clean-gzip:
22112@if gzip
22113maybe-maintainer-clean-gzip: maintainer-clean-gzip
657b58f4 22114
d5eec917 22115maintainer-clean-gzip:
15b527ca 22116 @: $(MAKE); $(unstage)
d5eec917 22117 @[ -f ./gzip/Makefile ] || exit 0; \
5230d454
L
22118 r=`${PWD_COMMAND}`; export r; \
22119 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 22120 $(HOST_EXPORTS) \
d5eec917 22121 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
22122 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22123 done; \
d5eec917 22124 echo "Doing maintainer-clean in gzip" ; \
7fc2ca22 22125 (cd $(HOST_SUBDIR)/gzip && \
657b58f4
NN
22126 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22127 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22128 "RANLIB=$${RANLIB}" \
bffcbe34 22129 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 22130 maintainer-clean) \
657b58f4
NN
22131 || exit 1
22132
d5eec917 22133@endif gzip
657b58f4 22134
657b58f4 22135
f0fdfd34 22136
d5eec917
PB
22137.PHONY: configure-hello maybe-configure-hello
22138maybe-configure-hello:
e1e5148c
CD
22139@if gcc-bootstrap
22140configure-hello: stage_current
22141@endif gcc-bootstrap
d5eec917
PB
22142@if hello
22143maybe-configure-hello: configure-hello
ec92c4d6 22144configure-hello:
15b527ca 22145 @: $(MAKE); $(unstage)
ec92c4d6 22146 @r=`${PWD_COMMAND}`; export r; \
5230d454 22147 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
22148 test ! -f $(HOST_SUBDIR)/hello/Makefile || exit 0; \
22149 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/hello ; \
a675b75a 22150 $(HOST_EXPORTS) \
f0fdfd34
PB
22151 echo Configuring in $(HOST_SUBDIR)/hello; \
22152 cd "$(HOST_SUBDIR)/hello" || exit 1; \
8ec98d6c 22153 case $(srcdir) in \
7fc2ca22
PB
22154 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
22155 *) topdir=`echo $(HOST_SUBDIR)/hello/ | \
22156 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 22157 esac; \
7fc2ca22
PB
22158 srcdiroption="--srcdir=$${topdir}/hello"; \
22159 libsrcdir="$$s/hello"; \
8ec98d6c 22160 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
22161 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
22162 --target=${target_alias} $${srcdiroption} \
657b58f4 22163 || exit 1
d5eec917 22164@endif hello
657b58f4 22165
f0fdfd34
PB
22166
22167
a8a96878
PB
22168
22169
d5eec917
PB
22170.PHONY: all-hello maybe-all-hello
22171maybe-all-hello:
e1e5148c
CD
22172@if gcc-bootstrap
22173all-hello: stage_current
22174@endif gcc-bootstrap
d5eec917 22175@if hello
5e6b1f07 22176TARGET-hello=all
d5eec917
PB
22177maybe-all-hello: all-hello
22178all-hello: configure-hello
15b527ca 22179 @: $(MAKE); $(unstage)
8ec98d6c
NN
22180 @r=`${PWD_COMMAND}`; export r; \
22181 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 22182 $(HOST_EXPORTS) \
7fc2ca22 22183 (cd $(HOST_SUBDIR)/hello && \
6532abb6
PB
22184 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
22185 $(TARGET-hello))
d5eec917 22186@endif hello
657b58f4 22187
f0fdfd34 22188
a8a96878
PB
22189
22190
d5eec917
PB
22191.PHONY: check-hello maybe-check-hello
22192maybe-check-hello:
22193@if hello
22194maybe-check-hello: check-hello
657b58f4 22195
d5eec917 22196check-hello:
15b527ca 22197 @: $(MAKE); $(unstage)
8ec98d6c 22198 @r=`${PWD_COMMAND}`; export r; \
5230d454 22199 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 22200 $(HOST_EXPORTS) \
7fc2ca22
PB
22201 (cd $(HOST_SUBDIR)/hello && \
22202 $(MAKE) $(FLAGS_TO_PASS) check)
657b58f4 22203
d5eec917 22204@endif hello
657b58f4 22205
d5eec917
PB
22206.PHONY: install-hello maybe-install-hello
22207maybe-install-hello:
22208@if hello
22209maybe-install-hello: install-hello
657b58f4 22210
d5eec917 22211install-hello: installdirs
15b527ca 22212 @: $(MAKE); $(unstage)
8ec98d6c
NN
22213 @r=`${PWD_COMMAND}`; export r; \
22214 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 22215 $(HOST_EXPORTS) \
7fc2ca22 22216 (cd $(HOST_SUBDIR)/hello && \
93c60b6d 22217 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 22218
d5eec917 22219@endif hello
8ec98d6c 22220
39bbbb69 22221# Other targets (info, dvi, pdf, etc.)
8ec98d6c 22222
d5eec917
PB
22223.PHONY: maybe-info-hello info-hello
22224maybe-info-hello:
22225@if hello
22226maybe-info-hello: info-hello
8ec98d6c 22227
d5eec917
PB
22228info-hello: \
22229 configure-hello
15b527ca 22230 @: $(MAKE); $(unstage)
d5eec917 22231 @[ -f ./hello/Makefile ] || exit 0; \
5230d454
L
22232 r=`${PWD_COMMAND}`; export r; \
22233 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 22234 $(HOST_EXPORTS) \
d5eec917 22235 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
22236 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22237 done; \
d5eec917 22238 echo "Doing info in hello" ; \
7fc2ca22 22239 (cd $(HOST_SUBDIR)/hello && \
657b58f4
NN
22240 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22241 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22242 "RANLIB=$${RANLIB}" \
bffcbe34 22243 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 22244 info) \
657b58f4
NN
22245 || exit 1
22246
d5eec917 22247@endif hello
657b58f4 22248
d5eec917
PB
22249.PHONY: maybe-dvi-hello dvi-hello
22250maybe-dvi-hello:
22251@if hello
22252maybe-dvi-hello: dvi-hello
657b58f4 22253
d5eec917
PB
22254dvi-hello: \
22255 configure-hello
15b527ca 22256 @: $(MAKE); $(unstage)
d5eec917 22257 @[ -f ./hello/Makefile ] || exit 0; \
5230d454
L
22258 r=`${PWD_COMMAND}`; export r; \
22259 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 22260 $(HOST_EXPORTS) \
d5eec917 22261 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
22262 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22263 done; \
d5eec917 22264 echo "Doing dvi in hello" ; \
7fc2ca22 22265 (cd $(HOST_SUBDIR)/hello && \
657b58f4
NN
22266 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22267 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22268 "RANLIB=$${RANLIB}" \
bffcbe34 22269 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 22270 dvi) \
657b58f4
NN
22271 || exit 1
22272
d5eec917 22273@endif hello
657b58f4 22274
39bbbb69
DD
22275.PHONY: maybe-pdf-hello pdf-hello
22276maybe-pdf-hello:
22277@if hello
22278maybe-pdf-hello: pdf-hello
22279
22280pdf-hello: \
22281 configure-hello
22282 @: $(MAKE); $(unstage)
22283 @[ -f ./hello/Makefile ] || exit 0; \
22284 r=`${PWD_COMMAND}`; export r; \
22285 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22286 $(HOST_EXPORTS) \
22287 for flag in $(EXTRA_HOST_FLAGS) ; do \
22288 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22289 done; \
22290 echo "Doing pdf in hello" ; \
22291 (cd $(HOST_SUBDIR)/hello && \
22292 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22293 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22294 "RANLIB=$${RANLIB}" \
bffcbe34 22295 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
22296 pdf) \
22297 || exit 1
22298
22299@endif hello
22300
b6fb961f
MS
22301.PHONY: maybe-html-hello html-hello
22302maybe-html-hello:
22303@if hello
22304maybe-html-hello: html-hello
22305
22306html-hello: \
22307 configure-hello
15b527ca 22308 @: $(MAKE); $(unstage)
b6fb961f
MS
22309 @[ -f ./hello/Makefile ] || exit 0; \
22310 r=`${PWD_COMMAND}`; export r; \
22311 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
22312 $(HOST_EXPORTS) \
22313 for flag in $(EXTRA_HOST_FLAGS) ; do \
22314 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22315 done; \
22316 echo "Doing html in hello" ; \
7fc2ca22 22317 (cd $(HOST_SUBDIR)/hello && \
b6fb961f
MS
22318 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22319 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22320 "RANLIB=$${RANLIB}" \
bffcbe34 22321 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
22322 html) \
22323 || exit 1
22324
22325@endif hello
22326
d5eec917
PB
22327.PHONY: maybe-TAGS-hello TAGS-hello
22328maybe-TAGS-hello:
22329@if hello
22330maybe-TAGS-hello: TAGS-hello
657b58f4 22331
d5eec917
PB
22332TAGS-hello: \
22333 configure-hello
15b527ca 22334 @: $(MAKE); $(unstage)
d5eec917 22335 @[ -f ./hello/Makefile ] || exit 0; \
5230d454
L
22336 r=`${PWD_COMMAND}`; export r; \
22337 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 22338 $(HOST_EXPORTS) \
d5eec917 22339 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
22340 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22341 done; \
d5eec917 22342 echo "Doing TAGS in hello" ; \
7fc2ca22 22343 (cd $(HOST_SUBDIR)/hello && \
657b58f4
NN
22344 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22345 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22346 "RANLIB=$${RANLIB}" \
bffcbe34 22347 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 22348 TAGS) \
657b58f4
NN
22349 || exit 1
22350
d5eec917 22351@endif hello
657b58f4 22352
d5eec917
PB
22353.PHONY: maybe-install-info-hello install-info-hello
22354maybe-install-info-hello:
22355@if hello
22356maybe-install-info-hello: install-info-hello
657b58f4 22357
d5eec917
PB
22358install-info-hello: \
22359 configure-hello \
22360 info-hello
15b527ca 22361 @: $(MAKE); $(unstage)
d5eec917 22362 @[ -f ./hello/Makefile ] || exit 0; \
5230d454
L
22363 r=`${PWD_COMMAND}`; export r; \
22364 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 22365 $(HOST_EXPORTS) \
d5eec917 22366 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
22367 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22368 done; \
d5eec917 22369 echo "Doing install-info in hello" ; \
7fc2ca22 22370 (cd $(HOST_SUBDIR)/hello && \
657b58f4
NN
22371 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22372 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22373 "RANLIB=$${RANLIB}" \
bffcbe34 22374 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 22375 install-info) \
657b58f4
NN
22376 || exit 1
22377
d5eec917 22378@endif hello
657b58f4 22379
d4954b6d
DD
22380.PHONY: maybe-install-pdf-hello install-pdf-hello
22381maybe-install-pdf-hello:
22382@if hello
22383maybe-install-pdf-hello: install-pdf-hello
22384
22385install-pdf-hello: \
22386 configure-hello \
22387 pdf-hello
22388 @: $(MAKE); $(unstage)
22389 @[ -f ./hello/Makefile ] || exit 0; \
22390 r=`${PWD_COMMAND}`; export r; \
22391 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22392 $(HOST_EXPORTS) \
22393 for flag in $(EXTRA_HOST_FLAGS) ; do \
22394 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22395 done; \
22396 echo "Doing install-pdf in hello" ; \
22397 (cd $(HOST_SUBDIR)/hello && \
22398 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22399 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22400 "RANLIB=$${RANLIB}" \
bffcbe34 22401 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
22402 install-pdf) \
22403 || exit 1
22404
22405@endif hello
22406
83c9add4
CD
22407.PHONY: maybe-install-html-hello install-html-hello
22408maybe-install-html-hello:
22409@if hello
22410maybe-install-html-hello: install-html-hello
22411
22412install-html-hello: \
22413 configure-hello \
22414 html-hello
22415 @: $(MAKE); $(unstage)
22416 @[ -f ./hello/Makefile ] || exit 0; \
22417 r=`${PWD_COMMAND}`; export r; \
22418 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22419 $(HOST_EXPORTS) \
22420 for flag in $(EXTRA_HOST_FLAGS) ; do \
22421 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22422 done; \
22423 echo "Doing install-html in hello" ; \
22424 (cd $(HOST_SUBDIR)/hello && \
22425 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22426 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22427 "RANLIB=$${RANLIB}" \
bffcbe34 22428 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
22429 install-html) \
22430 || exit 1
22431
22432@endif hello
22433
d5eec917
PB
22434.PHONY: maybe-installcheck-hello installcheck-hello
22435maybe-installcheck-hello:
22436@if hello
22437maybe-installcheck-hello: installcheck-hello
657b58f4 22438
d5eec917
PB
22439installcheck-hello: \
22440 configure-hello
15b527ca 22441 @: $(MAKE); $(unstage)
d5eec917 22442 @[ -f ./hello/Makefile ] || exit 0; \
5230d454
L
22443 r=`${PWD_COMMAND}`; export r; \
22444 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 22445 $(HOST_EXPORTS) \
d5eec917 22446 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
22447 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22448 done; \
d5eec917 22449 echo "Doing installcheck in hello" ; \
7fc2ca22 22450 (cd $(HOST_SUBDIR)/hello && \
657b58f4
NN
22451 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22452 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22453 "RANLIB=$${RANLIB}" \
bffcbe34 22454 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 22455 installcheck) \
657b58f4
NN
22456 || exit 1
22457
d5eec917 22458@endif hello
657b58f4 22459
d5eec917
PB
22460.PHONY: maybe-mostlyclean-hello mostlyclean-hello
22461maybe-mostlyclean-hello:
22462@if hello
22463maybe-mostlyclean-hello: mostlyclean-hello
657b58f4 22464
d5eec917 22465mostlyclean-hello:
15b527ca 22466 @: $(MAKE); $(unstage)
d5eec917 22467 @[ -f ./hello/Makefile ] || exit 0; \
5230d454
L
22468 r=`${PWD_COMMAND}`; export r; \
22469 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 22470 $(HOST_EXPORTS) \
d5eec917 22471 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
22472 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22473 done; \
d5eec917 22474 echo "Doing mostlyclean in hello" ; \
7fc2ca22 22475 (cd $(HOST_SUBDIR)/hello && \
657b58f4
NN
22476 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22477 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22478 "RANLIB=$${RANLIB}" \
bffcbe34 22479 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 22480 mostlyclean) \
657b58f4
NN
22481 || exit 1
22482
d5eec917 22483@endif hello
657b58f4 22484
d5eec917
PB
22485.PHONY: maybe-clean-hello clean-hello
22486maybe-clean-hello:
22487@if hello
22488maybe-clean-hello: clean-hello
657b58f4 22489
d5eec917 22490clean-hello:
15b527ca 22491 @: $(MAKE); $(unstage)
d5eec917 22492 @[ -f ./hello/Makefile ] || exit 0; \
5230d454
L
22493 r=`${PWD_COMMAND}`; export r; \
22494 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 22495 $(HOST_EXPORTS) \
d5eec917 22496 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
22497 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22498 done; \
d5eec917 22499 echo "Doing clean in hello" ; \
7fc2ca22 22500 (cd $(HOST_SUBDIR)/hello && \
657b58f4
NN
22501 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22502 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22503 "RANLIB=$${RANLIB}" \
bffcbe34 22504 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 22505 clean) \
657b58f4
NN
22506 || exit 1
22507
d5eec917 22508@endif hello
657b58f4 22509
d5eec917
PB
22510.PHONY: maybe-distclean-hello distclean-hello
22511maybe-distclean-hello:
22512@if hello
22513maybe-distclean-hello: distclean-hello
657b58f4 22514
d5eec917 22515distclean-hello:
15b527ca 22516 @: $(MAKE); $(unstage)
d5eec917 22517 @[ -f ./hello/Makefile ] || exit 0; \
5230d454
L
22518 r=`${PWD_COMMAND}`; export r; \
22519 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 22520 $(HOST_EXPORTS) \
d5eec917 22521 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
22522 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22523 done; \
d5eec917 22524 echo "Doing distclean in hello" ; \
7fc2ca22 22525 (cd $(HOST_SUBDIR)/hello && \
657b58f4
NN
22526 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22527 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22528 "RANLIB=$${RANLIB}" \
bffcbe34 22529 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 22530 distclean) \
657b58f4
NN
22531 || exit 1
22532
d5eec917 22533@endif hello
657b58f4 22534
d5eec917
PB
22535.PHONY: maybe-maintainer-clean-hello maintainer-clean-hello
22536maybe-maintainer-clean-hello:
22537@if hello
22538maybe-maintainer-clean-hello: maintainer-clean-hello
657b58f4 22539
d5eec917 22540maintainer-clean-hello:
15b527ca 22541 @: $(MAKE); $(unstage)
d5eec917 22542 @[ -f ./hello/Makefile ] || exit 0; \
5230d454
L
22543 r=`${PWD_COMMAND}`; export r; \
22544 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 22545 $(HOST_EXPORTS) \
d5eec917 22546 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
22547 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22548 done; \
d5eec917 22549 echo "Doing maintainer-clean in hello" ; \
7fc2ca22 22550 (cd $(HOST_SUBDIR)/hello && \
657b58f4
NN
22551 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22552 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22553 "RANLIB=$${RANLIB}" \
bffcbe34 22554 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 22555 maintainer-clean) \
657b58f4
NN
22556 || exit 1
22557
d5eec917 22558@endif hello
657b58f4 22559
657b58f4 22560
f0fdfd34 22561
d5eec917
PB
22562.PHONY: configure-indent maybe-configure-indent
22563maybe-configure-indent:
e1e5148c
CD
22564@if gcc-bootstrap
22565configure-indent: stage_current
22566@endif gcc-bootstrap
d5eec917
PB
22567@if indent
22568maybe-configure-indent: configure-indent
ec92c4d6 22569configure-indent:
15b527ca 22570 @: $(MAKE); $(unstage)
ec92c4d6 22571 @r=`${PWD_COMMAND}`; export r; \
8ec98d6c 22572 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
22573 test ! -f $(HOST_SUBDIR)/indent/Makefile || exit 0; \
22574 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/indent ; \
a675b75a 22575 $(HOST_EXPORTS) \
f0fdfd34
PB
22576 echo Configuring in $(HOST_SUBDIR)/indent; \
22577 cd "$(HOST_SUBDIR)/indent" || exit 1; \
8ec98d6c 22578 case $(srcdir) in \
7fc2ca22
PB
22579 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
22580 *) topdir=`echo $(HOST_SUBDIR)/indent/ | \
22581 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 22582 esac; \
7fc2ca22
PB
22583 srcdiroption="--srcdir=$${topdir}/indent"; \
22584 libsrcdir="$$s/indent"; \
8ec98d6c 22585 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
22586 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
22587 --target=${target_alias} $${srcdiroption} \
8ec98d6c 22588 || exit 1
d5eec917 22589@endif indent
657b58f4 22590
f0fdfd34
PB
22591
22592
a8a96878
PB
22593
22594
d5eec917
PB
22595.PHONY: all-indent maybe-all-indent
22596maybe-all-indent:
e1e5148c
CD
22597@if gcc-bootstrap
22598all-indent: stage_current
22599@endif gcc-bootstrap
d5eec917 22600@if indent
5e6b1f07 22601TARGET-indent=all
d5eec917
PB
22602maybe-all-indent: all-indent
22603all-indent: configure-indent
15b527ca 22604 @: $(MAKE); $(unstage)
8ec98d6c
NN
22605 @r=`${PWD_COMMAND}`; export r; \
22606 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 22607 $(HOST_EXPORTS) \
7fc2ca22 22608 (cd $(HOST_SUBDIR)/indent && \
6532abb6
PB
22609 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
22610 $(TARGET-indent))
d5eec917 22611@endif indent
657b58f4 22612
f0fdfd34 22613
a8a96878
PB
22614
22615
d5eec917
PB
22616.PHONY: check-indent maybe-check-indent
22617maybe-check-indent:
22618@if indent
22619maybe-check-indent: check-indent
657b58f4 22620
d5eec917 22621check-indent:
15b527ca 22622 @: $(MAKE); $(unstage)
8ec98d6c 22623 @r=`${PWD_COMMAND}`; export r; \
5230d454 22624 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 22625 $(HOST_EXPORTS) \
7fc2ca22
PB
22626 (cd $(HOST_SUBDIR)/indent && \
22627 $(MAKE) $(FLAGS_TO_PASS) check)
657b58f4 22628
d5eec917 22629@endif indent
657b58f4 22630
d5eec917
PB
22631.PHONY: install-indent maybe-install-indent
22632maybe-install-indent:
22633@if indent
22634maybe-install-indent: install-indent
657b58f4 22635
d5eec917 22636install-indent: installdirs
15b527ca 22637 @: $(MAKE); $(unstage)
8ec98d6c 22638 @r=`${PWD_COMMAND}`; export r; \
5230d454 22639 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 22640 $(HOST_EXPORTS) \
7fc2ca22 22641 (cd $(HOST_SUBDIR)/indent && \
93c60b6d 22642 $(MAKE) $(FLAGS_TO_PASS) install)
657b58f4 22643
d5eec917 22644@endif indent
657b58f4 22645
39bbbb69 22646# Other targets (info, dvi, pdf, etc.)
657b58f4 22647
d5eec917
PB
22648.PHONY: maybe-info-indent info-indent
22649maybe-info-indent:
22650@if indent
22651maybe-info-indent: info-indent
8ec98d6c 22652
d5eec917
PB
22653info-indent: \
22654 configure-indent
15b527ca 22655 @: $(MAKE); $(unstage)
d5eec917 22656 @[ -f ./indent/Makefile ] || exit 0; \
5230d454
L
22657 r=`${PWD_COMMAND}`; export r; \
22658 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 22659 $(HOST_EXPORTS) \
d5eec917 22660 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
22661 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22662 done; \
d5eec917 22663 echo "Doing info in indent" ; \
7fc2ca22 22664 (cd $(HOST_SUBDIR)/indent && \
657b58f4
NN
22665 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22666 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22667 "RANLIB=$${RANLIB}" \
bffcbe34 22668 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 22669 info) \
657b58f4
NN
22670 || exit 1
22671
d5eec917 22672@endif indent
657b58f4 22673
d5eec917
PB
22674.PHONY: maybe-dvi-indent dvi-indent
22675maybe-dvi-indent:
22676@if indent
22677maybe-dvi-indent: dvi-indent
657b58f4 22678
d5eec917
PB
22679dvi-indent: \
22680 configure-indent
15b527ca 22681 @: $(MAKE); $(unstage)
d5eec917 22682 @[ -f ./indent/Makefile ] || exit 0; \
5230d454
L
22683 r=`${PWD_COMMAND}`; export r; \
22684 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 22685 $(HOST_EXPORTS) \
d5eec917 22686 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
22687 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22688 done; \
d5eec917 22689 echo "Doing dvi in indent" ; \
7fc2ca22 22690 (cd $(HOST_SUBDIR)/indent && \
657b58f4
NN
22691 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22692 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22693 "RANLIB=$${RANLIB}" \
bffcbe34 22694 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 22695 dvi) \
657b58f4
NN
22696 || exit 1
22697
d5eec917 22698@endif indent
657b58f4 22699
39bbbb69
DD
22700.PHONY: maybe-pdf-indent pdf-indent
22701maybe-pdf-indent:
22702@if indent
22703maybe-pdf-indent: pdf-indent
22704
22705pdf-indent: \
22706 configure-indent
22707 @: $(MAKE); $(unstage)
22708 @[ -f ./indent/Makefile ] || exit 0; \
22709 r=`${PWD_COMMAND}`; export r; \
22710 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22711 $(HOST_EXPORTS) \
22712 for flag in $(EXTRA_HOST_FLAGS) ; do \
22713 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22714 done; \
22715 echo "Doing pdf in indent" ; \
22716 (cd $(HOST_SUBDIR)/indent && \
22717 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22718 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22719 "RANLIB=$${RANLIB}" \
bffcbe34 22720 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
22721 pdf) \
22722 || exit 1
22723
22724@endif indent
22725
b6fb961f
MS
22726.PHONY: maybe-html-indent html-indent
22727maybe-html-indent:
22728@if indent
22729maybe-html-indent: html-indent
22730
22731html-indent: \
22732 configure-indent
15b527ca 22733 @: $(MAKE); $(unstage)
b6fb961f
MS
22734 @[ -f ./indent/Makefile ] || exit 0; \
22735 r=`${PWD_COMMAND}`; export r; \
22736 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
22737 $(HOST_EXPORTS) \
22738 for flag in $(EXTRA_HOST_FLAGS) ; do \
22739 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22740 done; \
22741 echo "Doing html in indent" ; \
7fc2ca22 22742 (cd $(HOST_SUBDIR)/indent && \
b6fb961f
MS
22743 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22744 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22745 "RANLIB=$${RANLIB}" \
bffcbe34 22746 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
22747 html) \
22748 || exit 1
22749
22750@endif indent
22751
d5eec917
PB
22752.PHONY: maybe-TAGS-indent TAGS-indent
22753maybe-TAGS-indent:
22754@if indent
22755maybe-TAGS-indent: TAGS-indent
657b58f4 22756
d5eec917
PB
22757TAGS-indent: \
22758 configure-indent
15b527ca 22759 @: $(MAKE); $(unstage)
d5eec917 22760 @[ -f ./indent/Makefile ] || exit 0; \
5230d454
L
22761 r=`${PWD_COMMAND}`; export r; \
22762 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 22763 $(HOST_EXPORTS) \
d5eec917 22764 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
22765 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22766 done; \
d5eec917 22767 echo "Doing TAGS in indent" ; \
7fc2ca22 22768 (cd $(HOST_SUBDIR)/indent && \
657b58f4
NN
22769 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22770 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22771 "RANLIB=$${RANLIB}" \
bffcbe34 22772 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 22773 TAGS) \
657b58f4
NN
22774 || exit 1
22775
d5eec917 22776@endif indent
657b58f4 22777
d5eec917
PB
22778.PHONY: maybe-install-info-indent install-info-indent
22779maybe-install-info-indent:
22780@if indent
22781maybe-install-info-indent: install-info-indent
657b58f4 22782
d5eec917
PB
22783install-info-indent: \
22784 configure-indent \
22785 info-indent
15b527ca 22786 @: $(MAKE); $(unstage)
d5eec917 22787 @[ -f ./indent/Makefile ] || exit 0; \
5230d454
L
22788 r=`${PWD_COMMAND}`; export r; \
22789 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 22790 $(HOST_EXPORTS) \
d5eec917 22791 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
22792 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22793 done; \
d5eec917 22794 echo "Doing install-info in indent" ; \
7fc2ca22 22795 (cd $(HOST_SUBDIR)/indent && \
657b58f4
NN
22796 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22797 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22798 "RANLIB=$${RANLIB}" \
bffcbe34 22799 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 22800 install-info) \
657b58f4
NN
22801 || exit 1
22802
d5eec917 22803@endif indent
657b58f4 22804
d4954b6d
DD
22805.PHONY: maybe-install-pdf-indent install-pdf-indent
22806maybe-install-pdf-indent:
22807@if indent
22808maybe-install-pdf-indent: install-pdf-indent
22809
22810install-pdf-indent: \
22811 configure-indent \
22812 pdf-indent
22813 @: $(MAKE); $(unstage)
22814 @[ -f ./indent/Makefile ] || exit 0; \
22815 r=`${PWD_COMMAND}`; export r; \
22816 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22817 $(HOST_EXPORTS) \
22818 for flag in $(EXTRA_HOST_FLAGS) ; do \
22819 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22820 done; \
22821 echo "Doing install-pdf in indent" ; \
22822 (cd $(HOST_SUBDIR)/indent && \
22823 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22824 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22825 "RANLIB=$${RANLIB}" \
bffcbe34 22826 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
22827 install-pdf) \
22828 || exit 1
22829
22830@endif indent
22831
83c9add4
CD
22832.PHONY: maybe-install-html-indent install-html-indent
22833maybe-install-html-indent:
22834@if indent
22835maybe-install-html-indent: install-html-indent
22836
22837install-html-indent: \
22838 configure-indent \
22839 html-indent
22840 @: $(MAKE); $(unstage)
22841 @[ -f ./indent/Makefile ] || exit 0; \
22842 r=`${PWD_COMMAND}`; export r; \
22843 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22844 $(HOST_EXPORTS) \
22845 for flag in $(EXTRA_HOST_FLAGS) ; do \
22846 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22847 done; \
22848 echo "Doing install-html in indent" ; \
22849 (cd $(HOST_SUBDIR)/indent && \
22850 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22851 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22852 "RANLIB=$${RANLIB}" \
bffcbe34 22853 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
22854 install-html) \
22855 || exit 1
22856
22857@endif indent
22858
d5eec917
PB
22859.PHONY: maybe-installcheck-indent installcheck-indent
22860maybe-installcheck-indent:
22861@if indent
22862maybe-installcheck-indent: installcheck-indent
657b58f4 22863
d5eec917
PB
22864installcheck-indent: \
22865 configure-indent
15b527ca 22866 @: $(MAKE); $(unstage)
d5eec917 22867 @[ -f ./indent/Makefile ] || exit 0; \
5230d454
L
22868 r=`${PWD_COMMAND}`; export r; \
22869 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 22870 $(HOST_EXPORTS) \
d5eec917 22871 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
22872 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22873 done; \
d5eec917 22874 echo "Doing installcheck in indent" ; \
7fc2ca22 22875 (cd $(HOST_SUBDIR)/indent && \
657b58f4
NN
22876 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22877 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22878 "RANLIB=$${RANLIB}" \
bffcbe34 22879 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 22880 installcheck) \
657b58f4
NN
22881 || exit 1
22882
d5eec917 22883@endif indent
657b58f4 22884
d5eec917
PB
22885.PHONY: maybe-mostlyclean-indent mostlyclean-indent
22886maybe-mostlyclean-indent:
22887@if indent
22888maybe-mostlyclean-indent: mostlyclean-indent
657b58f4 22889
d5eec917 22890mostlyclean-indent:
15b527ca 22891 @: $(MAKE); $(unstage)
d5eec917 22892 @[ -f ./indent/Makefile ] || exit 0; \
5230d454
L
22893 r=`${PWD_COMMAND}`; export r; \
22894 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 22895 $(HOST_EXPORTS) \
d5eec917 22896 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
22897 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22898 done; \
d5eec917 22899 echo "Doing mostlyclean in indent" ; \
7fc2ca22 22900 (cd $(HOST_SUBDIR)/indent && \
657b58f4
NN
22901 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22902 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22903 "RANLIB=$${RANLIB}" \
bffcbe34 22904 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 22905 mostlyclean) \
657b58f4
NN
22906 || exit 1
22907
d5eec917 22908@endif indent
657b58f4 22909
d5eec917
PB
22910.PHONY: maybe-clean-indent clean-indent
22911maybe-clean-indent:
22912@if indent
22913maybe-clean-indent: clean-indent
657b58f4 22914
d5eec917 22915clean-indent:
15b527ca 22916 @: $(MAKE); $(unstage)
d5eec917 22917 @[ -f ./indent/Makefile ] || exit 0; \
5230d454
L
22918 r=`${PWD_COMMAND}`; export r; \
22919 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 22920 $(HOST_EXPORTS) \
d5eec917 22921 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
22922 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22923 done; \
d5eec917 22924 echo "Doing clean in indent" ; \
7fc2ca22 22925 (cd $(HOST_SUBDIR)/indent && \
657b58f4
NN
22926 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22927 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22928 "RANLIB=$${RANLIB}" \
bffcbe34 22929 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 22930 clean) \
657b58f4
NN
22931 || exit 1
22932
d5eec917 22933@endif indent
657b58f4 22934
d5eec917
PB
22935.PHONY: maybe-distclean-indent distclean-indent
22936maybe-distclean-indent:
22937@if indent
22938maybe-distclean-indent: distclean-indent
657b58f4 22939
d5eec917 22940distclean-indent:
15b527ca 22941 @: $(MAKE); $(unstage)
d5eec917 22942 @[ -f ./indent/Makefile ] || exit 0; \
5230d454
L
22943 r=`${PWD_COMMAND}`; export r; \
22944 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 22945 $(HOST_EXPORTS) \
d5eec917 22946 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
22947 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22948 done; \
d5eec917 22949 echo "Doing distclean in indent" ; \
7fc2ca22 22950 (cd $(HOST_SUBDIR)/indent && \
657b58f4
NN
22951 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22952 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22953 "RANLIB=$${RANLIB}" \
bffcbe34 22954 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 22955 distclean) \
657b58f4
NN
22956 || exit 1
22957
d5eec917 22958@endif indent
657b58f4 22959
d5eec917
PB
22960.PHONY: maybe-maintainer-clean-indent maintainer-clean-indent
22961maybe-maintainer-clean-indent:
22962@if indent
22963maybe-maintainer-clean-indent: maintainer-clean-indent
657b58f4 22964
d5eec917 22965maintainer-clean-indent:
15b527ca 22966 @: $(MAKE); $(unstage)
d5eec917 22967 @[ -f ./indent/Makefile ] || exit 0; \
5230d454
L
22968 r=`${PWD_COMMAND}`; export r; \
22969 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 22970 $(HOST_EXPORTS) \
d5eec917 22971 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
22972 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22973 done; \
d5eec917 22974 echo "Doing maintainer-clean in indent" ; \
7fc2ca22 22975 (cd $(HOST_SUBDIR)/indent && \
657b58f4
NN
22976 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22977 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22978 "RANLIB=$${RANLIB}" \
bffcbe34 22979 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 22980 maintainer-clean) \
657b58f4
NN
22981 || exit 1
22982
d5eec917 22983@endif indent
657b58f4 22984
d832a288 22985
f0fdfd34 22986
d5eec917
PB
22987.PHONY: configure-intl maybe-configure-intl
22988maybe-configure-intl:
e1e5148c
CD
22989@if gcc-bootstrap
22990configure-intl: stage_current
22991@endif gcc-bootstrap
d5eec917
PB
22992@if intl
22993maybe-configure-intl: configure-intl
ec92c4d6 22994configure-intl:
ec92c4d6
PB
22995 @r=`${PWD_COMMAND}`; export r; \
22996 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7fc2ca22
PB
22997 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
22998 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \
a675b75a 22999 $(HOST_EXPORTS) \
f0fdfd34
PB
23000 echo Configuring in $(HOST_SUBDIR)/intl; \
23001 cd "$(HOST_SUBDIR)/intl" || exit 1; \
8ec98d6c 23002 case $(srcdir) in \
7fc2ca22
PB
23003 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23004 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
23005 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 23006 esac; \
7fc2ca22
PB
23007 srcdiroption="--srcdir=$${topdir}/intl"; \
23008 libsrcdir="$$s/intl"; \
8ec98d6c 23009 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
23010 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23011 --target=${target_alias} $${srcdiroption} \
d832a288 23012 || exit 1
d5eec917 23013@endif intl
d832a288 23014
f0fdfd34
PB
23015
23016
a8a96878
PB
23017.PHONY: configure-stage1-intl maybe-configure-stage1-intl
23018maybe-configure-stage1-intl:
23019@if intl-bootstrap
23020maybe-configure-stage1-intl: configure-stage1-intl
15b527ca 23021configure-stage1-intl:
ec92c4d6 23022 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
15b527ca 23023 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
ec92c4d6
PB
23024 @r=`${PWD_COMMAND}`; export r; \
23025 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15b527ca 23026 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
6532abb6 23027 $(HOST_EXPORTS) \
2ba09444 23028 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
6532abb6 23029 CXXFLAGS="$(STAGE1_CFLAGS)"; export CXXFLAGS; \
a8a96878 23030 echo Configuring stage 1 in $(HOST_SUBDIR)/intl ; \
15b527ca 23031 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \
a8a96878
PB
23032 cd $(HOST_SUBDIR)/intl || exit 1; \
23033 case $(srcdir) in \
23034 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23035 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
23036 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23037 esac; \
23038 srcdiroption="--srcdir=$${topdir}/intl"; \
23039 libsrcdir="$$s/intl"; \
23040 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
23041 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23042 --target=${target_alias} $${srcdiroption} \
380e48e5 23043 \
14a1406e 23044 --disable-intermodule $(STAGE1_CHECKING) --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
a8a96878
PB
23045@endif intl-bootstrap
23046
23047.PHONY: configure-stage2-intl maybe-configure-stage2-intl
23048maybe-configure-stage2-intl:
23049@if intl-bootstrap
23050maybe-configure-stage2-intl: configure-stage2-intl
15b527ca 23051configure-stage2-intl:
ec92c4d6 23052 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
15b527ca 23053 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
ec92c4d6
PB
23054 @r=`${PWD_COMMAND}`; export r; \
23055 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15b527ca 23056 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
a8a96878 23057 $(HOST_EXPORTS) \
6532abb6 23058 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 23059 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
6532abb6 23060 CXXFLAGS="$(STAGE2_CFLAGS)"; export CXXFLAGS; \
a8a96878 23061 echo Configuring stage 2 in $(HOST_SUBDIR)/intl ; \
15b527ca 23062 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \
a8a96878
PB
23063 cd $(HOST_SUBDIR)/intl || exit 1; \
23064 case $(srcdir) in \
23065 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23066 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
23067 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23068 esac; \
23069 srcdiroption="--srcdir=$${topdir}/intl"; \
23070 libsrcdir="$$s/intl"; \
23071 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
23072 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23073 --target=${target_alias} $${srcdiroption} \
380e48e5 23074 --with-build-libsubdir=$(HOST_SUBDIR) \
a8a96878
PB
23075 @stage2_werror_flag@
23076@endif intl-bootstrap
23077
2b41ef78
AO
23078.PHONY: configure-stageb2g0-intl maybe-configure-stageb2g0-intl
23079maybe-configure-stageb2g0-intl:
23080@if intl-bootstrap
23081maybe-configure-stageb2g0-intl: configure-stageb2g0-intl
23082configure-stageb2g0-intl:
23083 @[ $(current_stage) = stageb2g0 ] || $(MAKE) stageb2g0-start
23084 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
23085 @r=`${PWD_COMMAND}`; export r; \
23086 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23087 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
23088 $(HOST_EXPORTS) \
6532abb6 23089 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 23090 CFLAGS="$(STAGE2_CFLAGS) -g0"; export CFLAGS; \
6532abb6 23091 CXXFLAGS="$(STAGE2_CFLAGS) -g0"; export CXXFLAGS; \
2b41ef78
AO
23092 echo Configuring stage b2g0 in $(HOST_SUBDIR)/intl ; \
23093 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \
23094 cd $(HOST_SUBDIR)/intl || exit 1; \
23095 case $(srcdir) in \
23096 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23097 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
23098 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23099 esac; \
23100 srcdiroption="--srcdir=$${topdir}/intl"; \
23101 libsrcdir="$$s/intl"; \
23102 $(SHELL) $${libsrcdir}/configure \
23103 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23104 --target=${target_alias} $${srcdiroption} \
23105 --with-build-libsubdir=$(HOST_SUBDIR) \
23106 @stage2_werror_flag@
23107@endif intl-bootstrap
23108
a8a96878
PB
23109.PHONY: configure-stage3-intl maybe-configure-stage3-intl
23110maybe-configure-stage3-intl:
23111@if intl-bootstrap
23112maybe-configure-stage3-intl: configure-stage3-intl
15b527ca 23113configure-stage3-intl:
ec92c4d6 23114 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
15b527ca 23115 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
ec92c4d6
PB
23116 @r=`${PWD_COMMAND}`; export r; \
23117 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15b527ca 23118 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
a8a96878 23119 $(HOST_EXPORTS) \
6532abb6 23120 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 23121 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
6532abb6 23122 CXXFLAGS="$(STAGE3_CFLAGS)"; export CXXFLAGS; \
a8a96878 23123 echo Configuring stage 3 in $(HOST_SUBDIR)/intl ; \
15b527ca 23124 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \
a8a96878
PB
23125 cd $(HOST_SUBDIR)/intl || exit 1; \
23126 case $(srcdir) in \
23127 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23128 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
23129 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23130 esac; \
23131 srcdiroption="--srcdir=$${topdir}/intl"; \
23132 libsrcdir="$$s/intl"; \
23133 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
23134 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23135 --target=${target_alias} $${srcdiroption} \
380e48e5 23136 --with-build-libsubdir=$(HOST_SUBDIR) \
a8a96878
PB
23137 @stage2_werror_flag@
23138@endif intl-bootstrap
23139
2b41ef78
AO
23140.PHONY: configure-stageb3g2-intl maybe-configure-stageb3g2-intl
23141maybe-configure-stageb3g2-intl:
23142@if intl-bootstrap
23143maybe-configure-stageb3g2-intl: configure-stageb3g2-intl
23144configure-stageb3g2-intl:
23145 @[ $(current_stage) = stageb3g2 ] || $(MAKE) stageb3g2-start
23146 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
23147 @r=`${PWD_COMMAND}`; export r; \
23148 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23149 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
23150 $(HOST_EXPORTS) \
6532abb6 23151 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 23152 CFLAGS="$(STAGE3_CFLAGS) -g2"; export CFLAGS; \
6532abb6 23153 CXXFLAGS="$(STAGE3_CFLAGS) -g2"; export CXXFLAGS; \
2b41ef78
AO
23154 echo Configuring stage b3g2 in $(HOST_SUBDIR)/intl ; \
23155 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \
23156 cd $(HOST_SUBDIR)/intl || exit 1; \
23157 case $(srcdir) in \
23158 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23159 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
23160 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23161 esac; \
23162 srcdiroption="--srcdir=$${topdir}/intl"; \
23163 libsrcdir="$$s/intl"; \
23164 $(SHELL) $${libsrcdir}/configure \
23165 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23166 --target=${target_alias} $${srcdiroption} \
23167 --with-build-libsubdir=$(HOST_SUBDIR) \
23168 @stage2_werror_flag@
23169@endif intl-bootstrap
23170
a8a96878
PB
23171.PHONY: configure-stage4-intl maybe-configure-stage4-intl
23172maybe-configure-stage4-intl:
23173@if intl-bootstrap
23174maybe-configure-stage4-intl: configure-stage4-intl
15b527ca 23175configure-stage4-intl:
ec92c4d6 23176 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
15b527ca 23177 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
ec92c4d6
PB
23178 @r=`${PWD_COMMAND}`; export r; \
23179 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15b527ca 23180 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
a8a96878 23181 $(HOST_EXPORTS) \
6532abb6 23182 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 23183 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
6532abb6 23184 CXXFLAGS="$(STAGE4_CFLAGS)"; export CXXFLAGS; \
a8a96878 23185 echo Configuring stage 4 in $(HOST_SUBDIR)/intl ; \
15b527ca 23186 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \
a8a96878
PB
23187 cd $(HOST_SUBDIR)/intl || exit 1; \
23188 case $(srcdir) in \
23189 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23190 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
23191 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23192 esac; \
23193 srcdiroption="--srcdir=$${topdir}/intl"; \
23194 libsrcdir="$$s/intl"; \
23195 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
23196 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23197 --target=${target_alias} $${srcdiroption} \
380e48e5 23198 --with-build-libsubdir=$(HOST_SUBDIR) \
a8a96878
PB
23199 @stage2_werror_flag@
23200@endif intl-bootstrap
23201
23202.PHONY: configure-stageprofile-intl maybe-configure-stageprofile-intl
23203maybe-configure-stageprofile-intl:
23204@if intl-bootstrap
23205maybe-configure-stageprofile-intl: configure-stageprofile-intl
15b527ca 23206configure-stageprofile-intl:
ec92c4d6 23207 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
15b527ca 23208 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
ec92c4d6
PB
23209 @r=`${PWD_COMMAND}`; export r; \
23210 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15b527ca 23211 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
a8a96878 23212 $(HOST_EXPORTS) \
6532abb6 23213 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 23214 CFLAGS="$(STAGE2_CFLAGS) -fprofile-generate"; export CFLAGS; \
6532abb6 23215 CXXFLAGS="$(STAGE2_CFLAGS) -fprofile-generate"; export CXXFLAGS; \
a8a96878 23216 echo Configuring stage profile in $(HOST_SUBDIR)/intl ; \
15b527ca 23217 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \
a8a96878
PB
23218 cd $(HOST_SUBDIR)/intl || exit 1; \
23219 case $(srcdir) in \
23220 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23221 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
23222 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23223 esac; \
23224 srcdiroption="--srcdir=$${topdir}/intl"; \
23225 libsrcdir="$$s/intl"; \
23226 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
23227 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23228 --target=${target_alias} $${srcdiroption} \
380e48e5 23229 --with-build-libsubdir=$(HOST_SUBDIR) \
a8a96878
PB
23230 @stage2_werror_flag@
23231@endif intl-bootstrap
23232
23233.PHONY: configure-stagefeedback-intl maybe-configure-stagefeedback-intl
23234maybe-configure-stagefeedback-intl:
23235@if intl-bootstrap
23236maybe-configure-stagefeedback-intl: configure-stagefeedback-intl
15b527ca 23237configure-stagefeedback-intl:
ec92c4d6 23238 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
15b527ca 23239 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
ec92c4d6
PB
23240 @r=`${PWD_COMMAND}`; export r; \
23241 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15b527ca 23242 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
a8a96878 23243 $(HOST_EXPORTS) \
6532abb6 23244 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 23245 CFLAGS="$(STAGE3_CFLAGS) -fprofile-use"; export CFLAGS; \
6532abb6 23246 CXXFLAGS="$(STAGE3_CFLAGS) -fprofile-use"; export CXXFLAGS; \
a8a96878 23247 echo Configuring stage feedback in $(HOST_SUBDIR)/intl ; \
15b527ca 23248 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \
a8a96878
PB
23249 cd $(HOST_SUBDIR)/intl || exit 1; \
23250 case $(srcdir) in \
23251 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23252 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
23253 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23254 esac; \
23255 srcdiroption="--srcdir=$${topdir}/intl"; \
23256 libsrcdir="$$s/intl"; \
23257 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
23258 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23259 --target=${target_alias} $${srcdiroption} \
380e48e5 23260 --with-build-libsubdir=$(HOST_SUBDIR) \
a8a96878
PB
23261 @stage2_werror_flag@
23262@endif intl-bootstrap
23263
23264
23265
23266
23267
d5eec917
PB
23268.PHONY: all-intl maybe-all-intl
23269maybe-all-intl:
e1e5148c
CD
23270@if gcc-bootstrap
23271all-intl: stage_current
23272@endif gcc-bootstrap
d5eec917 23273@if intl
5e6b1f07 23274TARGET-intl=all
d5eec917
PB
23275maybe-all-intl: all-intl
23276all-intl: configure-intl
ec92c4d6 23277 @r=`${PWD_COMMAND}`; export r; \
8ec98d6c 23278 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 23279 $(HOST_EXPORTS) \
7fc2ca22 23280 (cd $(HOST_SUBDIR)/intl && \
6532abb6
PB
23281 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
23282 $(TARGET-intl))
d5eec917 23283@endif intl
d832a288 23284
f0fdfd34 23285
a8a96878
PB
23286
23287.PHONY: all-stage1-intl maybe-all-stage1-intl
23288.PHONY: clean-stage1-intl maybe-clean-stage1-intl
23289maybe-all-stage1-intl:
23290maybe-clean-stage1-intl:
23291@if intl-bootstrap
23292maybe-all-stage1-intl: all-stage1-intl
23293all-stage1: all-stage1-intl
168b158c 23294TARGET-stage1-intl = $(TARGET-intl)
a8a96878 23295all-stage1-intl: configure-stage1-intl
ec92c4d6 23296 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a8a96878
PB
23297 @r=`${PWD_COMMAND}`; export r; \
23298 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23299 $(HOST_EXPORTS) \
23300 cd $(HOST_SUBDIR)/intl && \
6532abb6
PB
23301 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23302 CFLAGS="$(STAGE1_CFLAGS)" CXXFLAGS="$(STAGE1_CFLAGS)" \
23303 LIBCFLAGS="$(STAGE1_LIBCFLAGS)" \
23304 CFLAGS_FOR_TARGET="$(STAGE1_LIBCFLAGS)" \
23305 CXXFLAGS_FOR_TARGET="$(STAGE1_LIBCFLAGS)" $(EXTRA_HOST_FLAGS) \
168b158c 23306 $(TARGET-stage1-intl)
a8a96878
PB
23307
23308maybe-clean-stage1-intl: clean-stage1-intl
23309clean-stage1: clean-stage1-intl
23310clean-stage1-intl:
a6a4e782
DD
23311 @if [ $(current_stage) = stage1 ]; then \
23312 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
23313 else \
23314 [ -f $(HOST_SUBDIR)/stage1-intl/Makefile ] || exit 0; \
23315 $(MAKE) stage1-start; \
23316 fi; \
a8a96878 23317 cd $(HOST_SUBDIR)/intl && \
6532abb6 23318 $(MAKE) $(EXTRA_HOST_FLAGS) \
2ba09444 23319 clean
a8a96878
PB
23320@endif intl-bootstrap
23321
23322
23323.PHONY: all-stage2-intl maybe-all-stage2-intl
23324.PHONY: clean-stage2-intl maybe-clean-stage2-intl
23325maybe-all-stage2-intl:
23326maybe-clean-stage2-intl:
23327@if intl-bootstrap
23328maybe-all-stage2-intl: all-stage2-intl
23329all-stage2: all-stage2-intl
168b158c 23330TARGET-stage2-intl = $(TARGET-intl)
a8a96878 23331all-stage2-intl: configure-stage2-intl
ec92c4d6 23332 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a8a96878
PB
23333 @r=`${PWD_COMMAND}`; export r; \
23334 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23335 $(HOST_EXPORTS) \
23336 $(POSTSTAGE1_HOST_EXPORTS) \
23337 cd $(HOST_SUBDIR)/intl && \
6532abb6
PB
23338 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23339 CFLAGS="$(STAGE2_CFLAGS)" CXXFLAGS="$(STAGE2_CFLAGS)" \
23340 LIBCFLAGS="$(STAGE2_LIBCFLAGS)" \
23341 CFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)" \
23342 CXXFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
168b158c 23343 $(TARGET-stage2-intl)
a8a96878
PB
23344
23345maybe-clean-stage2-intl: clean-stage2-intl
23346clean-stage2: clean-stage2-intl
23347clean-stage2-intl:
a6a4e782
DD
23348 @if [ $(current_stage) = stage2 ]; then \
23349 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
23350 else \
23351 [ -f $(HOST_SUBDIR)/stage2-intl/Makefile ] || exit 0; \
23352 $(MAKE) stage2-start; \
23353 fi; \
a8a96878 23354 cd $(HOST_SUBDIR)/intl && \
6532abb6 23355 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 23356 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 23357 clean
a8a96878
PB
23358@endif intl-bootstrap
23359
23360
2b41ef78
AO
23361.PHONY: all-stageb2g0-intl maybe-all-stageb2g0-intl
23362.PHONY: clean-stageb2g0-intl maybe-clean-stageb2g0-intl
23363maybe-all-stageb2g0-intl:
23364maybe-clean-stageb2g0-intl:
23365@if intl-bootstrap
23366maybe-all-stageb2g0-intl: all-stageb2g0-intl
23367all-stageb2g0: all-stageb2g0-intl
23368TARGET-stageb2g0-intl = $(TARGET-intl)
23369all-stageb2g0-intl: configure-stageb2g0-intl
23370 @[ $(current_stage) = stageb2g0 ] || $(MAKE) stageb2g0-start
23371 @r=`${PWD_COMMAND}`; export r; \
23372 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23373 $(HOST_EXPORTS) \
23374 $(POSTSTAGE1_HOST_EXPORTS) \
23375 cd $(HOST_SUBDIR)/intl && \
6532abb6
PB
23376 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23377 CFLAGS="$(STAGE2_CFLAGS) -g0" CXXFLAGS="$(STAGE2_CFLAGS) -g0" \
23378 LIBCFLAGS="$(STAGE2_LIBCFLAGS) -g0" \
23379 CFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS) -g0" \
23380 CXXFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS) -g0" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
2b41ef78
AO
23381 $(TARGET-stageb2g0-intl)
23382
23383maybe-clean-stageb2g0-intl: clean-stageb2g0-intl
23384clean-stageb2g0: clean-stageb2g0-intl
23385clean-stageb2g0-intl:
23386 @if [ $(current_stage) = stageb2g0 ]; then \
23387 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
23388 else \
23389 [ -f $(HOST_SUBDIR)/stageb2g0-intl/Makefile ] || exit 0; \
23390 $(MAKE) stageb2g0-start; \
23391 fi; \
23392 cd $(HOST_SUBDIR)/intl && \
6532abb6 23393 $(MAKE) $(EXTRA_HOST_FLAGS) \
2b41ef78
AO
23394 $(POSTSTAGE1_FLAGS_TO_PASS) \
23395 clean
23396@endif intl-bootstrap
23397
23398
a8a96878
PB
23399.PHONY: all-stage3-intl maybe-all-stage3-intl
23400.PHONY: clean-stage3-intl maybe-clean-stage3-intl
23401maybe-all-stage3-intl:
23402maybe-clean-stage3-intl:
23403@if intl-bootstrap
23404maybe-all-stage3-intl: all-stage3-intl
23405all-stage3: all-stage3-intl
168b158c 23406TARGET-stage3-intl = $(TARGET-intl)
a8a96878 23407all-stage3-intl: configure-stage3-intl
ec92c4d6 23408 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a8a96878
PB
23409 @r=`${PWD_COMMAND}`; export r; \
23410 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23411 $(HOST_EXPORTS) \
23412 $(POSTSTAGE1_HOST_EXPORTS) \
23413 cd $(HOST_SUBDIR)/intl && \
6532abb6
PB
23414 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23415 CFLAGS="$(STAGE3_CFLAGS)" CXXFLAGS="$(STAGE3_CFLAGS)" \
23416 LIBCFLAGS="$(STAGE3_LIBCFLAGS)" \
23417 CFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS)" \
23418 CXXFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS)" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
168b158c 23419 $(TARGET-stage3-intl)
a8a96878
PB
23420
23421maybe-clean-stage3-intl: clean-stage3-intl
23422clean-stage3: clean-stage3-intl
23423clean-stage3-intl:
a6a4e782
DD
23424 @if [ $(current_stage) = stage3 ]; then \
23425 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
23426 else \
23427 [ -f $(HOST_SUBDIR)/stage3-intl/Makefile ] || exit 0; \
23428 $(MAKE) stage3-start; \
23429 fi; \
a8a96878 23430 cd $(HOST_SUBDIR)/intl && \
6532abb6 23431 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 23432 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 23433 clean
a8a96878
PB
23434@endif intl-bootstrap
23435
23436
2b41ef78
AO
23437.PHONY: all-stageb3g2-intl maybe-all-stageb3g2-intl
23438.PHONY: clean-stageb3g2-intl maybe-clean-stageb3g2-intl
23439maybe-all-stageb3g2-intl:
23440maybe-clean-stageb3g2-intl:
23441@if intl-bootstrap
23442maybe-all-stageb3g2-intl: all-stageb3g2-intl
23443all-stageb3g2: all-stageb3g2-intl
23444TARGET-stageb3g2-intl = $(TARGET-intl)
23445all-stageb3g2-intl: configure-stageb3g2-intl
23446 @[ $(current_stage) = stageb3g2 ] || $(MAKE) stageb3g2-start
23447 @r=`${PWD_COMMAND}`; export r; \
23448 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23449 $(HOST_EXPORTS) \
23450 $(POSTSTAGE1_HOST_EXPORTS) \
23451 cd $(HOST_SUBDIR)/intl && \
6532abb6
PB
23452 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23453 CFLAGS="$(STAGE3_CFLAGS) -g2" CXXFLAGS="$(STAGE3_CFLAGS) -g2" \
23454 LIBCFLAGS="$(STAGE3_LIBCFLAGS) -g2" \
23455 CFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS) -g2" \
23456 CXXFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS) -g2" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
2b41ef78
AO
23457 $(TARGET-stageb3g2-intl)
23458
23459maybe-clean-stageb3g2-intl: clean-stageb3g2-intl
23460clean-stageb3g2: clean-stageb3g2-intl
23461clean-stageb3g2-intl:
23462 @if [ $(current_stage) = stageb3g2 ]; then \
23463 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
23464 else \
23465 [ -f $(HOST_SUBDIR)/stageb3g2-intl/Makefile ] || exit 0; \
23466 $(MAKE) stageb3g2-start; \
23467 fi; \
23468 cd $(HOST_SUBDIR)/intl && \
6532abb6 23469 $(MAKE) $(EXTRA_HOST_FLAGS) \
2b41ef78
AO
23470 $(POSTSTAGE1_FLAGS_TO_PASS) \
23471 clean
23472@endif intl-bootstrap
23473
23474
a8a96878
PB
23475.PHONY: all-stage4-intl maybe-all-stage4-intl
23476.PHONY: clean-stage4-intl maybe-clean-stage4-intl
23477maybe-all-stage4-intl:
23478maybe-clean-stage4-intl:
23479@if intl-bootstrap
23480maybe-all-stage4-intl: all-stage4-intl
23481all-stage4: all-stage4-intl
168b158c 23482TARGET-stage4-intl = $(TARGET-intl)
a8a96878 23483all-stage4-intl: configure-stage4-intl
ec92c4d6 23484 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a8a96878
PB
23485 @r=`${PWD_COMMAND}`; export r; \
23486 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23487 $(HOST_EXPORTS) \
23488 $(POSTSTAGE1_HOST_EXPORTS) \
23489 cd $(HOST_SUBDIR)/intl && \
6532abb6
PB
23490 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23491 CFLAGS="$(STAGE4_CFLAGS)" CXXFLAGS="$(STAGE4_CFLAGS)" \
23492 LIBCFLAGS="$(STAGE4_CFLAGS)" \
23493 CFLAGS_FOR_TARGET="$(STAGE4_CFLAGS)" \
23494 CXXFLAGS_FOR_TARGET="$(STAGE4_CFLAGS)" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
168b158c 23495 $(TARGET-stage4-intl)
a8a96878
PB
23496
23497maybe-clean-stage4-intl: clean-stage4-intl
23498clean-stage4: clean-stage4-intl
23499clean-stage4-intl:
a6a4e782
DD
23500 @if [ $(current_stage) = stage4 ]; then \
23501 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
23502 else \
23503 [ -f $(HOST_SUBDIR)/stage4-intl/Makefile ] || exit 0; \
23504 $(MAKE) stage4-start; \
23505 fi; \
a8a96878 23506 cd $(HOST_SUBDIR)/intl && \
6532abb6 23507 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 23508 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 23509 clean
a8a96878
PB
23510@endif intl-bootstrap
23511
23512
23513.PHONY: all-stageprofile-intl maybe-all-stageprofile-intl
23514.PHONY: clean-stageprofile-intl maybe-clean-stageprofile-intl
23515maybe-all-stageprofile-intl:
23516maybe-clean-stageprofile-intl:
23517@if intl-bootstrap
23518maybe-all-stageprofile-intl: all-stageprofile-intl
23519all-stageprofile: all-stageprofile-intl
168b158c 23520TARGET-stageprofile-intl = $(TARGET-intl)
a8a96878 23521all-stageprofile-intl: configure-stageprofile-intl
ec92c4d6 23522 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a8a96878
PB
23523 @r=`${PWD_COMMAND}`; export r; \
23524 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23525 $(HOST_EXPORTS) \
23526 $(POSTSTAGE1_HOST_EXPORTS) \
23527 cd $(HOST_SUBDIR)/intl && \
6532abb6
PB
23528 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23529 CFLAGS="$(STAGE2_CFLAGS) -fprofile-generate" CXXFLAGS="$(STAGE2_CFLAGS) -fprofile-generate" \
455b4f90
PB
23530 LIBCFLAGS="$(STAGE2_LIBCFLAGS)" \
23531 CFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)" \
23532 CXXFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
168b158c 23533 $(TARGET-stageprofile-intl)
a8a96878
PB
23534
23535maybe-clean-stageprofile-intl: clean-stageprofile-intl
23536clean-stageprofile: clean-stageprofile-intl
23537clean-stageprofile-intl:
a6a4e782
DD
23538 @if [ $(current_stage) = stageprofile ]; then \
23539 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
23540 else \
23541 [ -f $(HOST_SUBDIR)/stageprofile-intl/Makefile ] || exit 0; \
23542 $(MAKE) stageprofile-start; \
23543 fi; \
a8a96878 23544 cd $(HOST_SUBDIR)/intl && \
6532abb6 23545 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 23546 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 23547 clean
a8a96878
PB
23548@endif intl-bootstrap
23549
23550
23551.PHONY: all-stagefeedback-intl maybe-all-stagefeedback-intl
23552.PHONY: clean-stagefeedback-intl maybe-clean-stagefeedback-intl
23553maybe-all-stagefeedback-intl:
23554maybe-clean-stagefeedback-intl:
23555@if intl-bootstrap
23556maybe-all-stagefeedback-intl: all-stagefeedback-intl
23557all-stagefeedback: all-stagefeedback-intl
168b158c 23558TARGET-stagefeedback-intl = $(TARGET-intl)
a8a96878 23559all-stagefeedback-intl: configure-stagefeedback-intl
ec92c4d6 23560 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a8a96878
PB
23561 @r=`${PWD_COMMAND}`; export r; \
23562 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23563 $(HOST_EXPORTS) \
23564 $(POSTSTAGE1_HOST_EXPORTS) \
23565 cd $(HOST_SUBDIR)/intl && \
6532abb6
PB
23566 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23567 CFLAGS="$(STAGE3_CFLAGS) -fprofile-use" CXXFLAGS="$(STAGE3_CFLAGS) -fprofile-use" \
23568 LIBCFLAGS="$(STAGE3_LIBCFLAGS) -fprofile-use" \
23569 CFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS) -fprofile-use" \
23570 CXXFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS) -fprofile-use" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
168b158c 23571 $(TARGET-stagefeedback-intl)
a8a96878
PB
23572
23573maybe-clean-stagefeedback-intl: clean-stagefeedback-intl
23574clean-stagefeedback: clean-stagefeedback-intl
23575clean-stagefeedback-intl:
a6a4e782
DD
23576 @if [ $(current_stage) = stagefeedback ]; then \
23577 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
23578 else \
23579 [ -f $(HOST_SUBDIR)/stagefeedback-intl/Makefile ] || exit 0; \
23580 $(MAKE) stagefeedback-start; \
23581 fi; \
a8a96878 23582 cd $(HOST_SUBDIR)/intl && \
6532abb6 23583 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 23584 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 23585 clean
a8a96878
PB
23586@endif intl-bootstrap
23587
23588
23589
23590
23591
d5eec917
PB
23592.PHONY: check-intl maybe-check-intl
23593maybe-check-intl:
23594@if intl
23595maybe-check-intl: check-intl
657b58f4 23596
d5eec917 23597check-intl:
15b527ca 23598 @: $(MAKE); $(unstage)
8ec98d6c
NN
23599 @r=`${PWD_COMMAND}`; export r; \
23600 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 23601 $(HOST_EXPORTS) \
7fc2ca22
PB
23602 (cd $(HOST_SUBDIR)/intl && \
23603 $(MAKE) $(FLAGS_TO_PASS) check)
657b58f4 23604
d5eec917 23605@endif intl
657b58f4 23606
d5eec917
PB
23607.PHONY: install-intl maybe-install-intl
23608maybe-install-intl:
23609@if intl
23610maybe-install-intl: install-intl
657b58f4 23611
d5eec917 23612install-intl: installdirs
15b527ca 23613 @: $(MAKE); $(unstage)
8ec98d6c
NN
23614 @r=`${PWD_COMMAND}`; export r; \
23615 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 23616 $(HOST_EXPORTS) \
7fc2ca22 23617 (cd $(HOST_SUBDIR)/intl && \
93c60b6d 23618 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 23619
d5eec917 23620@endif intl
8ec98d6c 23621
39bbbb69 23622# Other targets (info, dvi, pdf, etc.)
8ec98d6c 23623
d5eec917
PB
23624.PHONY: maybe-info-intl info-intl
23625maybe-info-intl:
23626@if intl
23627maybe-info-intl: info-intl
8ec98d6c 23628
d5eec917
PB
23629info-intl: \
23630 configure-intl
23631 @[ -f ./intl/Makefile ] || exit 0; \
5230d454
L
23632 r=`${PWD_COMMAND}`; export r; \
23633 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 23634 $(HOST_EXPORTS) \
d5eec917 23635 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
23636 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23637 done; \
d5eec917 23638 echo "Doing info in intl" ; \
7fc2ca22 23639 (cd $(HOST_SUBDIR)/intl && \
657b58f4
NN
23640 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23641 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23642 "RANLIB=$${RANLIB}" \
bffcbe34 23643 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 23644 info) \
657b58f4
NN
23645 || exit 1
23646
d5eec917 23647@endif intl
657b58f4 23648
d5eec917
PB
23649.PHONY: maybe-dvi-intl dvi-intl
23650maybe-dvi-intl:
23651@if intl
23652maybe-dvi-intl: dvi-intl
657b58f4 23653
d5eec917
PB
23654dvi-intl: \
23655 configure-intl
23656 @[ -f ./intl/Makefile ] || exit 0; \
23657 r=`${PWD_COMMAND}`; export r; \
5230d454 23658 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 23659 $(HOST_EXPORTS) \
d5eec917 23660 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
23661 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23662 done; \
d5eec917 23663 echo "Doing dvi in intl" ; \
7fc2ca22 23664 (cd $(HOST_SUBDIR)/intl && \
657b58f4
NN
23665 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23666 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23667 "RANLIB=$${RANLIB}" \
bffcbe34 23668 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 23669 dvi) \
657b58f4
NN
23670 || exit 1
23671
d5eec917 23672@endif intl
657b58f4 23673
39bbbb69
DD
23674.PHONY: maybe-pdf-intl pdf-intl
23675maybe-pdf-intl:
23676@if intl
23677maybe-pdf-intl: pdf-intl
23678
23679pdf-intl: \
23680 configure-intl
23681 @[ -f ./intl/Makefile ] || exit 0; \
23682 r=`${PWD_COMMAND}`; export r; \
23683 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23684 $(HOST_EXPORTS) \
23685 for flag in $(EXTRA_HOST_FLAGS) ; do \
23686 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23687 done; \
23688 echo "Doing pdf in intl" ; \
23689 (cd $(HOST_SUBDIR)/intl && \
23690 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23691 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23692 "RANLIB=$${RANLIB}" \
bffcbe34 23693 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
23694 pdf) \
23695 || exit 1
23696
23697@endif intl
23698
b6fb961f
MS
23699.PHONY: maybe-html-intl html-intl
23700maybe-html-intl:
23701@if intl
23702maybe-html-intl: html-intl
23703
23704html-intl: \
23705 configure-intl
23706 @[ -f ./intl/Makefile ] || exit 0; \
23707 r=`${PWD_COMMAND}`; export r; \
23708 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
23709 $(HOST_EXPORTS) \
23710 for flag in $(EXTRA_HOST_FLAGS) ; do \
23711 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23712 done; \
23713 echo "Doing html in intl" ; \
7fc2ca22 23714 (cd $(HOST_SUBDIR)/intl && \
b6fb961f
MS
23715 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23716 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23717 "RANLIB=$${RANLIB}" \
bffcbe34 23718 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
23719 html) \
23720 || exit 1
23721
23722@endif intl
23723
d5eec917
PB
23724.PHONY: maybe-TAGS-intl TAGS-intl
23725maybe-TAGS-intl:
23726@if intl
23727maybe-TAGS-intl: TAGS-intl
657b58f4 23728
d5eec917
PB
23729TAGS-intl: \
23730 configure-intl
23731 @[ -f ./intl/Makefile ] || exit 0; \
5230d454
L
23732 r=`${PWD_COMMAND}`; export r; \
23733 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 23734 $(HOST_EXPORTS) \
d5eec917 23735 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
23736 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23737 done; \
d5eec917 23738 echo "Doing TAGS in intl" ; \
7fc2ca22 23739 (cd $(HOST_SUBDIR)/intl && \
657b58f4
NN
23740 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23741 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23742 "RANLIB=$${RANLIB}" \
bffcbe34 23743 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 23744 TAGS) \
657b58f4
NN
23745 || exit 1
23746
d5eec917 23747@endif intl
657b58f4 23748
d5eec917
PB
23749.PHONY: maybe-install-info-intl install-info-intl
23750maybe-install-info-intl:
23751@if intl
23752maybe-install-info-intl: install-info-intl
657b58f4 23753
d5eec917
PB
23754install-info-intl: \
23755 configure-intl \
23756 info-intl
23757 @[ -f ./intl/Makefile ] || exit 0; \
5230d454
L
23758 r=`${PWD_COMMAND}`; export r; \
23759 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 23760 $(HOST_EXPORTS) \
d5eec917 23761 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
23762 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23763 done; \
d5eec917 23764 echo "Doing install-info in intl" ; \
7fc2ca22 23765 (cd $(HOST_SUBDIR)/intl && \
657b58f4
NN
23766 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23767 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23768 "RANLIB=$${RANLIB}" \
bffcbe34 23769 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 23770 install-info) \
657b58f4
NN
23771 || exit 1
23772
d5eec917 23773@endif intl
657b58f4 23774
d4954b6d
DD
23775.PHONY: maybe-install-pdf-intl install-pdf-intl
23776maybe-install-pdf-intl:
23777@if intl
23778maybe-install-pdf-intl: install-pdf-intl
23779
23780install-pdf-intl: \
23781 configure-intl \
23782 pdf-intl
23783 @[ -f ./intl/Makefile ] || exit 0; \
23784 r=`${PWD_COMMAND}`; export r; \
23785 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23786 $(HOST_EXPORTS) \
23787 for flag in $(EXTRA_HOST_FLAGS) ; do \
23788 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23789 done; \
23790 echo "Doing install-pdf in intl" ; \
23791 (cd $(HOST_SUBDIR)/intl && \
23792 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23793 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23794 "RANLIB=$${RANLIB}" \
bffcbe34 23795 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
23796 install-pdf) \
23797 || exit 1
23798
23799@endif intl
23800
83c9add4
CD
23801.PHONY: maybe-install-html-intl install-html-intl
23802maybe-install-html-intl:
23803@if intl
23804maybe-install-html-intl: install-html-intl
23805
23806install-html-intl: \
23807 configure-intl \
23808 html-intl
23809 @[ -f ./intl/Makefile ] || exit 0; \
23810 r=`${PWD_COMMAND}`; export r; \
23811 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23812 $(HOST_EXPORTS) \
23813 for flag in $(EXTRA_HOST_FLAGS) ; do \
23814 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23815 done; \
23816 echo "Doing install-html in intl" ; \
23817 (cd $(HOST_SUBDIR)/intl && \
23818 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23819 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23820 "RANLIB=$${RANLIB}" \
bffcbe34 23821 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
23822 install-html) \
23823 || exit 1
23824
23825@endif intl
23826
d5eec917
PB
23827.PHONY: maybe-installcheck-intl installcheck-intl
23828maybe-installcheck-intl:
23829@if intl
23830maybe-installcheck-intl: installcheck-intl
657b58f4 23831
d5eec917
PB
23832installcheck-intl: \
23833 configure-intl
23834 @[ -f ./intl/Makefile ] || exit 0; \
5230d454
L
23835 r=`${PWD_COMMAND}`; export r; \
23836 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 23837 $(HOST_EXPORTS) \
d5eec917 23838 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
23839 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23840 done; \
d5eec917 23841 echo "Doing installcheck in intl" ; \
7fc2ca22 23842 (cd $(HOST_SUBDIR)/intl && \
657b58f4
NN
23843 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23844 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23845 "RANLIB=$${RANLIB}" \
bffcbe34 23846 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 23847 installcheck) \
657b58f4
NN
23848 || exit 1
23849
d5eec917 23850@endif intl
657b58f4 23851
d5eec917
PB
23852.PHONY: maybe-mostlyclean-intl mostlyclean-intl
23853maybe-mostlyclean-intl:
23854@if intl
23855maybe-mostlyclean-intl: mostlyclean-intl
657b58f4 23856
d5eec917
PB
23857mostlyclean-intl:
23858 @[ -f ./intl/Makefile ] || exit 0; \
23859 r=`${PWD_COMMAND}`; export r; \
23860 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d5eec917
PB
23861 $(HOST_EXPORTS) \
23862 for flag in $(EXTRA_HOST_FLAGS) ; do \
23863 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23864 done; \
23865 echo "Doing mostlyclean in intl" ; \
7fc2ca22 23866 (cd $(HOST_SUBDIR)/intl && \
d5eec917
PB
23867 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23868 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23869 "RANLIB=$${RANLIB}" \
bffcbe34 23870 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917
PB
23871 mostlyclean) \
23872 || exit 1
8ec98d6c 23873
d5eec917 23874@endif intl
8ec98d6c 23875
d5eec917
PB
23876.PHONY: maybe-clean-intl clean-intl
23877maybe-clean-intl:
23878@if intl
23879maybe-clean-intl: clean-intl
8ec98d6c 23880
d5eec917
PB
23881clean-intl:
23882 @[ -f ./intl/Makefile ] || exit 0; \
5230d454
L
23883 r=`${PWD_COMMAND}`; export r; \
23884 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 23885 $(HOST_EXPORTS) \
d5eec917 23886 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
23887 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23888 done; \
d5eec917 23889 echo "Doing clean in intl" ; \
7fc2ca22 23890 (cd $(HOST_SUBDIR)/intl && \
657b58f4
NN
23891 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23892 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23893 "RANLIB=$${RANLIB}" \
bffcbe34 23894 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 23895 clean) \
657b58f4
NN
23896 || exit 1
23897
d5eec917 23898@endif intl
657b58f4 23899
d5eec917
PB
23900.PHONY: maybe-distclean-intl distclean-intl
23901maybe-distclean-intl:
23902@if intl
23903maybe-distclean-intl: distclean-intl
657b58f4 23904
d5eec917
PB
23905distclean-intl:
23906 @[ -f ./intl/Makefile ] || exit 0; \
5230d454
L
23907 r=`${PWD_COMMAND}`; export r; \
23908 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 23909 $(HOST_EXPORTS) \
d5eec917 23910 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
23911 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23912 done; \
d5eec917 23913 echo "Doing distclean in intl" ; \
7fc2ca22 23914 (cd $(HOST_SUBDIR)/intl && \
657b58f4
NN
23915 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23916 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23917 "RANLIB=$${RANLIB}" \
bffcbe34 23918 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 23919 distclean) \
657b58f4
NN
23920 || exit 1
23921
d5eec917 23922@endif intl
657b58f4 23923
d5eec917
PB
23924.PHONY: maybe-maintainer-clean-intl maintainer-clean-intl
23925maybe-maintainer-clean-intl:
23926@if intl
23927maybe-maintainer-clean-intl: maintainer-clean-intl
657b58f4 23928
d5eec917
PB
23929maintainer-clean-intl:
23930 @[ -f ./intl/Makefile ] || exit 0; \
5230d454
L
23931 r=`${PWD_COMMAND}`; export r; \
23932 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 23933 $(HOST_EXPORTS) \
d5eec917 23934 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
23935 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23936 done; \
d5eec917 23937 echo "Doing maintainer-clean in intl" ; \
7fc2ca22 23938 (cd $(HOST_SUBDIR)/intl && \
657b58f4
NN
23939 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23940 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23941 "RANLIB=$${RANLIB}" \
bffcbe34 23942 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 23943 maintainer-clean) \
657b58f4
NN
23944 || exit 1
23945
d5eec917 23946@endif intl
657b58f4 23947
657b58f4 23948
f0fdfd34 23949
d5eec917
PB
23950.PHONY: configure-tcl maybe-configure-tcl
23951maybe-configure-tcl:
e1e5148c
CD
23952@if gcc-bootstrap
23953configure-tcl: stage_current
23954@endif gcc-bootstrap
d5eec917
PB
23955@if tcl
23956maybe-configure-tcl: configure-tcl
ec92c4d6 23957configure-tcl:
15b527ca 23958 @: $(MAKE); $(unstage)
ec92c4d6 23959 @r=`${PWD_COMMAND}`; export r; \
5230d454 23960 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
23961 test ! -f $(HOST_SUBDIR)/tcl/Makefile || exit 0; \
23962 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/tcl ; \
a675b75a 23963 $(HOST_EXPORTS) \
f0fdfd34
PB
23964 echo Configuring in $(HOST_SUBDIR)/tcl; \
23965 cd "$(HOST_SUBDIR)/tcl" || exit 1; \
8ec98d6c 23966 case $(srcdir) in \
7fc2ca22
PB
23967 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23968 *) topdir=`echo $(HOST_SUBDIR)/tcl/ | \
23969 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 23970 esac; \
7fc2ca22
PB
23971 srcdiroption="--srcdir=$${topdir}/tcl"; \
23972 libsrcdir="$$s/tcl"; \
8ec98d6c 23973 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
23974 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23975 --target=${target_alias} $${srcdiroption} \
657b58f4 23976 || exit 1
d5eec917 23977@endif tcl
657b58f4 23978
f0fdfd34
PB
23979
23980
a8a96878
PB
23981
23982
d5eec917
PB
23983.PHONY: all-tcl maybe-all-tcl
23984maybe-all-tcl:
e1e5148c
CD
23985@if gcc-bootstrap
23986all-tcl: stage_current
23987@endif gcc-bootstrap
d5eec917 23988@if tcl
5e6b1f07 23989TARGET-tcl=all
d5eec917
PB
23990maybe-all-tcl: all-tcl
23991all-tcl: configure-tcl
15b527ca 23992 @: $(MAKE); $(unstage)
8ec98d6c
NN
23993 @r=`${PWD_COMMAND}`; export r; \
23994 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 23995 $(HOST_EXPORTS) \
7fc2ca22 23996 (cd $(HOST_SUBDIR)/tcl && \
6532abb6
PB
23997 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
23998 $(TARGET-tcl))
d5eec917 23999@endif tcl
8ec98d6c 24000
f0fdfd34 24001
a8a96878
PB
24002
24003
d5eec917
PB
24004.PHONY: check-tcl maybe-check-tcl
24005maybe-check-tcl:
24006@if tcl
24007maybe-check-tcl: check-tcl
657b58f4 24008
d5eec917 24009check-tcl:
15b527ca 24010 @: $(MAKE); $(unstage)
8ec98d6c
NN
24011 @r=`${PWD_COMMAND}`; export r; \
24012 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 24013 $(HOST_EXPORTS) \
7fc2ca22
PB
24014 (cd $(HOST_SUBDIR)/tcl && \
24015 $(MAKE) $(FLAGS_TO_PASS) check)
657b58f4 24016
d5eec917 24017@endif tcl
8ec98d6c 24018
d5eec917
PB
24019.PHONY: install-tcl maybe-install-tcl
24020maybe-install-tcl:
24021@if tcl
24022maybe-install-tcl: install-tcl
8ec98d6c 24023
d5eec917 24024install-tcl: installdirs
15b527ca 24025 @: $(MAKE); $(unstage)
8ec98d6c
NN
24026 @r=`${PWD_COMMAND}`; export r; \
24027 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 24028 $(HOST_EXPORTS) \
7fc2ca22 24029 (cd $(HOST_SUBDIR)/tcl && \
93c60b6d 24030 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 24031
d5eec917 24032@endif tcl
8ec98d6c 24033
39bbbb69 24034# Other targets (info, dvi, pdf, etc.)
8ec98d6c 24035
d5eec917
PB
24036.PHONY: maybe-info-tcl info-tcl
24037maybe-info-tcl:
24038@if tcl
24039maybe-info-tcl: info-tcl
8ec98d6c 24040
d5eec917
PB
24041info-tcl: \
24042 configure-tcl
15b527ca 24043 @: $(MAKE); $(unstage)
d5eec917 24044 @[ -f ./tcl/Makefile ] || exit 0; \
5230d454
L
24045 r=`${PWD_COMMAND}`; export r; \
24046 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 24047 $(HOST_EXPORTS) \
d5eec917 24048 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
24049 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24050 done; \
d5eec917 24051 echo "Doing info in tcl" ; \
7fc2ca22 24052 (cd $(HOST_SUBDIR)/tcl && \
657b58f4
NN
24053 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24054 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24055 "RANLIB=$${RANLIB}" \
bffcbe34 24056 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 24057 info) \
657b58f4
NN
24058 || exit 1
24059
d5eec917 24060@endif tcl
657b58f4 24061
d5eec917
PB
24062.PHONY: maybe-dvi-tcl dvi-tcl
24063maybe-dvi-tcl:
24064@if tcl
24065maybe-dvi-tcl: dvi-tcl
657b58f4 24066
d5eec917
PB
24067dvi-tcl: \
24068 configure-tcl
15b527ca 24069 @: $(MAKE); $(unstage)
d5eec917 24070 @[ -f ./tcl/Makefile ] || exit 0; \
5230d454
L
24071 r=`${PWD_COMMAND}`; export r; \
24072 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 24073 $(HOST_EXPORTS) \
d5eec917 24074 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
24075 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24076 done; \
d5eec917 24077 echo "Doing dvi in tcl" ; \
7fc2ca22 24078 (cd $(HOST_SUBDIR)/tcl && \
657b58f4
NN
24079 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24080 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24081 "RANLIB=$${RANLIB}" \
bffcbe34 24082 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 24083 dvi) \
657b58f4
NN
24084 || exit 1
24085
d5eec917 24086@endif tcl
657b58f4 24087
39bbbb69
DD
24088.PHONY: maybe-pdf-tcl pdf-tcl
24089maybe-pdf-tcl:
24090@if tcl
24091maybe-pdf-tcl: pdf-tcl
24092
24093pdf-tcl: \
24094 configure-tcl
24095 @: $(MAKE); $(unstage)
24096 @[ -f ./tcl/Makefile ] || exit 0; \
24097 r=`${PWD_COMMAND}`; export r; \
24098 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24099 $(HOST_EXPORTS) \
24100 for flag in $(EXTRA_HOST_FLAGS) ; do \
24101 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24102 done; \
24103 echo "Doing pdf in tcl" ; \
24104 (cd $(HOST_SUBDIR)/tcl && \
24105 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24106 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24107 "RANLIB=$${RANLIB}" \
bffcbe34 24108 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
24109 pdf) \
24110 || exit 1
24111
24112@endif tcl
24113
b6fb961f
MS
24114.PHONY: maybe-html-tcl html-tcl
24115maybe-html-tcl:
24116@if tcl
24117maybe-html-tcl: html-tcl
24118
24119html-tcl: \
24120 configure-tcl
15b527ca 24121 @: $(MAKE); $(unstage)
b6fb961f
MS
24122 @[ -f ./tcl/Makefile ] || exit 0; \
24123 r=`${PWD_COMMAND}`; export r; \
24124 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
24125 $(HOST_EXPORTS) \
24126 for flag in $(EXTRA_HOST_FLAGS) ; do \
24127 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24128 done; \
24129 echo "Doing html in tcl" ; \
7fc2ca22 24130 (cd $(HOST_SUBDIR)/tcl && \
b6fb961f
MS
24131 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24132 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24133 "RANLIB=$${RANLIB}" \
bffcbe34 24134 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
24135 html) \
24136 || exit 1
24137
24138@endif tcl
24139
d5eec917
PB
24140.PHONY: maybe-TAGS-tcl TAGS-tcl
24141maybe-TAGS-tcl:
24142@if tcl
24143maybe-TAGS-tcl: TAGS-tcl
657b58f4 24144
d5eec917
PB
24145TAGS-tcl: \
24146 configure-tcl
15b527ca 24147 @: $(MAKE); $(unstage)
d5eec917 24148 @[ -f ./tcl/Makefile ] || exit 0; \
5230d454
L
24149 r=`${PWD_COMMAND}`; export r; \
24150 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 24151 $(HOST_EXPORTS) \
d5eec917 24152 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
24153 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24154 done; \
d5eec917 24155 echo "Doing TAGS in tcl" ; \
7fc2ca22 24156 (cd $(HOST_SUBDIR)/tcl && \
657b58f4
NN
24157 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24158 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24159 "RANLIB=$${RANLIB}" \
bffcbe34 24160 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 24161 TAGS) \
657b58f4
NN
24162 || exit 1
24163
d5eec917 24164@endif tcl
657b58f4 24165
d5eec917
PB
24166.PHONY: maybe-install-info-tcl install-info-tcl
24167maybe-install-info-tcl:
24168@if tcl
24169maybe-install-info-tcl: install-info-tcl
657b58f4 24170
d5eec917
PB
24171install-info-tcl: \
24172 configure-tcl \
24173 info-tcl
15b527ca 24174 @: $(MAKE); $(unstage)
d5eec917 24175 @[ -f ./tcl/Makefile ] || exit 0; \
5230d454
L
24176 r=`${PWD_COMMAND}`; export r; \
24177 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 24178 $(HOST_EXPORTS) \
d5eec917 24179 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
24180 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24181 done; \
d5eec917 24182 echo "Doing install-info in tcl" ; \
7fc2ca22 24183 (cd $(HOST_SUBDIR)/tcl && \
657b58f4
NN
24184 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24185 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24186 "RANLIB=$${RANLIB}" \
bffcbe34 24187 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 24188 install-info) \
657b58f4
NN
24189 || exit 1
24190
d5eec917 24191@endif tcl
657b58f4 24192
d4954b6d
DD
24193.PHONY: maybe-install-pdf-tcl install-pdf-tcl
24194maybe-install-pdf-tcl:
24195@if tcl
24196maybe-install-pdf-tcl: install-pdf-tcl
24197
24198install-pdf-tcl: \
24199 configure-tcl \
24200 pdf-tcl
24201 @: $(MAKE); $(unstage)
24202 @[ -f ./tcl/Makefile ] || exit 0; \
24203 r=`${PWD_COMMAND}`; export r; \
24204 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24205 $(HOST_EXPORTS) \
24206 for flag in $(EXTRA_HOST_FLAGS) ; do \
24207 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24208 done; \
24209 echo "Doing install-pdf in tcl" ; \
24210 (cd $(HOST_SUBDIR)/tcl && \
24211 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24212 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24213 "RANLIB=$${RANLIB}" \
bffcbe34 24214 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
24215 install-pdf) \
24216 || exit 1
24217
24218@endif tcl
24219
83c9add4
CD
24220.PHONY: maybe-install-html-tcl install-html-tcl
24221maybe-install-html-tcl:
24222@if tcl
24223maybe-install-html-tcl: install-html-tcl
24224
24225install-html-tcl: \
24226 configure-tcl \
24227 html-tcl
24228 @: $(MAKE); $(unstage)
24229 @[ -f ./tcl/Makefile ] || exit 0; \
24230 r=`${PWD_COMMAND}`; export r; \
24231 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24232 $(HOST_EXPORTS) \
24233 for flag in $(EXTRA_HOST_FLAGS) ; do \
24234 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24235 done; \
24236 echo "Doing install-html in tcl" ; \
24237 (cd $(HOST_SUBDIR)/tcl && \
24238 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24239 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24240 "RANLIB=$${RANLIB}" \
bffcbe34 24241 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
24242 install-html) \
24243 || exit 1
24244
24245@endif tcl
24246
d5eec917
PB
24247.PHONY: maybe-installcheck-tcl installcheck-tcl
24248maybe-installcheck-tcl:
24249@if tcl
24250maybe-installcheck-tcl: installcheck-tcl
657b58f4 24251
d5eec917
PB
24252installcheck-tcl: \
24253 configure-tcl
15b527ca 24254 @: $(MAKE); $(unstage)
d5eec917 24255 @[ -f ./tcl/Makefile ] || exit 0; \
5230d454
L
24256 r=`${PWD_COMMAND}`; export r; \
24257 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 24258 $(HOST_EXPORTS) \
d5eec917 24259 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
24260 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24261 done; \
d5eec917 24262 echo "Doing installcheck in tcl" ; \
7fc2ca22 24263 (cd $(HOST_SUBDIR)/tcl && \
657b58f4
NN
24264 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24265 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24266 "RANLIB=$${RANLIB}" \
bffcbe34 24267 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 24268 installcheck) \
657b58f4
NN
24269 || exit 1
24270
d5eec917 24271@endif tcl
657b58f4 24272
d5eec917
PB
24273.PHONY: maybe-mostlyclean-tcl mostlyclean-tcl
24274maybe-mostlyclean-tcl:
24275@if tcl
24276maybe-mostlyclean-tcl: mostlyclean-tcl
657b58f4 24277
d5eec917
PB
24278# tcl doesn't support mostlyclean.
24279mostlyclean-tcl:
657b58f4 24280
d5eec917 24281@endif tcl
657b58f4 24282
d5eec917
PB
24283.PHONY: maybe-clean-tcl clean-tcl
24284maybe-clean-tcl:
24285@if tcl
24286maybe-clean-tcl: clean-tcl
657b58f4 24287
d5eec917 24288clean-tcl:
15b527ca 24289 @: $(MAKE); $(unstage)
d5eec917 24290 @[ -f ./tcl/Makefile ] || exit 0; \
5230d454
L
24291 r=`${PWD_COMMAND}`; export r; \
24292 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 24293 $(HOST_EXPORTS) \
d5eec917 24294 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
24295 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24296 done; \
d5eec917 24297 echo "Doing clean in tcl" ; \
7fc2ca22 24298 (cd $(HOST_SUBDIR)/tcl && \
657b58f4
NN
24299 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24300 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24301 "RANLIB=$${RANLIB}" \
bffcbe34 24302 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 24303 clean) \
657b58f4
NN
24304 || exit 1
24305
d5eec917 24306@endif tcl
657b58f4 24307
d5eec917
PB
24308.PHONY: maybe-distclean-tcl distclean-tcl
24309maybe-distclean-tcl:
24310@if tcl
24311maybe-distclean-tcl: distclean-tcl
657b58f4 24312
d5eec917 24313distclean-tcl:
15b527ca 24314 @: $(MAKE); $(unstage)
d5eec917 24315 @[ -f ./tcl/Makefile ] || exit 0; \
5230d454
L
24316 r=`${PWD_COMMAND}`; export r; \
24317 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 24318 $(HOST_EXPORTS) \
d5eec917 24319 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
24320 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24321 done; \
d5eec917 24322 echo "Doing distclean in tcl" ; \
7fc2ca22 24323 (cd $(HOST_SUBDIR)/tcl && \
657b58f4
NN
24324 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24325 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24326 "RANLIB=$${RANLIB}" \
bffcbe34 24327 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 24328 distclean) \
657b58f4
NN
24329 || exit 1
24330
d5eec917 24331@endif tcl
657b58f4 24332
d5eec917
PB
24333.PHONY: maybe-maintainer-clean-tcl maintainer-clean-tcl
24334maybe-maintainer-clean-tcl:
24335@if tcl
24336maybe-maintainer-clean-tcl: maintainer-clean-tcl
657b58f4 24337
d5eec917 24338maintainer-clean-tcl:
15b527ca 24339 @: $(MAKE); $(unstage)
d5eec917 24340 @[ -f ./tcl/Makefile ] || exit 0; \
5230d454
L
24341 r=`${PWD_COMMAND}`; export r; \
24342 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 24343 $(HOST_EXPORTS) \
d5eec917 24344 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
24345 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24346 done; \
d5eec917 24347 echo "Doing maintainer-clean in tcl" ; \
7fc2ca22 24348 (cd $(HOST_SUBDIR)/tcl && \
657b58f4
NN
24349 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24350 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24351 "RANLIB=$${RANLIB}" \
bffcbe34 24352 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 24353 maintainer-clean) \
657b58f4
NN
24354 || exit 1
24355
d5eec917 24356@endif tcl
657b58f4 24357
657b58f4 24358
f0fdfd34 24359
d5eec917
PB
24360.PHONY: configure-itcl maybe-configure-itcl
24361maybe-configure-itcl:
e1e5148c
CD
24362@if gcc-bootstrap
24363configure-itcl: stage_current
24364@endif gcc-bootstrap
d5eec917
PB
24365@if itcl
24366maybe-configure-itcl: configure-itcl
ec92c4d6 24367configure-itcl:
15b527ca 24368 @: $(MAKE); $(unstage)
ec92c4d6 24369 @r=`${PWD_COMMAND}`; export r; \
8ec98d6c 24370 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
24371 test ! -f $(HOST_SUBDIR)/itcl/Makefile || exit 0; \
24372 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/itcl ; \
a675b75a 24373 $(HOST_EXPORTS) \
f0fdfd34
PB
24374 echo Configuring in $(HOST_SUBDIR)/itcl; \
24375 cd "$(HOST_SUBDIR)/itcl" || exit 1; \
8ec98d6c 24376 case $(srcdir) in \
7fc2ca22
PB
24377 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24378 *) topdir=`echo $(HOST_SUBDIR)/itcl/ | \
24379 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 24380 esac; \
7fc2ca22
PB
24381 srcdiroption="--srcdir=$${topdir}/itcl"; \
24382 libsrcdir="$$s/itcl"; \
8ec98d6c 24383 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
24384 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24385 --target=${target_alias} $${srcdiroption} \
8ec98d6c 24386 || exit 1
d5eec917 24387@endif itcl
8ec98d6c 24388
f0fdfd34
PB
24389
24390
a8a96878
PB
24391
24392
d5eec917
PB
24393.PHONY: all-itcl maybe-all-itcl
24394maybe-all-itcl:
e1e5148c
CD
24395@if gcc-bootstrap
24396all-itcl: stage_current
24397@endif gcc-bootstrap
d5eec917 24398@if itcl
5e6b1f07 24399TARGET-itcl=all
d5eec917
PB
24400maybe-all-itcl: all-itcl
24401all-itcl: configure-itcl
15b527ca 24402 @: $(MAKE); $(unstage)
8ec98d6c
NN
24403 @r=`${PWD_COMMAND}`; export r; \
24404 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 24405 $(HOST_EXPORTS) \
7fc2ca22 24406 (cd $(HOST_SUBDIR)/itcl && \
6532abb6
PB
24407 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
24408 $(TARGET-itcl))
d5eec917 24409@endif itcl
8ec98d6c 24410
f0fdfd34 24411
a8a96878
PB
24412
24413
d5eec917
PB
24414.PHONY: check-itcl maybe-check-itcl
24415maybe-check-itcl:
24416@if itcl
24417maybe-check-itcl: check-itcl
8ec98d6c 24418
d5eec917 24419check-itcl:
15b527ca 24420 @: $(MAKE); $(unstage)
8ec98d6c
NN
24421 @r=`${PWD_COMMAND}`; export r; \
24422 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 24423 $(HOST_EXPORTS) \
7fc2ca22
PB
24424 (cd $(HOST_SUBDIR)/itcl && \
24425 $(MAKE) $(FLAGS_TO_PASS) check)
8ec98d6c 24426
d5eec917 24427@endif itcl
8ec98d6c 24428
d5eec917
PB
24429.PHONY: install-itcl maybe-install-itcl
24430maybe-install-itcl:
24431@if itcl
24432maybe-install-itcl: install-itcl
8ec98d6c 24433
d5eec917 24434install-itcl: installdirs
15b527ca 24435 @: $(MAKE); $(unstage)
8ec98d6c
NN
24436 @r=`${PWD_COMMAND}`; export r; \
24437 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 24438 $(HOST_EXPORTS) \
7fc2ca22 24439 (cd $(HOST_SUBDIR)/itcl && \
93c60b6d 24440 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 24441
d5eec917 24442@endif itcl
8ec98d6c 24443
39bbbb69 24444# Other targets (info, dvi, pdf, etc.)
8ec98d6c 24445
d5eec917
PB
24446.PHONY: maybe-info-itcl info-itcl
24447maybe-info-itcl:
24448@if itcl
24449maybe-info-itcl: info-itcl
8ec98d6c 24450
d5eec917
PB
24451info-itcl: \
24452 configure-itcl
15b527ca 24453 @: $(MAKE); $(unstage)
d5eec917 24454 @[ -f ./itcl/Makefile ] || exit 0; \
5230d454
L
24455 r=`${PWD_COMMAND}`; export r; \
24456 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 24457 $(HOST_EXPORTS) \
d5eec917 24458 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
24459 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24460 done; \
d5eec917 24461 echo "Doing info in itcl" ; \
7fc2ca22 24462 (cd $(HOST_SUBDIR)/itcl && \
657b58f4
NN
24463 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24464 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24465 "RANLIB=$${RANLIB}" \
bffcbe34 24466 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 24467 info) \
657b58f4
NN
24468 || exit 1
24469
d5eec917 24470@endif itcl
657b58f4 24471
d5eec917
PB
24472.PHONY: maybe-dvi-itcl dvi-itcl
24473maybe-dvi-itcl:
24474@if itcl
24475maybe-dvi-itcl: dvi-itcl
657b58f4 24476
d5eec917
PB
24477dvi-itcl: \
24478 configure-itcl
15b527ca 24479 @: $(MAKE); $(unstage)
d5eec917 24480 @[ -f ./itcl/Makefile ] || exit 0; \
5230d454
L
24481 r=`${PWD_COMMAND}`; export r; \
24482 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 24483 $(HOST_EXPORTS) \
d5eec917 24484 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
24485 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24486 done; \
d5eec917 24487 echo "Doing dvi in itcl" ; \
7fc2ca22 24488 (cd $(HOST_SUBDIR)/itcl && \
657b58f4
NN
24489 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24490 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24491 "RANLIB=$${RANLIB}" \
bffcbe34 24492 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 24493 dvi) \
657b58f4
NN
24494 || exit 1
24495
d5eec917 24496@endif itcl
657b58f4 24497
39bbbb69
DD
24498.PHONY: maybe-pdf-itcl pdf-itcl
24499maybe-pdf-itcl:
24500@if itcl
24501maybe-pdf-itcl: pdf-itcl
24502
24503pdf-itcl: \
24504 configure-itcl
24505 @: $(MAKE); $(unstage)
24506 @[ -f ./itcl/Makefile ] || exit 0; \
24507 r=`${PWD_COMMAND}`; export r; \
24508 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24509 $(HOST_EXPORTS) \
24510 for flag in $(EXTRA_HOST_FLAGS) ; do \
24511 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24512 done; \
24513 echo "Doing pdf in itcl" ; \
24514 (cd $(HOST_SUBDIR)/itcl && \
24515 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24516 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24517 "RANLIB=$${RANLIB}" \
bffcbe34 24518 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
24519 pdf) \
24520 || exit 1
24521
24522@endif itcl
24523
b6fb961f
MS
24524.PHONY: maybe-html-itcl html-itcl
24525maybe-html-itcl:
24526@if itcl
24527maybe-html-itcl: html-itcl
24528
24529html-itcl: \
24530 configure-itcl
15b527ca 24531 @: $(MAKE); $(unstage)
b6fb961f
MS
24532 @[ -f ./itcl/Makefile ] || exit 0; \
24533 r=`${PWD_COMMAND}`; export r; \
24534 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
24535 $(HOST_EXPORTS) \
24536 for flag in $(EXTRA_HOST_FLAGS) ; do \
24537 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24538 done; \
24539 echo "Doing html in itcl" ; \
7fc2ca22 24540 (cd $(HOST_SUBDIR)/itcl && \
b6fb961f
MS
24541 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24542 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24543 "RANLIB=$${RANLIB}" \
bffcbe34 24544 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
24545 html) \
24546 || exit 1
24547
24548@endif itcl
24549
d5eec917
PB
24550.PHONY: maybe-TAGS-itcl TAGS-itcl
24551maybe-TAGS-itcl:
24552@if itcl
24553maybe-TAGS-itcl: TAGS-itcl
657b58f4 24554
d5eec917
PB
24555TAGS-itcl: \
24556 configure-itcl
15b527ca 24557 @: $(MAKE); $(unstage)
d5eec917 24558 @[ -f ./itcl/Makefile ] || exit 0; \
5230d454
L
24559 r=`${PWD_COMMAND}`; export r; \
24560 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 24561 $(HOST_EXPORTS) \
d5eec917 24562 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
24563 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24564 done; \
d5eec917 24565 echo "Doing TAGS in itcl" ; \
7fc2ca22 24566 (cd $(HOST_SUBDIR)/itcl && \
657b58f4
NN
24567 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24568 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24569 "RANLIB=$${RANLIB}" \
bffcbe34 24570 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 24571 TAGS) \
657b58f4
NN
24572 || exit 1
24573
d5eec917 24574@endif itcl
657b58f4 24575
d5eec917
PB
24576.PHONY: maybe-install-info-itcl install-info-itcl
24577maybe-install-info-itcl:
24578@if itcl
24579maybe-install-info-itcl: install-info-itcl
657b58f4 24580
d5eec917
PB
24581install-info-itcl: \
24582 configure-itcl \
24583 info-itcl
15b527ca 24584 @: $(MAKE); $(unstage)
d5eec917 24585 @[ -f ./itcl/Makefile ] || exit 0; \
5230d454
L
24586 r=`${PWD_COMMAND}`; export r; \
24587 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 24588 $(HOST_EXPORTS) \
d5eec917 24589 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
24590 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24591 done; \
d5eec917 24592 echo "Doing install-info in itcl" ; \
7fc2ca22 24593 (cd $(HOST_SUBDIR)/itcl && \
657b58f4
NN
24594 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24595 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24596 "RANLIB=$${RANLIB}" \
bffcbe34 24597 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 24598 install-info) \
657b58f4
NN
24599 || exit 1
24600
d5eec917 24601@endif itcl
657b58f4 24602
d4954b6d
DD
24603.PHONY: maybe-install-pdf-itcl install-pdf-itcl
24604maybe-install-pdf-itcl:
24605@if itcl
24606maybe-install-pdf-itcl: install-pdf-itcl
24607
24608install-pdf-itcl: \
24609 configure-itcl \
24610 pdf-itcl
24611 @: $(MAKE); $(unstage)
24612 @[ -f ./itcl/Makefile ] || exit 0; \
24613 r=`${PWD_COMMAND}`; export r; \
24614 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24615 $(HOST_EXPORTS) \
24616 for flag in $(EXTRA_HOST_FLAGS) ; do \
24617 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24618 done; \
24619 echo "Doing install-pdf in itcl" ; \
24620 (cd $(HOST_SUBDIR)/itcl && \
24621 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24622 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24623 "RANLIB=$${RANLIB}" \
bffcbe34 24624 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
24625 install-pdf) \
24626 || exit 1
24627
24628@endif itcl
24629
83c9add4
CD
24630.PHONY: maybe-install-html-itcl install-html-itcl
24631maybe-install-html-itcl:
24632@if itcl
24633maybe-install-html-itcl: install-html-itcl
24634
24635install-html-itcl: \
24636 configure-itcl \
24637 html-itcl
24638 @: $(MAKE); $(unstage)
24639 @[ -f ./itcl/Makefile ] || exit 0; \
24640 r=`${PWD_COMMAND}`; export r; \
24641 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24642 $(HOST_EXPORTS) \
24643 for flag in $(EXTRA_HOST_FLAGS) ; do \
24644 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24645 done; \
24646 echo "Doing install-html in itcl" ; \
24647 (cd $(HOST_SUBDIR)/itcl && \
24648 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24649 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24650 "RANLIB=$${RANLIB}" \
bffcbe34 24651 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
24652 install-html) \
24653 || exit 1
24654
24655@endif itcl
24656
d5eec917
PB
24657.PHONY: maybe-installcheck-itcl installcheck-itcl
24658maybe-installcheck-itcl:
24659@if itcl
24660maybe-installcheck-itcl: installcheck-itcl
657b58f4 24661
d5eec917
PB
24662installcheck-itcl: \
24663 configure-itcl
15b527ca 24664 @: $(MAKE); $(unstage)
d5eec917 24665 @[ -f ./itcl/Makefile ] || exit 0; \
5230d454
L
24666 r=`${PWD_COMMAND}`; export r; \
24667 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 24668 $(HOST_EXPORTS) \
d5eec917 24669 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
24670 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24671 done; \
d5eec917 24672 echo "Doing installcheck in itcl" ; \
7fc2ca22 24673 (cd $(HOST_SUBDIR)/itcl && \
657b58f4
NN
24674 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24675 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24676 "RANLIB=$${RANLIB}" \
bffcbe34 24677 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 24678 installcheck) \
657b58f4
NN
24679 || exit 1
24680
d5eec917 24681@endif itcl
657b58f4 24682
d5eec917
PB
24683.PHONY: maybe-mostlyclean-itcl mostlyclean-itcl
24684maybe-mostlyclean-itcl:
24685@if itcl
24686maybe-mostlyclean-itcl: mostlyclean-itcl
657b58f4 24687
d5eec917 24688mostlyclean-itcl:
15b527ca 24689 @: $(MAKE); $(unstage)
d5eec917 24690 @[ -f ./itcl/Makefile ] || exit 0; \
5230d454
L
24691 r=`${PWD_COMMAND}`; export r; \
24692 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 24693 $(HOST_EXPORTS) \
d5eec917 24694 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
24695 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24696 done; \
d5eec917 24697 echo "Doing mostlyclean in itcl" ; \
7fc2ca22 24698 (cd $(HOST_SUBDIR)/itcl && \
657b58f4
NN
24699 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24700 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24701 "RANLIB=$${RANLIB}" \
bffcbe34 24702 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 24703 mostlyclean) \
657b58f4
NN
24704 || exit 1
24705
d5eec917 24706@endif itcl
657b58f4 24707
d5eec917
PB
24708.PHONY: maybe-clean-itcl clean-itcl
24709maybe-clean-itcl:
24710@if itcl
24711maybe-clean-itcl: clean-itcl
657b58f4 24712
d5eec917 24713clean-itcl:
15b527ca 24714 @: $(MAKE); $(unstage)
d5eec917 24715 @[ -f ./itcl/Makefile ] || exit 0; \
5230d454
L
24716 r=`${PWD_COMMAND}`; export r; \
24717 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 24718 $(HOST_EXPORTS) \
d5eec917 24719 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
24720 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24721 done; \
d5eec917 24722 echo "Doing clean in itcl" ; \
7fc2ca22 24723 (cd $(HOST_SUBDIR)/itcl && \
657b58f4
NN
24724 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24725 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24726 "RANLIB=$${RANLIB}" \
bffcbe34 24727 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 24728 clean) \
657b58f4
NN
24729 || exit 1
24730
d5eec917 24731@endif itcl
657b58f4 24732
d5eec917
PB
24733.PHONY: maybe-distclean-itcl distclean-itcl
24734maybe-distclean-itcl:
24735@if itcl
24736maybe-distclean-itcl: distclean-itcl
657b58f4 24737
d5eec917 24738distclean-itcl:
15b527ca 24739 @: $(MAKE); $(unstage)
d5eec917 24740 @[ -f ./itcl/Makefile ] || exit 0; \
5230d454
L
24741 r=`${PWD_COMMAND}`; export r; \
24742 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 24743 $(HOST_EXPORTS) \
d5eec917 24744 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
24745 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24746 done; \
d5eec917 24747 echo "Doing distclean in itcl" ; \
7fc2ca22 24748 (cd $(HOST_SUBDIR)/itcl && \
657b58f4
NN
24749 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24750 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24751 "RANLIB=$${RANLIB}" \
bffcbe34 24752 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 24753 distclean) \
657b58f4
NN
24754 || exit 1
24755
d5eec917 24756@endif itcl
657b58f4 24757
d5eec917
PB
24758.PHONY: maybe-maintainer-clean-itcl maintainer-clean-itcl
24759maybe-maintainer-clean-itcl:
24760@if itcl
24761maybe-maintainer-clean-itcl: maintainer-clean-itcl
657b58f4 24762
d5eec917 24763maintainer-clean-itcl:
15b527ca 24764 @: $(MAKE); $(unstage)
d5eec917 24765 @[ -f ./itcl/Makefile ] || exit 0; \
5230d454
L
24766 r=`${PWD_COMMAND}`; export r; \
24767 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 24768 $(HOST_EXPORTS) \
d5eec917 24769 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
24770 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24771 done; \
d5eec917 24772 echo "Doing maintainer-clean in itcl" ; \
7fc2ca22 24773 (cd $(HOST_SUBDIR)/itcl && \
657b58f4
NN
24774 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24775 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24776 "RANLIB=$${RANLIB}" \
bffcbe34 24777 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 24778 maintainer-clean) \
657b58f4
NN
24779 || exit 1
24780
d5eec917 24781@endif itcl
657b58f4 24782
657b58f4 24783
f0fdfd34 24784
d5eec917
PB
24785.PHONY: configure-ld maybe-configure-ld
24786maybe-configure-ld:
e1e5148c
CD
24787@if gcc-bootstrap
24788configure-ld: stage_current
24789@endif gcc-bootstrap
d5eec917
PB
24790@if ld
24791maybe-configure-ld: configure-ld
ec92c4d6 24792configure-ld:
ec92c4d6
PB
24793 @r=`${PWD_COMMAND}`; export r; \
24794 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7fc2ca22
PB
24795 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
24796 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \
a675b75a 24797 $(HOST_EXPORTS) \
f0fdfd34
PB
24798 echo Configuring in $(HOST_SUBDIR)/ld; \
24799 cd "$(HOST_SUBDIR)/ld" || exit 1; \
c580d516 24800 case $(srcdir) in \
7fc2ca22
PB
24801 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24802 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
24803 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
c580d516 24804 esac; \
7fc2ca22
PB
24805 srcdiroption="--srcdir=$${topdir}/ld"; \
24806 libsrcdir="$$s/ld"; \
c580d516 24807 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
24808 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24809 --target=${target_alias} $${srcdiroption} \
c580d516 24810 || exit 1
d5eec917 24811@endif ld
c580d516 24812
f0fdfd34
PB
24813
24814
a8a96878
PB
24815.PHONY: configure-stage1-ld maybe-configure-stage1-ld
24816maybe-configure-stage1-ld:
24817@if ld-bootstrap
24818maybe-configure-stage1-ld: configure-stage1-ld
15b527ca 24819configure-stage1-ld:
ec92c4d6 24820 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
15b527ca 24821 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
ec92c4d6
PB
24822 @r=`${PWD_COMMAND}`; export r; \
24823 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15b527ca 24824 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
6532abb6 24825 $(HOST_EXPORTS) \
2ba09444 24826 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
6532abb6 24827 CXXFLAGS="$(STAGE1_CFLAGS)"; export CXXFLAGS; \
a8a96878 24828 echo Configuring stage 1 in $(HOST_SUBDIR)/ld ; \
15b527ca 24829 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \
a8a96878
PB
24830 cd $(HOST_SUBDIR)/ld || exit 1; \
24831 case $(srcdir) in \
24832 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24833 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
24834 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24835 esac; \
24836 srcdiroption="--srcdir=$${topdir}/ld"; \
24837 libsrcdir="$$s/ld"; \
24838 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
24839 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24840 --target=${target_alias} $${srcdiroption} \
380e48e5 24841 \
14a1406e 24842 --disable-intermodule $(STAGE1_CHECKING) --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
a8a96878
PB
24843@endif ld-bootstrap
24844
24845.PHONY: configure-stage2-ld maybe-configure-stage2-ld
24846maybe-configure-stage2-ld:
24847@if ld-bootstrap
24848maybe-configure-stage2-ld: configure-stage2-ld
15b527ca 24849configure-stage2-ld:
ec92c4d6 24850 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
15b527ca 24851 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
ec92c4d6
PB
24852 @r=`${PWD_COMMAND}`; export r; \
24853 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15b527ca 24854 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
a8a96878 24855 $(HOST_EXPORTS) \
6532abb6 24856 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 24857 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
6532abb6 24858 CXXFLAGS="$(STAGE2_CFLAGS)"; export CXXFLAGS; \
a8a96878 24859 echo Configuring stage 2 in $(HOST_SUBDIR)/ld ; \
15b527ca 24860 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \
a8a96878
PB
24861 cd $(HOST_SUBDIR)/ld || exit 1; \
24862 case $(srcdir) in \
24863 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24864 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
24865 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24866 esac; \
24867 srcdiroption="--srcdir=$${topdir}/ld"; \
24868 libsrcdir="$$s/ld"; \
24869 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
24870 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24871 --target=${target_alias} $${srcdiroption} \
380e48e5 24872 --with-build-libsubdir=$(HOST_SUBDIR) \
a8a96878
PB
24873 @stage2_werror_flag@
24874@endif ld-bootstrap
24875
2b41ef78
AO
24876.PHONY: configure-stageb2g0-ld maybe-configure-stageb2g0-ld
24877maybe-configure-stageb2g0-ld:
24878@if ld-bootstrap
24879maybe-configure-stageb2g0-ld: configure-stageb2g0-ld
24880configure-stageb2g0-ld:
24881 @[ $(current_stage) = stageb2g0 ] || $(MAKE) stageb2g0-start
24882 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
24883 @r=`${PWD_COMMAND}`; export r; \
24884 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24885 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
24886 $(HOST_EXPORTS) \
6532abb6 24887 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 24888 CFLAGS="$(STAGE2_CFLAGS) -g0"; export CFLAGS; \
6532abb6 24889 CXXFLAGS="$(STAGE2_CFLAGS) -g0"; export CXXFLAGS; \
2b41ef78
AO
24890 echo Configuring stage b2g0 in $(HOST_SUBDIR)/ld ; \
24891 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \
24892 cd $(HOST_SUBDIR)/ld || exit 1; \
24893 case $(srcdir) in \
24894 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24895 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
24896 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24897 esac; \
24898 srcdiroption="--srcdir=$${topdir}/ld"; \
24899 libsrcdir="$$s/ld"; \
24900 $(SHELL) $${libsrcdir}/configure \
24901 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24902 --target=${target_alias} $${srcdiroption} \
24903 --with-build-libsubdir=$(HOST_SUBDIR) \
24904 @stage2_werror_flag@
24905@endif ld-bootstrap
24906
a8a96878
PB
24907.PHONY: configure-stage3-ld maybe-configure-stage3-ld
24908maybe-configure-stage3-ld:
24909@if ld-bootstrap
24910maybe-configure-stage3-ld: configure-stage3-ld
15b527ca 24911configure-stage3-ld:
ec92c4d6 24912 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
15b527ca 24913 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
ec92c4d6
PB
24914 @r=`${PWD_COMMAND}`; export r; \
24915 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15b527ca 24916 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
a8a96878 24917 $(HOST_EXPORTS) \
6532abb6 24918 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 24919 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
6532abb6 24920 CXXFLAGS="$(STAGE3_CFLAGS)"; export CXXFLAGS; \
a8a96878 24921 echo Configuring stage 3 in $(HOST_SUBDIR)/ld ; \
15b527ca 24922 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \
a8a96878
PB
24923 cd $(HOST_SUBDIR)/ld || exit 1; \
24924 case $(srcdir) in \
24925 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24926 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
24927 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24928 esac; \
24929 srcdiroption="--srcdir=$${topdir}/ld"; \
24930 libsrcdir="$$s/ld"; \
24931 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
24932 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24933 --target=${target_alias} $${srcdiroption} \
380e48e5 24934 --with-build-libsubdir=$(HOST_SUBDIR) \
a8a96878
PB
24935 @stage2_werror_flag@
24936@endif ld-bootstrap
24937
2b41ef78
AO
24938.PHONY: configure-stageb3g2-ld maybe-configure-stageb3g2-ld
24939maybe-configure-stageb3g2-ld:
24940@if ld-bootstrap
24941maybe-configure-stageb3g2-ld: configure-stageb3g2-ld
24942configure-stageb3g2-ld:
24943 @[ $(current_stage) = stageb3g2 ] || $(MAKE) stageb3g2-start
24944 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
24945 @r=`${PWD_COMMAND}`; export r; \
24946 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24947 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
24948 $(HOST_EXPORTS) \
6532abb6 24949 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 24950 CFLAGS="$(STAGE3_CFLAGS) -g2"; export CFLAGS; \
6532abb6 24951 CXXFLAGS="$(STAGE3_CFLAGS) -g2"; export CXXFLAGS; \
2b41ef78
AO
24952 echo Configuring stage b3g2 in $(HOST_SUBDIR)/ld ; \
24953 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \
24954 cd $(HOST_SUBDIR)/ld || exit 1; \
24955 case $(srcdir) in \
24956 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24957 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
24958 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24959 esac; \
24960 srcdiroption="--srcdir=$${topdir}/ld"; \
24961 libsrcdir="$$s/ld"; \
24962 $(SHELL) $${libsrcdir}/configure \
24963 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24964 --target=${target_alias} $${srcdiroption} \
24965 --with-build-libsubdir=$(HOST_SUBDIR) \
24966 @stage2_werror_flag@
24967@endif ld-bootstrap
24968
a8a96878
PB
24969.PHONY: configure-stage4-ld maybe-configure-stage4-ld
24970maybe-configure-stage4-ld:
24971@if ld-bootstrap
24972maybe-configure-stage4-ld: configure-stage4-ld
15b527ca 24973configure-stage4-ld:
ec92c4d6 24974 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
15b527ca 24975 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
ec92c4d6
PB
24976 @r=`${PWD_COMMAND}`; export r; \
24977 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15b527ca 24978 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
a8a96878 24979 $(HOST_EXPORTS) \
6532abb6 24980 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 24981 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
6532abb6 24982 CXXFLAGS="$(STAGE4_CFLAGS)"; export CXXFLAGS; \
a8a96878 24983 echo Configuring stage 4 in $(HOST_SUBDIR)/ld ; \
15b527ca 24984 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \
a8a96878
PB
24985 cd $(HOST_SUBDIR)/ld || exit 1; \
24986 case $(srcdir) in \
24987 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24988 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
24989 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24990 esac; \
24991 srcdiroption="--srcdir=$${topdir}/ld"; \
24992 libsrcdir="$$s/ld"; \
24993 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
24994 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24995 --target=${target_alias} $${srcdiroption} \
380e48e5 24996 --with-build-libsubdir=$(HOST_SUBDIR) \
a8a96878
PB
24997 @stage2_werror_flag@
24998@endif ld-bootstrap
24999
25000.PHONY: configure-stageprofile-ld maybe-configure-stageprofile-ld
25001maybe-configure-stageprofile-ld:
25002@if ld-bootstrap
25003maybe-configure-stageprofile-ld: configure-stageprofile-ld
15b527ca 25004configure-stageprofile-ld:
ec92c4d6 25005 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
15b527ca 25006 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
ec92c4d6
PB
25007 @r=`${PWD_COMMAND}`; export r; \
25008 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15b527ca 25009 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
a8a96878 25010 $(HOST_EXPORTS) \
6532abb6 25011 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 25012 CFLAGS="$(STAGE2_CFLAGS) -fprofile-generate"; export CFLAGS; \
6532abb6 25013 CXXFLAGS="$(STAGE2_CFLAGS) -fprofile-generate"; export CXXFLAGS; \
a8a96878 25014 echo Configuring stage profile in $(HOST_SUBDIR)/ld ; \
15b527ca 25015 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \
a8a96878
PB
25016 cd $(HOST_SUBDIR)/ld || exit 1; \
25017 case $(srcdir) in \
25018 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
25019 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
25020 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
25021 esac; \
25022 srcdiroption="--srcdir=$${topdir}/ld"; \
25023 libsrcdir="$$s/ld"; \
25024 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
25025 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
25026 --target=${target_alias} $${srcdiroption} \
380e48e5 25027 --with-build-libsubdir=$(HOST_SUBDIR) \
a8a96878
PB
25028 @stage2_werror_flag@
25029@endif ld-bootstrap
25030
25031.PHONY: configure-stagefeedback-ld maybe-configure-stagefeedback-ld
25032maybe-configure-stagefeedback-ld:
25033@if ld-bootstrap
25034maybe-configure-stagefeedback-ld: configure-stagefeedback-ld
15b527ca 25035configure-stagefeedback-ld:
ec92c4d6 25036 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
15b527ca 25037 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
ec92c4d6
PB
25038 @r=`${PWD_COMMAND}`; export r; \
25039 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15b527ca 25040 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
a8a96878 25041 $(HOST_EXPORTS) \
6532abb6 25042 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 25043 CFLAGS="$(STAGE3_CFLAGS) -fprofile-use"; export CFLAGS; \
6532abb6 25044 CXXFLAGS="$(STAGE3_CFLAGS) -fprofile-use"; export CXXFLAGS; \
a8a96878 25045 echo Configuring stage feedback in $(HOST_SUBDIR)/ld ; \
15b527ca 25046 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \
a8a96878
PB
25047 cd $(HOST_SUBDIR)/ld || exit 1; \
25048 case $(srcdir) in \
25049 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
25050 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
25051 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
25052 esac; \
25053 srcdiroption="--srcdir=$${topdir}/ld"; \
25054 libsrcdir="$$s/ld"; \
25055 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
25056 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
25057 --target=${target_alias} $${srcdiroption} \
380e48e5 25058 --with-build-libsubdir=$(HOST_SUBDIR) \
a8a96878
PB
25059 @stage2_werror_flag@
25060@endif ld-bootstrap
25061
25062
25063
25064
25065
d5eec917
PB
25066.PHONY: all-ld maybe-all-ld
25067maybe-all-ld:
e1e5148c
CD
25068@if gcc-bootstrap
25069all-ld: stage_current
25070@endif gcc-bootstrap
d5eec917 25071@if ld
5e6b1f07 25072TARGET-ld=all
d5eec917
PB
25073maybe-all-ld: all-ld
25074all-ld: configure-ld
ec92c4d6 25075 @r=`${PWD_COMMAND}`; export r; \
c580d516 25076 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 25077 $(HOST_EXPORTS) \
7fc2ca22 25078 (cd $(HOST_SUBDIR)/ld && \
6532abb6
PB
25079 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
25080 $(TARGET-ld))
d5eec917 25081@endif ld
c580d516 25082
f0fdfd34 25083
a8a96878
PB
25084
25085.PHONY: all-stage1-ld maybe-all-stage1-ld
25086.PHONY: clean-stage1-ld maybe-clean-stage1-ld
25087maybe-all-stage1-ld:
25088maybe-clean-stage1-ld:
25089@if ld-bootstrap
25090maybe-all-stage1-ld: all-stage1-ld
25091all-stage1: all-stage1-ld
168b158c 25092TARGET-stage1-ld = $(TARGET-ld)
a8a96878 25093all-stage1-ld: configure-stage1-ld
ec92c4d6 25094 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a8a96878
PB
25095 @r=`${PWD_COMMAND}`; export r; \
25096 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25097 $(HOST_EXPORTS) \
25098 cd $(HOST_SUBDIR)/ld && \
6532abb6
PB
25099 $(MAKE) $(BASE_FLAGS_TO_PASS) \
25100 CFLAGS="$(STAGE1_CFLAGS)" CXXFLAGS="$(STAGE1_CFLAGS)" \
25101 LIBCFLAGS="$(STAGE1_LIBCFLAGS)" \
25102 CFLAGS_FOR_TARGET="$(STAGE1_LIBCFLAGS)" \
25103 CXXFLAGS_FOR_TARGET="$(STAGE1_LIBCFLAGS)" $(EXTRA_HOST_FLAGS) \
168b158c 25104 $(TARGET-stage1-ld)
a8a96878
PB
25105
25106maybe-clean-stage1-ld: clean-stage1-ld
25107clean-stage1: clean-stage1-ld
25108clean-stage1-ld:
a6a4e782
DD
25109 @if [ $(current_stage) = stage1 ]; then \
25110 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
25111 else \
25112 [ -f $(HOST_SUBDIR)/stage1-ld/Makefile ] || exit 0; \
25113 $(MAKE) stage1-start; \
25114 fi; \
a8a96878 25115 cd $(HOST_SUBDIR)/ld && \
6532abb6 25116 $(MAKE) $(EXTRA_HOST_FLAGS) \
2ba09444 25117 clean
a8a96878
PB
25118@endif ld-bootstrap
25119
25120
25121.PHONY: all-stage2-ld maybe-all-stage2-ld
25122.PHONY: clean-stage2-ld maybe-clean-stage2-ld
25123maybe-all-stage2-ld:
25124maybe-clean-stage2-ld:
25125@if ld-bootstrap
25126maybe-all-stage2-ld: all-stage2-ld
25127all-stage2: all-stage2-ld
168b158c 25128TARGET-stage2-ld = $(TARGET-ld)
a8a96878 25129all-stage2-ld: configure-stage2-ld
ec92c4d6 25130 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a8a96878
PB
25131 @r=`${PWD_COMMAND}`; export r; \
25132 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25133 $(HOST_EXPORTS) \
25134 $(POSTSTAGE1_HOST_EXPORTS) \
25135 cd $(HOST_SUBDIR)/ld && \
6532abb6
PB
25136 $(MAKE) $(BASE_FLAGS_TO_PASS) \
25137 CFLAGS="$(STAGE2_CFLAGS)" CXXFLAGS="$(STAGE2_CFLAGS)" \
25138 LIBCFLAGS="$(STAGE2_LIBCFLAGS)" \
25139 CFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)" \
25140 CXXFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
168b158c 25141 $(TARGET-stage2-ld)
a8a96878
PB
25142
25143maybe-clean-stage2-ld: clean-stage2-ld
25144clean-stage2: clean-stage2-ld
25145clean-stage2-ld:
a6a4e782
DD
25146 @if [ $(current_stage) = stage2 ]; then \
25147 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
25148 else \
25149 [ -f $(HOST_SUBDIR)/stage2-ld/Makefile ] || exit 0; \
25150 $(MAKE) stage2-start; \
25151 fi; \
a8a96878 25152 cd $(HOST_SUBDIR)/ld && \
6532abb6 25153 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 25154 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 25155 clean
a8a96878
PB
25156@endif ld-bootstrap
25157
25158
2b41ef78
AO
25159.PHONY: all-stageb2g0-ld maybe-all-stageb2g0-ld
25160.PHONY: clean-stageb2g0-ld maybe-clean-stageb2g0-ld
25161maybe-all-stageb2g0-ld:
25162maybe-clean-stageb2g0-ld:
25163@if ld-bootstrap
25164maybe-all-stageb2g0-ld: all-stageb2g0-ld
25165all-stageb2g0: all-stageb2g0-ld
25166TARGET-stageb2g0-ld = $(TARGET-ld)
25167all-stageb2g0-ld: configure-stageb2g0-ld
25168 @[ $(current_stage) = stageb2g0 ] || $(MAKE) stageb2g0-start
25169 @r=`${PWD_COMMAND}`; export r; \
25170 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25171 $(HOST_EXPORTS) \
25172 $(POSTSTAGE1_HOST_EXPORTS) \
25173 cd $(HOST_SUBDIR)/ld && \
6532abb6
PB
25174 $(MAKE) $(BASE_FLAGS_TO_PASS) \
25175 CFLAGS="$(STAGE2_CFLAGS) -g0" CXXFLAGS="$(STAGE2_CFLAGS) -g0" \
25176 LIBCFLAGS="$(STAGE2_LIBCFLAGS) -g0" \
25177 CFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS) -g0" \
25178 CXXFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS) -g0" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
2b41ef78
AO
25179 $(TARGET-stageb2g0-ld)
25180
25181maybe-clean-stageb2g0-ld: clean-stageb2g0-ld
25182clean-stageb2g0: clean-stageb2g0-ld
25183clean-stageb2g0-ld:
25184 @if [ $(current_stage) = stageb2g0 ]; then \
25185 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
25186 else \
25187 [ -f $(HOST_SUBDIR)/stageb2g0-ld/Makefile ] || exit 0; \
25188 $(MAKE) stageb2g0-start; \
25189 fi; \
25190 cd $(HOST_SUBDIR)/ld && \
6532abb6 25191 $(MAKE) $(EXTRA_HOST_FLAGS) \
2b41ef78
AO
25192 $(POSTSTAGE1_FLAGS_TO_PASS) \
25193 clean
25194@endif ld-bootstrap
25195
25196
a8a96878
PB
25197.PHONY: all-stage3-ld maybe-all-stage3-ld
25198.PHONY: clean-stage3-ld maybe-clean-stage3-ld
25199maybe-all-stage3-ld:
25200maybe-clean-stage3-ld:
25201@if ld-bootstrap
25202maybe-all-stage3-ld: all-stage3-ld
25203all-stage3: all-stage3-ld
168b158c 25204TARGET-stage3-ld = $(TARGET-ld)
a8a96878 25205all-stage3-ld: configure-stage3-ld
ec92c4d6 25206 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a8a96878
PB
25207 @r=`${PWD_COMMAND}`; export r; \
25208 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25209 $(HOST_EXPORTS) \
25210 $(POSTSTAGE1_HOST_EXPORTS) \
25211 cd $(HOST_SUBDIR)/ld && \
6532abb6
PB
25212 $(MAKE) $(BASE_FLAGS_TO_PASS) \
25213 CFLAGS="$(STAGE3_CFLAGS)" CXXFLAGS="$(STAGE3_CFLAGS)" \
25214 LIBCFLAGS="$(STAGE3_LIBCFLAGS)" \
25215 CFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS)" \
25216 CXXFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS)" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
168b158c 25217 $(TARGET-stage3-ld)
a8a96878
PB
25218
25219maybe-clean-stage3-ld: clean-stage3-ld
25220clean-stage3: clean-stage3-ld
25221clean-stage3-ld:
a6a4e782
DD
25222 @if [ $(current_stage) = stage3 ]; then \
25223 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
25224 else \
25225 [ -f $(HOST_SUBDIR)/stage3-ld/Makefile ] || exit 0; \
25226 $(MAKE) stage3-start; \
25227 fi; \
a8a96878 25228 cd $(HOST_SUBDIR)/ld && \
6532abb6 25229 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 25230 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 25231 clean
a8a96878
PB
25232@endif ld-bootstrap
25233
25234
2b41ef78
AO
25235.PHONY: all-stageb3g2-ld maybe-all-stageb3g2-ld
25236.PHONY: clean-stageb3g2-ld maybe-clean-stageb3g2-ld
25237maybe-all-stageb3g2-ld:
25238maybe-clean-stageb3g2-ld:
25239@if ld-bootstrap
25240maybe-all-stageb3g2-ld: all-stageb3g2-ld
25241all-stageb3g2: all-stageb3g2-ld
25242TARGET-stageb3g2-ld = $(TARGET-ld)
25243all-stageb3g2-ld: configure-stageb3g2-ld
25244 @[ $(current_stage) = stageb3g2 ] || $(MAKE) stageb3g2-start
25245 @r=`${PWD_COMMAND}`; export r; \
25246 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25247 $(HOST_EXPORTS) \
25248 $(POSTSTAGE1_HOST_EXPORTS) \
25249 cd $(HOST_SUBDIR)/ld && \
6532abb6
PB
25250 $(MAKE) $(BASE_FLAGS_TO_PASS) \
25251 CFLAGS="$(STAGE3_CFLAGS) -g2" CXXFLAGS="$(STAGE3_CFLAGS) -g2" \
25252 LIBCFLAGS="$(STAGE3_LIBCFLAGS) -g2" \
25253 CFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS) -g2" \
25254 CXXFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS) -g2" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
2b41ef78
AO
25255 $(TARGET-stageb3g2-ld)
25256
25257maybe-clean-stageb3g2-ld: clean-stageb3g2-ld
25258clean-stageb3g2: clean-stageb3g2-ld
25259clean-stageb3g2-ld:
25260 @if [ $(current_stage) = stageb3g2 ]; then \
25261 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
25262 else \
25263 [ -f $(HOST_SUBDIR)/stageb3g2-ld/Makefile ] || exit 0; \
25264 $(MAKE) stageb3g2-start; \
25265 fi; \
25266 cd $(HOST_SUBDIR)/ld && \
6532abb6 25267 $(MAKE) $(EXTRA_HOST_FLAGS) \
2b41ef78
AO
25268 $(POSTSTAGE1_FLAGS_TO_PASS) \
25269 clean
25270@endif ld-bootstrap
25271
25272
a8a96878
PB
25273.PHONY: all-stage4-ld maybe-all-stage4-ld
25274.PHONY: clean-stage4-ld maybe-clean-stage4-ld
25275maybe-all-stage4-ld:
25276maybe-clean-stage4-ld:
25277@if ld-bootstrap
25278maybe-all-stage4-ld: all-stage4-ld
25279all-stage4: all-stage4-ld
168b158c 25280TARGET-stage4-ld = $(TARGET-ld)
a8a96878 25281all-stage4-ld: configure-stage4-ld
ec92c4d6 25282 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a8a96878
PB
25283 @r=`${PWD_COMMAND}`; export r; \
25284 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25285 $(HOST_EXPORTS) \
25286 $(POSTSTAGE1_HOST_EXPORTS) \
25287 cd $(HOST_SUBDIR)/ld && \
6532abb6
PB
25288 $(MAKE) $(BASE_FLAGS_TO_PASS) \
25289 CFLAGS="$(STAGE4_CFLAGS)" CXXFLAGS="$(STAGE4_CFLAGS)" \
25290 LIBCFLAGS="$(STAGE4_CFLAGS)" \
25291 CFLAGS_FOR_TARGET="$(STAGE4_CFLAGS)" \
25292 CXXFLAGS_FOR_TARGET="$(STAGE4_CFLAGS)" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
168b158c 25293 $(TARGET-stage4-ld)
a8a96878
PB
25294
25295maybe-clean-stage4-ld: clean-stage4-ld
25296clean-stage4: clean-stage4-ld
25297clean-stage4-ld:
a6a4e782
DD
25298 @if [ $(current_stage) = stage4 ]; then \
25299 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
25300 else \
25301 [ -f $(HOST_SUBDIR)/stage4-ld/Makefile ] || exit 0; \
25302 $(MAKE) stage4-start; \
25303 fi; \
a8a96878 25304 cd $(HOST_SUBDIR)/ld && \
6532abb6 25305 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 25306 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 25307 clean
a8a96878
PB
25308@endif ld-bootstrap
25309
25310
25311.PHONY: all-stageprofile-ld maybe-all-stageprofile-ld
25312.PHONY: clean-stageprofile-ld maybe-clean-stageprofile-ld
25313maybe-all-stageprofile-ld:
25314maybe-clean-stageprofile-ld:
25315@if ld-bootstrap
25316maybe-all-stageprofile-ld: all-stageprofile-ld
25317all-stageprofile: all-stageprofile-ld
168b158c 25318TARGET-stageprofile-ld = $(TARGET-ld)
a8a96878 25319all-stageprofile-ld: configure-stageprofile-ld
ec92c4d6 25320 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a8a96878
PB
25321 @r=`${PWD_COMMAND}`; export r; \
25322 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25323 $(HOST_EXPORTS) \
25324 $(POSTSTAGE1_HOST_EXPORTS) \
25325 cd $(HOST_SUBDIR)/ld && \
6532abb6
PB
25326 $(MAKE) $(BASE_FLAGS_TO_PASS) \
25327 CFLAGS="$(STAGE2_CFLAGS) -fprofile-generate" CXXFLAGS="$(STAGE2_CFLAGS) -fprofile-generate" \
455b4f90
PB
25328 LIBCFLAGS="$(STAGE2_LIBCFLAGS)" \
25329 CFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)" \
25330 CXXFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
168b158c 25331 $(TARGET-stageprofile-ld)
a8a96878
PB
25332
25333maybe-clean-stageprofile-ld: clean-stageprofile-ld
25334clean-stageprofile: clean-stageprofile-ld
25335clean-stageprofile-ld:
a6a4e782
DD
25336 @if [ $(current_stage) = stageprofile ]; then \
25337 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
25338 else \
25339 [ -f $(HOST_SUBDIR)/stageprofile-ld/Makefile ] || exit 0; \
25340 $(MAKE) stageprofile-start; \
25341 fi; \
a8a96878 25342 cd $(HOST_SUBDIR)/ld && \
6532abb6 25343 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 25344 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 25345 clean
a8a96878
PB
25346@endif ld-bootstrap
25347
25348
25349.PHONY: all-stagefeedback-ld maybe-all-stagefeedback-ld
25350.PHONY: clean-stagefeedback-ld maybe-clean-stagefeedback-ld
25351maybe-all-stagefeedback-ld:
25352maybe-clean-stagefeedback-ld:
25353@if ld-bootstrap
25354maybe-all-stagefeedback-ld: all-stagefeedback-ld
25355all-stagefeedback: all-stagefeedback-ld
168b158c 25356TARGET-stagefeedback-ld = $(TARGET-ld)
a8a96878 25357all-stagefeedback-ld: configure-stagefeedback-ld
ec92c4d6 25358 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a8a96878
PB
25359 @r=`${PWD_COMMAND}`; export r; \
25360 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25361 $(HOST_EXPORTS) \
25362 $(POSTSTAGE1_HOST_EXPORTS) \
25363 cd $(HOST_SUBDIR)/ld && \
6532abb6
PB
25364 $(MAKE) $(BASE_FLAGS_TO_PASS) \
25365 CFLAGS="$(STAGE3_CFLAGS) -fprofile-use" CXXFLAGS="$(STAGE3_CFLAGS) -fprofile-use" \
25366 LIBCFLAGS="$(STAGE3_LIBCFLAGS) -fprofile-use" \
25367 CFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS) -fprofile-use" \
25368 CXXFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS) -fprofile-use" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
168b158c 25369 $(TARGET-stagefeedback-ld)
a8a96878
PB
25370
25371maybe-clean-stagefeedback-ld: clean-stagefeedback-ld
25372clean-stagefeedback: clean-stagefeedback-ld
25373clean-stagefeedback-ld:
a6a4e782
DD
25374 @if [ $(current_stage) = stagefeedback ]; then \
25375 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
25376 else \
25377 [ -f $(HOST_SUBDIR)/stagefeedback-ld/Makefile ] || exit 0; \
25378 $(MAKE) stagefeedback-start; \
25379 fi; \
a8a96878 25380 cd $(HOST_SUBDIR)/ld && \
6532abb6 25381 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 25382 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 25383 clean
a8a96878
PB
25384@endif ld-bootstrap
25385
25386
25387
25388
25389
d5eec917
PB
25390.PHONY: check-ld maybe-check-ld
25391maybe-check-ld:
25392@if ld
25393maybe-check-ld: check-ld
c580d516 25394
d5eec917 25395check-ld:
15b527ca 25396 @: $(MAKE); $(unstage)
c580d516
PB
25397 @r=`${PWD_COMMAND}`; export r; \
25398 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 25399 $(HOST_EXPORTS) \
7fc2ca22
PB
25400 (cd $(HOST_SUBDIR)/ld && \
25401 $(MAKE) $(FLAGS_TO_PASS) check)
c580d516 25402
d5eec917 25403@endif ld
c580d516 25404
d5eec917
PB
25405.PHONY: install-ld maybe-install-ld
25406maybe-install-ld:
25407@if ld
25408maybe-install-ld: install-ld
c580d516 25409
d5eec917 25410install-ld: installdirs
15b527ca 25411 @: $(MAKE); $(unstage)
c580d516
PB
25412 @r=`${PWD_COMMAND}`; export r; \
25413 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 25414 $(HOST_EXPORTS) \
7fc2ca22 25415 (cd $(HOST_SUBDIR)/ld && \
93c60b6d 25416 $(MAKE) $(FLAGS_TO_PASS) install)
c580d516 25417
d5eec917 25418@endif ld
c580d516 25419
39bbbb69 25420# Other targets (info, dvi, pdf, etc.)
c580d516 25421
d5eec917
PB
25422.PHONY: maybe-info-ld info-ld
25423maybe-info-ld:
25424@if ld
25425maybe-info-ld: info-ld
c580d516 25426
d5eec917
PB
25427info-ld: \
25428 configure-ld
25429 @[ -f ./ld/Makefile ] || exit 0; \
c580d516
PB
25430 r=`${PWD_COMMAND}`; export r; \
25431 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 25432 $(HOST_EXPORTS) \
d5eec917 25433 for flag in $(EXTRA_HOST_FLAGS) ; do \
c580d516
PB
25434 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25435 done; \
d5eec917 25436 echo "Doing info in ld" ; \
7fc2ca22 25437 (cd $(HOST_SUBDIR)/ld && \
c580d516
PB
25438 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25439 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25440 "RANLIB=$${RANLIB}" \
bffcbe34 25441 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 25442 info) \
c580d516
PB
25443 || exit 1
25444
d5eec917 25445@endif ld
c580d516 25446
d5eec917
PB
25447.PHONY: maybe-dvi-ld dvi-ld
25448maybe-dvi-ld:
25449@if ld
25450maybe-dvi-ld: dvi-ld
c580d516 25451
d5eec917
PB
25452dvi-ld: \
25453 configure-ld
25454 @[ -f ./ld/Makefile ] || exit 0; \
c580d516
PB
25455 r=`${PWD_COMMAND}`; export r; \
25456 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 25457 $(HOST_EXPORTS) \
d5eec917 25458 for flag in $(EXTRA_HOST_FLAGS) ; do \
c580d516
PB
25459 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25460 done; \
d5eec917 25461 echo "Doing dvi in ld" ; \
7fc2ca22 25462 (cd $(HOST_SUBDIR)/ld && \
c580d516
PB
25463 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25464 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25465 "RANLIB=$${RANLIB}" \
bffcbe34 25466 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 25467 dvi) \
c580d516
PB
25468 || exit 1
25469
d5eec917 25470@endif ld
c580d516 25471
39bbbb69
DD
25472.PHONY: maybe-pdf-ld pdf-ld
25473maybe-pdf-ld:
25474@if ld
25475maybe-pdf-ld: pdf-ld
25476
25477pdf-ld: \
25478 configure-ld
25479 @[ -f ./ld/Makefile ] || exit 0; \
25480 r=`${PWD_COMMAND}`; export r; \
25481 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25482 $(HOST_EXPORTS) \
25483 for flag in $(EXTRA_HOST_FLAGS) ; do \
25484 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25485 done; \
25486 echo "Doing pdf in ld" ; \
25487 (cd $(HOST_SUBDIR)/ld && \
25488 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25489 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25490 "RANLIB=$${RANLIB}" \
bffcbe34 25491 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
25492 pdf) \
25493 || exit 1
25494
25495@endif ld
25496
b6fb961f
MS
25497.PHONY: maybe-html-ld html-ld
25498maybe-html-ld:
25499@if ld
25500maybe-html-ld: html-ld
25501
25502html-ld: \
25503 configure-ld
25504 @[ -f ./ld/Makefile ] || exit 0; \
25505 r=`${PWD_COMMAND}`; export r; \
25506 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
25507 $(HOST_EXPORTS) \
25508 for flag in $(EXTRA_HOST_FLAGS) ; do \
25509 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25510 done; \
25511 echo "Doing html in ld" ; \
7fc2ca22 25512 (cd $(HOST_SUBDIR)/ld && \
b6fb961f
MS
25513 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25514 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25515 "RANLIB=$${RANLIB}" \
bffcbe34 25516 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
25517 html) \
25518 || exit 1
25519
25520@endif ld
25521
d5eec917
PB
25522.PHONY: maybe-TAGS-ld TAGS-ld
25523maybe-TAGS-ld:
25524@if ld
25525maybe-TAGS-ld: TAGS-ld
c580d516 25526
d5eec917
PB
25527TAGS-ld: \
25528 configure-ld
25529 @[ -f ./ld/Makefile ] || exit 0; \
c580d516
PB
25530 r=`${PWD_COMMAND}`; export r; \
25531 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 25532 $(HOST_EXPORTS) \
d5eec917 25533 for flag in $(EXTRA_HOST_FLAGS) ; do \
c580d516
PB
25534 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25535 done; \
d5eec917 25536 echo "Doing TAGS in ld" ; \
7fc2ca22 25537 (cd $(HOST_SUBDIR)/ld && \
c580d516
PB
25538 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25539 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25540 "RANLIB=$${RANLIB}" \
bffcbe34 25541 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 25542 TAGS) \
c580d516
PB
25543 || exit 1
25544
d5eec917 25545@endif ld
c580d516 25546
d5eec917
PB
25547.PHONY: maybe-install-info-ld install-info-ld
25548maybe-install-info-ld:
25549@if ld
25550maybe-install-info-ld: install-info-ld
c580d516 25551
d5eec917
PB
25552install-info-ld: \
25553 configure-ld \
25554 info-ld
25555 @[ -f ./ld/Makefile ] || exit 0; \
c580d516
PB
25556 r=`${PWD_COMMAND}`; export r; \
25557 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 25558 $(HOST_EXPORTS) \
d5eec917 25559 for flag in $(EXTRA_HOST_FLAGS) ; do \
c580d516
PB
25560 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25561 done; \
d5eec917 25562 echo "Doing install-info in ld" ; \
7fc2ca22 25563 (cd $(HOST_SUBDIR)/ld && \
c580d516
PB
25564 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25565 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25566 "RANLIB=$${RANLIB}" \
bffcbe34 25567 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 25568 install-info) \
c580d516
PB
25569 || exit 1
25570
d5eec917 25571@endif ld
c580d516 25572
d4954b6d
DD
25573.PHONY: maybe-install-pdf-ld install-pdf-ld
25574maybe-install-pdf-ld:
25575@if ld
25576maybe-install-pdf-ld: install-pdf-ld
25577
25578install-pdf-ld: \
25579 configure-ld \
25580 pdf-ld
25581 @[ -f ./ld/Makefile ] || exit 0; \
25582 r=`${PWD_COMMAND}`; export r; \
25583 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25584 $(HOST_EXPORTS) \
25585 for flag in $(EXTRA_HOST_FLAGS) ; do \
25586 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25587 done; \
25588 echo "Doing install-pdf in ld" ; \
25589 (cd $(HOST_SUBDIR)/ld && \
25590 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25591 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25592 "RANLIB=$${RANLIB}" \
bffcbe34 25593 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
25594 install-pdf) \
25595 || exit 1
25596
25597@endif ld
25598
83c9add4
CD
25599.PHONY: maybe-install-html-ld install-html-ld
25600maybe-install-html-ld:
25601@if ld
25602maybe-install-html-ld: install-html-ld
25603
25604install-html-ld: \
25605 configure-ld \
25606 html-ld
25607 @[ -f ./ld/Makefile ] || exit 0; \
25608 r=`${PWD_COMMAND}`; export r; \
25609 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25610 $(HOST_EXPORTS) \
25611 for flag in $(EXTRA_HOST_FLAGS) ; do \
25612 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25613 done; \
25614 echo "Doing install-html in ld" ; \
25615 (cd $(HOST_SUBDIR)/ld && \
25616 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25617 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25618 "RANLIB=$${RANLIB}" \
bffcbe34 25619 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
25620 install-html) \
25621 || exit 1
25622
25623@endif ld
25624
d5eec917
PB
25625.PHONY: maybe-installcheck-ld installcheck-ld
25626maybe-installcheck-ld:
25627@if ld
25628maybe-installcheck-ld: installcheck-ld
c580d516 25629
d5eec917
PB
25630installcheck-ld: \
25631 configure-ld
25632 @[ -f ./ld/Makefile ] || exit 0; \
c580d516
PB
25633 r=`${PWD_COMMAND}`; export r; \
25634 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 25635 $(HOST_EXPORTS) \
d5eec917 25636 for flag in $(EXTRA_HOST_FLAGS) ; do \
c580d516
PB
25637 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25638 done; \
d5eec917 25639 echo "Doing installcheck in ld" ; \
7fc2ca22 25640 (cd $(HOST_SUBDIR)/ld && \
c580d516
PB
25641 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25642 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25643 "RANLIB=$${RANLIB}" \
bffcbe34 25644 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 25645 installcheck) \
c580d516
PB
25646 || exit 1
25647
d5eec917 25648@endif ld
c580d516 25649
d5eec917
PB
25650.PHONY: maybe-mostlyclean-ld mostlyclean-ld
25651maybe-mostlyclean-ld:
25652@if ld
25653maybe-mostlyclean-ld: mostlyclean-ld
c580d516 25654
d5eec917
PB
25655mostlyclean-ld:
25656 @[ -f ./ld/Makefile ] || exit 0; \
c580d516
PB
25657 r=`${PWD_COMMAND}`; export r; \
25658 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 25659 $(HOST_EXPORTS) \
d5eec917 25660 for flag in $(EXTRA_HOST_FLAGS) ; do \
c580d516
PB
25661 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25662 done; \
d5eec917 25663 echo "Doing mostlyclean in ld" ; \
7fc2ca22 25664 (cd $(HOST_SUBDIR)/ld && \
c580d516
PB
25665 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25666 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25667 "RANLIB=$${RANLIB}" \
bffcbe34 25668 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 25669 mostlyclean) \
c580d516
PB
25670 || exit 1
25671
d5eec917 25672@endif ld
c580d516 25673
d5eec917
PB
25674.PHONY: maybe-clean-ld clean-ld
25675maybe-clean-ld:
25676@if ld
25677maybe-clean-ld: clean-ld
c580d516 25678
d5eec917
PB
25679clean-ld:
25680 @[ -f ./ld/Makefile ] || exit 0; \
c580d516
PB
25681 r=`${PWD_COMMAND}`; export r; \
25682 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 25683 $(HOST_EXPORTS) \
d5eec917 25684 for flag in $(EXTRA_HOST_FLAGS) ; do \
c580d516
PB
25685 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25686 done; \
d5eec917 25687 echo "Doing clean in ld" ; \
7fc2ca22 25688 (cd $(HOST_SUBDIR)/ld && \
c580d516
PB
25689 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25690 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25691 "RANLIB=$${RANLIB}" \
bffcbe34 25692 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 25693 clean) \
c580d516
PB
25694 || exit 1
25695
d5eec917 25696@endif ld
c580d516 25697
d5eec917
PB
25698.PHONY: maybe-distclean-ld distclean-ld
25699maybe-distclean-ld:
25700@if ld
25701maybe-distclean-ld: distclean-ld
c580d516 25702
d5eec917
PB
25703distclean-ld:
25704 @[ -f ./ld/Makefile ] || exit 0; \
c580d516
PB
25705 r=`${PWD_COMMAND}`; export r; \
25706 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 25707 $(HOST_EXPORTS) \
d5eec917 25708 for flag in $(EXTRA_HOST_FLAGS) ; do \
c580d516
PB
25709 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25710 done; \
d5eec917 25711 echo "Doing distclean in ld" ; \
7fc2ca22 25712 (cd $(HOST_SUBDIR)/ld && \
c580d516
PB
25713 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25714 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25715 "RANLIB=$${RANLIB}" \
bffcbe34 25716 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 25717 distclean) \
c580d516
PB
25718 || exit 1
25719
d5eec917 25720@endif ld
c580d516 25721
d5eec917
PB
25722.PHONY: maybe-maintainer-clean-ld maintainer-clean-ld
25723maybe-maintainer-clean-ld:
25724@if ld
25725maybe-maintainer-clean-ld: maintainer-clean-ld
c580d516 25726
d5eec917
PB
25727maintainer-clean-ld:
25728 @[ -f ./ld/Makefile ] || exit 0; \
c580d516
PB
25729 r=`${PWD_COMMAND}`; export r; \
25730 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 25731 $(HOST_EXPORTS) \
d5eec917 25732 for flag in $(EXTRA_HOST_FLAGS) ; do \
c580d516
PB
25733 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25734 done; \
d5eec917 25735 echo "Doing maintainer-clean in ld" ; \
7fc2ca22 25736 (cd $(HOST_SUBDIR)/ld && \
c580d516
PB
25737 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25738 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25739 "RANLIB=$${RANLIB}" \
bffcbe34 25740 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 25741 maintainer-clean) \
c580d516
PB
25742 || exit 1
25743
d5eec917 25744@endif ld
c580d516
PB
25745
25746
f0fdfd34 25747
d5eec917
PB
25748.PHONY: configure-libcpp maybe-configure-libcpp
25749maybe-configure-libcpp:
e1e5148c
CD
25750@if gcc-bootstrap
25751configure-libcpp: stage_current
25752@endif gcc-bootstrap
d5eec917
PB
25753@if libcpp
25754maybe-configure-libcpp: configure-libcpp
ec92c4d6 25755configure-libcpp:
ec92c4d6
PB
25756 @r=`${PWD_COMMAND}`; export r; \
25757 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7fc2ca22
PB
25758 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
25759 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \
a675b75a 25760 $(HOST_EXPORTS) \
f0fdfd34
PB
25761 echo Configuring in $(HOST_SUBDIR)/libcpp; \
25762 cd "$(HOST_SUBDIR)/libcpp" || exit 1; \
8ec98d6c 25763 case $(srcdir) in \
7fc2ca22
PB
25764 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
25765 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
25766 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 25767 esac; \
7fc2ca22
PB
25768 srcdiroption="--srcdir=$${topdir}/libcpp"; \
25769 libsrcdir="$$s/libcpp"; \
8ec98d6c 25770 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
25771 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
25772 --target=${target_alias} $${srcdiroption} \
8ec98d6c 25773 || exit 1
d5eec917 25774@endif libcpp
8ec98d6c 25775
f0fdfd34
PB
25776
25777
a8a96878
PB
25778.PHONY: configure-stage1-libcpp maybe-configure-stage1-libcpp
25779maybe-configure-stage1-libcpp:
25780@if libcpp-bootstrap
25781maybe-configure-stage1-libcpp: configure-stage1-libcpp
15b527ca 25782configure-stage1-libcpp:
ec92c4d6 25783 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
15b527ca 25784 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
ec92c4d6
PB
25785 @r=`${PWD_COMMAND}`; export r; \
25786 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15b527ca 25787 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
6532abb6 25788 $(HOST_EXPORTS) \
2ba09444 25789 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
6532abb6 25790 CXXFLAGS="$(STAGE1_CFLAGS)"; export CXXFLAGS; \
a8a96878 25791 echo Configuring stage 1 in $(HOST_SUBDIR)/libcpp ; \
15b527ca 25792 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \
a8a96878
PB
25793 cd $(HOST_SUBDIR)/libcpp || exit 1; \
25794 case $(srcdir) in \
25795 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
25796 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
25797 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
25798 esac; \
25799 srcdiroption="--srcdir=$${topdir}/libcpp"; \
25800 libsrcdir="$$s/libcpp"; \
25801 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
25802 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
25803 --target=${target_alias} $${srcdiroption} \
380e48e5 25804 \
14a1406e 25805 --disable-intermodule $(STAGE1_CHECKING) --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
a8a96878
PB
25806@endif libcpp-bootstrap
25807
25808.PHONY: configure-stage2-libcpp maybe-configure-stage2-libcpp
25809maybe-configure-stage2-libcpp:
25810@if libcpp-bootstrap
25811maybe-configure-stage2-libcpp: configure-stage2-libcpp
15b527ca 25812configure-stage2-libcpp:
ec92c4d6 25813 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
15b527ca 25814 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
ec92c4d6
PB
25815 @r=`${PWD_COMMAND}`; export r; \
25816 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15b527ca 25817 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
a8a96878 25818 $(HOST_EXPORTS) \
6532abb6 25819 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 25820 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
6532abb6 25821 CXXFLAGS="$(STAGE2_CFLAGS)"; export CXXFLAGS; \
a8a96878 25822 echo Configuring stage 2 in $(HOST_SUBDIR)/libcpp ; \
15b527ca 25823 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \
a8a96878
PB
25824 cd $(HOST_SUBDIR)/libcpp || exit 1; \
25825 case $(srcdir) in \
25826 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
25827 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
25828 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
25829 esac; \
25830 srcdiroption="--srcdir=$${topdir}/libcpp"; \
25831 libsrcdir="$$s/libcpp"; \
25832 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
25833 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
25834 --target=${target_alias} $${srcdiroption} \
380e48e5 25835 --with-build-libsubdir=$(HOST_SUBDIR) \
a8a96878
PB
25836 @stage2_werror_flag@
25837@endif libcpp-bootstrap
25838
2b41ef78
AO
25839.PHONY: configure-stageb2g0-libcpp maybe-configure-stageb2g0-libcpp
25840maybe-configure-stageb2g0-libcpp:
25841@if libcpp-bootstrap
25842maybe-configure-stageb2g0-libcpp: configure-stageb2g0-libcpp
25843configure-stageb2g0-libcpp:
25844 @[ $(current_stage) = stageb2g0 ] || $(MAKE) stageb2g0-start
25845 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
25846 @r=`${PWD_COMMAND}`; export r; \
25847 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25848 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
25849 $(HOST_EXPORTS) \
6532abb6 25850 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 25851 CFLAGS="$(STAGE2_CFLAGS) -g0"; export CFLAGS; \
6532abb6 25852 CXXFLAGS="$(STAGE2_CFLAGS) -g0"; export CXXFLAGS; \
2b41ef78
AO
25853 echo Configuring stage b2g0 in $(HOST_SUBDIR)/libcpp ; \
25854 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \
25855 cd $(HOST_SUBDIR)/libcpp || exit 1; \
25856 case $(srcdir) in \
25857 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
25858 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
25859 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
25860 esac; \
25861 srcdiroption="--srcdir=$${topdir}/libcpp"; \
25862 libsrcdir="$$s/libcpp"; \
25863 $(SHELL) $${libsrcdir}/configure \
25864 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
25865 --target=${target_alias} $${srcdiroption} \
25866 --with-build-libsubdir=$(HOST_SUBDIR) \
25867 @stage2_werror_flag@
25868@endif libcpp-bootstrap
25869
a8a96878
PB
25870.PHONY: configure-stage3-libcpp maybe-configure-stage3-libcpp
25871maybe-configure-stage3-libcpp:
25872@if libcpp-bootstrap
25873maybe-configure-stage3-libcpp: configure-stage3-libcpp
15b527ca 25874configure-stage3-libcpp:
ec92c4d6 25875 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
15b527ca 25876 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
ec92c4d6
PB
25877 @r=`${PWD_COMMAND}`; export r; \
25878 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15b527ca 25879 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
a8a96878 25880 $(HOST_EXPORTS) \
6532abb6 25881 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 25882 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
6532abb6 25883 CXXFLAGS="$(STAGE3_CFLAGS)"; export CXXFLAGS; \
a8a96878 25884 echo Configuring stage 3 in $(HOST_SUBDIR)/libcpp ; \
15b527ca 25885 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \
a8a96878
PB
25886 cd $(HOST_SUBDIR)/libcpp || exit 1; \
25887 case $(srcdir) in \
25888 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
25889 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
25890 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
25891 esac; \
25892 srcdiroption="--srcdir=$${topdir}/libcpp"; \
25893 libsrcdir="$$s/libcpp"; \
25894 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
25895 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
25896 --target=${target_alias} $${srcdiroption} \
380e48e5 25897 --with-build-libsubdir=$(HOST_SUBDIR) \
a8a96878
PB
25898 @stage2_werror_flag@
25899@endif libcpp-bootstrap
25900
2b41ef78
AO
25901.PHONY: configure-stageb3g2-libcpp maybe-configure-stageb3g2-libcpp
25902maybe-configure-stageb3g2-libcpp:
25903@if libcpp-bootstrap
25904maybe-configure-stageb3g2-libcpp: configure-stageb3g2-libcpp
25905configure-stageb3g2-libcpp:
25906 @[ $(current_stage) = stageb3g2 ] || $(MAKE) stageb3g2-start
25907 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
25908 @r=`${PWD_COMMAND}`; export r; \
25909 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25910 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
25911 $(HOST_EXPORTS) \
6532abb6 25912 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 25913 CFLAGS="$(STAGE3_CFLAGS) -g2"; export CFLAGS; \
6532abb6 25914 CXXFLAGS="$(STAGE3_CFLAGS) -g2"; export CXXFLAGS; \
2b41ef78
AO
25915 echo Configuring stage b3g2 in $(HOST_SUBDIR)/libcpp ; \
25916 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \
25917 cd $(HOST_SUBDIR)/libcpp || exit 1; \
25918 case $(srcdir) in \
25919 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
25920 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
25921 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
25922 esac; \
25923 srcdiroption="--srcdir=$${topdir}/libcpp"; \
25924 libsrcdir="$$s/libcpp"; \
25925 $(SHELL) $${libsrcdir}/configure \
25926 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
25927 --target=${target_alias} $${srcdiroption} \
25928 --with-build-libsubdir=$(HOST_SUBDIR) \
25929 @stage2_werror_flag@
25930@endif libcpp-bootstrap
25931
a8a96878
PB
25932.PHONY: configure-stage4-libcpp maybe-configure-stage4-libcpp
25933maybe-configure-stage4-libcpp:
25934@if libcpp-bootstrap
25935maybe-configure-stage4-libcpp: configure-stage4-libcpp
15b527ca 25936configure-stage4-libcpp:
ec92c4d6 25937 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
15b527ca 25938 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
ec92c4d6
PB
25939 @r=`${PWD_COMMAND}`; export r; \
25940 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15b527ca 25941 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
a8a96878 25942 $(HOST_EXPORTS) \
6532abb6 25943 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 25944 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
6532abb6 25945 CXXFLAGS="$(STAGE4_CFLAGS)"; export CXXFLAGS; \
a8a96878 25946 echo Configuring stage 4 in $(HOST_SUBDIR)/libcpp ; \
15b527ca 25947 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \
a8a96878
PB
25948 cd $(HOST_SUBDIR)/libcpp || exit 1; \
25949 case $(srcdir) in \
25950 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
25951 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
25952 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
25953 esac; \
25954 srcdiroption="--srcdir=$${topdir}/libcpp"; \
25955 libsrcdir="$$s/libcpp"; \
25956 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
25957 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
25958 --target=${target_alias} $${srcdiroption} \
380e48e5 25959 --with-build-libsubdir=$(HOST_SUBDIR) \
a8a96878
PB
25960 @stage2_werror_flag@
25961@endif libcpp-bootstrap
25962
25963.PHONY: configure-stageprofile-libcpp maybe-configure-stageprofile-libcpp
25964maybe-configure-stageprofile-libcpp:
25965@if libcpp-bootstrap
25966maybe-configure-stageprofile-libcpp: configure-stageprofile-libcpp
15b527ca 25967configure-stageprofile-libcpp:
ec92c4d6 25968 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
15b527ca 25969 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
ec92c4d6
PB
25970 @r=`${PWD_COMMAND}`; export r; \
25971 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15b527ca 25972 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
a8a96878 25973 $(HOST_EXPORTS) \
6532abb6 25974 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 25975 CFLAGS="$(STAGE2_CFLAGS) -fprofile-generate"; export CFLAGS; \
6532abb6 25976 CXXFLAGS="$(STAGE2_CFLAGS) -fprofile-generate"; export CXXFLAGS; \
a8a96878 25977 echo Configuring stage profile in $(HOST_SUBDIR)/libcpp ; \
15b527ca 25978 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \
a8a96878
PB
25979 cd $(HOST_SUBDIR)/libcpp || exit 1; \
25980 case $(srcdir) in \
25981 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
25982 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
25983 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
25984 esac; \
25985 srcdiroption="--srcdir=$${topdir}/libcpp"; \
25986 libsrcdir="$$s/libcpp"; \
25987 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
25988 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
25989 --target=${target_alias} $${srcdiroption} \
380e48e5 25990 --with-build-libsubdir=$(HOST_SUBDIR) \
a8a96878
PB
25991 @stage2_werror_flag@
25992@endif libcpp-bootstrap
25993
25994.PHONY: configure-stagefeedback-libcpp maybe-configure-stagefeedback-libcpp
25995maybe-configure-stagefeedback-libcpp:
25996@if libcpp-bootstrap
25997maybe-configure-stagefeedback-libcpp: configure-stagefeedback-libcpp
15b527ca 25998configure-stagefeedback-libcpp:
ec92c4d6 25999 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
15b527ca 26000 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
ec92c4d6
PB
26001 @r=`${PWD_COMMAND}`; export r; \
26002 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15b527ca 26003 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
a8a96878 26004 $(HOST_EXPORTS) \
6532abb6 26005 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 26006 CFLAGS="$(STAGE3_CFLAGS) -fprofile-use"; export CFLAGS; \
6532abb6 26007 CXXFLAGS="$(STAGE3_CFLAGS) -fprofile-use"; export CXXFLAGS; \
a8a96878 26008 echo Configuring stage feedback in $(HOST_SUBDIR)/libcpp ; \
15b527ca 26009 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \
a8a96878
PB
26010 cd $(HOST_SUBDIR)/libcpp || exit 1; \
26011 case $(srcdir) in \
26012 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
26013 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
26014 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
26015 esac; \
26016 srcdiroption="--srcdir=$${topdir}/libcpp"; \
26017 libsrcdir="$$s/libcpp"; \
26018 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
26019 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
26020 --target=${target_alias} $${srcdiroption} \
380e48e5 26021 --with-build-libsubdir=$(HOST_SUBDIR) \
a8a96878
PB
26022 @stage2_werror_flag@
26023@endif libcpp-bootstrap
26024
26025
26026
26027
26028
d5eec917
PB
26029.PHONY: all-libcpp maybe-all-libcpp
26030maybe-all-libcpp:
e1e5148c
CD
26031@if gcc-bootstrap
26032all-libcpp: stage_current
26033@endif gcc-bootstrap
d5eec917 26034@if libcpp
5e6b1f07 26035TARGET-libcpp=all
d5eec917
PB
26036maybe-all-libcpp: all-libcpp
26037all-libcpp: configure-libcpp
ec92c4d6 26038 @r=`${PWD_COMMAND}`; export r; \
8ec98d6c 26039 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 26040 $(HOST_EXPORTS) \
7fc2ca22 26041 (cd $(HOST_SUBDIR)/libcpp && \
6532abb6
PB
26042 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
26043 $(TARGET-libcpp))
d5eec917 26044@endif libcpp
8ec98d6c 26045
f0fdfd34 26046
a8a96878
PB
26047
26048.PHONY: all-stage1-libcpp maybe-all-stage1-libcpp
26049.PHONY: clean-stage1-libcpp maybe-clean-stage1-libcpp
26050maybe-all-stage1-libcpp:
26051maybe-clean-stage1-libcpp:
26052@if libcpp-bootstrap
26053maybe-all-stage1-libcpp: all-stage1-libcpp
26054all-stage1: all-stage1-libcpp
168b158c 26055TARGET-stage1-libcpp = $(TARGET-libcpp)
a8a96878 26056all-stage1-libcpp: configure-stage1-libcpp
ec92c4d6 26057 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a8a96878
PB
26058 @r=`${PWD_COMMAND}`; export r; \
26059 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26060 $(HOST_EXPORTS) \
26061 cd $(HOST_SUBDIR)/libcpp && \
6532abb6
PB
26062 $(MAKE) $(BASE_FLAGS_TO_PASS) \
26063 CFLAGS="$(STAGE1_CFLAGS)" CXXFLAGS="$(STAGE1_CFLAGS)" \
26064 LIBCFLAGS="$(STAGE1_LIBCFLAGS)" \
26065 CFLAGS_FOR_TARGET="$(STAGE1_LIBCFLAGS)" \
26066 CXXFLAGS_FOR_TARGET="$(STAGE1_LIBCFLAGS)" $(EXTRA_HOST_FLAGS) \
168b158c 26067 $(TARGET-stage1-libcpp)
a8a96878
PB
26068
26069maybe-clean-stage1-libcpp: clean-stage1-libcpp
26070clean-stage1: clean-stage1-libcpp
26071clean-stage1-libcpp:
a6a4e782
DD
26072 @if [ $(current_stage) = stage1 ]; then \
26073 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
26074 else \
26075 [ -f $(HOST_SUBDIR)/stage1-libcpp/Makefile ] || exit 0; \
26076 $(MAKE) stage1-start; \
26077 fi; \
a8a96878 26078 cd $(HOST_SUBDIR)/libcpp && \
6532abb6 26079 $(MAKE) $(EXTRA_HOST_FLAGS) \
2ba09444 26080 clean
a8a96878
PB
26081@endif libcpp-bootstrap
26082
26083
26084.PHONY: all-stage2-libcpp maybe-all-stage2-libcpp
26085.PHONY: clean-stage2-libcpp maybe-clean-stage2-libcpp
26086maybe-all-stage2-libcpp:
26087maybe-clean-stage2-libcpp:
26088@if libcpp-bootstrap
26089maybe-all-stage2-libcpp: all-stage2-libcpp
26090all-stage2: all-stage2-libcpp
168b158c 26091TARGET-stage2-libcpp = $(TARGET-libcpp)
a8a96878 26092all-stage2-libcpp: configure-stage2-libcpp
ec92c4d6 26093 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a8a96878
PB
26094 @r=`${PWD_COMMAND}`; export r; \
26095 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26096 $(HOST_EXPORTS) \
26097 $(POSTSTAGE1_HOST_EXPORTS) \
26098 cd $(HOST_SUBDIR)/libcpp && \
6532abb6
PB
26099 $(MAKE) $(BASE_FLAGS_TO_PASS) \
26100 CFLAGS="$(STAGE2_CFLAGS)" CXXFLAGS="$(STAGE2_CFLAGS)" \
26101 LIBCFLAGS="$(STAGE2_LIBCFLAGS)" \
26102 CFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)" \
26103 CXXFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
168b158c 26104 $(TARGET-stage2-libcpp)
a8a96878
PB
26105
26106maybe-clean-stage2-libcpp: clean-stage2-libcpp
26107clean-stage2: clean-stage2-libcpp
26108clean-stage2-libcpp:
a6a4e782
DD
26109 @if [ $(current_stage) = stage2 ]; then \
26110 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
26111 else \
26112 [ -f $(HOST_SUBDIR)/stage2-libcpp/Makefile ] || exit 0; \
26113 $(MAKE) stage2-start; \
26114 fi; \
a8a96878 26115 cd $(HOST_SUBDIR)/libcpp && \
6532abb6 26116 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 26117 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 26118 clean
a8a96878
PB
26119@endif libcpp-bootstrap
26120
26121
2b41ef78
AO
26122.PHONY: all-stageb2g0-libcpp maybe-all-stageb2g0-libcpp
26123.PHONY: clean-stageb2g0-libcpp maybe-clean-stageb2g0-libcpp
26124maybe-all-stageb2g0-libcpp:
26125maybe-clean-stageb2g0-libcpp:
26126@if libcpp-bootstrap
26127maybe-all-stageb2g0-libcpp: all-stageb2g0-libcpp
26128all-stageb2g0: all-stageb2g0-libcpp
26129TARGET-stageb2g0-libcpp = $(TARGET-libcpp)
26130all-stageb2g0-libcpp: configure-stageb2g0-libcpp
26131 @[ $(current_stage) = stageb2g0 ] || $(MAKE) stageb2g0-start
26132 @r=`${PWD_COMMAND}`; export r; \
26133 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26134 $(HOST_EXPORTS) \
26135 $(POSTSTAGE1_HOST_EXPORTS) \
26136 cd $(HOST_SUBDIR)/libcpp && \
6532abb6
PB
26137 $(MAKE) $(BASE_FLAGS_TO_PASS) \
26138 CFLAGS="$(STAGE2_CFLAGS) -g0" CXXFLAGS="$(STAGE2_CFLAGS) -g0" \
26139 LIBCFLAGS="$(STAGE2_LIBCFLAGS) -g0" \
26140 CFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS) -g0" \
26141 CXXFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS) -g0" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
2b41ef78
AO
26142 $(TARGET-stageb2g0-libcpp)
26143
26144maybe-clean-stageb2g0-libcpp: clean-stageb2g0-libcpp
26145clean-stageb2g0: clean-stageb2g0-libcpp
26146clean-stageb2g0-libcpp:
26147 @if [ $(current_stage) = stageb2g0 ]; then \
26148 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
26149 else \
26150 [ -f $(HOST_SUBDIR)/stageb2g0-libcpp/Makefile ] || exit 0; \
26151 $(MAKE) stageb2g0-start; \
26152 fi; \
26153 cd $(HOST_SUBDIR)/libcpp && \
6532abb6 26154 $(MAKE) $(EXTRA_HOST_FLAGS) \
2b41ef78
AO
26155 $(POSTSTAGE1_FLAGS_TO_PASS) \
26156 clean
26157@endif libcpp-bootstrap
26158
26159
a8a96878
PB
26160.PHONY: all-stage3-libcpp maybe-all-stage3-libcpp
26161.PHONY: clean-stage3-libcpp maybe-clean-stage3-libcpp
26162maybe-all-stage3-libcpp:
26163maybe-clean-stage3-libcpp:
26164@if libcpp-bootstrap
26165maybe-all-stage3-libcpp: all-stage3-libcpp
26166all-stage3: all-stage3-libcpp
168b158c 26167TARGET-stage3-libcpp = $(TARGET-libcpp)
a8a96878 26168all-stage3-libcpp: configure-stage3-libcpp
ec92c4d6 26169 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a8a96878
PB
26170 @r=`${PWD_COMMAND}`; export r; \
26171 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26172 $(HOST_EXPORTS) \
26173 $(POSTSTAGE1_HOST_EXPORTS) \
26174 cd $(HOST_SUBDIR)/libcpp && \
6532abb6
PB
26175 $(MAKE) $(BASE_FLAGS_TO_PASS) \
26176 CFLAGS="$(STAGE3_CFLAGS)" CXXFLAGS="$(STAGE3_CFLAGS)" \
26177 LIBCFLAGS="$(STAGE3_LIBCFLAGS)" \
26178 CFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS)" \
26179 CXXFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS)" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
168b158c 26180 $(TARGET-stage3-libcpp)
a8a96878
PB
26181
26182maybe-clean-stage3-libcpp: clean-stage3-libcpp
26183clean-stage3: clean-stage3-libcpp
26184clean-stage3-libcpp:
a6a4e782
DD
26185 @if [ $(current_stage) = stage3 ]; then \
26186 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
26187 else \
26188 [ -f $(HOST_SUBDIR)/stage3-libcpp/Makefile ] || exit 0; \
26189 $(MAKE) stage3-start; \
26190 fi; \
a8a96878 26191 cd $(HOST_SUBDIR)/libcpp && \
6532abb6 26192 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 26193 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 26194 clean
a8a96878
PB
26195@endif libcpp-bootstrap
26196
26197
2b41ef78
AO
26198.PHONY: all-stageb3g2-libcpp maybe-all-stageb3g2-libcpp
26199.PHONY: clean-stageb3g2-libcpp maybe-clean-stageb3g2-libcpp
26200maybe-all-stageb3g2-libcpp:
26201maybe-clean-stageb3g2-libcpp:
26202@if libcpp-bootstrap
26203maybe-all-stageb3g2-libcpp: all-stageb3g2-libcpp
26204all-stageb3g2: all-stageb3g2-libcpp
26205TARGET-stageb3g2-libcpp = $(TARGET-libcpp)
26206all-stageb3g2-libcpp: configure-stageb3g2-libcpp
26207 @[ $(current_stage) = stageb3g2 ] || $(MAKE) stageb3g2-start
26208 @r=`${PWD_COMMAND}`; export r; \
26209 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26210 $(HOST_EXPORTS) \
26211 $(POSTSTAGE1_HOST_EXPORTS) \
26212 cd $(HOST_SUBDIR)/libcpp && \
6532abb6
PB
26213 $(MAKE) $(BASE_FLAGS_TO_PASS) \
26214 CFLAGS="$(STAGE3_CFLAGS) -g2" CXXFLAGS="$(STAGE3_CFLAGS) -g2" \
26215 LIBCFLAGS="$(STAGE3_LIBCFLAGS) -g2" \
26216 CFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS) -g2" \
26217 CXXFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS) -g2" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
2b41ef78
AO
26218 $(TARGET-stageb3g2-libcpp)
26219
26220maybe-clean-stageb3g2-libcpp: clean-stageb3g2-libcpp
26221clean-stageb3g2: clean-stageb3g2-libcpp
26222clean-stageb3g2-libcpp:
26223 @if [ $(current_stage) = stageb3g2 ]; then \
26224 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
26225 else \
26226 [ -f $(HOST_SUBDIR)/stageb3g2-libcpp/Makefile ] || exit 0; \
26227 $(MAKE) stageb3g2-start; \
26228 fi; \
26229 cd $(HOST_SUBDIR)/libcpp && \
6532abb6 26230 $(MAKE) $(EXTRA_HOST_FLAGS) \
2b41ef78
AO
26231 $(POSTSTAGE1_FLAGS_TO_PASS) \
26232 clean
26233@endif libcpp-bootstrap
26234
26235
a8a96878
PB
26236.PHONY: all-stage4-libcpp maybe-all-stage4-libcpp
26237.PHONY: clean-stage4-libcpp maybe-clean-stage4-libcpp
26238maybe-all-stage4-libcpp:
26239maybe-clean-stage4-libcpp:
26240@if libcpp-bootstrap
26241maybe-all-stage4-libcpp: all-stage4-libcpp
26242all-stage4: all-stage4-libcpp
168b158c 26243TARGET-stage4-libcpp = $(TARGET-libcpp)
a8a96878 26244all-stage4-libcpp: configure-stage4-libcpp
ec92c4d6 26245 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a8a96878
PB
26246 @r=`${PWD_COMMAND}`; export r; \
26247 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26248 $(HOST_EXPORTS) \
26249 $(POSTSTAGE1_HOST_EXPORTS) \
26250 cd $(HOST_SUBDIR)/libcpp && \
6532abb6
PB
26251 $(MAKE) $(BASE_FLAGS_TO_PASS) \
26252 CFLAGS="$(STAGE4_CFLAGS)" CXXFLAGS="$(STAGE4_CFLAGS)" \
26253 LIBCFLAGS="$(STAGE4_CFLAGS)" \
26254 CFLAGS_FOR_TARGET="$(STAGE4_CFLAGS)" \
26255 CXXFLAGS_FOR_TARGET="$(STAGE4_CFLAGS)" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
168b158c 26256 $(TARGET-stage4-libcpp)
a8a96878
PB
26257
26258maybe-clean-stage4-libcpp: clean-stage4-libcpp
26259clean-stage4: clean-stage4-libcpp
26260clean-stage4-libcpp:
a6a4e782
DD
26261 @if [ $(current_stage) = stage4 ]; then \
26262 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
26263 else \
26264 [ -f $(HOST_SUBDIR)/stage4-libcpp/Makefile ] || exit 0; \
26265 $(MAKE) stage4-start; \
26266 fi; \
a8a96878 26267 cd $(HOST_SUBDIR)/libcpp && \
6532abb6 26268 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 26269 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 26270 clean
a8a96878
PB
26271@endif libcpp-bootstrap
26272
26273
26274.PHONY: all-stageprofile-libcpp maybe-all-stageprofile-libcpp
26275.PHONY: clean-stageprofile-libcpp maybe-clean-stageprofile-libcpp
26276maybe-all-stageprofile-libcpp:
26277maybe-clean-stageprofile-libcpp:
26278@if libcpp-bootstrap
26279maybe-all-stageprofile-libcpp: all-stageprofile-libcpp
26280all-stageprofile: all-stageprofile-libcpp
168b158c 26281TARGET-stageprofile-libcpp = $(TARGET-libcpp)
a8a96878 26282all-stageprofile-libcpp: configure-stageprofile-libcpp
ec92c4d6 26283 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a8a96878
PB
26284 @r=`${PWD_COMMAND}`; export r; \
26285 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26286 $(HOST_EXPORTS) \
26287 $(POSTSTAGE1_HOST_EXPORTS) \
26288 cd $(HOST_SUBDIR)/libcpp && \
6532abb6
PB
26289 $(MAKE) $(BASE_FLAGS_TO_PASS) \
26290 CFLAGS="$(STAGE2_CFLAGS) -fprofile-generate" CXXFLAGS="$(STAGE2_CFLAGS) -fprofile-generate" \
455b4f90
PB
26291 LIBCFLAGS="$(STAGE2_LIBCFLAGS)" \
26292 CFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)" \
26293 CXXFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
168b158c 26294 $(TARGET-stageprofile-libcpp)
a8a96878
PB
26295
26296maybe-clean-stageprofile-libcpp: clean-stageprofile-libcpp
26297clean-stageprofile: clean-stageprofile-libcpp
26298clean-stageprofile-libcpp:
a6a4e782
DD
26299 @if [ $(current_stage) = stageprofile ]; then \
26300 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
26301 else \
26302 [ -f $(HOST_SUBDIR)/stageprofile-libcpp/Makefile ] || exit 0; \
26303 $(MAKE) stageprofile-start; \
26304 fi; \
a8a96878 26305 cd $(HOST_SUBDIR)/libcpp && \
6532abb6 26306 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 26307 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 26308 clean
a8a96878
PB
26309@endif libcpp-bootstrap
26310
26311
26312.PHONY: all-stagefeedback-libcpp maybe-all-stagefeedback-libcpp
26313.PHONY: clean-stagefeedback-libcpp maybe-clean-stagefeedback-libcpp
26314maybe-all-stagefeedback-libcpp:
26315maybe-clean-stagefeedback-libcpp:
26316@if libcpp-bootstrap
26317maybe-all-stagefeedback-libcpp: all-stagefeedback-libcpp
26318all-stagefeedback: all-stagefeedback-libcpp
168b158c 26319TARGET-stagefeedback-libcpp = $(TARGET-libcpp)
a8a96878 26320all-stagefeedback-libcpp: configure-stagefeedback-libcpp
ec92c4d6 26321 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a8a96878
PB
26322 @r=`${PWD_COMMAND}`; export r; \
26323 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26324 $(HOST_EXPORTS) \
26325 $(POSTSTAGE1_HOST_EXPORTS) \
26326 cd $(HOST_SUBDIR)/libcpp && \
6532abb6
PB
26327 $(MAKE) $(BASE_FLAGS_TO_PASS) \
26328 CFLAGS="$(STAGE3_CFLAGS) -fprofile-use" CXXFLAGS="$(STAGE3_CFLAGS) -fprofile-use" \
26329 LIBCFLAGS="$(STAGE3_LIBCFLAGS) -fprofile-use" \
26330 CFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS) -fprofile-use" \
26331 CXXFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS) -fprofile-use" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
168b158c 26332 $(TARGET-stagefeedback-libcpp)
a8a96878
PB
26333
26334maybe-clean-stagefeedback-libcpp: clean-stagefeedback-libcpp
26335clean-stagefeedback: clean-stagefeedback-libcpp
26336clean-stagefeedback-libcpp:
a6a4e782
DD
26337 @if [ $(current_stage) = stagefeedback ]; then \
26338 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
26339 else \
26340 [ -f $(HOST_SUBDIR)/stagefeedback-libcpp/Makefile ] || exit 0; \
26341 $(MAKE) stagefeedback-start; \
26342 fi; \
a8a96878 26343 cd $(HOST_SUBDIR)/libcpp && \
6532abb6 26344 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 26345 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 26346 clean
a8a96878
PB
26347@endif libcpp-bootstrap
26348
26349
26350
26351
26352
d5eec917
PB
26353.PHONY: check-libcpp maybe-check-libcpp
26354maybe-check-libcpp:
26355@if libcpp
26356maybe-check-libcpp: check-libcpp
8ec98d6c 26357
d5eec917 26358check-libcpp:
15b527ca 26359 @: $(MAKE); $(unstage)
8ec98d6c
NN
26360 @r=`${PWD_COMMAND}`; export r; \
26361 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 26362 $(HOST_EXPORTS) \
7fc2ca22
PB
26363 (cd $(HOST_SUBDIR)/libcpp && \
26364 $(MAKE) $(FLAGS_TO_PASS) check)
8ec98d6c 26365
d5eec917 26366@endif libcpp
8ec98d6c 26367
d5eec917
PB
26368.PHONY: install-libcpp maybe-install-libcpp
26369maybe-install-libcpp:
26370@if libcpp
26371maybe-install-libcpp: install-libcpp
26372
26373install-libcpp: installdirs
15b527ca 26374 @: $(MAKE); $(unstage)
8ec98d6c
NN
26375 @r=`${PWD_COMMAND}`; export r; \
26376 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 26377 $(HOST_EXPORTS) \
7fc2ca22 26378 (cd $(HOST_SUBDIR)/libcpp && \
93c60b6d 26379 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 26380
d5eec917 26381@endif libcpp
8ec98d6c 26382
39bbbb69 26383# Other targets (info, dvi, pdf, etc.)
8ec98d6c 26384
d5eec917
PB
26385.PHONY: maybe-info-libcpp info-libcpp
26386maybe-info-libcpp:
26387@if libcpp
26388maybe-info-libcpp: info-libcpp
8ec98d6c 26389
d5eec917
PB
26390info-libcpp: \
26391 configure-libcpp
26392 @[ -f ./libcpp/Makefile ] || exit 0; \
5230d454
L
26393 r=`${PWD_COMMAND}`; export r; \
26394 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 26395 $(HOST_EXPORTS) \
d5eec917 26396 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
26397 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26398 done; \
d5eec917 26399 echo "Doing info in libcpp" ; \
7fc2ca22 26400 (cd $(HOST_SUBDIR)/libcpp && \
657b58f4
NN
26401 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26402 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26403 "RANLIB=$${RANLIB}" \
bffcbe34 26404 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 26405 info) \
657b58f4
NN
26406 || exit 1
26407
d5eec917 26408@endif libcpp
657b58f4 26409
d5eec917
PB
26410.PHONY: maybe-dvi-libcpp dvi-libcpp
26411maybe-dvi-libcpp:
26412@if libcpp
26413maybe-dvi-libcpp: dvi-libcpp
657b58f4 26414
d5eec917
PB
26415dvi-libcpp: \
26416 configure-libcpp
26417 @[ -f ./libcpp/Makefile ] || exit 0; \
5230d454
L
26418 r=`${PWD_COMMAND}`; export r; \
26419 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 26420 $(HOST_EXPORTS) \
d5eec917 26421 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
26422 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26423 done; \
d5eec917 26424 echo "Doing dvi in libcpp" ; \
7fc2ca22 26425 (cd $(HOST_SUBDIR)/libcpp && \
657b58f4
NN
26426 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26427 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26428 "RANLIB=$${RANLIB}" \
bffcbe34 26429 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 26430 dvi) \
657b58f4
NN
26431 || exit 1
26432
d5eec917 26433@endif libcpp
657b58f4 26434
39bbbb69
DD
26435.PHONY: maybe-pdf-libcpp pdf-libcpp
26436maybe-pdf-libcpp:
26437@if libcpp
26438maybe-pdf-libcpp: pdf-libcpp
26439
26440pdf-libcpp: \
26441 configure-libcpp
26442 @[ -f ./libcpp/Makefile ] || exit 0; \
26443 r=`${PWD_COMMAND}`; export r; \
26444 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26445 $(HOST_EXPORTS) \
26446 for flag in $(EXTRA_HOST_FLAGS) ; do \
26447 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26448 done; \
26449 echo "Doing pdf in libcpp" ; \
26450 (cd $(HOST_SUBDIR)/libcpp && \
26451 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26452 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26453 "RANLIB=$${RANLIB}" \
bffcbe34 26454 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
26455 pdf) \
26456 || exit 1
26457
26458@endif libcpp
26459
b6fb961f
MS
26460.PHONY: maybe-html-libcpp html-libcpp
26461maybe-html-libcpp:
26462@if libcpp
26463maybe-html-libcpp: html-libcpp
26464
26465html-libcpp: \
26466 configure-libcpp
26467 @[ -f ./libcpp/Makefile ] || exit 0; \
26468 r=`${PWD_COMMAND}`; export r; \
26469 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
26470 $(HOST_EXPORTS) \
26471 for flag in $(EXTRA_HOST_FLAGS) ; do \
26472 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26473 done; \
26474 echo "Doing html in libcpp" ; \
7fc2ca22 26475 (cd $(HOST_SUBDIR)/libcpp && \
b6fb961f
MS
26476 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26477 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26478 "RANLIB=$${RANLIB}" \
bffcbe34 26479 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
26480 html) \
26481 || exit 1
26482
26483@endif libcpp
26484
d5eec917
PB
26485.PHONY: maybe-TAGS-libcpp TAGS-libcpp
26486maybe-TAGS-libcpp:
26487@if libcpp
26488maybe-TAGS-libcpp: TAGS-libcpp
657b58f4 26489
d5eec917
PB
26490TAGS-libcpp: \
26491 configure-libcpp
26492 @[ -f ./libcpp/Makefile ] || exit 0; \
5230d454
L
26493 r=`${PWD_COMMAND}`; export r; \
26494 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 26495 $(HOST_EXPORTS) \
d5eec917 26496 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
26497 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26498 done; \
d5eec917 26499 echo "Doing TAGS in libcpp" ; \
7fc2ca22 26500 (cd $(HOST_SUBDIR)/libcpp && \
657b58f4
NN
26501 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26502 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26503 "RANLIB=$${RANLIB}" \
bffcbe34 26504 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 26505 TAGS) \
657b58f4
NN
26506 || exit 1
26507
d5eec917 26508@endif libcpp
657b58f4 26509
d5eec917
PB
26510.PHONY: maybe-install-info-libcpp install-info-libcpp
26511maybe-install-info-libcpp:
26512@if libcpp
26513maybe-install-info-libcpp: install-info-libcpp
657b58f4 26514
d5eec917
PB
26515install-info-libcpp: \
26516 configure-libcpp \
26517 info-libcpp
26518 @[ -f ./libcpp/Makefile ] || exit 0; \
5230d454
L
26519 r=`${PWD_COMMAND}`; export r; \
26520 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 26521 $(HOST_EXPORTS) \
d5eec917 26522 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
26523 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26524 done; \
d5eec917 26525 echo "Doing install-info in libcpp" ; \
7fc2ca22 26526 (cd $(HOST_SUBDIR)/libcpp && \
657b58f4
NN
26527 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26528 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26529 "RANLIB=$${RANLIB}" \
bffcbe34 26530 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 26531 install-info) \
657b58f4
NN
26532 || exit 1
26533
d5eec917 26534@endif libcpp
657b58f4 26535
d4954b6d
DD
26536.PHONY: maybe-install-pdf-libcpp install-pdf-libcpp
26537maybe-install-pdf-libcpp:
26538@if libcpp
26539maybe-install-pdf-libcpp: install-pdf-libcpp
26540
26541install-pdf-libcpp: \
26542 configure-libcpp \
26543 pdf-libcpp
26544 @[ -f ./libcpp/Makefile ] || exit 0; \
26545 r=`${PWD_COMMAND}`; export r; \
26546 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26547 $(HOST_EXPORTS) \
26548 for flag in $(EXTRA_HOST_FLAGS) ; do \
26549 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26550 done; \
26551 echo "Doing install-pdf in libcpp" ; \
26552 (cd $(HOST_SUBDIR)/libcpp && \
26553 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26554 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26555 "RANLIB=$${RANLIB}" \
bffcbe34 26556 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
26557 install-pdf) \
26558 || exit 1
26559
26560@endif libcpp
26561
83c9add4
CD
26562.PHONY: maybe-install-html-libcpp install-html-libcpp
26563maybe-install-html-libcpp:
26564@if libcpp
26565maybe-install-html-libcpp: install-html-libcpp
26566
26567install-html-libcpp: \
26568 configure-libcpp \
26569 html-libcpp
26570 @[ -f ./libcpp/Makefile ] || exit 0; \
26571 r=`${PWD_COMMAND}`; export r; \
26572 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26573 $(HOST_EXPORTS) \
26574 for flag in $(EXTRA_HOST_FLAGS) ; do \
26575 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26576 done; \
26577 echo "Doing install-html in libcpp" ; \
26578 (cd $(HOST_SUBDIR)/libcpp && \
26579 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26580 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26581 "RANLIB=$${RANLIB}" \
bffcbe34 26582 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
26583 install-html) \
26584 || exit 1
26585
26586@endif libcpp
26587
d5eec917
PB
26588.PHONY: maybe-installcheck-libcpp installcheck-libcpp
26589maybe-installcheck-libcpp:
26590@if libcpp
26591maybe-installcheck-libcpp: installcheck-libcpp
657b58f4 26592
d5eec917
PB
26593installcheck-libcpp: \
26594 configure-libcpp
26595 @[ -f ./libcpp/Makefile ] || exit 0; \
5230d454
L
26596 r=`${PWD_COMMAND}`; export r; \
26597 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 26598 $(HOST_EXPORTS) \
d5eec917 26599 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
26600 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26601 done; \
d5eec917 26602 echo "Doing installcheck in libcpp" ; \
7fc2ca22 26603 (cd $(HOST_SUBDIR)/libcpp && \
657b58f4
NN
26604 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26605 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26606 "RANLIB=$${RANLIB}" \
bffcbe34 26607 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 26608 installcheck) \
657b58f4
NN
26609 || exit 1
26610
d5eec917 26611@endif libcpp
657b58f4 26612
d5eec917
PB
26613.PHONY: maybe-mostlyclean-libcpp mostlyclean-libcpp
26614maybe-mostlyclean-libcpp:
26615@if libcpp
26616maybe-mostlyclean-libcpp: mostlyclean-libcpp
657b58f4 26617
d5eec917
PB
26618mostlyclean-libcpp:
26619 @[ -f ./libcpp/Makefile ] || exit 0; \
5230d454
L
26620 r=`${PWD_COMMAND}`; export r; \
26621 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 26622 $(HOST_EXPORTS) \
d5eec917 26623 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
26624 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26625 done; \
d5eec917 26626 echo "Doing mostlyclean in libcpp" ; \
7fc2ca22 26627 (cd $(HOST_SUBDIR)/libcpp && \
657b58f4
NN
26628 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26629 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26630 "RANLIB=$${RANLIB}" \
bffcbe34 26631 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 26632 mostlyclean) \
657b58f4
NN
26633 || exit 1
26634
d5eec917 26635@endif libcpp
657b58f4 26636
d5eec917
PB
26637.PHONY: maybe-clean-libcpp clean-libcpp
26638maybe-clean-libcpp:
26639@if libcpp
26640maybe-clean-libcpp: clean-libcpp
657b58f4 26641
d5eec917
PB
26642clean-libcpp:
26643 @[ -f ./libcpp/Makefile ] || exit 0; \
5230d454
L
26644 r=`${PWD_COMMAND}`; export r; \
26645 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 26646 $(HOST_EXPORTS) \
d5eec917 26647 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
26648 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26649 done; \
d5eec917 26650 echo "Doing clean in libcpp" ; \
7fc2ca22 26651 (cd $(HOST_SUBDIR)/libcpp && \
657b58f4
NN
26652 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26653 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26654 "RANLIB=$${RANLIB}" \
bffcbe34 26655 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 26656 clean) \
657b58f4
NN
26657 || exit 1
26658
d5eec917 26659@endif libcpp
657b58f4 26660
d5eec917
PB
26661.PHONY: maybe-distclean-libcpp distclean-libcpp
26662maybe-distclean-libcpp:
26663@if libcpp
26664maybe-distclean-libcpp: distclean-libcpp
657b58f4 26665
d5eec917
PB
26666distclean-libcpp:
26667 @[ -f ./libcpp/Makefile ] || exit 0; \
5230d454
L
26668 r=`${PWD_COMMAND}`; export r; \
26669 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 26670 $(HOST_EXPORTS) \
d5eec917 26671 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
26672 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26673 done; \
d5eec917 26674 echo "Doing distclean in libcpp" ; \
7fc2ca22 26675 (cd $(HOST_SUBDIR)/libcpp && \
657b58f4
NN
26676 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26677 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26678 "RANLIB=$${RANLIB}" \
bffcbe34 26679 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 26680 distclean) \
657b58f4
NN
26681 || exit 1
26682
d5eec917 26683@endif libcpp
657b58f4 26684
d5eec917
PB
26685.PHONY: maybe-maintainer-clean-libcpp maintainer-clean-libcpp
26686maybe-maintainer-clean-libcpp:
26687@if libcpp
26688maybe-maintainer-clean-libcpp: maintainer-clean-libcpp
657b58f4 26689
d5eec917
PB
26690maintainer-clean-libcpp:
26691 @[ -f ./libcpp/Makefile ] || exit 0; \
5230d454
L
26692 r=`${PWD_COMMAND}`; export r; \
26693 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 26694 $(HOST_EXPORTS) \
d5eec917 26695 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
26696 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26697 done; \
d5eec917 26698 echo "Doing maintainer-clean in libcpp" ; \
7fc2ca22 26699 (cd $(HOST_SUBDIR)/libcpp && \
657b58f4
NN
26700 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26701 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26702 "RANLIB=$${RANLIB}" \
bffcbe34 26703 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 26704 maintainer-clean) \
657b58f4
NN
26705 || exit 1
26706
d5eec917 26707@endif libcpp
657b58f4 26708
657b58f4 26709
f0fdfd34 26710
a7dc05b5
PB
26711.PHONY: configure-libdecnumber maybe-configure-libdecnumber
26712maybe-configure-libdecnumber:
e1e5148c
CD
26713@if gcc-bootstrap
26714configure-libdecnumber: stage_current
26715@endif gcc-bootstrap
a7dc05b5
PB
26716@if libdecnumber
26717maybe-configure-libdecnumber: configure-libdecnumber
ec92c4d6 26718configure-libdecnumber:
ec92c4d6
PB
26719 @r=`${PWD_COMMAND}`; export r; \
26720 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a7dc05b5
PB
26721 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
26722 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \
a7dc05b5
PB
26723 $(HOST_EXPORTS) \
26724 echo Configuring in $(HOST_SUBDIR)/libdecnumber; \
26725 cd "$(HOST_SUBDIR)/libdecnumber" || exit 1; \
26726 case $(srcdir) in \
26727 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
26728 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
26729 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
26730 esac; \
26731 srcdiroption="--srcdir=$${topdir}/libdecnumber"; \
26732 libsrcdir="$$s/libdecnumber"; \
26733 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
26734 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
26735 --target=${target_alias} $${srcdiroption} \
a7dc05b5
PB
26736 || exit 1
26737@endif libdecnumber
26738
26739
26740
26741.PHONY: configure-stage1-libdecnumber maybe-configure-stage1-libdecnumber
26742maybe-configure-stage1-libdecnumber:
26743@if libdecnumber-bootstrap
26744maybe-configure-stage1-libdecnumber: configure-stage1-libdecnumber
15b527ca 26745configure-stage1-libdecnumber:
ec92c4d6 26746 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
15b527ca 26747 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
ec92c4d6
PB
26748 @r=`${PWD_COMMAND}`; export r; \
26749 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15b527ca 26750 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
6532abb6 26751 $(HOST_EXPORTS) \
2ba09444 26752 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
6532abb6 26753 CXXFLAGS="$(STAGE1_CFLAGS)"; export CXXFLAGS; \
a7dc05b5 26754 echo Configuring stage 1 in $(HOST_SUBDIR)/libdecnumber ; \
15b527ca 26755 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \
a7dc05b5
PB
26756 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
26757 case $(srcdir) in \
26758 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
26759 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
26760 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
26761 esac; \
26762 srcdiroption="--srcdir=$${topdir}/libdecnumber"; \
26763 libsrcdir="$$s/libdecnumber"; \
26764 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
26765 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
26766 --target=${target_alias} $${srcdiroption} \
380e48e5 26767 \
14a1406e 26768 --disable-intermodule $(STAGE1_CHECKING) --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
a7dc05b5
PB
26769@endif libdecnumber-bootstrap
26770
26771.PHONY: configure-stage2-libdecnumber maybe-configure-stage2-libdecnumber
26772maybe-configure-stage2-libdecnumber:
26773@if libdecnumber-bootstrap
26774maybe-configure-stage2-libdecnumber: configure-stage2-libdecnumber
15b527ca 26775configure-stage2-libdecnumber:
ec92c4d6 26776 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
15b527ca 26777 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
ec92c4d6
PB
26778 @r=`${PWD_COMMAND}`; export r; \
26779 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15b527ca 26780 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
a7dc05b5 26781 $(HOST_EXPORTS) \
6532abb6 26782 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 26783 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
6532abb6 26784 CXXFLAGS="$(STAGE2_CFLAGS)"; export CXXFLAGS; \
a7dc05b5 26785 echo Configuring stage 2 in $(HOST_SUBDIR)/libdecnumber ; \
15b527ca 26786 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \
a7dc05b5
PB
26787 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
26788 case $(srcdir) in \
26789 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
26790 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
26791 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
26792 esac; \
26793 srcdiroption="--srcdir=$${topdir}/libdecnumber"; \
26794 libsrcdir="$$s/libdecnumber"; \
26795 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
26796 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
26797 --target=${target_alias} $${srcdiroption} \
380e48e5 26798 --with-build-libsubdir=$(HOST_SUBDIR) \
a7dc05b5
PB
26799 @stage2_werror_flag@
26800@endif libdecnumber-bootstrap
26801
2b41ef78
AO
26802.PHONY: configure-stageb2g0-libdecnumber maybe-configure-stageb2g0-libdecnumber
26803maybe-configure-stageb2g0-libdecnumber:
26804@if libdecnumber-bootstrap
26805maybe-configure-stageb2g0-libdecnumber: configure-stageb2g0-libdecnumber
26806configure-stageb2g0-libdecnumber:
26807 @[ $(current_stage) = stageb2g0 ] || $(MAKE) stageb2g0-start
26808 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
26809 @r=`${PWD_COMMAND}`; export r; \
26810 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26811 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
26812 $(HOST_EXPORTS) \
6532abb6 26813 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 26814 CFLAGS="$(STAGE2_CFLAGS) -g0"; export CFLAGS; \
6532abb6 26815 CXXFLAGS="$(STAGE2_CFLAGS) -g0"; export CXXFLAGS; \
2b41ef78
AO
26816 echo Configuring stage b2g0 in $(HOST_SUBDIR)/libdecnumber ; \
26817 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \
26818 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
26819 case $(srcdir) in \
26820 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
26821 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
26822 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
26823 esac; \
26824 srcdiroption="--srcdir=$${topdir}/libdecnumber"; \
26825 libsrcdir="$$s/libdecnumber"; \
26826 $(SHELL) $${libsrcdir}/configure \
26827 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
26828 --target=${target_alias} $${srcdiroption} \
26829 --with-build-libsubdir=$(HOST_SUBDIR) \
26830 @stage2_werror_flag@
26831@endif libdecnumber-bootstrap
26832
a7dc05b5
PB
26833.PHONY: configure-stage3-libdecnumber maybe-configure-stage3-libdecnumber
26834maybe-configure-stage3-libdecnumber:
26835@if libdecnumber-bootstrap
26836maybe-configure-stage3-libdecnumber: configure-stage3-libdecnumber
15b527ca 26837configure-stage3-libdecnumber:
ec92c4d6 26838 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
15b527ca 26839 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
ec92c4d6
PB
26840 @r=`${PWD_COMMAND}`; export r; \
26841 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15b527ca 26842 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
a7dc05b5 26843 $(HOST_EXPORTS) \
6532abb6 26844 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 26845 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
6532abb6 26846 CXXFLAGS="$(STAGE3_CFLAGS)"; export CXXFLAGS; \
a7dc05b5 26847 echo Configuring stage 3 in $(HOST_SUBDIR)/libdecnumber ; \
15b527ca 26848 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \
a7dc05b5
PB
26849 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
26850 case $(srcdir) in \
26851 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
26852 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
26853 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
26854 esac; \
26855 srcdiroption="--srcdir=$${topdir}/libdecnumber"; \
26856 libsrcdir="$$s/libdecnumber"; \
26857 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
26858 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
26859 --target=${target_alias} $${srcdiroption} \
380e48e5 26860 --with-build-libsubdir=$(HOST_SUBDIR) \
a7dc05b5
PB
26861 @stage2_werror_flag@
26862@endif libdecnumber-bootstrap
26863
2b41ef78
AO
26864.PHONY: configure-stageb3g2-libdecnumber maybe-configure-stageb3g2-libdecnumber
26865maybe-configure-stageb3g2-libdecnumber:
26866@if libdecnumber-bootstrap
26867maybe-configure-stageb3g2-libdecnumber: configure-stageb3g2-libdecnumber
26868configure-stageb3g2-libdecnumber:
26869 @[ $(current_stage) = stageb3g2 ] || $(MAKE) stageb3g2-start
26870 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
26871 @r=`${PWD_COMMAND}`; export r; \
26872 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26873 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
26874 $(HOST_EXPORTS) \
6532abb6 26875 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 26876 CFLAGS="$(STAGE3_CFLAGS) -g2"; export CFLAGS; \
6532abb6 26877 CXXFLAGS="$(STAGE3_CFLAGS) -g2"; export CXXFLAGS; \
2b41ef78
AO
26878 echo Configuring stage b3g2 in $(HOST_SUBDIR)/libdecnumber ; \
26879 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \
26880 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
26881 case $(srcdir) in \
26882 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
26883 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
26884 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
26885 esac; \
26886 srcdiroption="--srcdir=$${topdir}/libdecnumber"; \
26887 libsrcdir="$$s/libdecnumber"; \
26888 $(SHELL) $${libsrcdir}/configure \
26889 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
26890 --target=${target_alias} $${srcdiroption} \
26891 --with-build-libsubdir=$(HOST_SUBDIR) \
26892 @stage2_werror_flag@
26893@endif libdecnumber-bootstrap
26894
a7dc05b5
PB
26895.PHONY: configure-stage4-libdecnumber maybe-configure-stage4-libdecnumber
26896maybe-configure-stage4-libdecnumber:
26897@if libdecnumber-bootstrap
26898maybe-configure-stage4-libdecnumber: configure-stage4-libdecnumber
15b527ca 26899configure-stage4-libdecnumber:
ec92c4d6 26900 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
15b527ca 26901 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
ec92c4d6
PB
26902 @r=`${PWD_COMMAND}`; export r; \
26903 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15b527ca 26904 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
a7dc05b5 26905 $(HOST_EXPORTS) \
6532abb6 26906 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 26907 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
6532abb6 26908 CXXFLAGS="$(STAGE4_CFLAGS)"; export CXXFLAGS; \
a7dc05b5 26909 echo Configuring stage 4 in $(HOST_SUBDIR)/libdecnumber ; \
15b527ca 26910 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \
a7dc05b5
PB
26911 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
26912 case $(srcdir) in \
26913 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
26914 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
26915 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
26916 esac; \
26917 srcdiroption="--srcdir=$${topdir}/libdecnumber"; \
26918 libsrcdir="$$s/libdecnumber"; \
26919 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
26920 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
26921 --target=${target_alias} $${srcdiroption} \
380e48e5 26922 --with-build-libsubdir=$(HOST_SUBDIR) \
a7dc05b5
PB
26923 @stage2_werror_flag@
26924@endif libdecnumber-bootstrap
26925
26926.PHONY: configure-stageprofile-libdecnumber maybe-configure-stageprofile-libdecnumber
26927maybe-configure-stageprofile-libdecnumber:
26928@if libdecnumber-bootstrap
26929maybe-configure-stageprofile-libdecnumber: configure-stageprofile-libdecnumber
15b527ca 26930configure-stageprofile-libdecnumber:
ec92c4d6 26931 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
15b527ca 26932 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
ec92c4d6
PB
26933 @r=`${PWD_COMMAND}`; export r; \
26934 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15b527ca 26935 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
a7dc05b5 26936 $(HOST_EXPORTS) \
6532abb6 26937 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 26938 CFLAGS="$(STAGE2_CFLAGS) -fprofile-generate"; export CFLAGS; \
6532abb6 26939 CXXFLAGS="$(STAGE2_CFLAGS) -fprofile-generate"; export CXXFLAGS; \
a7dc05b5 26940 echo Configuring stage profile in $(HOST_SUBDIR)/libdecnumber ; \
15b527ca 26941 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \
a7dc05b5
PB
26942 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
26943 case $(srcdir) in \
26944 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
26945 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
26946 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
26947 esac; \
26948 srcdiroption="--srcdir=$${topdir}/libdecnumber"; \
26949 libsrcdir="$$s/libdecnumber"; \
26950 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
26951 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
26952 --target=${target_alias} $${srcdiroption} \
380e48e5 26953 --with-build-libsubdir=$(HOST_SUBDIR) \
a7dc05b5
PB
26954 @stage2_werror_flag@
26955@endif libdecnumber-bootstrap
26956
26957.PHONY: configure-stagefeedback-libdecnumber maybe-configure-stagefeedback-libdecnumber
26958maybe-configure-stagefeedback-libdecnumber:
26959@if libdecnumber-bootstrap
26960maybe-configure-stagefeedback-libdecnumber: configure-stagefeedback-libdecnumber
15b527ca 26961configure-stagefeedback-libdecnumber:
ec92c4d6 26962 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
15b527ca 26963 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
ec92c4d6
PB
26964 @r=`${PWD_COMMAND}`; export r; \
26965 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15b527ca 26966 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
a7dc05b5 26967 $(HOST_EXPORTS) \
6532abb6 26968 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 26969 CFLAGS="$(STAGE3_CFLAGS) -fprofile-use"; export CFLAGS; \
6532abb6 26970 CXXFLAGS="$(STAGE3_CFLAGS) -fprofile-use"; export CXXFLAGS; \
a7dc05b5 26971 echo Configuring stage feedback in $(HOST_SUBDIR)/libdecnumber ; \
15b527ca 26972 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \
a7dc05b5
PB
26973 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
26974 case $(srcdir) in \
26975 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
26976 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
26977 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
26978 esac; \
26979 srcdiroption="--srcdir=$${topdir}/libdecnumber"; \
26980 libsrcdir="$$s/libdecnumber"; \
26981 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
26982 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
26983 --target=${target_alias} $${srcdiroption} \
380e48e5 26984 --with-build-libsubdir=$(HOST_SUBDIR) \
a7dc05b5
PB
26985 @stage2_werror_flag@
26986@endif libdecnumber-bootstrap
26987
26988
26989
26990
26991
26992.PHONY: all-libdecnumber maybe-all-libdecnumber
26993maybe-all-libdecnumber:
e1e5148c
CD
26994@if gcc-bootstrap
26995all-libdecnumber: stage_current
26996@endif gcc-bootstrap
a7dc05b5
PB
26997@if libdecnumber
26998TARGET-libdecnumber=all
26999maybe-all-libdecnumber: all-libdecnumber
27000all-libdecnumber: configure-libdecnumber
ec92c4d6 27001 @r=`${PWD_COMMAND}`; export r; \
a7dc05b5
PB
27002 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27003 $(HOST_EXPORTS) \
27004 (cd $(HOST_SUBDIR)/libdecnumber && \
6532abb6
PB
27005 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
27006 $(TARGET-libdecnumber))
a7dc05b5
PB
27007@endif libdecnumber
27008
27009
27010
27011.PHONY: all-stage1-libdecnumber maybe-all-stage1-libdecnumber
27012.PHONY: clean-stage1-libdecnumber maybe-clean-stage1-libdecnumber
27013maybe-all-stage1-libdecnumber:
27014maybe-clean-stage1-libdecnumber:
27015@if libdecnumber-bootstrap
27016maybe-all-stage1-libdecnumber: all-stage1-libdecnumber
27017all-stage1: all-stage1-libdecnumber
27018TARGET-stage1-libdecnumber = $(TARGET-libdecnumber)
27019all-stage1-libdecnumber: configure-stage1-libdecnumber
ec92c4d6 27020 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a7dc05b5
PB
27021 @r=`${PWD_COMMAND}`; export r; \
27022 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27023 $(HOST_EXPORTS) \
27024 cd $(HOST_SUBDIR)/libdecnumber && \
6532abb6
PB
27025 $(MAKE) $(BASE_FLAGS_TO_PASS) \
27026 CFLAGS="$(STAGE1_CFLAGS)" CXXFLAGS="$(STAGE1_CFLAGS)" \
27027 LIBCFLAGS="$(STAGE1_LIBCFLAGS)" \
27028 CFLAGS_FOR_TARGET="$(STAGE1_LIBCFLAGS)" \
27029 CXXFLAGS_FOR_TARGET="$(STAGE1_LIBCFLAGS)" $(EXTRA_HOST_FLAGS) \
a7dc05b5
PB
27030 $(TARGET-stage1-libdecnumber)
27031
27032maybe-clean-stage1-libdecnumber: clean-stage1-libdecnumber
27033clean-stage1: clean-stage1-libdecnumber
27034clean-stage1-libdecnumber:
a6a4e782
DD
27035 @if [ $(current_stage) = stage1 ]; then \
27036 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
27037 else \
27038 [ -f $(HOST_SUBDIR)/stage1-libdecnumber/Makefile ] || exit 0; \
27039 $(MAKE) stage1-start; \
27040 fi; \
a7dc05b5 27041 cd $(HOST_SUBDIR)/libdecnumber && \
6532abb6 27042 $(MAKE) $(EXTRA_HOST_FLAGS) \
2ba09444 27043 clean
a7dc05b5
PB
27044@endif libdecnumber-bootstrap
27045
27046
27047.PHONY: all-stage2-libdecnumber maybe-all-stage2-libdecnumber
27048.PHONY: clean-stage2-libdecnumber maybe-clean-stage2-libdecnumber
27049maybe-all-stage2-libdecnumber:
27050maybe-clean-stage2-libdecnumber:
27051@if libdecnumber-bootstrap
27052maybe-all-stage2-libdecnumber: all-stage2-libdecnumber
27053all-stage2: all-stage2-libdecnumber
27054TARGET-stage2-libdecnumber = $(TARGET-libdecnumber)
27055all-stage2-libdecnumber: configure-stage2-libdecnumber
ec92c4d6 27056 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a7dc05b5
PB
27057 @r=`${PWD_COMMAND}`; export r; \
27058 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27059 $(HOST_EXPORTS) \
27060 $(POSTSTAGE1_HOST_EXPORTS) \
27061 cd $(HOST_SUBDIR)/libdecnumber && \
6532abb6
PB
27062 $(MAKE) $(BASE_FLAGS_TO_PASS) \
27063 CFLAGS="$(STAGE2_CFLAGS)" CXXFLAGS="$(STAGE2_CFLAGS)" \
27064 LIBCFLAGS="$(STAGE2_LIBCFLAGS)" \
27065 CFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)" \
27066 CXXFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
a7dc05b5
PB
27067 $(TARGET-stage2-libdecnumber)
27068
27069maybe-clean-stage2-libdecnumber: clean-stage2-libdecnumber
27070clean-stage2: clean-stage2-libdecnumber
27071clean-stage2-libdecnumber:
a6a4e782
DD
27072 @if [ $(current_stage) = stage2 ]; then \
27073 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
27074 else \
27075 [ -f $(HOST_SUBDIR)/stage2-libdecnumber/Makefile ] || exit 0; \
27076 $(MAKE) stage2-start; \
27077 fi; \
a7dc05b5 27078 cd $(HOST_SUBDIR)/libdecnumber && \
6532abb6 27079 $(MAKE) $(EXTRA_HOST_FLAGS) \
a7dc05b5 27080 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 27081 clean
a7dc05b5
PB
27082@endif libdecnumber-bootstrap
27083
27084
2b41ef78
AO
27085.PHONY: all-stageb2g0-libdecnumber maybe-all-stageb2g0-libdecnumber
27086.PHONY: clean-stageb2g0-libdecnumber maybe-clean-stageb2g0-libdecnumber
27087maybe-all-stageb2g0-libdecnumber:
27088maybe-clean-stageb2g0-libdecnumber:
27089@if libdecnumber-bootstrap
27090maybe-all-stageb2g0-libdecnumber: all-stageb2g0-libdecnumber
27091all-stageb2g0: all-stageb2g0-libdecnumber
27092TARGET-stageb2g0-libdecnumber = $(TARGET-libdecnumber)
27093all-stageb2g0-libdecnumber: configure-stageb2g0-libdecnumber
27094 @[ $(current_stage) = stageb2g0 ] || $(MAKE) stageb2g0-start
27095 @r=`${PWD_COMMAND}`; export r; \
27096 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27097 $(HOST_EXPORTS) \
27098 $(POSTSTAGE1_HOST_EXPORTS) \
27099 cd $(HOST_SUBDIR)/libdecnumber && \
6532abb6
PB
27100 $(MAKE) $(BASE_FLAGS_TO_PASS) \
27101 CFLAGS="$(STAGE2_CFLAGS) -g0" CXXFLAGS="$(STAGE2_CFLAGS) -g0" \
27102 LIBCFLAGS="$(STAGE2_LIBCFLAGS) -g0" \
27103 CFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS) -g0" \
27104 CXXFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS) -g0" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
2b41ef78
AO
27105 $(TARGET-stageb2g0-libdecnumber)
27106
27107maybe-clean-stageb2g0-libdecnumber: clean-stageb2g0-libdecnumber
27108clean-stageb2g0: clean-stageb2g0-libdecnumber
27109clean-stageb2g0-libdecnumber:
27110 @if [ $(current_stage) = stageb2g0 ]; then \
27111 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
27112 else \
27113 [ -f $(HOST_SUBDIR)/stageb2g0-libdecnumber/Makefile ] || exit 0; \
27114 $(MAKE) stageb2g0-start; \
27115 fi; \
27116 cd $(HOST_SUBDIR)/libdecnumber && \
6532abb6 27117 $(MAKE) $(EXTRA_HOST_FLAGS) \
2b41ef78
AO
27118 $(POSTSTAGE1_FLAGS_TO_PASS) \
27119 clean
27120@endif libdecnumber-bootstrap
27121
27122
a7dc05b5
PB
27123.PHONY: all-stage3-libdecnumber maybe-all-stage3-libdecnumber
27124.PHONY: clean-stage3-libdecnumber maybe-clean-stage3-libdecnumber
27125maybe-all-stage3-libdecnumber:
27126maybe-clean-stage3-libdecnumber:
27127@if libdecnumber-bootstrap
27128maybe-all-stage3-libdecnumber: all-stage3-libdecnumber
27129all-stage3: all-stage3-libdecnumber
27130TARGET-stage3-libdecnumber = $(TARGET-libdecnumber)
27131all-stage3-libdecnumber: configure-stage3-libdecnumber
ec92c4d6 27132 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a7dc05b5
PB
27133 @r=`${PWD_COMMAND}`; export r; \
27134 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27135 $(HOST_EXPORTS) \
27136 $(POSTSTAGE1_HOST_EXPORTS) \
27137 cd $(HOST_SUBDIR)/libdecnumber && \
6532abb6
PB
27138 $(MAKE) $(BASE_FLAGS_TO_PASS) \
27139 CFLAGS="$(STAGE3_CFLAGS)" CXXFLAGS="$(STAGE3_CFLAGS)" \
27140 LIBCFLAGS="$(STAGE3_LIBCFLAGS)" \
27141 CFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS)" \
27142 CXXFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS)" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
a7dc05b5
PB
27143 $(TARGET-stage3-libdecnumber)
27144
27145maybe-clean-stage3-libdecnumber: clean-stage3-libdecnumber
27146clean-stage3: clean-stage3-libdecnumber
27147clean-stage3-libdecnumber:
a6a4e782
DD
27148 @if [ $(current_stage) = stage3 ]; then \
27149 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
27150 else \
27151 [ -f $(HOST_SUBDIR)/stage3-libdecnumber/Makefile ] || exit 0; \
27152 $(MAKE) stage3-start; \
27153 fi; \
a7dc05b5 27154 cd $(HOST_SUBDIR)/libdecnumber && \
6532abb6 27155 $(MAKE) $(EXTRA_HOST_FLAGS) \
a7dc05b5 27156 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 27157 clean
a7dc05b5
PB
27158@endif libdecnumber-bootstrap
27159
27160
2b41ef78
AO
27161.PHONY: all-stageb3g2-libdecnumber maybe-all-stageb3g2-libdecnumber
27162.PHONY: clean-stageb3g2-libdecnumber maybe-clean-stageb3g2-libdecnumber
27163maybe-all-stageb3g2-libdecnumber:
27164maybe-clean-stageb3g2-libdecnumber:
27165@if libdecnumber-bootstrap
27166maybe-all-stageb3g2-libdecnumber: all-stageb3g2-libdecnumber
27167all-stageb3g2: all-stageb3g2-libdecnumber
27168TARGET-stageb3g2-libdecnumber = $(TARGET-libdecnumber)
27169all-stageb3g2-libdecnumber: configure-stageb3g2-libdecnumber
27170 @[ $(current_stage) = stageb3g2 ] || $(MAKE) stageb3g2-start
27171 @r=`${PWD_COMMAND}`; export r; \
27172 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27173 $(HOST_EXPORTS) \
27174 $(POSTSTAGE1_HOST_EXPORTS) \
27175 cd $(HOST_SUBDIR)/libdecnumber && \
6532abb6
PB
27176 $(MAKE) $(BASE_FLAGS_TO_PASS) \
27177 CFLAGS="$(STAGE3_CFLAGS) -g2" CXXFLAGS="$(STAGE3_CFLAGS) -g2" \
27178 LIBCFLAGS="$(STAGE3_LIBCFLAGS) -g2" \
27179 CFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS) -g2" \
27180 CXXFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS) -g2" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
2b41ef78
AO
27181 $(TARGET-stageb3g2-libdecnumber)
27182
27183maybe-clean-stageb3g2-libdecnumber: clean-stageb3g2-libdecnumber
27184clean-stageb3g2: clean-stageb3g2-libdecnumber
27185clean-stageb3g2-libdecnumber:
27186 @if [ $(current_stage) = stageb3g2 ]; then \
27187 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
27188 else \
27189 [ -f $(HOST_SUBDIR)/stageb3g2-libdecnumber/Makefile ] || exit 0; \
27190 $(MAKE) stageb3g2-start; \
27191 fi; \
27192 cd $(HOST_SUBDIR)/libdecnumber && \
6532abb6 27193 $(MAKE) $(EXTRA_HOST_FLAGS) \
2b41ef78
AO
27194 $(POSTSTAGE1_FLAGS_TO_PASS) \
27195 clean
27196@endif libdecnumber-bootstrap
27197
27198
a7dc05b5
PB
27199.PHONY: all-stage4-libdecnumber maybe-all-stage4-libdecnumber
27200.PHONY: clean-stage4-libdecnumber maybe-clean-stage4-libdecnumber
27201maybe-all-stage4-libdecnumber:
27202maybe-clean-stage4-libdecnumber:
27203@if libdecnumber-bootstrap
27204maybe-all-stage4-libdecnumber: all-stage4-libdecnumber
27205all-stage4: all-stage4-libdecnumber
27206TARGET-stage4-libdecnumber = $(TARGET-libdecnumber)
27207all-stage4-libdecnumber: configure-stage4-libdecnumber
ec92c4d6 27208 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a7dc05b5
PB
27209 @r=`${PWD_COMMAND}`; export r; \
27210 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27211 $(HOST_EXPORTS) \
27212 $(POSTSTAGE1_HOST_EXPORTS) \
27213 cd $(HOST_SUBDIR)/libdecnumber && \
6532abb6
PB
27214 $(MAKE) $(BASE_FLAGS_TO_PASS) \
27215 CFLAGS="$(STAGE4_CFLAGS)" CXXFLAGS="$(STAGE4_CFLAGS)" \
27216 LIBCFLAGS="$(STAGE4_CFLAGS)" \
27217 CFLAGS_FOR_TARGET="$(STAGE4_CFLAGS)" \
27218 CXXFLAGS_FOR_TARGET="$(STAGE4_CFLAGS)" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
a7dc05b5
PB
27219 $(TARGET-stage4-libdecnumber)
27220
27221maybe-clean-stage4-libdecnumber: clean-stage4-libdecnumber
27222clean-stage4: clean-stage4-libdecnumber
27223clean-stage4-libdecnumber:
a6a4e782
DD
27224 @if [ $(current_stage) = stage4 ]; then \
27225 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
27226 else \
27227 [ -f $(HOST_SUBDIR)/stage4-libdecnumber/Makefile ] || exit 0; \
27228 $(MAKE) stage4-start; \
27229 fi; \
a7dc05b5 27230 cd $(HOST_SUBDIR)/libdecnumber && \
6532abb6 27231 $(MAKE) $(EXTRA_HOST_FLAGS) \
a7dc05b5 27232 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 27233 clean
a7dc05b5
PB
27234@endif libdecnumber-bootstrap
27235
27236
27237.PHONY: all-stageprofile-libdecnumber maybe-all-stageprofile-libdecnumber
27238.PHONY: clean-stageprofile-libdecnumber maybe-clean-stageprofile-libdecnumber
27239maybe-all-stageprofile-libdecnumber:
27240maybe-clean-stageprofile-libdecnumber:
27241@if libdecnumber-bootstrap
27242maybe-all-stageprofile-libdecnumber: all-stageprofile-libdecnumber
27243all-stageprofile: all-stageprofile-libdecnumber
27244TARGET-stageprofile-libdecnumber = $(TARGET-libdecnumber)
27245all-stageprofile-libdecnumber: configure-stageprofile-libdecnumber
ec92c4d6 27246 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a7dc05b5
PB
27247 @r=`${PWD_COMMAND}`; export r; \
27248 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27249 $(HOST_EXPORTS) \
27250 $(POSTSTAGE1_HOST_EXPORTS) \
27251 cd $(HOST_SUBDIR)/libdecnumber && \
6532abb6
PB
27252 $(MAKE) $(BASE_FLAGS_TO_PASS) \
27253 CFLAGS="$(STAGE2_CFLAGS) -fprofile-generate" CXXFLAGS="$(STAGE2_CFLAGS) -fprofile-generate" \
455b4f90
PB
27254 LIBCFLAGS="$(STAGE2_LIBCFLAGS)" \
27255 CFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)" \
27256 CXXFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
a7dc05b5
PB
27257 $(TARGET-stageprofile-libdecnumber)
27258
27259maybe-clean-stageprofile-libdecnumber: clean-stageprofile-libdecnumber
27260clean-stageprofile: clean-stageprofile-libdecnumber
27261clean-stageprofile-libdecnumber:
a6a4e782
DD
27262 @if [ $(current_stage) = stageprofile ]; then \
27263 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
27264 else \
27265 [ -f $(HOST_SUBDIR)/stageprofile-libdecnumber/Makefile ] || exit 0; \
27266 $(MAKE) stageprofile-start; \
27267 fi; \
a7dc05b5 27268 cd $(HOST_SUBDIR)/libdecnumber && \
6532abb6 27269 $(MAKE) $(EXTRA_HOST_FLAGS) \
a7dc05b5 27270 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 27271 clean
a7dc05b5
PB
27272@endif libdecnumber-bootstrap
27273
27274
27275.PHONY: all-stagefeedback-libdecnumber maybe-all-stagefeedback-libdecnumber
27276.PHONY: clean-stagefeedback-libdecnumber maybe-clean-stagefeedback-libdecnumber
27277maybe-all-stagefeedback-libdecnumber:
27278maybe-clean-stagefeedback-libdecnumber:
27279@if libdecnumber-bootstrap
27280maybe-all-stagefeedback-libdecnumber: all-stagefeedback-libdecnumber
27281all-stagefeedback: all-stagefeedback-libdecnumber
27282TARGET-stagefeedback-libdecnumber = $(TARGET-libdecnumber)
27283all-stagefeedback-libdecnumber: configure-stagefeedback-libdecnumber
ec92c4d6 27284 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a7dc05b5
PB
27285 @r=`${PWD_COMMAND}`; export r; \
27286 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27287 $(HOST_EXPORTS) \
27288 $(POSTSTAGE1_HOST_EXPORTS) \
27289 cd $(HOST_SUBDIR)/libdecnumber && \
6532abb6
PB
27290 $(MAKE) $(BASE_FLAGS_TO_PASS) \
27291 CFLAGS="$(STAGE3_CFLAGS) -fprofile-use" CXXFLAGS="$(STAGE3_CFLAGS) -fprofile-use" \
27292 LIBCFLAGS="$(STAGE3_LIBCFLAGS) -fprofile-use" \
27293 CFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS) -fprofile-use" \
27294 CXXFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS) -fprofile-use" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
a7dc05b5
PB
27295 $(TARGET-stagefeedback-libdecnumber)
27296
27297maybe-clean-stagefeedback-libdecnumber: clean-stagefeedback-libdecnumber
27298clean-stagefeedback: clean-stagefeedback-libdecnumber
27299clean-stagefeedback-libdecnumber:
a6a4e782
DD
27300 @if [ $(current_stage) = stagefeedback ]; then \
27301 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
27302 else \
27303 [ -f $(HOST_SUBDIR)/stagefeedback-libdecnumber/Makefile ] || exit 0; \
27304 $(MAKE) stagefeedback-start; \
27305 fi; \
a7dc05b5 27306 cd $(HOST_SUBDIR)/libdecnumber && \
6532abb6 27307 $(MAKE) $(EXTRA_HOST_FLAGS) \
a7dc05b5 27308 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 27309 clean
a7dc05b5
PB
27310@endif libdecnumber-bootstrap
27311
27312
27313
27314
27315
27316.PHONY: check-libdecnumber maybe-check-libdecnumber
27317maybe-check-libdecnumber:
27318@if libdecnumber
27319maybe-check-libdecnumber: check-libdecnumber
27320
27321check-libdecnumber:
15b527ca 27322 @: $(MAKE); $(unstage)
a7dc05b5
PB
27323 @r=`${PWD_COMMAND}`; export r; \
27324 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27325 $(HOST_EXPORTS) \
27326 (cd $(HOST_SUBDIR)/libdecnumber && \
27327 $(MAKE) $(FLAGS_TO_PASS) check)
27328
27329@endif libdecnumber
27330
27331.PHONY: install-libdecnumber maybe-install-libdecnumber
27332maybe-install-libdecnumber:
27333@if libdecnumber
27334maybe-install-libdecnumber: install-libdecnumber
27335
27336install-libdecnumber: installdirs
15b527ca 27337 @: $(MAKE); $(unstage)
a7dc05b5
PB
27338 @r=`${PWD_COMMAND}`; export r; \
27339 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27340 $(HOST_EXPORTS) \
27341 (cd $(HOST_SUBDIR)/libdecnumber && \
27342 $(MAKE) $(FLAGS_TO_PASS) install)
27343
27344@endif libdecnumber
27345
39bbbb69 27346# Other targets (info, dvi, pdf, etc.)
a7dc05b5
PB
27347
27348.PHONY: maybe-info-libdecnumber info-libdecnumber
27349maybe-info-libdecnumber:
27350@if libdecnumber
27351maybe-info-libdecnumber: info-libdecnumber
27352
27353info-libdecnumber: \
27354 configure-libdecnumber
27355 @[ -f ./libdecnumber/Makefile ] || exit 0; \
27356 r=`${PWD_COMMAND}`; export r; \
27357 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27358 $(HOST_EXPORTS) \
27359 for flag in $(EXTRA_HOST_FLAGS) ; do \
27360 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27361 done; \
27362 echo "Doing info in libdecnumber" ; \
27363 (cd $(HOST_SUBDIR)/libdecnumber && \
27364 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27365 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27366 "RANLIB=$${RANLIB}" \
bffcbe34 27367 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a7dc05b5
PB
27368 info) \
27369 || exit 1
27370
27371@endif libdecnumber
27372
27373.PHONY: maybe-dvi-libdecnumber dvi-libdecnumber
27374maybe-dvi-libdecnumber:
27375@if libdecnumber
27376maybe-dvi-libdecnumber: dvi-libdecnumber
27377
27378dvi-libdecnumber: \
27379 configure-libdecnumber
27380 @[ -f ./libdecnumber/Makefile ] || exit 0; \
27381 r=`${PWD_COMMAND}`; export r; \
27382 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27383 $(HOST_EXPORTS) \
27384 for flag in $(EXTRA_HOST_FLAGS) ; do \
27385 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27386 done; \
27387 echo "Doing dvi in libdecnumber" ; \
27388 (cd $(HOST_SUBDIR)/libdecnumber && \
27389 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27390 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27391 "RANLIB=$${RANLIB}" \
bffcbe34 27392 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a7dc05b5
PB
27393 dvi) \
27394 || exit 1
27395
27396@endif libdecnumber
27397
39bbbb69
DD
27398.PHONY: maybe-pdf-libdecnumber pdf-libdecnumber
27399maybe-pdf-libdecnumber:
27400@if libdecnumber
27401maybe-pdf-libdecnumber: pdf-libdecnumber
27402
27403pdf-libdecnumber: \
27404 configure-libdecnumber
27405 @[ -f ./libdecnumber/Makefile ] || exit 0; \
27406 r=`${PWD_COMMAND}`; export r; \
27407 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27408 $(HOST_EXPORTS) \
27409 for flag in $(EXTRA_HOST_FLAGS) ; do \
27410 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27411 done; \
27412 echo "Doing pdf in libdecnumber" ; \
27413 (cd $(HOST_SUBDIR)/libdecnumber && \
27414 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27415 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27416 "RANLIB=$${RANLIB}" \
bffcbe34 27417 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
27418 pdf) \
27419 || exit 1
27420
27421@endif libdecnumber
27422
a7dc05b5
PB
27423.PHONY: maybe-html-libdecnumber html-libdecnumber
27424maybe-html-libdecnumber:
27425@if libdecnumber
27426maybe-html-libdecnumber: html-libdecnumber
27427
27428html-libdecnumber: \
27429 configure-libdecnumber
27430 @[ -f ./libdecnumber/Makefile ] || exit 0; \
27431 r=`${PWD_COMMAND}`; export r; \
27432 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27433 $(HOST_EXPORTS) \
27434 for flag in $(EXTRA_HOST_FLAGS) ; do \
27435 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27436 done; \
27437 echo "Doing html in libdecnumber" ; \
27438 (cd $(HOST_SUBDIR)/libdecnumber && \
27439 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27440 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27441 "RANLIB=$${RANLIB}" \
bffcbe34 27442 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a7dc05b5
PB
27443 html) \
27444 || exit 1
27445
27446@endif libdecnumber
27447
27448.PHONY: maybe-TAGS-libdecnumber TAGS-libdecnumber
27449maybe-TAGS-libdecnumber:
27450@if libdecnumber
27451maybe-TAGS-libdecnumber: TAGS-libdecnumber
27452
27453TAGS-libdecnumber: \
27454 configure-libdecnumber
27455 @[ -f ./libdecnumber/Makefile ] || exit 0; \
27456 r=`${PWD_COMMAND}`; export r; \
27457 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27458 $(HOST_EXPORTS) \
27459 for flag in $(EXTRA_HOST_FLAGS) ; do \
27460 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27461 done; \
27462 echo "Doing TAGS in libdecnumber" ; \
27463 (cd $(HOST_SUBDIR)/libdecnumber && \
27464 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27465 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27466 "RANLIB=$${RANLIB}" \
bffcbe34 27467 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a7dc05b5
PB
27468 TAGS) \
27469 || exit 1
27470
27471@endif libdecnumber
27472
27473.PHONY: maybe-install-info-libdecnumber install-info-libdecnumber
27474maybe-install-info-libdecnumber:
27475@if libdecnumber
27476maybe-install-info-libdecnumber: install-info-libdecnumber
27477
27478install-info-libdecnumber: \
27479 configure-libdecnumber \
27480 info-libdecnumber
27481 @[ -f ./libdecnumber/Makefile ] || exit 0; \
27482 r=`${PWD_COMMAND}`; export r; \
27483 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27484 $(HOST_EXPORTS) \
27485 for flag in $(EXTRA_HOST_FLAGS) ; do \
27486 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27487 done; \
27488 echo "Doing install-info in libdecnumber" ; \
27489 (cd $(HOST_SUBDIR)/libdecnumber && \
27490 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27491 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27492 "RANLIB=$${RANLIB}" \
bffcbe34 27493 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a7dc05b5
PB
27494 install-info) \
27495 || exit 1
27496
27497@endif libdecnumber
27498
d4954b6d
DD
27499.PHONY: maybe-install-pdf-libdecnumber install-pdf-libdecnumber
27500maybe-install-pdf-libdecnumber:
27501@if libdecnumber
27502maybe-install-pdf-libdecnumber: install-pdf-libdecnumber
27503
27504install-pdf-libdecnumber: \
27505 configure-libdecnumber \
27506 pdf-libdecnumber
27507 @[ -f ./libdecnumber/Makefile ] || exit 0; \
27508 r=`${PWD_COMMAND}`; export r; \
27509 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27510 $(HOST_EXPORTS) \
27511 for flag in $(EXTRA_HOST_FLAGS) ; do \
27512 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27513 done; \
27514 echo "Doing install-pdf in libdecnumber" ; \
27515 (cd $(HOST_SUBDIR)/libdecnumber && \
27516 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27517 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27518 "RANLIB=$${RANLIB}" \
bffcbe34 27519 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
27520 install-pdf) \
27521 || exit 1
27522
27523@endif libdecnumber
27524
83c9add4
CD
27525.PHONY: maybe-install-html-libdecnumber install-html-libdecnumber
27526maybe-install-html-libdecnumber:
27527@if libdecnumber
27528maybe-install-html-libdecnumber: install-html-libdecnumber
27529
27530install-html-libdecnumber: \
27531 configure-libdecnumber \
27532 html-libdecnumber
27533 @[ -f ./libdecnumber/Makefile ] || exit 0; \
27534 r=`${PWD_COMMAND}`; export r; \
27535 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27536 $(HOST_EXPORTS) \
27537 for flag in $(EXTRA_HOST_FLAGS) ; do \
27538 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27539 done; \
27540 echo "Doing install-html in libdecnumber" ; \
27541 (cd $(HOST_SUBDIR)/libdecnumber && \
27542 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27543 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27544 "RANLIB=$${RANLIB}" \
bffcbe34 27545 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
27546 install-html) \
27547 || exit 1
27548
27549@endif libdecnumber
27550
a7dc05b5
PB
27551.PHONY: maybe-installcheck-libdecnumber installcheck-libdecnumber
27552maybe-installcheck-libdecnumber:
27553@if libdecnumber
27554maybe-installcheck-libdecnumber: installcheck-libdecnumber
27555
27556installcheck-libdecnumber: \
27557 configure-libdecnumber
27558 @[ -f ./libdecnumber/Makefile ] || exit 0; \
27559 r=`${PWD_COMMAND}`; export r; \
27560 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27561 $(HOST_EXPORTS) \
27562 for flag in $(EXTRA_HOST_FLAGS) ; do \
27563 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27564 done; \
27565 echo "Doing installcheck in libdecnumber" ; \
27566 (cd $(HOST_SUBDIR)/libdecnumber && \
27567 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27568 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27569 "RANLIB=$${RANLIB}" \
bffcbe34 27570 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a7dc05b5
PB
27571 installcheck) \
27572 || exit 1
27573
27574@endif libdecnumber
27575
27576.PHONY: maybe-mostlyclean-libdecnumber mostlyclean-libdecnumber
27577maybe-mostlyclean-libdecnumber:
27578@if libdecnumber
27579maybe-mostlyclean-libdecnumber: mostlyclean-libdecnumber
27580
27581mostlyclean-libdecnumber:
27582 @[ -f ./libdecnumber/Makefile ] || exit 0; \
27583 r=`${PWD_COMMAND}`; export r; \
27584 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27585 $(HOST_EXPORTS) \
27586 for flag in $(EXTRA_HOST_FLAGS) ; do \
27587 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27588 done; \
27589 echo "Doing mostlyclean in libdecnumber" ; \
27590 (cd $(HOST_SUBDIR)/libdecnumber && \
27591 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27592 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27593 "RANLIB=$${RANLIB}" \
bffcbe34 27594 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a7dc05b5
PB
27595 mostlyclean) \
27596 || exit 1
27597
27598@endif libdecnumber
27599
27600.PHONY: maybe-clean-libdecnumber clean-libdecnumber
27601maybe-clean-libdecnumber:
27602@if libdecnumber
27603maybe-clean-libdecnumber: clean-libdecnumber
27604
27605clean-libdecnumber:
27606 @[ -f ./libdecnumber/Makefile ] || exit 0; \
27607 r=`${PWD_COMMAND}`; export r; \
27608 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27609 $(HOST_EXPORTS) \
27610 for flag in $(EXTRA_HOST_FLAGS) ; do \
27611 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27612 done; \
27613 echo "Doing clean in libdecnumber" ; \
27614 (cd $(HOST_SUBDIR)/libdecnumber && \
27615 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27616 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27617 "RANLIB=$${RANLIB}" \
bffcbe34 27618 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a7dc05b5
PB
27619 clean) \
27620 || exit 1
27621
27622@endif libdecnumber
27623
27624.PHONY: maybe-distclean-libdecnumber distclean-libdecnumber
27625maybe-distclean-libdecnumber:
27626@if libdecnumber
27627maybe-distclean-libdecnumber: distclean-libdecnumber
27628
27629distclean-libdecnumber:
27630 @[ -f ./libdecnumber/Makefile ] || exit 0; \
27631 r=`${PWD_COMMAND}`; export r; \
27632 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27633 $(HOST_EXPORTS) \
27634 for flag in $(EXTRA_HOST_FLAGS) ; do \
27635 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27636 done; \
27637 echo "Doing distclean in libdecnumber" ; \
27638 (cd $(HOST_SUBDIR)/libdecnumber && \
27639 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27640 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27641 "RANLIB=$${RANLIB}" \
bffcbe34 27642 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a7dc05b5
PB
27643 distclean) \
27644 || exit 1
27645
27646@endif libdecnumber
27647
27648.PHONY: maybe-maintainer-clean-libdecnumber maintainer-clean-libdecnumber
27649maybe-maintainer-clean-libdecnumber:
27650@if libdecnumber
27651maybe-maintainer-clean-libdecnumber: maintainer-clean-libdecnumber
27652
27653maintainer-clean-libdecnumber:
27654 @[ -f ./libdecnumber/Makefile ] || exit 0; \
27655 r=`${PWD_COMMAND}`; export r; \
27656 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27657 $(HOST_EXPORTS) \
27658 for flag in $(EXTRA_HOST_FLAGS) ; do \
27659 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27660 done; \
27661 echo "Doing maintainer-clean in libdecnumber" ; \
27662 (cd $(HOST_SUBDIR)/libdecnumber && \
27663 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27664 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27665 "RANLIB=$${RANLIB}" \
bffcbe34 27666 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a7dc05b5
PB
27667 maintainer-clean) \
27668 || exit 1
27669
27670@endif libdecnumber
27671
27672
27673
d5eec917
PB
27674.PHONY: configure-libgui maybe-configure-libgui
27675maybe-configure-libgui:
e1e5148c
CD
27676@if gcc-bootstrap
27677configure-libgui: stage_current
27678@endif gcc-bootstrap
d5eec917
PB
27679@if libgui
27680maybe-configure-libgui: configure-libgui
ec92c4d6 27681configure-libgui:
15b527ca 27682 @: $(MAKE); $(unstage)
ec92c4d6 27683 @r=`${PWD_COMMAND}`; export r; \
cb2333e8 27684 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
27685 test ! -f $(HOST_SUBDIR)/libgui/Makefile || exit 0; \
27686 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libgui ; \
a675b75a 27687 $(HOST_EXPORTS) \
f0fdfd34
PB
27688 echo Configuring in $(HOST_SUBDIR)/libgui; \
27689 cd "$(HOST_SUBDIR)/libgui" || exit 1; \
cb2333e8 27690 case $(srcdir) in \
7fc2ca22
PB
27691 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
27692 *) topdir=`echo $(HOST_SUBDIR)/libgui/ | \
27693 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
cb2333e8 27694 esac; \
7fc2ca22
PB
27695 srcdiroption="--srcdir=$${topdir}/libgui"; \
27696 libsrcdir="$$s/libgui"; \
cb2333e8 27697 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
27698 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
27699 --target=${target_alias} $${srcdiroption} \
cb2333e8 27700 || exit 1
d5eec917 27701@endif libgui
cb2333e8 27702
f0fdfd34
PB
27703
27704
a8a96878
PB
27705
27706
d5eec917
PB
27707.PHONY: all-libgui maybe-all-libgui
27708maybe-all-libgui:
e1e5148c
CD
27709@if gcc-bootstrap
27710all-libgui: stage_current
27711@endif gcc-bootstrap
d5eec917 27712@if libgui
5e6b1f07 27713TARGET-libgui=all
d5eec917
PB
27714maybe-all-libgui: all-libgui
27715all-libgui: configure-libgui
15b527ca 27716 @: $(MAKE); $(unstage)
cb2333e8
DD
27717 @r=`${PWD_COMMAND}`; export r; \
27718 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 27719 $(HOST_EXPORTS) \
7fc2ca22 27720 (cd $(HOST_SUBDIR)/libgui && \
6532abb6
PB
27721 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
27722 $(TARGET-libgui))
d5eec917 27723@endif libgui
cb2333e8 27724
f0fdfd34 27725
a8a96878
PB
27726
27727
d5eec917
PB
27728.PHONY: check-libgui maybe-check-libgui
27729maybe-check-libgui:
27730@if libgui
27731maybe-check-libgui: check-libgui
cb2333e8 27732
d5eec917 27733check-libgui:
15b527ca 27734 @: $(MAKE); $(unstage)
cb2333e8
DD
27735 @r=`${PWD_COMMAND}`; export r; \
27736 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 27737 $(HOST_EXPORTS) \
7fc2ca22
PB
27738 (cd $(HOST_SUBDIR)/libgui && \
27739 $(MAKE) $(FLAGS_TO_PASS) check)
cb2333e8 27740
d5eec917 27741@endif libgui
cb2333e8 27742
d5eec917
PB
27743.PHONY: install-libgui maybe-install-libgui
27744maybe-install-libgui:
27745@if libgui
27746maybe-install-libgui: install-libgui
cb2333e8 27747
d5eec917 27748install-libgui: installdirs
15b527ca 27749 @: $(MAKE); $(unstage)
d5eec917
PB
27750 @r=`${PWD_COMMAND}`; export r; \
27751 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d5eec917 27752 $(HOST_EXPORTS) \
7fc2ca22 27753 (cd $(HOST_SUBDIR)/libgui && \
93c60b6d 27754 $(MAKE) $(FLAGS_TO_PASS) install)
cb2333e8 27755
d5eec917 27756@endif libgui
cb2333e8 27757
39bbbb69 27758# Other targets (info, dvi, pdf, etc.)
cb2333e8 27759
d5eec917
PB
27760.PHONY: maybe-info-libgui info-libgui
27761maybe-info-libgui:
27762@if libgui
27763maybe-info-libgui: info-libgui
cb2333e8 27764
d5eec917
PB
27765info-libgui: \
27766 configure-libgui
15b527ca 27767 @: $(MAKE); $(unstage)
d5eec917 27768 @[ -f ./libgui/Makefile ] || exit 0; \
cb2333e8
DD
27769 r=`${PWD_COMMAND}`; export r; \
27770 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 27771 $(HOST_EXPORTS) \
d5eec917 27772 for flag in $(EXTRA_HOST_FLAGS) ; do \
cb2333e8
DD
27773 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27774 done; \
d5eec917 27775 echo "Doing info in libgui" ; \
7fc2ca22 27776 (cd $(HOST_SUBDIR)/libgui && \
cb2333e8
DD
27777 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27778 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27779 "RANLIB=$${RANLIB}" \
bffcbe34 27780 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 27781 info) \
cb2333e8
DD
27782 || exit 1
27783
d5eec917 27784@endif libgui
cb2333e8 27785
d5eec917
PB
27786.PHONY: maybe-dvi-libgui dvi-libgui
27787maybe-dvi-libgui:
27788@if libgui
27789maybe-dvi-libgui: dvi-libgui
cb2333e8 27790
d5eec917
PB
27791dvi-libgui: \
27792 configure-libgui
15b527ca 27793 @: $(MAKE); $(unstage)
d5eec917 27794 @[ -f ./libgui/Makefile ] || exit 0; \
cb2333e8
DD
27795 r=`${PWD_COMMAND}`; export r; \
27796 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 27797 $(HOST_EXPORTS) \
d5eec917 27798 for flag in $(EXTRA_HOST_FLAGS) ; do \
cb2333e8
DD
27799 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27800 done; \
d5eec917 27801 echo "Doing dvi in libgui" ; \
7fc2ca22 27802 (cd $(HOST_SUBDIR)/libgui && \
cb2333e8
DD
27803 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27804 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27805 "RANLIB=$${RANLIB}" \
bffcbe34 27806 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 27807 dvi) \
cb2333e8
DD
27808 || exit 1
27809
d5eec917 27810@endif libgui
cb2333e8 27811
39bbbb69
DD
27812.PHONY: maybe-pdf-libgui pdf-libgui
27813maybe-pdf-libgui:
27814@if libgui
27815maybe-pdf-libgui: pdf-libgui
27816
27817pdf-libgui: \
27818 configure-libgui
27819 @: $(MAKE); $(unstage)
27820 @[ -f ./libgui/Makefile ] || exit 0; \
27821 r=`${PWD_COMMAND}`; export r; \
27822 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27823 $(HOST_EXPORTS) \
27824 for flag in $(EXTRA_HOST_FLAGS) ; do \
27825 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27826 done; \
27827 echo "Doing pdf in libgui" ; \
27828 (cd $(HOST_SUBDIR)/libgui && \
27829 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27830 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27831 "RANLIB=$${RANLIB}" \
bffcbe34 27832 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
27833 pdf) \
27834 || exit 1
27835
27836@endif libgui
27837
b6fb961f
MS
27838.PHONY: maybe-html-libgui html-libgui
27839maybe-html-libgui:
27840@if libgui
27841maybe-html-libgui: html-libgui
27842
27843html-libgui: \
27844 configure-libgui
15b527ca 27845 @: $(MAKE); $(unstage)
b6fb961f
MS
27846 @[ -f ./libgui/Makefile ] || exit 0; \
27847 r=`${PWD_COMMAND}`; export r; \
27848 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
27849 $(HOST_EXPORTS) \
27850 for flag in $(EXTRA_HOST_FLAGS) ; do \
27851 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27852 done; \
27853 echo "Doing html in libgui" ; \
7fc2ca22 27854 (cd $(HOST_SUBDIR)/libgui && \
b6fb961f
MS
27855 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27856 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27857 "RANLIB=$${RANLIB}" \
bffcbe34 27858 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
27859 html) \
27860 || exit 1
27861
27862@endif libgui
27863
d5eec917
PB
27864.PHONY: maybe-TAGS-libgui TAGS-libgui
27865maybe-TAGS-libgui:
27866@if libgui
27867maybe-TAGS-libgui: TAGS-libgui
cb2333e8 27868
d5eec917
PB
27869TAGS-libgui: \
27870 configure-libgui
15b527ca 27871 @: $(MAKE); $(unstage)
d5eec917 27872 @[ -f ./libgui/Makefile ] || exit 0; \
cb2333e8
DD
27873 r=`${PWD_COMMAND}`; export r; \
27874 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 27875 $(HOST_EXPORTS) \
d5eec917 27876 for flag in $(EXTRA_HOST_FLAGS) ; do \
cb2333e8
DD
27877 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27878 done; \
d5eec917 27879 echo "Doing TAGS in libgui" ; \
7fc2ca22 27880 (cd $(HOST_SUBDIR)/libgui && \
cb2333e8
DD
27881 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27882 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27883 "RANLIB=$${RANLIB}" \
bffcbe34 27884 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 27885 TAGS) \
cb2333e8
DD
27886 || exit 1
27887
d5eec917 27888@endif libgui
cb2333e8 27889
d5eec917
PB
27890.PHONY: maybe-install-info-libgui install-info-libgui
27891maybe-install-info-libgui:
27892@if libgui
27893maybe-install-info-libgui: install-info-libgui
cb2333e8 27894
d5eec917
PB
27895install-info-libgui: \
27896 configure-libgui \
27897 info-libgui
15b527ca 27898 @: $(MAKE); $(unstage)
d5eec917 27899 @[ -f ./libgui/Makefile ] || exit 0; \
cb2333e8
DD
27900 r=`${PWD_COMMAND}`; export r; \
27901 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 27902 $(HOST_EXPORTS) \
d5eec917 27903 for flag in $(EXTRA_HOST_FLAGS) ; do \
cb2333e8
DD
27904 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27905 done; \
d5eec917 27906 echo "Doing install-info in libgui" ; \
7fc2ca22 27907 (cd $(HOST_SUBDIR)/libgui && \
cb2333e8
DD
27908 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27909 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27910 "RANLIB=$${RANLIB}" \
bffcbe34 27911 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 27912 install-info) \
cb2333e8
DD
27913 || exit 1
27914
d5eec917 27915@endif libgui
cb2333e8 27916
d4954b6d
DD
27917.PHONY: maybe-install-pdf-libgui install-pdf-libgui
27918maybe-install-pdf-libgui:
27919@if libgui
27920maybe-install-pdf-libgui: install-pdf-libgui
27921
27922install-pdf-libgui: \
27923 configure-libgui \
27924 pdf-libgui
27925 @: $(MAKE); $(unstage)
27926 @[ -f ./libgui/Makefile ] || exit 0; \
27927 r=`${PWD_COMMAND}`; export r; \
27928 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27929 $(HOST_EXPORTS) \
27930 for flag in $(EXTRA_HOST_FLAGS) ; do \
27931 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27932 done; \
27933 echo "Doing install-pdf in libgui" ; \
27934 (cd $(HOST_SUBDIR)/libgui && \
27935 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27936 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27937 "RANLIB=$${RANLIB}" \
bffcbe34 27938 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
27939 install-pdf) \
27940 || exit 1
27941
27942@endif libgui
27943
83c9add4
CD
27944.PHONY: maybe-install-html-libgui install-html-libgui
27945maybe-install-html-libgui:
27946@if libgui
27947maybe-install-html-libgui: install-html-libgui
27948
27949install-html-libgui: \
27950 configure-libgui \
27951 html-libgui
27952 @: $(MAKE); $(unstage)
27953 @[ -f ./libgui/Makefile ] || exit 0; \
27954 r=`${PWD_COMMAND}`; export r; \
27955 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27956 $(HOST_EXPORTS) \
27957 for flag in $(EXTRA_HOST_FLAGS) ; do \
27958 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27959 done; \
27960 echo "Doing install-html in libgui" ; \
27961 (cd $(HOST_SUBDIR)/libgui && \
27962 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27963 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27964 "RANLIB=$${RANLIB}" \
bffcbe34 27965 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
27966 install-html) \
27967 || exit 1
27968
27969@endif libgui
27970
d5eec917
PB
27971.PHONY: maybe-installcheck-libgui installcheck-libgui
27972maybe-installcheck-libgui:
27973@if libgui
27974maybe-installcheck-libgui: installcheck-libgui
cb2333e8 27975
d5eec917
PB
27976installcheck-libgui: \
27977 configure-libgui
15b527ca 27978 @: $(MAKE); $(unstage)
d5eec917 27979 @[ -f ./libgui/Makefile ] || exit 0; \
cb2333e8
DD
27980 r=`${PWD_COMMAND}`; export r; \
27981 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 27982 $(HOST_EXPORTS) \
d5eec917 27983 for flag in $(EXTRA_HOST_FLAGS) ; do \
cb2333e8
DD
27984 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27985 done; \
d5eec917 27986 echo "Doing installcheck in libgui" ; \
7fc2ca22 27987 (cd $(HOST_SUBDIR)/libgui && \
cb2333e8
DD
27988 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27989 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27990 "RANLIB=$${RANLIB}" \
bffcbe34 27991 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 27992 installcheck) \
cb2333e8
DD
27993 || exit 1
27994
d5eec917 27995@endif libgui
cb2333e8 27996
d5eec917
PB
27997.PHONY: maybe-mostlyclean-libgui mostlyclean-libgui
27998maybe-mostlyclean-libgui:
27999@if libgui
28000maybe-mostlyclean-libgui: mostlyclean-libgui
cb2333e8 28001
d5eec917 28002mostlyclean-libgui:
15b527ca 28003 @: $(MAKE); $(unstage)
d5eec917 28004 @[ -f ./libgui/Makefile ] || exit 0; \
cb2333e8
DD
28005 r=`${PWD_COMMAND}`; export r; \
28006 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 28007 $(HOST_EXPORTS) \
d5eec917 28008 for flag in $(EXTRA_HOST_FLAGS) ; do \
cb2333e8
DD
28009 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28010 done; \
d5eec917 28011 echo "Doing mostlyclean in libgui" ; \
7fc2ca22 28012 (cd $(HOST_SUBDIR)/libgui && \
cb2333e8
DD
28013 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28014 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28015 "RANLIB=$${RANLIB}" \
bffcbe34 28016 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 28017 mostlyclean) \
cb2333e8
DD
28018 || exit 1
28019
d5eec917 28020@endif libgui
cb2333e8 28021
d5eec917
PB
28022.PHONY: maybe-clean-libgui clean-libgui
28023maybe-clean-libgui:
28024@if libgui
28025maybe-clean-libgui: clean-libgui
cb2333e8 28026
d5eec917 28027clean-libgui:
15b527ca 28028 @: $(MAKE); $(unstage)
d5eec917 28029 @[ -f ./libgui/Makefile ] || exit 0; \
cb2333e8
DD
28030 r=`${PWD_COMMAND}`; export r; \
28031 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 28032 $(HOST_EXPORTS) \
d5eec917 28033 for flag in $(EXTRA_HOST_FLAGS) ; do \
cb2333e8
DD
28034 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28035 done; \
d5eec917 28036 echo "Doing clean in libgui" ; \
7fc2ca22 28037 (cd $(HOST_SUBDIR)/libgui && \
cb2333e8
DD
28038 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28039 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28040 "RANLIB=$${RANLIB}" \
bffcbe34 28041 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 28042 clean) \
cb2333e8
DD
28043 || exit 1
28044
d5eec917 28045@endif libgui
cb2333e8 28046
d5eec917
PB
28047.PHONY: maybe-distclean-libgui distclean-libgui
28048maybe-distclean-libgui:
28049@if libgui
28050maybe-distclean-libgui: distclean-libgui
cb2333e8 28051
d5eec917 28052distclean-libgui:
15b527ca 28053 @: $(MAKE); $(unstage)
d5eec917 28054 @[ -f ./libgui/Makefile ] || exit 0; \
cb2333e8
DD
28055 r=`${PWD_COMMAND}`; export r; \
28056 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 28057 $(HOST_EXPORTS) \
d5eec917 28058 for flag in $(EXTRA_HOST_FLAGS) ; do \
cb2333e8
DD
28059 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28060 done; \
d5eec917 28061 echo "Doing distclean in libgui" ; \
7fc2ca22 28062 (cd $(HOST_SUBDIR)/libgui && \
cb2333e8
DD
28063 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28064 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28065 "RANLIB=$${RANLIB}" \
bffcbe34 28066 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 28067 distclean) \
cb2333e8
DD
28068 || exit 1
28069
d5eec917 28070@endif libgui
cb2333e8 28071
d5eec917
PB
28072.PHONY: maybe-maintainer-clean-libgui maintainer-clean-libgui
28073maybe-maintainer-clean-libgui:
28074@if libgui
28075maybe-maintainer-clean-libgui: maintainer-clean-libgui
cb2333e8 28076
d5eec917 28077maintainer-clean-libgui:
15b527ca 28078 @: $(MAKE); $(unstage)
d5eec917 28079 @[ -f ./libgui/Makefile ] || exit 0; \
cb2333e8
DD
28080 r=`${PWD_COMMAND}`; export r; \
28081 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 28082 $(HOST_EXPORTS) \
d5eec917 28083 for flag in $(EXTRA_HOST_FLAGS) ; do \
cb2333e8
DD
28084 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28085 done; \
d5eec917 28086 echo "Doing maintainer-clean in libgui" ; \
7fc2ca22 28087 (cd $(HOST_SUBDIR)/libgui && \
cb2333e8
DD
28088 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28089 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28090 "RANLIB=$${RANLIB}" \
bffcbe34 28091 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 28092 maintainer-clean) \
cb2333e8
DD
28093 || exit 1
28094
d5eec917 28095@endif libgui
cb2333e8
DD
28096
28097
f0fdfd34 28098
d5eec917
PB
28099.PHONY: configure-libiberty maybe-configure-libiberty
28100maybe-configure-libiberty:
e1e5148c
CD
28101@if gcc-bootstrap
28102configure-libiberty: stage_current
28103@endif gcc-bootstrap
d5eec917
PB
28104@if libiberty
28105maybe-configure-libiberty: configure-libiberty
ec92c4d6 28106configure-libiberty:
ec92c4d6
PB
28107 @r=`${PWD_COMMAND}`; export r; \
28108 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7fc2ca22
PB
28109 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
28110 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \
a675b75a 28111 $(HOST_EXPORTS) \
f0fdfd34
PB
28112 echo Configuring in $(HOST_SUBDIR)/libiberty; \
28113 cd "$(HOST_SUBDIR)/libiberty" || exit 1; \
8ec98d6c 28114 case $(srcdir) in \
7fc2ca22
PB
28115 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
28116 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
28117 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 28118 esac; \
7fc2ca22
PB
28119 srcdiroption="--srcdir=$${topdir}/libiberty"; \
28120 libsrcdir="$$s/libiberty"; \
8ec98d6c 28121 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
28122 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
28123 --target=${target_alias} $${srcdiroption} \
657b58f4 28124 || exit 1
d5eec917 28125@endif libiberty
657b58f4 28126
f0fdfd34
PB
28127
28128
a8a96878
PB
28129.PHONY: configure-stage1-libiberty maybe-configure-stage1-libiberty
28130maybe-configure-stage1-libiberty:
28131@if libiberty-bootstrap
28132maybe-configure-stage1-libiberty: configure-stage1-libiberty
15b527ca 28133configure-stage1-libiberty:
ec92c4d6 28134 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
15b527ca 28135 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
ec92c4d6
PB
28136 @r=`${PWD_COMMAND}`; export r; \
28137 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15b527ca 28138 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
6532abb6 28139 $(HOST_EXPORTS) \
2ba09444 28140 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
6532abb6 28141 CXXFLAGS="$(STAGE1_CFLAGS)"; export CXXFLAGS; \
a8a96878 28142 echo Configuring stage 1 in $(HOST_SUBDIR)/libiberty ; \
15b527ca 28143 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \
a8a96878
PB
28144 cd $(HOST_SUBDIR)/libiberty || exit 1; \
28145 case $(srcdir) in \
28146 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
28147 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
28148 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
28149 esac; \
28150 srcdiroption="--srcdir=$${topdir}/libiberty"; \
28151 libsrcdir="$$s/libiberty"; \
28152 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
28153 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
28154 --target=${target_alias} $${srcdiroption} \
380e48e5 28155 \
14a1406e 28156 --disable-intermodule $(STAGE1_CHECKING) --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
a8a96878
PB
28157@endif libiberty-bootstrap
28158
28159.PHONY: configure-stage2-libiberty maybe-configure-stage2-libiberty
28160maybe-configure-stage2-libiberty:
28161@if libiberty-bootstrap
28162maybe-configure-stage2-libiberty: configure-stage2-libiberty
15b527ca 28163configure-stage2-libiberty:
ec92c4d6 28164 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
15b527ca 28165 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
ec92c4d6
PB
28166 @r=`${PWD_COMMAND}`; export r; \
28167 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15b527ca 28168 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
a8a96878 28169 $(HOST_EXPORTS) \
6532abb6 28170 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 28171 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
6532abb6 28172 CXXFLAGS="$(STAGE2_CFLAGS)"; export CXXFLAGS; \
a8a96878 28173 echo Configuring stage 2 in $(HOST_SUBDIR)/libiberty ; \
15b527ca 28174 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \
a8a96878
PB
28175 cd $(HOST_SUBDIR)/libiberty || exit 1; \
28176 case $(srcdir) in \
28177 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
28178 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
28179 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
28180 esac; \
28181 srcdiroption="--srcdir=$${topdir}/libiberty"; \
28182 libsrcdir="$$s/libiberty"; \
28183 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
28184 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
28185 --target=${target_alias} $${srcdiroption} \
380e48e5 28186 --with-build-libsubdir=$(HOST_SUBDIR) \
a8a96878
PB
28187 @stage2_werror_flag@
28188@endif libiberty-bootstrap
28189
2b41ef78
AO
28190.PHONY: configure-stageb2g0-libiberty maybe-configure-stageb2g0-libiberty
28191maybe-configure-stageb2g0-libiberty:
28192@if libiberty-bootstrap
28193maybe-configure-stageb2g0-libiberty: configure-stageb2g0-libiberty
28194configure-stageb2g0-libiberty:
28195 @[ $(current_stage) = stageb2g0 ] || $(MAKE) stageb2g0-start
28196 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
28197 @r=`${PWD_COMMAND}`; export r; \
28198 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28199 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
28200 $(HOST_EXPORTS) \
6532abb6 28201 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 28202 CFLAGS="$(STAGE2_CFLAGS) -g0"; export CFLAGS; \
6532abb6 28203 CXXFLAGS="$(STAGE2_CFLAGS) -g0"; export CXXFLAGS; \
2b41ef78
AO
28204 echo Configuring stage b2g0 in $(HOST_SUBDIR)/libiberty ; \
28205 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \
28206 cd $(HOST_SUBDIR)/libiberty || exit 1; \
28207 case $(srcdir) in \
28208 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
28209 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
28210 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
28211 esac; \
28212 srcdiroption="--srcdir=$${topdir}/libiberty"; \
28213 libsrcdir="$$s/libiberty"; \
28214 $(SHELL) $${libsrcdir}/configure \
28215 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
28216 --target=${target_alias} $${srcdiroption} \
28217 --with-build-libsubdir=$(HOST_SUBDIR) \
28218 @stage2_werror_flag@
28219@endif libiberty-bootstrap
28220
a8a96878
PB
28221.PHONY: configure-stage3-libiberty maybe-configure-stage3-libiberty
28222maybe-configure-stage3-libiberty:
28223@if libiberty-bootstrap
28224maybe-configure-stage3-libiberty: configure-stage3-libiberty
15b527ca 28225configure-stage3-libiberty:
ec92c4d6 28226 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
15b527ca 28227 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
ec92c4d6
PB
28228 @r=`${PWD_COMMAND}`; export r; \
28229 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15b527ca 28230 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
a8a96878 28231 $(HOST_EXPORTS) \
6532abb6 28232 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 28233 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
6532abb6 28234 CXXFLAGS="$(STAGE3_CFLAGS)"; export CXXFLAGS; \
a8a96878 28235 echo Configuring stage 3 in $(HOST_SUBDIR)/libiberty ; \
15b527ca 28236 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \
a8a96878
PB
28237 cd $(HOST_SUBDIR)/libiberty || exit 1; \
28238 case $(srcdir) in \
28239 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
28240 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
28241 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
28242 esac; \
28243 srcdiroption="--srcdir=$${topdir}/libiberty"; \
28244 libsrcdir="$$s/libiberty"; \
28245 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
28246 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
28247 --target=${target_alias} $${srcdiroption} \
380e48e5 28248 --with-build-libsubdir=$(HOST_SUBDIR) \
a8a96878
PB
28249 @stage2_werror_flag@
28250@endif libiberty-bootstrap
28251
2b41ef78
AO
28252.PHONY: configure-stageb3g2-libiberty maybe-configure-stageb3g2-libiberty
28253maybe-configure-stageb3g2-libiberty:
28254@if libiberty-bootstrap
28255maybe-configure-stageb3g2-libiberty: configure-stageb3g2-libiberty
28256configure-stageb3g2-libiberty:
28257 @[ $(current_stage) = stageb3g2 ] || $(MAKE) stageb3g2-start
28258 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
28259 @r=`${PWD_COMMAND}`; export r; \
28260 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28261 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
28262 $(HOST_EXPORTS) \
6532abb6 28263 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 28264 CFLAGS="$(STAGE3_CFLAGS) -g2"; export CFLAGS; \
6532abb6 28265 CXXFLAGS="$(STAGE3_CFLAGS) -g2"; export CXXFLAGS; \
2b41ef78
AO
28266 echo Configuring stage b3g2 in $(HOST_SUBDIR)/libiberty ; \
28267 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \
28268 cd $(HOST_SUBDIR)/libiberty || exit 1; \
28269 case $(srcdir) in \
28270 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
28271 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
28272 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
28273 esac; \
28274 srcdiroption="--srcdir=$${topdir}/libiberty"; \
28275 libsrcdir="$$s/libiberty"; \
28276 $(SHELL) $${libsrcdir}/configure \
28277 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
28278 --target=${target_alias} $${srcdiroption} \
28279 --with-build-libsubdir=$(HOST_SUBDIR) \
28280 @stage2_werror_flag@
28281@endif libiberty-bootstrap
28282
a8a96878
PB
28283.PHONY: configure-stage4-libiberty maybe-configure-stage4-libiberty
28284maybe-configure-stage4-libiberty:
28285@if libiberty-bootstrap
28286maybe-configure-stage4-libiberty: configure-stage4-libiberty
15b527ca 28287configure-stage4-libiberty:
ec92c4d6 28288 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
15b527ca 28289 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
ec92c4d6
PB
28290 @r=`${PWD_COMMAND}`; export r; \
28291 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15b527ca 28292 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
a8a96878 28293 $(HOST_EXPORTS) \
6532abb6 28294 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 28295 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
6532abb6 28296 CXXFLAGS="$(STAGE4_CFLAGS)"; export CXXFLAGS; \
a8a96878 28297 echo Configuring stage 4 in $(HOST_SUBDIR)/libiberty ; \
15b527ca 28298 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \
a8a96878
PB
28299 cd $(HOST_SUBDIR)/libiberty || exit 1; \
28300 case $(srcdir) in \
28301 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
28302 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
28303 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
28304 esac; \
28305 srcdiroption="--srcdir=$${topdir}/libiberty"; \
28306 libsrcdir="$$s/libiberty"; \
28307 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
28308 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
28309 --target=${target_alias} $${srcdiroption} \
380e48e5 28310 --with-build-libsubdir=$(HOST_SUBDIR) \
a8a96878
PB
28311 @stage2_werror_flag@
28312@endif libiberty-bootstrap
28313
28314.PHONY: configure-stageprofile-libiberty maybe-configure-stageprofile-libiberty
28315maybe-configure-stageprofile-libiberty:
28316@if libiberty-bootstrap
28317maybe-configure-stageprofile-libiberty: configure-stageprofile-libiberty
15b527ca 28318configure-stageprofile-libiberty:
ec92c4d6 28319 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
15b527ca 28320 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
ec92c4d6
PB
28321 @r=`${PWD_COMMAND}`; export r; \
28322 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15b527ca 28323 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
a8a96878 28324 $(HOST_EXPORTS) \
6532abb6 28325 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 28326 CFLAGS="$(STAGE2_CFLAGS) -fprofile-generate"; export CFLAGS; \
6532abb6 28327 CXXFLAGS="$(STAGE2_CFLAGS) -fprofile-generate"; export CXXFLAGS; \
a8a96878 28328 echo Configuring stage profile in $(HOST_SUBDIR)/libiberty ; \
15b527ca 28329 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \
a8a96878
PB
28330 cd $(HOST_SUBDIR)/libiberty || exit 1; \
28331 case $(srcdir) in \
28332 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
28333 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
28334 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
28335 esac; \
28336 srcdiroption="--srcdir=$${topdir}/libiberty"; \
28337 libsrcdir="$$s/libiberty"; \
28338 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
28339 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
28340 --target=${target_alias} $${srcdiroption} \
380e48e5 28341 --with-build-libsubdir=$(HOST_SUBDIR) \
a8a96878
PB
28342 @stage2_werror_flag@
28343@endif libiberty-bootstrap
28344
28345.PHONY: configure-stagefeedback-libiberty maybe-configure-stagefeedback-libiberty
28346maybe-configure-stagefeedback-libiberty:
28347@if libiberty-bootstrap
28348maybe-configure-stagefeedback-libiberty: configure-stagefeedback-libiberty
15b527ca 28349configure-stagefeedback-libiberty:
ec92c4d6 28350 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
15b527ca 28351 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
ec92c4d6
PB
28352 @r=`${PWD_COMMAND}`; export r; \
28353 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15b527ca 28354 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
a8a96878 28355 $(HOST_EXPORTS) \
6532abb6 28356 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 28357 CFLAGS="$(STAGE3_CFLAGS) -fprofile-use"; export CFLAGS; \
6532abb6 28358 CXXFLAGS="$(STAGE3_CFLAGS) -fprofile-use"; export CXXFLAGS; \
a8a96878 28359 echo Configuring stage feedback in $(HOST_SUBDIR)/libiberty ; \
15b527ca 28360 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \
a8a96878
PB
28361 cd $(HOST_SUBDIR)/libiberty || exit 1; \
28362 case $(srcdir) in \
28363 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
28364 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
28365 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
28366 esac; \
28367 srcdiroption="--srcdir=$${topdir}/libiberty"; \
28368 libsrcdir="$$s/libiberty"; \
28369 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
28370 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
28371 --target=${target_alias} $${srcdiroption} \
380e48e5 28372 --with-build-libsubdir=$(HOST_SUBDIR) \
a8a96878
PB
28373 @stage2_werror_flag@
28374@endif libiberty-bootstrap
28375
28376
28377
28378
28379
d5eec917
PB
28380.PHONY: all-libiberty maybe-all-libiberty
28381maybe-all-libiberty:
e1e5148c
CD
28382@if gcc-bootstrap
28383all-libiberty: stage_current
28384@endif gcc-bootstrap
d5eec917 28385@if libiberty
5e6b1f07 28386TARGET-libiberty=all
d5eec917
PB
28387maybe-all-libiberty: all-libiberty
28388all-libiberty: configure-libiberty
ec92c4d6 28389 @r=`${PWD_COMMAND}`; export r; \
d5eec917 28390 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 28391 $(HOST_EXPORTS) \
7fc2ca22 28392 (cd $(HOST_SUBDIR)/libiberty && \
6532abb6
PB
28393 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
28394 $(TARGET-libiberty))
d5eec917 28395@endif libiberty
657b58f4 28396
f0fdfd34 28397
a8a96878
PB
28398
28399.PHONY: all-stage1-libiberty maybe-all-stage1-libiberty
28400.PHONY: clean-stage1-libiberty maybe-clean-stage1-libiberty
28401maybe-all-stage1-libiberty:
28402maybe-clean-stage1-libiberty:
28403@if libiberty-bootstrap
28404maybe-all-stage1-libiberty: all-stage1-libiberty
28405all-stage1: all-stage1-libiberty
168b158c 28406TARGET-stage1-libiberty = $(TARGET-libiberty)
a8a96878 28407all-stage1-libiberty: configure-stage1-libiberty
ec92c4d6 28408 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a8a96878
PB
28409 @r=`${PWD_COMMAND}`; export r; \
28410 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28411 $(HOST_EXPORTS) \
28412 cd $(HOST_SUBDIR)/libiberty && \
6532abb6
PB
28413 $(MAKE) $(BASE_FLAGS_TO_PASS) \
28414 CFLAGS="$(STAGE1_CFLAGS)" CXXFLAGS="$(STAGE1_CFLAGS)" \
28415 LIBCFLAGS="$(STAGE1_LIBCFLAGS)" \
28416 CFLAGS_FOR_TARGET="$(STAGE1_LIBCFLAGS)" \
28417 CXXFLAGS_FOR_TARGET="$(STAGE1_LIBCFLAGS)" $(EXTRA_HOST_FLAGS) \
168b158c 28418 $(TARGET-stage1-libiberty)
a8a96878
PB
28419
28420maybe-clean-stage1-libiberty: clean-stage1-libiberty
28421clean-stage1: clean-stage1-libiberty
28422clean-stage1-libiberty:
a6a4e782
DD
28423 @if [ $(current_stage) = stage1 ]; then \
28424 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
28425 else \
28426 [ -f $(HOST_SUBDIR)/stage1-libiberty/Makefile ] || exit 0; \
28427 $(MAKE) stage1-start; \
28428 fi; \
a8a96878 28429 cd $(HOST_SUBDIR)/libiberty && \
6532abb6 28430 $(MAKE) $(EXTRA_HOST_FLAGS) \
2ba09444 28431 clean
a8a96878
PB
28432@endif libiberty-bootstrap
28433
28434
28435.PHONY: all-stage2-libiberty maybe-all-stage2-libiberty
28436.PHONY: clean-stage2-libiberty maybe-clean-stage2-libiberty
28437maybe-all-stage2-libiberty:
28438maybe-clean-stage2-libiberty:
28439@if libiberty-bootstrap
28440maybe-all-stage2-libiberty: all-stage2-libiberty
28441all-stage2: all-stage2-libiberty
168b158c 28442TARGET-stage2-libiberty = $(TARGET-libiberty)
a8a96878 28443all-stage2-libiberty: configure-stage2-libiberty
ec92c4d6 28444 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a8a96878
PB
28445 @r=`${PWD_COMMAND}`; export r; \
28446 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28447 $(HOST_EXPORTS) \
28448 $(POSTSTAGE1_HOST_EXPORTS) \
28449 cd $(HOST_SUBDIR)/libiberty && \
6532abb6
PB
28450 $(MAKE) $(BASE_FLAGS_TO_PASS) \
28451 CFLAGS="$(STAGE2_CFLAGS)" CXXFLAGS="$(STAGE2_CFLAGS)" \
28452 LIBCFLAGS="$(STAGE2_LIBCFLAGS)" \
28453 CFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)" \
28454 CXXFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
168b158c 28455 $(TARGET-stage2-libiberty)
a8a96878
PB
28456
28457maybe-clean-stage2-libiberty: clean-stage2-libiberty
28458clean-stage2: clean-stage2-libiberty
28459clean-stage2-libiberty:
a6a4e782
DD
28460 @if [ $(current_stage) = stage2 ]; then \
28461 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
28462 else \
28463 [ -f $(HOST_SUBDIR)/stage2-libiberty/Makefile ] || exit 0; \
28464 $(MAKE) stage2-start; \
28465 fi; \
a8a96878 28466 cd $(HOST_SUBDIR)/libiberty && \
6532abb6 28467 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 28468 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 28469 clean
a8a96878
PB
28470@endif libiberty-bootstrap
28471
28472
2b41ef78
AO
28473.PHONY: all-stageb2g0-libiberty maybe-all-stageb2g0-libiberty
28474.PHONY: clean-stageb2g0-libiberty maybe-clean-stageb2g0-libiberty
28475maybe-all-stageb2g0-libiberty:
28476maybe-clean-stageb2g0-libiberty:
28477@if libiberty-bootstrap
28478maybe-all-stageb2g0-libiberty: all-stageb2g0-libiberty
28479all-stageb2g0: all-stageb2g0-libiberty
28480TARGET-stageb2g0-libiberty = $(TARGET-libiberty)
28481all-stageb2g0-libiberty: configure-stageb2g0-libiberty
28482 @[ $(current_stage) = stageb2g0 ] || $(MAKE) stageb2g0-start
28483 @r=`${PWD_COMMAND}`; export r; \
28484 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28485 $(HOST_EXPORTS) \
28486 $(POSTSTAGE1_HOST_EXPORTS) \
28487 cd $(HOST_SUBDIR)/libiberty && \
6532abb6
PB
28488 $(MAKE) $(BASE_FLAGS_TO_PASS) \
28489 CFLAGS="$(STAGE2_CFLAGS) -g0" CXXFLAGS="$(STAGE2_CFLAGS) -g0" \
28490 LIBCFLAGS="$(STAGE2_LIBCFLAGS) -g0" \
28491 CFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS) -g0" \
28492 CXXFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS) -g0" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
2b41ef78
AO
28493 $(TARGET-stageb2g0-libiberty)
28494
28495maybe-clean-stageb2g0-libiberty: clean-stageb2g0-libiberty
28496clean-stageb2g0: clean-stageb2g0-libiberty
28497clean-stageb2g0-libiberty:
28498 @if [ $(current_stage) = stageb2g0 ]; then \
28499 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
28500 else \
28501 [ -f $(HOST_SUBDIR)/stageb2g0-libiberty/Makefile ] || exit 0; \
28502 $(MAKE) stageb2g0-start; \
28503 fi; \
28504 cd $(HOST_SUBDIR)/libiberty && \
6532abb6 28505 $(MAKE) $(EXTRA_HOST_FLAGS) \
2b41ef78
AO
28506 $(POSTSTAGE1_FLAGS_TO_PASS) \
28507 clean
28508@endif libiberty-bootstrap
28509
28510
a8a96878
PB
28511.PHONY: all-stage3-libiberty maybe-all-stage3-libiberty
28512.PHONY: clean-stage3-libiberty maybe-clean-stage3-libiberty
28513maybe-all-stage3-libiberty:
28514maybe-clean-stage3-libiberty:
28515@if libiberty-bootstrap
28516maybe-all-stage3-libiberty: all-stage3-libiberty
28517all-stage3: all-stage3-libiberty
168b158c 28518TARGET-stage3-libiberty = $(TARGET-libiberty)
a8a96878 28519all-stage3-libiberty: configure-stage3-libiberty
ec92c4d6 28520 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a8a96878
PB
28521 @r=`${PWD_COMMAND}`; export r; \
28522 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28523 $(HOST_EXPORTS) \
28524 $(POSTSTAGE1_HOST_EXPORTS) \
28525 cd $(HOST_SUBDIR)/libiberty && \
6532abb6
PB
28526 $(MAKE) $(BASE_FLAGS_TO_PASS) \
28527 CFLAGS="$(STAGE3_CFLAGS)" CXXFLAGS="$(STAGE3_CFLAGS)" \
28528 LIBCFLAGS="$(STAGE3_LIBCFLAGS)" \
28529 CFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS)" \
28530 CXXFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS)" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
168b158c 28531 $(TARGET-stage3-libiberty)
a8a96878
PB
28532
28533maybe-clean-stage3-libiberty: clean-stage3-libiberty
28534clean-stage3: clean-stage3-libiberty
28535clean-stage3-libiberty:
a6a4e782
DD
28536 @if [ $(current_stage) = stage3 ]; then \
28537 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
28538 else \
28539 [ -f $(HOST_SUBDIR)/stage3-libiberty/Makefile ] || exit 0; \
28540 $(MAKE) stage3-start; \
28541 fi; \
a8a96878 28542 cd $(HOST_SUBDIR)/libiberty && \
6532abb6 28543 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 28544 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 28545 clean
a8a96878
PB
28546@endif libiberty-bootstrap
28547
28548
2b41ef78
AO
28549.PHONY: all-stageb3g2-libiberty maybe-all-stageb3g2-libiberty
28550.PHONY: clean-stageb3g2-libiberty maybe-clean-stageb3g2-libiberty
28551maybe-all-stageb3g2-libiberty:
28552maybe-clean-stageb3g2-libiberty:
28553@if libiberty-bootstrap
28554maybe-all-stageb3g2-libiberty: all-stageb3g2-libiberty
28555all-stageb3g2: all-stageb3g2-libiberty
28556TARGET-stageb3g2-libiberty = $(TARGET-libiberty)
28557all-stageb3g2-libiberty: configure-stageb3g2-libiberty
28558 @[ $(current_stage) = stageb3g2 ] || $(MAKE) stageb3g2-start
28559 @r=`${PWD_COMMAND}`; export r; \
28560 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28561 $(HOST_EXPORTS) \
28562 $(POSTSTAGE1_HOST_EXPORTS) \
28563 cd $(HOST_SUBDIR)/libiberty && \
6532abb6
PB
28564 $(MAKE) $(BASE_FLAGS_TO_PASS) \
28565 CFLAGS="$(STAGE3_CFLAGS) -g2" CXXFLAGS="$(STAGE3_CFLAGS) -g2" \
28566 LIBCFLAGS="$(STAGE3_LIBCFLAGS) -g2" \
28567 CFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS) -g2" \
28568 CXXFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS) -g2" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
2b41ef78
AO
28569 $(TARGET-stageb3g2-libiberty)
28570
28571maybe-clean-stageb3g2-libiberty: clean-stageb3g2-libiberty
28572clean-stageb3g2: clean-stageb3g2-libiberty
28573clean-stageb3g2-libiberty:
28574 @if [ $(current_stage) = stageb3g2 ]; then \
28575 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
28576 else \
28577 [ -f $(HOST_SUBDIR)/stageb3g2-libiberty/Makefile ] || exit 0; \
28578 $(MAKE) stageb3g2-start; \
28579 fi; \
28580 cd $(HOST_SUBDIR)/libiberty && \
6532abb6 28581 $(MAKE) $(EXTRA_HOST_FLAGS) \
2b41ef78
AO
28582 $(POSTSTAGE1_FLAGS_TO_PASS) \
28583 clean
28584@endif libiberty-bootstrap
28585
28586
a8a96878
PB
28587.PHONY: all-stage4-libiberty maybe-all-stage4-libiberty
28588.PHONY: clean-stage4-libiberty maybe-clean-stage4-libiberty
28589maybe-all-stage4-libiberty:
28590maybe-clean-stage4-libiberty:
28591@if libiberty-bootstrap
28592maybe-all-stage4-libiberty: all-stage4-libiberty
28593all-stage4: all-stage4-libiberty
168b158c 28594TARGET-stage4-libiberty = $(TARGET-libiberty)
a8a96878 28595all-stage4-libiberty: configure-stage4-libiberty
ec92c4d6 28596 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a8a96878
PB
28597 @r=`${PWD_COMMAND}`; export r; \
28598 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28599 $(HOST_EXPORTS) \
28600 $(POSTSTAGE1_HOST_EXPORTS) \
28601 cd $(HOST_SUBDIR)/libiberty && \
6532abb6
PB
28602 $(MAKE) $(BASE_FLAGS_TO_PASS) \
28603 CFLAGS="$(STAGE4_CFLAGS)" CXXFLAGS="$(STAGE4_CFLAGS)" \
28604 LIBCFLAGS="$(STAGE4_CFLAGS)" \
28605 CFLAGS_FOR_TARGET="$(STAGE4_CFLAGS)" \
28606 CXXFLAGS_FOR_TARGET="$(STAGE4_CFLAGS)" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
168b158c 28607 $(TARGET-stage4-libiberty)
a8a96878
PB
28608
28609maybe-clean-stage4-libiberty: clean-stage4-libiberty
28610clean-stage4: clean-stage4-libiberty
28611clean-stage4-libiberty:
a6a4e782
DD
28612 @if [ $(current_stage) = stage4 ]; then \
28613 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
28614 else \
28615 [ -f $(HOST_SUBDIR)/stage4-libiberty/Makefile ] || exit 0; \
28616 $(MAKE) stage4-start; \
28617 fi; \
a8a96878 28618 cd $(HOST_SUBDIR)/libiberty && \
6532abb6 28619 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 28620 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 28621 clean
a8a96878
PB
28622@endif libiberty-bootstrap
28623
28624
28625.PHONY: all-stageprofile-libiberty maybe-all-stageprofile-libiberty
28626.PHONY: clean-stageprofile-libiberty maybe-clean-stageprofile-libiberty
28627maybe-all-stageprofile-libiberty:
28628maybe-clean-stageprofile-libiberty:
28629@if libiberty-bootstrap
28630maybe-all-stageprofile-libiberty: all-stageprofile-libiberty
28631all-stageprofile: all-stageprofile-libiberty
168b158c 28632TARGET-stageprofile-libiberty = $(TARGET-libiberty)
a8a96878 28633all-stageprofile-libiberty: configure-stageprofile-libiberty
ec92c4d6 28634 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a8a96878
PB
28635 @r=`${PWD_COMMAND}`; export r; \
28636 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28637 $(HOST_EXPORTS) \
28638 $(POSTSTAGE1_HOST_EXPORTS) \
28639 cd $(HOST_SUBDIR)/libiberty && \
6532abb6
PB
28640 $(MAKE) $(BASE_FLAGS_TO_PASS) \
28641 CFLAGS="$(STAGE2_CFLAGS) -fprofile-generate" CXXFLAGS="$(STAGE2_CFLAGS) -fprofile-generate" \
455b4f90
PB
28642 LIBCFLAGS="$(STAGE2_LIBCFLAGS)" \
28643 CFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)" \
28644 CXXFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
168b158c 28645 $(TARGET-stageprofile-libiberty)
a8a96878
PB
28646
28647maybe-clean-stageprofile-libiberty: clean-stageprofile-libiberty
28648clean-stageprofile: clean-stageprofile-libiberty
28649clean-stageprofile-libiberty:
a6a4e782
DD
28650 @if [ $(current_stage) = stageprofile ]; then \
28651 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
28652 else \
28653 [ -f $(HOST_SUBDIR)/stageprofile-libiberty/Makefile ] || exit 0; \
28654 $(MAKE) stageprofile-start; \
28655 fi; \
a8a96878 28656 cd $(HOST_SUBDIR)/libiberty && \
6532abb6 28657 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 28658 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 28659 clean
a8a96878
PB
28660@endif libiberty-bootstrap
28661
28662
28663.PHONY: all-stagefeedback-libiberty maybe-all-stagefeedback-libiberty
28664.PHONY: clean-stagefeedback-libiberty maybe-clean-stagefeedback-libiberty
28665maybe-all-stagefeedback-libiberty:
28666maybe-clean-stagefeedback-libiberty:
28667@if libiberty-bootstrap
28668maybe-all-stagefeedback-libiberty: all-stagefeedback-libiberty
28669all-stagefeedback: all-stagefeedback-libiberty
168b158c 28670TARGET-stagefeedback-libiberty = $(TARGET-libiberty)
a8a96878 28671all-stagefeedback-libiberty: configure-stagefeedback-libiberty
ec92c4d6 28672 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a8a96878
PB
28673 @r=`${PWD_COMMAND}`; export r; \
28674 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28675 $(HOST_EXPORTS) \
28676 $(POSTSTAGE1_HOST_EXPORTS) \
28677 cd $(HOST_SUBDIR)/libiberty && \
6532abb6
PB
28678 $(MAKE) $(BASE_FLAGS_TO_PASS) \
28679 CFLAGS="$(STAGE3_CFLAGS) -fprofile-use" CXXFLAGS="$(STAGE3_CFLAGS) -fprofile-use" \
28680 LIBCFLAGS="$(STAGE3_LIBCFLAGS) -fprofile-use" \
28681 CFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS) -fprofile-use" \
28682 CXXFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS) -fprofile-use" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
168b158c 28683 $(TARGET-stagefeedback-libiberty)
a8a96878
PB
28684
28685maybe-clean-stagefeedback-libiberty: clean-stagefeedback-libiberty
28686clean-stagefeedback: clean-stagefeedback-libiberty
28687clean-stagefeedback-libiberty:
a6a4e782
DD
28688 @if [ $(current_stage) = stagefeedback ]; then \
28689 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
28690 else \
28691 [ -f $(HOST_SUBDIR)/stagefeedback-libiberty/Makefile ] || exit 0; \
28692 $(MAKE) stagefeedback-start; \
28693 fi; \
a8a96878 28694 cd $(HOST_SUBDIR)/libiberty && \
6532abb6 28695 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 28696 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 28697 clean
a8a96878
PB
28698@endif libiberty-bootstrap
28699
28700
28701
28702
28703
d5eec917
PB
28704.PHONY: check-libiberty maybe-check-libiberty
28705maybe-check-libiberty:
28706@if libiberty
28707maybe-check-libiberty: check-libiberty
657b58f4 28708
d5eec917 28709check-libiberty:
15b527ca 28710 @: $(MAKE); $(unstage)
8ec98d6c 28711 @r=`${PWD_COMMAND}`; export r; \
5230d454 28712 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 28713 $(HOST_EXPORTS) \
7fc2ca22
PB
28714 (cd $(HOST_SUBDIR)/libiberty && \
28715 $(MAKE) $(FLAGS_TO_PASS) check)
657b58f4 28716
d5eec917 28717@endif libiberty
657b58f4 28718
d5eec917
PB
28719.PHONY: install-libiberty maybe-install-libiberty
28720maybe-install-libiberty:
28721@if libiberty
28722maybe-install-libiberty: install-libiberty
657b58f4 28723
d5eec917 28724install-libiberty: installdirs
15b527ca 28725 @: $(MAKE); $(unstage)
8ec98d6c 28726 @r=`${PWD_COMMAND}`; export r; \
5230d454 28727 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 28728 $(HOST_EXPORTS) \
7fc2ca22 28729 (cd $(HOST_SUBDIR)/libiberty && \
93c60b6d 28730 $(MAKE) $(FLAGS_TO_PASS) install)
657b58f4 28731
d5eec917 28732@endif libiberty
657b58f4 28733
39bbbb69 28734# Other targets (info, dvi, pdf, etc.)
657b58f4 28735
d5eec917
PB
28736.PHONY: maybe-info-libiberty info-libiberty
28737maybe-info-libiberty:
28738@if libiberty
28739maybe-info-libiberty: info-libiberty
8ec98d6c 28740
d5eec917
PB
28741info-libiberty: \
28742 configure-libiberty
28743 @[ -f ./libiberty/Makefile ] || exit 0; \
5230d454
L
28744 r=`${PWD_COMMAND}`; export r; \
28745 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 28746 $(HOST_EXPORTS) \
d5eec917 28747 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
28748 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28749 done; \
b6fb961f 28750 echo "Doing info in libiberty" ; \
7fc2ca22 28751 (cd $(HOST_SUBDIR)/libiberty && \
b6fb961f
MS
28752 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28753 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28754 "RANLIB=$${RANLIB}" \
bffcbe34 28755 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
28756 info) \
28757 || exit 1
28758
28759@endif libiberty
28760
28761.PHONY: maybe-dvi-libiberty dvi-libiberty
28762maybe-dvi-libiberty:
28763@if libiberty
28764maybe-dvi-libiberty: dvi-libiberty
28765
28766dvi-libiberty: \
28767 configure-libiberty
28768 @[ -f ./libiberty/Makefile ] || exit 0; \
28769 r=`${PWD_COMMAND}`; export r; \
28770 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
28771 $(HOST_EXPORTS) \
28772 for flag in $(EXTRA_HOST_FLAGS) ; do \
28773 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28774 done; \
28775 echo "Doing dvi in libiberty" ; \
7fc2ca22 28776 (cd $(HOST_SUBDIR)/libiberty && \
657b58f4
NN
28777 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28778 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28779 "RANLIB=$${RANLIB}" \
bffcbe34 28780 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f 28781 dvi) \
657b58f4
NN
28782 || exit 1
28783
d5eec917 28784@endif libiberty
657b58f4 28785
39bbbb69
DD
28786.PHONY: maybe-pdf-libiberty pdf-libiberty
28787maybe-pdf-libiberty:
28788@if libiberty
28789maybe-pdf-libiberty: pdf-libiberty
28790
28791pdf-libiberty: \
28792 configure-libiberty
28793 @[ -f ./libiberty/Makefile ] || exit 0; \
28794 r=`${PWD_COMMAND}`; export r; \
28795 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28796 $(HOST_EXPORTS) \
28797 for flag in $(EXTRA_HOST_FLAGS) ; do \
28798 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28799 done; \
28800 echo "Doing pdf in libiberty" ; \
28801 (cd $(HOST_SUBDIR)/libiberty && \
28802 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28803 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28804 "RANLIB=$${RANLIB}" \
bffcbe34 28805 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
28806 pdf) \
28807 || exit 1
28808
28809@endif libiberty
28810
b6fb961f
MS
28811.PHONY: maybe-html-libiberty html-libiberty
28812maybe-html-libiberty:
d5eec917 28813@if libiberty
b6fb961f 28814maybe-html-libiberty: html-libiberty
657b58f4 28815
b6fb961f 28816html-libiberty: \
d5eec917
PB
28817 configure-libiberty
28818 @[ -f ./libiberty/Makefile ] || exit 0; \
5230d454
L
28819 r=`${PWD_COMMAND}`; export r; \
28820 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 28821 $(HOST_EXPORTS) \
d5eec917 28822 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
28823 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28824 done; \
b6fb961f 28825 echo "Doing html in libiberty" ; \
7fc2ca22 28826 (cd $(HOST_SUBDIR)/libiberty && \
657b58f4
NN
28827 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28828 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28829 "RANLIB=$${RANLIB}" \
bffcbe34 28830 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f 28831 html) \
657b58f4
NN
28832 || exit 1
28833
d5eec917 28834@endif libiberty
657b58f4 28835
d5eec917
PB
28836.PHONY: maybe-TAGS-libiberty TAGS-libiberty
28837maybe-TAGS-libiberty:
28838@if libiberty
28839maybe-TAGS-libiberty: TAGS-libiberty
657b58f4 28840
d5eec917
PB
28841TAGS-libiberty: \
28842 configure-libiberty
28843 @[ -f ./libiberty/Makefile ] || exit 0; \
5230d454
L
28844 r=`${PWD_COMMAND}`; export r; \
28845 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 28846 $(HOST_EXPORTS) \
d5eec917 28847 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
28848 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28849 done; \
d5eec917 28850 echo "Doing TAGS in libiberty" ; \
7fc2ca22 28851 (cd $(HOST_SUBDIR)/libiberty && \
657b58f4
NN
28852 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28853 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28854 "RANLIB=$${RANLIB}" \
bffcbe34 28855 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 28856 TAGS) \
657b58f4
NN
28857 || exit 1
28858
d5eec917 28859@endif libiberty
657b58f4 28860
d5eec917
PB
28861.PHONY: maybe-install-info-libiberty install-info-libiberty
28862maybe-install-info-libiberty:
28863@if libiberty
28864maybe-install-info-libiberty: install-info-libiberty
657b58f4 28865
d5eec917
PB
28866install-info-libiberty: \
28867 configure-libiberty \
28868 info-libiberty
28869 @[ -f ./libiberty/Makefile ] || exit 0; \
5230d454
L
28870 r=`${PWD_COMMAND}`; export r; \
28871 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 28872 $(HOST_EXPORTS) \
d5eec917 28873 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
28874 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28875 done; \
d5eec917 28876 echo "Doing install-info in libiberty" ; \
7fc2ca22 28877 (cd $(HOST_SUBDIR)/libiberty && \
657b58f4
NN
28878 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28879 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28880 "RANLIB=$${RANLIB}" \
bffcbe34 28881 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 28882 install-info) \
657b58f4
NN
28883 || exit 1
28884
d5eec917 28885@endif libiberty
657b58f4 28886
d4954b6d
DD
28887.PHONY: maybe-install-pdf-libiberty install-pdf-libiberty
28888maybe-install-pdf-libiberty:
28889@if libiberty
28890maybe-install-pdf-libiberty: install-pdf-libiberty
28891
28892install-pdf-libiberty: \
28893 configure-libiberty \
28894 pdf-libiberty
28895 @[ -f ./libiberty/Makefile ] || exit 0; \
28896 r=`${PWD_COMMAND}`; export r; \
28897 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28898 $(HOST_EXPORTS) \
28899 for flag in $(EXTRA_HOST_FLAGS) ; do \
28900 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28901 done; \
28902 echo "Doing install-pdf in libiberty" ; \
28903 (cd $(HOST_SUBDIR)/libiberty && \
28904 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28905 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28906 "RANLIB=$${RANLIB}" \
bffcbe34 28907 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
28908 install-pdf) \
28909 || exit 1
28910
28911@endif libiberty
28912
83c9add4
CD
28913.PHONY: maybe-install-html-libiberty install-html-libiberty
28914maybe-install-html-libiberty:
28915@if libiberty
28916maybe-install-html-libiberty: install-html-libiberty
28917
28918install-html-libiberty: \
28919 configure-libiberty \
28920 html-libiberty
28921 @[ -f ./libiberty/Makefile ] || exit 0; \
28922 r=`${PWD_COMMAND}`; export r; \
28923 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28924 $(HOST_EXPORTS) \
28925 for flag in $(EXTRA_HOST_FLAGS) ; do \
28926 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28927 done; \
28928 echo "Doing install-html in libiberty" ; \
28929 (cd $(HOST_SUBDIR)/libiberty && \
28930 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28931 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28932 "RANLIB=$${RANLIB}" \
bffcbe34 28933 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
28934 install-html) \
28935 || exit 1
28936
28937@endif libiberty
28938
d5eec917
PB
28939.PHONY: maybe-installcheck-libiberty installcheck-libiberty
28940maybe-installcheck-libiberty:
28941@if libiberty
28942maybe-installcheck-libiberty: installcheck-libiberty
657b58f4 28943
d5eec917
PB
28944installcheck-libiberty: \
28945 configure-libiberty
28946 @[ -f ./libiberty/Makefile ] || exit 0; \
5230d454
L
28947 r=`${PWD_COMMAND}`; export r; \
28948 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 28949 $(HOST_EXPORTS) \
d5eec917 28950 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
28951 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28952 done; \
d5eec917 28953 echo "Doing installcheck in libiberty" ; \
7fc2ca22 28954 (cd $(HOST_SUBDIR)/libiberty && \
657b58f4
NN
28955 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28956 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28957 "RANLIB=$${RANLIB}" \
bffcbe34 28958 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 28959 installcheck) \
657b58f4
NN
28960 || exit 1
28961
d5eec917 28962@endif libiberty
657b58f4 28963
d5eec917
PB
28964.PHONY: maybe-mostlyclean-libiberty mostlyclean-libiberty
28965maybe-mostlyclean-libiberty:
28966@if libiberty
28967maybe-mostlyclean-libiberty: mostlyclean-libiberty
657b58f4 28968
d5eec917
PB
28969mostlyclean-libiberty:
28970 @[ -f ./libiberty/Makefile ] || exit 0; \
5230d454
L
28971 r=`${PWD_COMMAND}`; export r; \
28972 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 28973 $(HOST_EXPORTS) \
d5eec917 28974 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
28975 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28976 done; \
d5eec917 28977 echo "Doing mostlyclean in libiberty" ; \
7fc2ca22 28978 (cd $(HOST_SUBDIR)/libiberty && \
657b58f4
NN
28979 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28980 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28981 "RANLIB=$${RANLIB}" \
bffcbe34 28982 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 28983 mostlyclean) \
657b58f4
NN
28984 || exit 1
28985
d5eec917 28986@endif libiberty
657b58f4 28987
d5eec917
PB
28988.PHONY: maybe-clean-libiberty clean-libiberty
28989maybe-clean-libiberty:
28990@if libiberty
28991maybe-clean-libiberty: clean-libiberty
657b58f4 28992
d5eec917
PB
28993clean-libiberty:
28994 @[ -f ./libiberty/Makefile ] || exit 0; \
5230d454
L
28995 r=`${PWD_COMMAND}`; export r; \
28996 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 28997 $(HOST_EXPORTS) \
d5eec917 28998 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
28999 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29000 done; \
d5eec917 29001 echo "Doing clean in libiberty" ; \
7fc2ca22 29002 (cd $(HOST_SUBDIR)/libiberty && \
657b58f4
NN
29003 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29004 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29005 "RANLIB=$${RANLIB}" \
bffcbe34 29006 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 29007 clean) \
657b58f4
NN
29008 || exit 1
29009
d5eec917 29010@endif libiberty
657b58f4 29011
d5eec917
PB
29012.PHONY: maybe-distclean-libiberty distclean-libiberty
29013maybe-distclean-libiberty:
29014@if libiberty
29015maybe-distclean-libiberty: distclean-libiberty
657b58f4 29016
d5eec917
PB
29017distclean-libiberty:
29018 @[ -f ./libiberty/Makefile ] || exit 0; \
5230d454
L
29019 r=`${PWD_COMMAND}`; export r; \
29020 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 29021 $(HOST_EXPORTS) \
d5eec917 29022 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
29023 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29024 done; \
d5eec917 29025 echo "Doing distclean in libiberty" ; \
7fc2ca22 29026 (cd $(HOST_SUBDIR)/libiberty && \
657b58f4
NN
29027 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29028 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29029 "RANLIB=$${RANLIB}" \
bffcbe34 29030 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 29031 distclean) \
657b58f4
NN
29032 || exit 1
29033
d5eec917 29034@endif libiberty
657b58f4 29035
d5eec917
PB
29036.PHONY: maybe-maintainer-clean-libiberty maintainer-clean-libiberty
29037maybe-maintainer-clean-libiberty:
29038@if libiberty
29039maybe-maintainer-clean-libiberty: maintainer-clean-libiberty
657b58f4 29040
d5eec917
PB
29041maintainer-clean-libiberty:
29042 @[ -f ./libiberty/Makefile ] || exit 0; \
5230d454
L
29043 r=`${PWD_COMMAND}`; export r; \
29044 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 29045 $(HOST_EXPORTS) \
d5eec917 29046 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
29047 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29048 done; \
d5eec917 29049 echo "Doing maintainer-clean in libiberty" ; \
7fc2ca22 29050 (cd $(HOST_SUBDIR)/libiberty && \
657b58f4
NN
29051 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29052 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29053 "RANLIB=$${RANLIB}" \
bffcbe34 29054 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 29055 maintainer-clean) \
657b58f4
NN
29056 || exit 1
29057
d5eec917 29058@endif libiberty
657b58f4 29059
657b58f4 29060
f0fdfd34 29061
d5eec917
PB
29062.PHONY: configure-libtool maybe-configure-libtool
29063maybe-configure-libtool:
e1e5148c
CD
29064@if gcc-bootstrap
29065configure-libtool: stage_current
29066@endif gcc-bootstrap
d5eec917
PB
29067@if libtool
29068maybe-configure-libtool: configure-libtool
ec92c4d6 29069configure-libtool:
15b527ca 29070 @: $(MAKE); $(unstage)
ec92c4d6 29071 @r=`${PWD_COMMAND}`; export r; \
5230d454 29072 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
29073 test ! -f $(HOST_SUBDIR)/libtool/Makefile || exit 0; \
29074 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libtool ; \
a675b75a 29075 $(HOST_EXPORTS) \
f0fdfd34
PB
29076 echo Configuring in $(HOST_SUBDIR)/libtool; \
29077 cd "$(HOST_SUBDIR)/libtool" || exit 1; \
8ec98d6c 29078 case $(srcdir) in \
7fc2ca22
PB
29079 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
29080 *) topdir=`echo $(HOST_SUBDIR)/libtool/ | \
29081 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 29082 esac; \
7fc2ca22
PB
29083 srcdiroption="--srcdir=$${topdir}/libtool"; \
29084 libsrcdir="$$s/libtool"; \
8ec98d6c 29085 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
29086 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
29087 --target=${target_alias} $${srcdiroption} \
657b58f4 29088 || exit 1
d5eec917 29089@endif libtool
657b58f4 29090
f0fdfd34
PB
29091
29092
a8a96878
PB
29093
29094
d5eec917
PB
29095.PHONY: all-libtool maybe-all-libtool
29096maybe-all-libtool:
e1e5148c
CD
29097@if gcc-bootstrap
29098all-libtool: stage_current
29099@endif gcc-bootstrap
d5eec917 29100@if libtool
5e6b1f07 29101TARGET-libtool=all
d5eec917
PB
29102maybe-all-libtool: all-libtool
29103all-libtool: configure-libtool
15b527ca 29104 @: $(MAKE); $(unstage)
8ec98d6c
NN
29105 @r=`${PWD_COMMAND}`; export r; \
29106 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 29107 $(HOST_EXPORTS) \
7fc2ca22 29108 (cd $(HOST_SUBDIR)/libtool && \
6532abb6
PB
29109 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
29110 $(TARGET-libtool))
d5eec917 29111@endif libtool
657b58f4 29112
f0fdfd34 29113
a8a96878
PB
29114
29115
d5eec917
PB
29116.PHONY: check-libtool maybe-check-libtool
29117maybe-check-libtool:
29118@if libtool
29119maybe-check-libtool: check-libtool
657b58f4 29120
d5eec917 29121check-libtool:
15b527ca 29122 @: $(MAKE); $(unstage)
8ec98d6c 29123 @r=`${PWD_COMMAND}`; export r; \
5230d454 29124 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 29125 $(HOST_EXPORTS) \
7fc2ca22
PB
29126 (cd $(HOST_SUBDIR)/libtool && \
29127 $(MAKE) $(FLAGS_TO_PASS) check)
657b58f4 29128
d5eec917 29129@endif libtool
657b58f4 29130
d5eec917
PB
29131.PHONY: install-libtool maybe-install-libtool
29132maybe-install-libtool:
29133@if libtool
29134maybe-install-libtool: install-libtool
657b58f4 29135
d5eec917 29136install-libtool: installdirs
15b527ca 29137 @: $(MAKE); $(unstage)
8ec98d6c 29138 @r=`${PWD_COMMAND}`; export r; \
5230d454 29139 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 29140 $(HOST_EXPORTS) \
7fc2ca22 29141 (cd $(HOST_SUBDIR)/libtool && \
93c60b6d 29142 $(MAKE) $(FLAGS_TO_PASS) install)
657b58f4 29143
d5eec917 29144@endif libtool
657b58f4 29145
39bbbb69 29146# Other targets (info, dvi, pdf, etc.)
657b58f4 29147
d5eec917
PB
29148.PHONY: maybe-info-libtool info-libtool
29149maybe-info-libtool:
29150@if libtool
29151maybe-info-libtool: info-libtool
8ec98d6c 29152
d5eec917
PB
29153info-libtool: \
29154 configure-libtool
15b527ca 29155 @: $(MAKE); $(unstage)
d5eec917 29156 @[ -f ./libtool/Makefile ] || exit 0; \
5230d454
L
29157 r=`${PWD_COMMAND}`; export r; \
29158 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 29159 $(HOST_EXPORTS) \
d5eec917 29160 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
29161 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29162 done; \
d5eec917 29163 echo "Doing info in libtool" ; \
7fc2ca22 29164 (cd $(HOST_SUBDIR)/libtool && \
657b58f4
NN
29165 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29166 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29167 "RANLIB=$${RANLIB}" \
bffcbe34 29168 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 29169 info) \
657b58f4
NN
29170 || exit 1
29171
d5eec917 29172@endif libtool
657b58f4 29173
d5eec917
PB
29174.PHONY: maybe-dvi-libtool dvi-libtool
29175maybe-dvi-libtool:
29176@if libtool
29177maybe-dvi-libtool: dvi-libtool
657b58f4 29178
d5eec917
PB
29179dvi-libtool: \
29180 configure-libtool
15b527ca 29181 @: $(MAKE); $(unstage)
d5eec917 29182 @[ -f ./libtool/Makefile ] || exit 0; \
5230d454
L
29183 r=`${PWD_COMMAND}`; export r; \
29184 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 29185 $(HOST_EXPORTS) \
d5eec917 29186 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
29187 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29188 done; \
d5eec917 29189 echo "Doing dvi in libtool" ; \
7fc2ca22 29190 (cd $(HOST_SUBDIR)/libtool && \
657b58f4
NN
29191 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29192 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29193 "RANLIB=$${RANLIB}" \
bffcbe34 29194 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 29195 dvi) \
657b58f4
NN
29196 || exit 1
29197
d5eec917 29198@endif libtool
657b58f4 29199
39bbbb69
DD
29200.PHONY: maybe-pdf-libtool pdf-libtool
29201maybe-pdf-libtool:
29202@if libtool
29203maybe-pdf-libtool: pdf-libtool
29204
29205pdf-libtool: \
29206 configure-libtool
29207 @: $(MAKE); $(unstage)
29208 @[ -f ./libtool/Makefile ] || exit 0; \
29209 r=`${PWD_COMMAND}`; export r; \
29210 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29211 $(HOST_EXPORTS) \
29212 for flag in $(EXTRA_HOST_FLAGS) ; do \
29213 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29214 done; \
29215 echo "Doing pdf in libtool" ; \
29216 (cd $(HOST_SUBDIR)/libtool && \
29217 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29218 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29219 "RANLIB=$${RANLIB}" \
bffcbe34 29220 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
29221 pdf) \
29222 || exit 1
29223
29224@endif libtool
29225
b6fb961f
MS
29226.PHONY: maybe-html-libtool html-libtool
29227maybe-html-libtool:
29228@if libtool
29229maybe-html-libtool: html-libtool
29230
29231html-libtool: \
29232 configure-libtool
15b527ca 29233 @: $(MAKE); $(unstage)
b6fb961f
MS
29234 @[ -f ./libtool/Makefile ] || exit 0; \
29235 r=`${PWD_COMMAND}`; export r; \
29236 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
29237 $(HOST_EXPORTS) \
29238 for flag in $(EXTRA_HOST_FLAGS) ; do \
29239 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29240 done; \
29241 echo "Doing html in libtool" ; \
7fc2ca22 29242 (cd $(HOST_SUBDIR)/libtool && \
b6fb961f
MS
29243 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29244 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29245 "RANLIB=$${RANLIB}" \
bffcbe34 29246 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
29247 html) \
29248 || exit 1
29249
29250@endif libtool
29251
d5eec917
PB
29252.PHONY: maybe-TAGS-libtool TAGS-libtool
29253maybe-TAGS-libtool:
29254@if libtool
29255maybe-TAGS-libtool: TAGS-libtool
657b58f4 29256
d5eec917
PB
29257TAGS-libtool: \
29258 configure-libtool
15b527ca 29259 @: $(MAKE); $(unstage)
d5eec917 29260 @[ -f ./libtool/Makefile ] || exit 0; \
5230d454
L
29261 r=`${PWD_COMMAND}`; export r; \
29262 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 29263 $(HOST_EXPORTS) \
d5eec917 29264 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
29265 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29266 done; \
d5eec917 29267 echo "Doing TAGS in libtool" ; \
7fc2ca22 29268 (cd $(HOST_SUBDIR)/libtool && \
657b58f4
NN
29269 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29270 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29271 "RANLIB=$${RANLIB}" \
bffcbe34 29272 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 29273 TAGS) \
657b58f4
NN
29274 || exit 1
29275
d5eec917 29276@endif libtool
657b58f4 29277
d5eec917
PB
29278.PHONY: maybe-install-info-libtool install-info-libtool
29279maybe-install-info-libtool:
29280@if libtool
29281maybe-install-info-libtool: install-info-libtool
657b58f4 29282
d5eec917
PB
29283install-info-libtool: \
29284 configure-libtool \
29285 info-libtool
15b527ca 29286 @: $(MAKE); $(unstage)
d5eec917 29287 @[ -f ./libtool/Makefile ] || exit 0; \
5230d454
L
29288 r=`${PWD_COMMAND}`; export r; \
29289 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 29290 $(HOST_EXPORTS) \
d5eec917 29291 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
29292 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29293 done; \
d5eec917 29294 echo "Doing install-info in libtool" ; \
7fc2ca22 29295 (cd $(HOST_SUBDIR)/libtool && \
657b58f4
NN
29296 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29297 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29298 "RANLIB=$${RANLIB}" \
bffcbe34 29299 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 29300 install-info) \
657b58f4
NN
29301 || exit 1
29302
d5eec917 29303@endif libtool
657b58f4 29304
d4954b6d
DD
29305.PHONY: maybe-install-pdf-libtool install-pdf-libtool
29306maybe-install-pdf-libtool:
29307@if libtool
29308maybe-install-pdf-libtool: install-pdf-libtool
29309
29310install-pdf-libtool: \
29311 configure-libtool \
29312 pdf-libtool
29313 @: $(MAKE); $(unstage)
29314 @[ -f ./libtool/Makefile ] || exit 0; \
29315 r=`${PWD_COMMAND}`; export r; \
29316 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29317 $(HOST_EXPORTS) \
29318 for flag in $(EXTRA_HOST_FLAGS) ; do \
29319 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29320 done; \
29321 echo "Doing install-pdf in libtool" ; \
29322 (cd $(HOST_SUBDIR)/libtool && \
29323 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29324 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29325 "RANLIB=$${RANLIB}" \
bffcbe34 29326 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
29327 install-pdf) \
29328 || exit 1
29329
29330@endif libtool
29331
83c9add4
CD
29332.PHONY: maybe-install-html-libtool install-html-libtool
29333maybe-install-html-libtool:
29334@if libtool
29335maybe-install-html-libtool: install-html-libtool
29336
29337install-html-libtool: \
29338 configure-libtool \
29339 html-libtool
29340 @: $(MAKE); $(unstage)
29341 @[ -f ./libtool/Makefile ] || exit 0; \
29342 r=`${PWD_COMMAND}`; export r; \
29343 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29344 $(HOST_EXPORTS) \
29345 for flag in $(EXTRA_HOST_FLAGS) ; do \
29346 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29347 done; \
29348 echo "Doing install-html in libtool" ; \
29349 (cd $(HOST_SUBDIR)/libtool && \
29350 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29351 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29352 "RANLIB=$${RANLIB}" \
bffcbe34 29353 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
29354 install-html) \
29355 || exit 1
29356
29357@endif libtool
29358
d5eec917
PB
29359.PHONY: maybe-installcheck-libtool installcheck-libtool
29360maybe-installcheck-libtool:
29361@if libtool
29362maybe-installcheck-libtool: installcheck-libtool
657b58f4 29363
d5eec917
PB
29364installcheck-libtool: \
29365 configure-libtool
15b527ca 29366 @: $(MAKE); $(unstage)
d5eec917 29367 @[ -f ./libtool/Makefile ] || exit 0; \
5230d454
L
29368 r=`${PWD_COMMAND}`; export r; \
29369 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 29370 $(HOST_EXPORTS) \
d5eec917 29371 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
29372 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29373 done; \
d5eec917 29374 echo "Doing installcheck in libtool" ; \
7fc2ca22 29375 (cd $(HOST_SUBDIR)/libtool && \
657b58f4
NN
29376 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29377 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29378 "RANLIB=$${RANLIB}" \
bffcbe34 29379 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 29380 installcheck) \
657b58f4
NN
29381 || exit 1
29382
d5eec917 29383@endif libtool
657b58f4 29384
d5eec917
PB
29385.PHONY: maybe-mostlyclean-libtool mostlyclean-libtool
29386maybe-mostlyclean-libtool:
29387@if libtool
29388maybe-mostlyclean-libtool: mostlyclean-libtool
657b58f4 29389
d5eec917 29390mostlyclean-libtool:
15b527ca 29391 @: $(MAKE); $(unstage)
d5eec917 29392 @[ -f ./libtool/Makefile ] || exit 0; \
5230d454
L
29393 r=`${PWD_COMMAND}`; export r; \
29394 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 29395 $(HOST_EXPORTS) \
d5eec917 29396 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
29397 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29398 done; \
d5eec917 29399 echo "Doing mostlyclean in libtool" ; \
7fc2ca22 29400 (cd $(HOST_SUBDIR)/libtool && \
657b58f4
NN
29401 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29402 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29403 "RANLIB=$${RANLIB}" \
bffcbe34 29404 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 29405 mostlyclean) \
657b58f4
NN
29406 || exit 1
29407
d5eec917 29408@endif libtool
657b58f4 29409
d5eec917
PB
29410.PHONY: maybe-clean-libtool clean-libtool
29411maybe-clean-libtool:
29412@if libtool
29413maybe-clean-libtool: clean-libtool
657b58f4 29414
d5eec917 29415clean-libtool:
15b527ca 29416 @: $(MAKE); $(unstage)
d5eec917 29417 @[ -f ./libtool/Makefile ] || exit 0; \
5230d454
L
29418 r=`${PWD_COMMAND}`; export r; \
29419 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 29420 $(HOST_EXPORTS) \
d5eec917 29421 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
29422 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29423 done; \
d5eec917 29424 echo "Doing clean in libtool" ; \
7fc2ca22 29425 (cd $(HOST_SUBDIR)/libtool && \
657b58f4
NN
29426 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29427 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29428 "RANLIB=$${RANLIB}" \
bffcbe34 29429 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 29430 clean) \
657b58f4
NN
29431 || exit 1
29432
d5eec917 29433@endif libtool
657b58f4 29434
d5eec917
PB
29435.PHONY: maybe-distclean-libtool distclean-libtool
29436maybe-distclean-libtool:
29437@if libtool
29438maybe-distclean-libtool: distclean-libtool
657b58f4 29439
d5eec917 29440distclean-libtool:
15b527ca 29441 @: $(MAKE); $(unstage)
d5eec917 29442 @[ -f ./libtool/Makefile ] || exit 0; \
5230d454
L
29443 r=`${PWD_COMMAND}`; export r; \
29444 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 29445 $(HOST_EXPORTS) \
d5eec917 29446 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
29447 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29448 done; \
d5eec917 29449 echo "Doing distclean in libtool" ; \
7fc2ca22 29450 (cd $(HOST_SUBDIR)/libtool && \
657b58f4
NN
29451 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29452 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29453 "RANLIB=$${RANLIB}" \
bffcbe34 29454 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 29455 distclean) \
657b58f4
NN
29456 || exit 1
29457
d5eec917 29458@endif libtool
657b58f4 29459
d5eec917
PB
29460.PHONY: maybe-maintainer-clean-libtool maintainer-clean-libtool
29461maybe-maintainer-clean-libtool:
29462@if libtool
29463maybe-maintainer-clean-libtool: maintainer-clean-libtool
657b58f4 29464
d5eec917 29465maintainer-clean-libtool:
15b527ca 29466 @: $(MAKE); $(unstage)
d5eec917 29467 @[ -f ./libtool/Makefile ] || exit 0; \
5230d454
L
29468 r=`${PWD_COMMAND}`; export r; \
29469 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 29470 $(HOST_EXPORTS) \
d5eec917 29471 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
29472 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29473 done; \
d5eec917 29474 echo "Doing maintainer-clean in libtool" ; \
7fc2ca22 29475 (cd $(HOST_SUBDIR)/libtool && \
657b58f4
NN
29476 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29477 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29478 "RANLIB=$${RANLIB}" \
bffcbe34 29479 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 29480 maintainer-clean) \
657b58f4
NN
29481 || exit 1
29482
d5eec917 29483@endif libtool
657b58f4 29484
657b58f4 29485
f0fdfd34 29486
d5eec917
PB
29487.PHONY: configure-m4 maybe-configure-m4
29488maybe-configure-m4:
e1e5148c
CD
29489@if gcc-bootstrap
29490configure-m4: stage_current
29491@endif gcc-bootstrap
d5eec917
PB
29492@if m4
29493maybe-configure-m4: configure-m4
ec92c4d6 29494configure-m4:
15b527ca 29495 @: $(MAKE); $(unstage)
ec92c4d6 29496 @r=`${PWD_COMMAND}`; export r; \
5230d454 29497 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
29498 test ! -f $(HOST_SUBDIR)/m4/Makefile || exit 0; \
29499 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/m4 ; \
a675b75a 29500 $(HOST_EXPORTS) \
f0fdfd34
PB
29501 echo Configuring in $(HOST_SUBDIR)/m4; \
29502 cd "$(HOST_SUBDIR)/m4" || exit 1; \
8ec98d6c 29503 case $(srcdir) in \
7fc2ca22
PB
29504 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
29505 *) topdir=`echo $(HOST_SUBDIR)/m4/ | \
29506 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 29507 esac; \
7fc2ca22
PB
29508 srcdiroption="--srcdir=$${topdir}/m4"; \
29509 libsrcdir="$$s/m4"; \
8ec98d6c 29510 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
29511 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
29512 --target=${target_alias} $${srcdiroption} \
657b58f4 29513 || exit 1
d5eec917 29514@endif m4
657b58f4 29515
f0fdfd34
PB
29516
29517
a8a96878
PB
29518
29519
d5eec917
PB
29520.PHONY: all-m4 maybe-all-m4
29521maybe-all-m4:
e1e5148c
CD
29522@if gcc-bootstrap
29523all-m4: stage_current
29524@endif gcc-bootstrap
d5eec917 29525@if m4
5e6b1f07 29526TARGET-m4=all
d5eec917
PB
29527maybe-all-m4: all-m4
29528all-m4: configure-m4
15b527ca 29529 @: $(MAKE); $(unstage)
8ec98d6c
NN
29530 @r=`${PWD_COMMAND}`; export r; \
29531 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 29532 $(HOST_EXPORTS) \
7fc2ca22 29533 (cd $(HOST_SUBDIR)/m4 && \
6532abb6
PB
29534 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
29535 $(TARGET-m4))
d5eec917 29536@endif m4
8ec98d6c 29537
f0fdfd34 29538
a8a96878
PB
29539
29540
d5eec917
PB
29541.PHONY: check-m4 maybe-check-m4
29542maybe-check-m4:
29543@if m4
29544maybe-check-m4: check-m4
657b58f4 29545
d5eec917 29546check-m4:
15b527ca 29547 @: $(MAKE); $(unstage)
8ec98d6c
NN
29548 @r=`${PWD_COMMAND}`; export r; \
29549 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 29550 $(HOST_EXPORTS) \
7fc2ca22
PB
29551 (cd $(HOST_SUBDIR)/m4 && \
29552 $(MAKE) $(FLAGS_TO_PASS) check)
657b58f4 29553
d5eec917 29554@endif m4
8ec98d6c 29555
d5eec917
PB
29556.PHONY: install-m4 maybe-install-m4
29557maybe-install-m4:
29558@if m4
29559maybe-install-m4: install-m4
8ec98d6c 29560
d5eec917 29561install-m4: installdirs
15b527ca 29562 @: $(MAKE); $(unstage)
8ec98d6c
NN
29563 @r=`${PWD_COMMAND}`; export r; \
29564 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 29565 $(HOST_EXPORTS) \
7fc2ca22 29566 (cd $(HOST_SUBDIR)/m4 && \
93c60b6d 29567 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 29568
d5eec917 29569@endif m4
8ec98d6c 29570
39bbbb69 29571# Other targets (info, dvi, pdf, etc.)
8ec98d6c 29572
d5eec917
PB
29573.PHONY: maybe-info-m4 info-m4
29574maybe-info-m4:
29575@if m4
29576maybe-info-m4: info-m4
8ec98d6c 29577
d5eec917
PB
29578info-m4: \
29579 configure-m4
15b527ca 29580 @: $(MAKE); $(unstage)
d5eec917 29581 @[ -f ./m4/Makefile ] || exit 0; \
5230d454
L
29582 r=`${PWD_COMMAND}`; export r; \
29583 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 29584 $(HOST_EXPORTS) \
d5eec917 29585 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
29586 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29587 done; \
d5eec917 29588 echo "Doing info in m4" ; \
7fc2ca22 29589 (cd $(HOST_SUBDIR)/m4 && \
657b58f4
NN
29590 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29591 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29592 "RANLIB=$${RANLIB}" \
bffcbe34 29593 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 29594 info) \
657b58f4
NN
29595 || exit 1
29596
d5eec917 29597@endif m4
657b58f4 29598
d5eec917
PB
29599.PHONY: maybe-dvi-m4 dvi-m4
29600maybe-dvi-m4:
29601@if m4
29602maybe-dvi-m4: dvi-m4
657b58f4 29603
d5eec917
PB
29604dvi-m4: \
29605 configure-m4
15b527ca 29606 @: $(MAKE); $(unstage)
d5eec917 29607 @[ -f ./m4/Makefile ] || exit 0; \
5230d454
L
29608 r=`${PWD_COMMAND}`; export r; \
29609 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 29610 $(HOST_EXPORTS) \
d5eec917 29611 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
29612 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29613 done; \
d5eec917 29614 echo "Doing dvi in m4" ; \
7fc2ca22 29615 (cd $(HOST_SUBDIR)/m4 && \
657b58f4
NN
29616 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29617 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29618 "RANLIB=$${RANLIB}" \
bffcbe34 29619 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 29620 dvi) \
657b58f4
NN
29621 || exit 1
29622
d5eec917 29623@endif m4
657b58f4 29624
39bbbb69
DD
29625.PHONY: maybe-pdf-m4 pdf-m4
29626maybe-pdf-m4:
29627@if m4
29628maybe-pdf-m4: pdf-m4
29629
29630pdf-m4: \
29631 configure-m4
29632 @: $(MAKE); $(unstage)
29633 @[ -f ./m4/Makefile ] || exit 0; \
29634 r=`${PWD_COMMAND}`; export r; \
29635 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29636 $(HOST_EXPORTS) \
29637 for flag in $(EXTRA_HOST_FLAGS) ; do \
29638 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29639 done; \
29640 echo "Doing pdf in m4" ; \
29641 (cd $(HOST_SUBDIR)/m4 && \
29642 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29643 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29644 "RANLIB=$${RANLIB}" \
bffcbe34 29645 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
29646 pdf) \
29647 || exit 1
29648
29649@endif m4
29650
b6fb961f
MS
29651.PHONY: maybe-html-m4 html-m4
29652maybe-html-m4:
29653@if m4
29654maybe-html-m4: html-m4
29655
29656html-m4: \
29657 configure-m4
15b527ca 29658 @: $(MAKE); $(unstage)
b6fb961f
MS
29659 @[ -f ./m4/Makefile ] || exit 0; \
29660 r=`${PWD_COMMAND}`; export r; \
29661 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
29662 $(HOST_EXPORTS) \
29663 for flag in $(EXTRA_HOST_FLAGS) ; do \
29664 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29665 done; \
29666 echo "Doing html in m4" ; \
7fc2ca22 29667 (cd $(HOST_SUBDIR)/m4 && \
b6fb961f
MS
29668 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29669 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29670 "RANLIB=$${RANLIB}" \
bffcbe34 29671 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
29672 html) \
29673 || exit 1
29674
29675@endif m4
29676
d5eec917
PB
29677.PHONY: maybe-TAGS-m4 TAGS-m4
29678maybe-TAGS-m4:
29679@if m4
29680maybe-TAGS-m4: TAGS-m4
657b58f4 29681
d5eec917
PB
29682TAGS-m4: \
29683 configure-m4
15b527ca 29684 @: $(MAKE); $(unstage)
d5eec917 29685 @[ -f ./m4/Makefile ] || exit 0; \
5230d454
L
29686 r=`${PWD_COMMAND}`; export r; \
29687 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 29688 $(HOST_EXPORTS) \
d5eec917 29689 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
29690 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29691 done; \
d5eec917 29692 echo "Doing TAGS in m4" ; \
7fc2ca22 29693 (cd $(HOST_SUBDIR)/m4 && \
657b58f4
NN
29694 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29695 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29696 "RANLIB=$${RANLIB}" \
bffcbe34 29697 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 29698 TAGS) \
657b58f4
NN
29699 || exit 1
29700
d5eec917 29701@endif m4
657b58f4 29702
d5eec917
PB
29703.PHONY: maybe-install-info-m4 install-info-m4
29704maybe-install-info-m4:
29705@if m4
29706maybe-install-info-m4: install-info-m4
657b58f4 29707
d5eec917
PB
29708install-info-m4: \
29709 configure-m4 \
29710 info-m4
15b527ca 29711 @: $(MAKE); $(unstage)
d5eec917 29712 @[ -f ./m4/Makefile ] || exit 0; \
5230d454
L
29713 r=`${PWD_COMMAND}`; export r; \
29714 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 29715 $(HOST_EXPORTS) \
d5eec917 29716 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
29717 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29718 done; \
d5eec917 29719 echo "Doing install-info in m4" ; \
7fc2ca22 29720 (cd $(HOST_SUBDIR)/m4 && \
657b58f4
NN
29721 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29722 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29723 "RANLIB=$${RANLIB}" \
bffcbe34 29724 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 29725 install-info) \
657b58f4
NN
29726 || exit 1
29727
d5eec917 29728@endif m4
657b58f4 29729
d4954b6d
DD
29730.PHONY: maybe-install-pdf-m4 install-pdf-m4
29731maybe-install-pdf-m4:
29732@if m4
29733maybe-install-pdf-m4: install-pdf-m4
29734
29735install-pdf-m4: \
29736 configure-m4 \
29737 pdf-m4
29738 @: $(MAKE); $(unstage)
29739 @[ -f ./m4/Makefile ] || exit 0; \
29740 r=`${PWD_COMMAND}`; export r; \
29741 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29742 $(HOST_EXPORTS) \
29743 for flag in $(EXTRA_HOST_FLAGS) ; do \
29744 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29745 done; \
29746 echo "Doing install-pdf in m4" ; \
29747 (cd $(HOST_SUBDIR)/m4 && \
29748 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29749 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29750 "RANLIB=$${RANLIB}" \
bffcbe34 29751 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
29752 install-pdf) \
29753 || exit 1
29754
29755@endif m4
29756
83c9add4
CD
29757.PHONY: maybe-install-html-m4 install-html-m4
29758maybe-install-html-m4:
29759@if m4
29760maybe-install-html-m4: install-html-m4
29761
29762install-html-m4: \
29763 configure-m4 \
29764 html-m4
29765 @: $(MAKE); $(unstage)
29766 @[ -f ./m4/Makefile ] || exit 0; \
29767 r=`${PWD_COMMAND}`; export r; \
29768 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29769 $(HOST_EXPORTS) \
29770 for flag in $(EXTRA_HOST_FLAGS) ; do \
29771 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29772 done; \
29773 echo "Doing install-html in m4" ; \
29774 (cd $(HOST_SUBDIR)/m4 && \
29775 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29776 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29777 "RANLIB=$${RANLIB}" \
bffcbe34 29778 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
29779 install-html) \
29780 || exit 1
29781
29782@endif m4
29783
d5eec917
PB
29784.PHONY: maybe-installcheck-m4 installcheck-m4
29785maybe-installcheck-m4:
29786@if m4
29787maybe-installcheck-m4: installcheck-m4
657b58f4 29788
d5eec917
PB
29789installcheck-m4: \
29790 configure-m4
15b527ca 29791 @: $(MAKE); $(unstage)
d5eec917 29792 @[ -f ./m4/Makefile ] || exit 0; \
5230d454
L
29793 r=`${PWD_COMMAND}`; export r; \
29794 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 29795 $(HOST_EXPORTS) \
d5eec917 29796 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
29797 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29798 done; \
d5eec917 29799 echo "Doing installcheck in m4" ; \
7fc2ca22 29800 (cd $(HOST_SUBDIR)/m4 && \
657b58f4
NN
29801 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29802 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29803 "RANLIB=$${RANLIB}" \
bffcbe34 29804 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 29805 installcheck) \
657b58f4
NN
29806 || exit 1
29807
d5eec917 29808@endif m4
657b58f4 29809
d5eec917
PB
29810.PHONY: maybe-mostlyclean-m4 mostlyclean-m4
29811maybe-mostlyclean-m4:
29812@if m4
29813maybe-mostlyclean-m4: mostlyclean-m4
657b58f4 29814
d5eec917 29815mostlyclean-m4:
15b527ca 29816 @: $(MAKE); $(unstage)
d5eec917 29817 @[ -f ./m4/Makefile ] || exit 0; \
5230d454
L
29818 r=`${PWD_COMMAND}`; export r; \
29819 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 29820 $(HOST_EXPORTS) \
d5eec917 29821 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
29822 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29823 done; \
d5eec917 29824 echo "Doing mostlyclean in m4" ; \
7fc2ca22 29825 (cd $(HOST_SUBDIR)/m4 && \
657b58f4
NN
29826 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29827 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29828 "RANLIB=$${RANLIB}" \
bffcbe34 29829 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 29830 mostlyclean) \
657b58f4
NN
29831 || exit 1
29832
d5eec917 29833@endif m4
657b58f4 29834
d5eec917
PB
29835.PHONY: maybe-clean-m4 clean-m4
29836maybe-clean-m4:
29837@if m4
29838maybe-clean-m4: clean-m4
657b58f4 29839
d5eec917 29840clean-m4:
15b527ca 29841 @: $(MAKE); $(unstage)
d5eec917 29842 @[ -f ./m4/Makefile ] || exit 0; \
5230d454
L
29843 r=`${PWD_COMMAND}`; export r; \
29844 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 29845 $(HOST_EXPORTS) \
d5eec917 29846 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
29847 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29848 done; \
d5eec917 29849 echo "Doing clean in m4" ; \
7fc2ca22 29850 (cd $(HOST_SUBDIR)/m4 && \
657b58f4
NN
29851 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29852 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29853 "RANLIB=$${RANLIB}" \
bffcbe34 29854 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 29855 clean) \
657b58f4
NN
29856 || exit 1
29857
d5eec917 29858@endif m4
657b58f4 29859
d5eec917
PB
29860.PHONY: maybe-distclean-m4 distclean-m4
29861maybe-distclean-m4:
29862@if m4
29863maybe-distclean-m4: distclean-m4
d832a288 29864
d5eec917 29865distclean-m4:
15b527ca 29866 @: $(MAKE); $(unstage)
d5eec917 29867 @[ -f ./m4/Makefile ] || exit 0; \
d832a288
DD
29868 r=`${PWD_COMMAND}`; export r; \
29869 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 29870 $(HOST_EXPORTS) \
d5eec917 29871 for flag in $(EXTRA_HOST_FLAGS) ; do \
d832a288
DD
29872 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29873 done; \
d5eec917 29874 echo "Doing distclean in m4" ; \
7fc2ca22 29875 (cd $(HOST_SUBDIR)/m4 && \
d832a288
DD
29876 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29877 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29878 "RANLIB=$${RANLIB}" \
bffcbe34 29879 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 29880 distclean) \
d832a288
DD
29881 || exit 1
29882
d5eec917 29883@endif m4
d832a288 29884
d5eec917
PB
29885.PHONY: maybe-maintainer-clean-m4 maintainer-clean-m4
29886maybe-maintainer-clean-m4:
29887@if m4
29888maybe-maintainer-clean-m4: maintainer-clean-m4
657b58f4 29889
d5eec917 29890maintainer-clean-m4:
15b527ca 29891 @: $(MAKE); $(unstage)
d5eec917 29892 @[ -f ./m4/Makefile ] || exit 0; \
8ec98d6c 29893 r=`${PWD_COMMAND}`; export r; \
5230d454 29894 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 29895 $(HOST_EXPORTS) \
d5eec917 29896 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
29897 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29898 done; \
d5eec917 29899 echo "Doing maintainer-clean in m4" ; \
7fc2ca22 29900 (cd $(HOST_SUBDIR)/m4 && \
8ec98d6c
NN
29901 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29902 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29903 "RANLIB=$${RANLIB}" \
bffcbe34 29904 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 29905 maintainer-clean) \
8ec98d6c 29906 || exit 1
a3acbf46 29907
d5eec917 29908@endif m4
a3acbf46 29909
a3acbf46 29910
f0fdfd34 29911
d5eec917
PB
29912.PHONY: configure-make maybe-configure-make
29913maybe-configure-make:
e1e5148c
CD
29914@if gcc-bootstrap
29915configure-make: stage_current
29916@endif gcc-bootstrap
d5eec917
PB
29917@if make
29918maybe-configure-make: configure-make
ec92c4d6 29919configure-make:
15b527ca 29920 @: $(MAKE); $(unstage)
ec92c4d6 29921 @r=`${PWD_COMMAND}`; export r; \
d5eec917 29922 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
29923 test ! -f $(HOST_SUBDIR)/make/Makefile || exit 0; \
29924 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/make ; \
d5eec917 29925 $(HOST_EXPORTS) \
f0fdfd34
PB
29926 echo Configuring in $(HOST_SUBDIR)/make; \
29927 cd "$(HOST_SUBDIR)/make" || exit 1; \
8ec98d6c 29928 case $(srcdir) in \
7fc2ca22
PB
29929 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
29930 *) topdir=`echo $(HOST_SUBDIR)/make/ | \
29931 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 29932 esac; \
7fc2ca22
PB
29933 srcdiroption="--srcdir=$${topdir}/make"; \
29934 libsrcdir="$$s/make"; \
8ec98d6c 29935 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
29936 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
29937 --target=${target_alias} $${srcdiroption} \
8ec98d6c 29938 || exit 1
d5eec917 29939@endif make
a3acbf46 29940
f0fdfd34
PB
29941
29942
a8a96878
PB
29943
29944
d5eec917
PB
29945.PHONY: all-make maybe-all-make
29946maybe-all-make:
e1e5148c
CD
29947@if gcc-bootstrap
29948all-make: stage_current
29949@endif gcc-bootstrap
d5eec917 29950@if make
5e6b1f07 29951TARGET-make=all
d5eec917
PB
29952maybe-all-make: all-make
29953all-make: configure-make
15b527ca 29954 @: $(MAKE); $(unstage)
8ec98d6c
NN
29955 @r=`${PWD_COMMAND}`; export r; \
29956 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 29957 $(HOST_EXPORTS) \
7fc2ca22 29958 (cd $(HOST_SUBDIR)/make && \
6532abb6
PB
29959 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
29960 $(TARGET-make))
d5eec917 29961@endif make
a3acbf46 29962
f0fdfd34 29963
a8a96878
PB
29964
29965
d5eec917
PB
29966.PHONY: check-make maybe-check-make
29967maybe-check-make:
29968@if make
29969maybe-check-make: check-make
a3acbf46 29970
d5eec917 29971check-make:
15b527ca 29972 @: $(MAKE); $(unstage)
d5eec917
PB
29973 @r=`${PWD_COMMAND}`; export r; \
29974 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d5eec917 29975 $(HOST_EXPORTS) \
7fc2ca22
PB
29976 (cd $(HOST_SUBDIR)/make && \
29977 $(MAKE) $(FLAGS_TO_PASS) check)
9b520963 29978
d5eec917 29979@endif make
70ffc148 29980
d5eec917
PB
29981.PHONY: install-make maybe-install-make
29982maybe-install-make:
29983@if make
29984maybe-install-make: install-make
8ec98d6c 29985
d5eec917 29986install-make: installdirs
15b527ca 29987 @: $(MAKE); $(unstage)
8ec98d6c
NN
29988 @r=`${PWD_COMMAND}`; export r; \
29989 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 29990 $(HOST_EXPORTS) \
7fc2ca22 29991 (cd $(HOST_SUBDIR)/make && \
93c60b6d 29992 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 29993
d5eec917 29994@endif make
8ec98d6c 29995
39bbbb69 29996# Other targets (info, dvi, pdf, etc.)
8ec98d6c 29997
d5eec917
PB
29998.PHONY: maybe-info-make info-make
29999maybe-info-make:
30000@if make
30001maybe-info-make: info-make
8ec98d6c 30002
d5eec917
PB
30003info-make: \
30004 configure-make
15b527ca 30005 @: $(MAKE); $(unstage)
d5eec917 30006 @[ -f ./make/Makefile ] || exit 0; \
8ec98d6c
NN
30007 r=`${PWD_COMMAND}`; export r; \
30008 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 30009 $(HOST_EXPORTS) \
d5eec917 30010 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
30011 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30012 done; \
d5eec917 30013 echo "Doing info in make" ; \
7fc2ca22 30014 (cd $(HOST_SUBDIR)/make && \
8ec98d6c
NN
30015 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30016 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30017 "RANLIB=$${RANLIB}" \
bffcbe34 30018 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 30019 info) \
8ec98d6c
NN
30020 || exit 1
30021
d5eec917 30022@endif make
8ec98d6c 30023
d5eec917
PB
30024.PHONY: maybe-dvi-make dvi-make
30025maybe-dvi-make:
30026@if make
30027maybe-dvi-make: dvi-make
8ec98d6c 30028
d5eec917
PB
30029dvi-make: \
30030 configure-make
15b527ca 30031 @: $(MAKE); $(unstage)
d5eec917 30032 @[ -f ./make/Makefile ] || exit 0; \
8ec98d6c
NN
30033 r=`${PWD_COMMAND}`; export r; \
30034 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 30035 $(HOST_EXPORTS) \
d5eec917 30036 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
30037 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30038 done; \
d5eec917 30039 echo "Doing dvi in make" ; \
7fc2ca22 30040 (cd $(HOST_SUBDIR)/make && \
8ec98d6c
NN
30041 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30042 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30043 "RANLIB=$${RANLIB}" \
bffcbe34 30044 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 30045 dvi) \
8ec98d6c 30046 || exit 1
70ffc148 30047
d5eec917 30048@endif make
a3acbf46 30049
39bbbb69
DD
30050.PHONY: maybe-pdf-make pdf-make
30051maybe-pdf-make:
30052@if make
30053maybe-pdf-make: pdf-make
30054
30055pdf-make: \
30056 configure-make
30057 @: $(MAKE); $(unstage)
30058 @[ -f ./make/Makefile ] || exit 0; \
30059 r=`${PWD_COMMAND}`; export r; \
30060 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30061 $(HOST_EXPORTS) \
30062 for flag in $(EXTRA_HOST_FLAGS) ; do \
30063 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30064 done; \
30065 echo "Doing pdf in make" ; \
30066 (cd $(HOST_SUBDIR)/make && \
30067 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30068 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30069 "RANLIB=$${RANLIB}" \
bffcbe34 30070 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
30071 pdf) \
30072 || exit 1
30073
30074@endif make
30075
b6fb961f
MS
30076.PHONY: maybe-html-make html-make
30077maybe-html-make:
30078@if make
30079maybe-html-make: html-make
30080
30081html-make: \
30082 configure-make
15b527ca 30083 @: $(MAKE); $(unstage)
b6fb961f
MS
30084 @[ -f ./make/Makefile ] || exit 0; \
30085 r=`${PWD_COMMAND}`; export r; \
30086 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
30087 $(HOST_EXPORTS) \
30088 for flag in $(EXTRA_HOST_FLAGS) ; do \
30089 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30090 done; \
30091 echo "Doing html in make" ; \
7fc2ca22 30092 (cd $(HOST_SUBDIR)/make && \
b6fb961f
MS
30093 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30094 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30095 "RANLIB=$${RANLIB}" \
bffcbe34 30096 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
30097 html) \
30098 || exit 1
30099
30100@endif make
30101
d5eec917
PB
30102.PHONY: maybe-TAGS-make TAGS-make
30103maybe-TAGS-make:
30104@if make
30105maybe-TAGS-make: TAGS-make
a3acbf46 30106
d5eec917
PB
30107TAGS-make: \
30108 configure-make
15b527ca 30109 @: $(MAKE); $(unstage)
d5eec917 30110 @[ -f ./make/Makefile ] || exit 0; \
8ec98d6c
NN
30111 r=`${PWD_COMMAND}`; export r; \
30112 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 30113 $(HOST_EXPORTS) \
d5eec917 30114 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
30115 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30116 done; \
d5eec917 30117 echo "Doing TAGS in make" ; \
7fc2ca22 30118 (cd $(HOST_SUBDIR)/make && \
8ec98d6c
NN
30119 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30120 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30121 "RANLIB=$${RANLIB}" \
bffcbe34 30122 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 30123 TAGS) \
8ec98d6c 30124 || exit 1
8ecc6504 30125
d5eec917 30126@endif make
8ecc6504 30127
d5eec917
PB
30128.PHONY: maybe-install-info-make install-info-make
30129maybe-install-info-make:
30130@if make
30131maybe-install-info-make: install-info-make
8ecc6504 30132
d5eec917
PB
30133install-info-make: \
30134 configure-make \
30135 info-make
15b527ca 30136 @: $(MAKE); $(unstage)
d5eec917 30137 @[ -f ./make/Makefile ] || exit 0; \
8ec98d6c
NN
30138 r=`${PWD_COMMAND}`; export r; \
30139 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 30140 $(HOST_EXPORTS) \
d5eec917 30141 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
30142 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30143 done; \
d5eec917 30144 echo "Doing install-info in make" ; \
7fc2ca22 30145 (cd $(HOST_SUBDIR)/make && \
8ec98d6c
NN
30146 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30147 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30148 "RANLIB=$${RANLIB}" \
bffcbe34 30149 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 30150 install-info) \
8ec98d6c 30151 || exit 1
8ecc6504 30152
d5eec917 30153@endif make
8ecc6504 30154
d4954b6d
DD
30155.PHONY: maybe-install-pdf-make install-pdf-make
30156maybe-install-pdf-make:
30157@if make
30158maybe-install-pdf-make: install-pdf-make
30159
30160install-pdf-make: \
30161 configure-make \
30162 pdf-make
30163 @: $(MAKE); $(unstage)
30164 @[ -f ./make/Makefile ] || exit 0; \
30165 r=`${PWD_COMMAND}`; export r; \
30166 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30167 $(HOST_EXPORTS) \
30168 for flag in $(EXTRA_HOST_FLAGS) ; do \
30169 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30170 done; \
30171 echo "Doing install-pdf in make" ; \
30172 (cd $(HOST_SUBDIR)/make && \
30173 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30174 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30175 "RANLIB=$${RANLIB}" \
bffcbe34 30176 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
30177 install-pdf) \
30178 || exit 1
30179
30180@endif make
30181
83c9add4
CD
30182.PHONY: maybe-install-html-make install-html-make
30183maybe-install-html-make:
30184@if make
30185maybe-install-html-make: install-html-make
30186
30187install-html-make: \
30188 configure-make \
30189 html-make
30190 @: $(MAKE); $(unstage)
30191 @[ -f ./make/Makefile ] || exit 0; \
30192 r=`${PWD_COMMAND}`; export r; \
30193 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30194 $(HOST_EXPORTS) \
30195 for flag in $(EXTRA_HOST_FLAGS) ; do \
30196 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30197 done; \
30198 echo "Doing install-html in make" ; \
30199 (cd $(HOST_SUBDIR)/make && \
30200 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30201 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30202 "RANLIB=$${RANLIB}" \
bffcbe34 30203 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
30204 install-html) \
30205 || exit 1
30206
30207@endif make
30208
d5eec917
PB
30209.PHONY: maybe-installcheck-make installcheck-make
30210maybe-installcheck-make:
30211@if make
30212maybe-installcheck-make: installcheck-make
43bdb69a 30213
d5eec917
PB
30214installcheck-make: \
30215 configure-make
15b527ca 30216 @: $(MAKE); $(unstage)
d5eec917 30217 @[ -f ./make/Makefile ] || exit 0; \
8ec98d6c
NN
30218 r=`${PWD_COMMAND}`; export r; \
30219 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 30220 $(HOST_EXPORTS) \
d5eec917 30221 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
30222 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30223 done; \
d5eec917 30224 echo "Doing installcheck in make" ; \
7fc2ca22 30225 (cd $(HOST_SUBDIR)/make && \
8ec98d6c
NN
30226 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30227 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30228 "RANLIB=$${RANLIB}" \
bffcbe34 30229 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 30230 installcheck) \
8ec98d6c 30231 || exit 1
43bdb69a 30232
d5eec917 30233@endif make
43bdb69a 30234
d5eec917
PB
30235.PHONY: maybe-mostlyclean-make mostlyclean-make
30236maybe-mostlyclean-make:
30237@if make
30238maybe-mostlyclean-make: mostlyclean-make
43bdb69a 30239
d5eec917 30240mostlyclean-make:
15b527ca 30241 @: $(MAKE); $(unstage)
d5eec917 30242 @[ -f ./make/Makefile ] || exit 0; \
5230d454
L
30243 r=`${PWD_COMMAND}`; export r; \
30244 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 30245 $(HOST_EXPORTS) \
d5eec917 30246 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
30247 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30248 done; \
d5eec917 30249 echo "Doing mostlyclean in make" ; \
7fc2ca22 30250 (cd $(HOST_SUBDIR)/make && \
8ec98d6c
NN
30251 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30252 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30253 "RANLIB=$${RANLIB}" \
bffcbe34 30254 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 30255 mostlyclean) \
2245eb63 30256 || exit 1
43bdb69a 30257
d5eec917 30258@endif make
8ec98d6c 30259
d5eec917
PB
30260.PHONY: maybe-clean-make clean-make
30261maybe-clean-make:
30262@if make
30263maybe-clean-make: clean-make
8ec98d6c 30264
d5eec917 30265clean-make:
15b527ca 30266 @: $(MAKE); $(unstage)
d5eec917 30267 @[ -f ./make/Makefile ] || exit 0; \
8ec98d6c
NN
30268 r=`${PWD_COMMAND}`; export r; \
30269 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 30270 $(HOST_EXPORTS) \
d5eec917 30271 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
30272 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30273 done; \
d5eec917 30274 echo "Doing clean in make" ; \
7fc2ca22 30275 (cd $(HOST_SUBDIR)/make && \
8ec98d6c
NN
30276 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30277 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30278 "RANLIB=$${RANLIB}" \
bffcbe34 30279 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 30280 clean) \
8ec98d6c
NN
30281 || exit 1
30282
d5eec917 30283@endif make
8ec98d6c 30284
d5eec917
PB
30285.PHONY: maybe-distclean-make distclean-make
30286maybe-distclean-make:
30287@if make
30288maybe-distclean-make: distclean-make
8ec98d6c 30289
d5eec917 30290distclean-make:
15b527ca 30291 @: $(MAKE); $(unstage)
d5eec917 30292 @[ -f ./make/Makefile ] || exit 0; \
8ec98d6c
NN
30293 r=`${PWD_COMMAND}`; export r; \
30294 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 30295 $(HOST_EXPORTS) \
d5eec917 30296 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
30297 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30298 done; \
d5eec917 30299 echo "Doing distclean in make" ; \
7fc2ca22 30300 (cd $(HOST_SUBDIR)/make && \
8ec98d6c
NN
30301 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30302 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30303 "RANLIB=$${RANLIB}" \
bffcbe34 30304 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 30305 distclean) \
8ec98d6c
NN
30306 || exit 1
30307
d5eec917 30308@endif make
8ec98d6c 30309
d5eec917
PB
30310.PHONY: maybe-maintainer-clean-make maintainer-clean-make
30311maybe-maintainer-clean-make:
30312@if make
30313maybe-maintainer-clean-make: maintainer-clean-make
8ec98d6c 30314
d5eec917 30315maintainer-clean-make:
15b527ca 30316 @: $(MAKE); $(unstage)
d5eec917 30317 @[ -f ./make/Makefile ] || exit 0; \
8ec98d6c 30318 r=`${PWD_COMMAND}`; export r; \
5230d454 30319 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 30320 $(HOST_EXPORTS) \
d5eec917 30321 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
30322 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30323 done; \
d5eec917 30324 echo "Doing maintainer-clean in make" ; \
7fc2ca22 30325 (cd $(HOST_SUBDIR)/make && \
8ec98d6c
NN
30326 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30327 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30328 "RANLIB=$${RANLIB}" \
bffcbe34 30329 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 30330 maintainer-clean) \
8ec98d6c 30331 || exit 1
8ecc6504 30332
d5eec917 30333@endif make
8ecc6504 30334
8ecc6504 30335
f0fdfd34 30336
d5eec917
PB
30337.PHONY: configure-mmalloc maybe-configure-mmalloc
30338maybe-configure-mmalloc:
e1e5148c
CD
30339@if gcc-bootstrap
30340configure-mmalloc: stage_current
30341@endif gcc-bootstrap
d5eec917
PB
30342@if mmalloc
30343maybe-configure-mmalloc: configure-mmalloc
ec92c4d6 30344configure-mmalloc:
15b527ca 30345 @: $(MAKE); $(unstage)
ec92c4d6 30346 @r=`${PWD_COMMAND}`; export r; \
5230d454 30347 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
30348 test ! -f $(HOST_SUBDIR)/mmalloc/Makefile || exit 0; \
30349 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mmalloc ; \
a675b75a 30350 $(HOST_EXPORTS) \
f0fdfd34
PB
30351 echo Configuring in $(HOST_SUBDIR)/mmalloc; \
30352 cd "$(HOST_SUBDIR)/mmalloc" || exit 1; \
94f860c0 30353 case $(srcdir) in \
7fc2ca22
PB
30354 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
30355 *) topdir=`echo $(HOST_SUBDIR)/mmalloc/ | \
30356 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 30357 esac; \
7fc2ca22
PB
30358 srcdiroption="--srcdir=$${topdir}/mmalloc"; \
30359 libsrcdir="$$s/mmalloc"; \
94f860c0 30360 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
30361 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
30362 --target=${target_alias} $${srcdiroption} \
94f860c0 30363 || exit 1
d5eec917 30364@endif mmalloc
94f860c0 30365
f0fdfd34
PB
30366
30367
a8a96878
PB
30368
30369
d5eec917
PB
30370.PHONY: all-mmalloc maybe-all-mmalloc
30371maybe-all-mmalloc:
e1e5148c
CD
30372@if gcc-bootstrap
30373all-mmalloc: stage_current
30374@endif gcc-bootstrap
d5eec917 30375@if mmalloc
5e6b1f07 30376TARGET-mmalloc=all
d5eec917
PB
30377maybe-all-mmalloc: all-mmalloc
30378all-mmalloc: configure-mmalloc
15b527ca 30379 @: $(MAKE); $(unstage)
5230d454
L
30380 @r=`${PWD_COMMAND}`; export r; \
30381 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 30382 $(HOST_EXPORTS) \
7fc2ca22 30383 (cd $(HOST_SUBDIR)/mmalloc && \
6532abb6
PB
30384 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
30385 $(TARGET-mmalloc))
d5eec917 30386@endif mmalloc
8ecc6504 30387
f0fdfd34 30388
a8a96878
PB
30389
30390
d5eec917
PB
30391.PHONY: check-mmalloc maybe-check-mmalloc
30392maybe-check-mmalloc:
30393@if mmalloc
30394maybe-check-mmalloc: check-mmalloc
8ecc6504 30395
d5eec917 30396check-mmalloc:
8ecc6504 30397
d5eec917 30398@endif mmalloc
8ecc6504 30399
d5eec917
PB
30400.PHONY: install-mmalloc maybe-install-mmalloc
30401maybe-install-mmalloc:
30402@if mmalloc
30403maybe-install-mmalloc: install-mmalloc
8ec98d6c 30404
d5eec917 30405install-mmalloc: installdirs
15b527ca 30406 @: $(MAKE); $(unstage)
8ec98d6c
NN
30407 @r=`${PWD_COMMAND}`; export r; \
30408 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 30409 $(HOST_EXPORTS) \
7fc2ca22 30410 (cd $(HOST_SUBDIR)/mmalloc && \
93c60b6d 30411 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 30412
d5eec917 30413@endif mmalloc
8ec98d6c 30414
39bbbb69 30415# Other targets (info, dvi, pdf, etc.)
8ec98d6c 30416
d5eec917
PB
30417.PHONY: maybe-info-mmalloc info-mmalloc
30418maybe-info-mmalloc:
30419@if mmalloc
30420maybe-info-mmalloc: info-mmalloc
8ec98d6c 30421
d5eec917
PB
30422info-mmalloc: \
30423 configure-mmalloc
15b527ca 30424 @: $(MAKE); $(unstage)
d5eec917 30425 @[ -f ./mmalloc/Makefile ] || exit 0; \
8ec98d6c
NN
30426 r=`${PWD_COMMAND}`; export r; \
30427 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 30428 $(HOST_EXPORTS) \
d5eec917 30429 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
30430 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30431 done; \
d5eec917 30432 echo "Doing info in mmalloc" ; \
7fc2ca22 30433 (cd $(HOST_SUBDIR)/mmalloc && \
8ec98d6c
NN
30434 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30435 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30436 "RANLIB=$${RANLIB}" \
bffcbe34 30437 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 30438 info) \
8ec98d6c
NN
30439 || exit 1
30440
d5eec917 30441@endif mmalloc
8ec98d6c 30442
d5eec917
PB
30443.PHONY: maybe-dvi-mmalloc dvi-mmalloc
30444maybe-dvi-mmalloc:
30445@if mmalloc
30446maybe-dvi-mmalloc: dvi-mmalloc
8ec98d6c 30447
d5eec917
PB
30448dvi-mmalloc: \
30449 configure-mmalloc
15b527ca 30450 @: $(MAKE); $(unstage)
d5eec917 30451 @[ -f ./mmalloc/Makefile ] || exit 0; \
8ec98d6c
NN
30452 r=`${PWD_COMMAND}`; export r; \
30453 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 30454 $(HOST_EXPORTS) \
d5eec917 30455 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
30456 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30457 done; \
d5eec917 30458 echo "Doing dvi in mmalloc" ; \
7fc2ca22 30459 (cd $(HOST_SUBDIR)/mmalloc && \
8ec98d6c
NN
30460 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30461 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30462 "RANLIB=$${RANLIB}" \
bffcbe34 30463 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 30464 dvi) \
8ec98d6c
NN
30465 || exit 1
30466
d5eec917 30467@endif mmalloc
8ec98d6c 30468
39bbbb69
DD
30469.PHONY: maybe-pdf-mmalloc pdf-mmalloc
30470maybe-pdf-mmalloc:
30471@if mmalloc
30472maybe-pdf-mmalloc: pdf-mmalloc
30473
30474pdf-mmalloc: \
30475 configure-mmalloc
30476 @: $(MAKE); $(unstage)
30477 @[ -f ./mmalloc/Makefile ] || exit 0; \
30478 r=`${PWD_COMMAND}`; export r; \
30479 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30480 $(HOST_EXPORTS) \
30481 for flag in $(EXTRA_HOST_FLAGS) ; do \
30482 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30483 done; \
30484 echo "Doing pdf in mmalloc" ; \
30485 (cd $(HOST_SUBDIR)/mmalloc && \
30486 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30487 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30488 "RANLIB=$${RANLIB}" \
bffcbe34 30489 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
30490 pdf) \
30491 || exit 1
30492
30493@endif mmalloc
30494
b6fb961f
MS
30495.PHONY: maybe-html-mmalloc html-mmalloc
30496maybe-html-mmalloc:
30497@if mmalloc
30498maybe-html-mmalloc: html-mmalloc
30499
30500html-mmalloc: \
30501 configure-mmalloc
15b527ca 30502 @: $(MAKE); $(unstage)
b6fb961f
MS
30503 @[ -f ./mmalloc/Makefile ] || exit 0; \
30504 r=`${PWD_COMMAND}`; export r; \
30505 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
30506 $(HOST_EXPORTS) \
30507 for flag in $(EXTRA_HOST_FLAGS) ; do \
30508 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30509 done; \
30510 echo "Doing html in mmalloc" ; \
7fc2ca22 30511 (cd $(HOST_SUBDIR)/mmalloc && \
b6fb961f
MS
30512 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30513 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30514 "RANLIB=$${RANLIB}" \
bffcbe34 30515 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
30516 html) \
30517 || exit 1
30518
30519@endif mmalloc
30520
d5eec917
PB
30521.PHONY: maybe-TAGS-mmalloc TAGS-mmalloc
30522maybe-TAGS-mmalloc:
30523@if mmalloc
30524maybe-TAGS-mmalloc: TAGS-mmalloc
8ec98d6c 30525
d5eec917
PB
30526TAGS-mmalloc: \
30527 configure-mmalloc
15b527ca 30528 @: $(MAKE); $(unstage)
d5eec917 30529 @[ -f ./mmalloc/Makefile ] || exit 0; \
8ec98d6c
NN
30530 r=`${PWD_COMMAND}`; export r; \
30531 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 30532 $(HOST_EXPORTS) \
d5eec917 30533 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
30534 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30535 done; \
d5eec917 30536 echo "Doing TAGS in mmalloc" ; \
7fc2ca22 30537 (cd $(HOST_SUBDIR)/mmalloc && \
8ec98d6c
NN
30538 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30539 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30540 "RANLIB=$${RANLIB}" \
bffcbe34 30541 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 30542 TAGS) \
8ec98d6c
NN
30543 || exit 1
30544
d5eec917 30545@endif mmalloc
8ec98d6c 30546
d5eec917
PB
30547.PHONY: maybe-install-info-mmalloc install-info-mmalloc
30548maybe-install-info-mmalloc:
30549@if mmalloc
30550maybe-install-info-mmalloc: install-info-mmalloc
8ec98d6c 30551
d5eec917
PB
30552install-info-mmalloc: \
30553 configure-mmalloc \
30554 info-mmalloc
15b527ca 30555 @: $(MAKE); $(unstage)
d5eec917 30556 @[ -f ./mmalloc/Makefile ] || exit 0; \
8ec98d6c
NN
30557 r=`${PWD_COMMAND}`; export r; \
30558 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 30559 $(HOST_EXPORTS) \
d5eec917 30560 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
30561 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30562 done; \
d5eec917 30563 echo "Doing install-info in mmalloc" ; \
7fc2ca22 30564 (cd $(HOST_SUBDIR)/mmalloc && \
8ec98d6c
NN
30565 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30566 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30567 "RANLIB=$${RANLIB}" \
bffcbe34 30568 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 30569 install-info) \
8ec98d6c
NN
30570 || exit 1
30571
d5eec917 30572@endif mmalloc
8ec98d6c 30573
d4954b6d
DD
30574.PHONY: maybe-install-pdf-mmalloc install-pdf-mmalloc
30575maybe-install-pdf-mmalloc:
30576@if mmalloc
30577maybe-install-pdf-mmalloc: install-pdf-mmalloc
30578
30579install-pdf-mmalloc: \
30580 configure-mmalloc \
30581 pdf-mmalloc
30582 @: $(MAKE); $(unstage)
30583 @[ -f ./mmalloc/Makefile ] || exit 0; \
30584 r=`${PWD_COMMAND}`; export r; \
30585 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30586 $(HOST_EXPORTS) \
30587 for flag in $(EXTRA_HOST_FLAGS) ; do \
30588 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30589 done; \
30590 echo "Doing install-pdf in mmalloc" ; \
30591 (cd $(HOST_SUBDIR)/mmalloc && \
30592 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30593 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30594 "RANLIB=$${RANLIB}" \
bffcbe34 30595 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
30596 install-pdf) \
30597 || exit 1
30598
30599@endif mmalloc
30600
83c9add4
CD
30601.PHONY: maybe-install-html-mmalloc install-html-mmalloc
30602maybe-install-html-mmalloc:
30603@if mmalloc
30604maybe-install-html-mmalloc: install-html-mmalloc
30605
30606install-html-mmalloc: \
30607 configure-mmalloc \
30608 html-mmalloc
30609 @: $(MAKE); $(unstage)
30610 @[ -f ./mmalloc/Makefile ] || exit 0; \
30611 r=`${PWD_COMMAND}`; export r; \
30612 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30613 $(HOST_EXPORTS) \
30614 for flag in $(EXTRA_HOST_FLAGS) ; do \
30615 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30616 done; \
30617 echo "Doing install-html in mmalloc" ; \
30618 (cd $(HOST_SUBDIR)/mmalloc && \
30619 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30620 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30621 "RANLIB=$${RANLIB}" \
bffcbe34 30622 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
30623 install-html) \
30624 || exit 1
30625
30626@endif mmalloc
30627
d5eec917
PB
30628.PHONY: maybe-installcheck-mmalloc installcheck-mmalloc
30629maybe-installcheck-mmalloc:
30630@if mmalloc
30631maybe-installcheck-mmalloc: installcheck-mmalloc
8ec98d6c 30632
d5eec917
PB
30633installcheck-mmalloc: \
30634 configure-mmalloc
15b527ca 30635 @: $(MAKE); $(unstage)
d5eec917 30636 @[ -f ./mmalloc/Makefile ] || exit 0; \
8ec98d6c
NN
30637 r=`${PWD_COMMAND}`; export r; \
30638 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 30639 $(HOST_EXPORTS) \
d5eec917 30640 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
30641 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30642 done; \
d5eec917 30643 echo "Doing installcheck in mmalloc" ; \
7fc2ca22 30644 (cd $(HOST_SUBDIR)/mmalloc && \
8ec98d6c
NN
30645 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30646 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30647 "RANLIB=$${RANLIB}" \
bffcbe34 30648 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 30649 installcheck) \
8ec98d6c
NN
30650 || exit 1
30651
d5eec917 30652@endif mmalloc
8ec98d6c 30653
d5eec917
PB
30654.PHONY: maybe-mostlyclean-mmalloc mostlyclean-mmalloc
30655maybe-mostlyclean-mmalloc:
30656@if mmalloc
30657maybe-mostlyclean-mmalloc: mostlyclean-mmalloc
8ec98d6c 30658
d5eec917 30659mostlyclean-mmalloc:
15b527ca 30660 @: $(MAKE); $(unstage)
d5eec917 30661 @[ -f ./mmalloc/Makefile ] || exit 0; \
8ec98d6c
NN
30662 r=`${PWD_COMMAND}`; export r; \
30663 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 30664 $(HOST_EXPORTS) \
d5eec917 30665 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
30666 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30667 done; \
d5eec917 30668 echo "Doing mostlyclean in mmalloc" ; \
7fc2ca22 30669 (cd $(HOST_SUBDIR)/mmalloc && \
8ec98d6c
NN
30670 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30671 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30672 "RANLIB=$${RANLIB}" \
bffcbe34 30673 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 30674 mostlyclean) \
8ec98d6c
NN
30675 || exit 1
30676
d5eec917 30677@endif mmalloc
8ec98d6c 30678
d5eec917
PB
30679.PHONY: maybe-clean-mmalloc clean-mmalloc
30680maybe-clean-mmalloc:
30681@if mmalloc
30682maybe-clean-mmalloc: clean-mmalloc
8ec98d6c 30683
d5eec917 30684clean-mmalloc:
15b527ca 30685 @: $(MAKE); $(unstage)
d5eec917 30686 @[ -f ./mmalloc/Makefile ] || exit 0; \
8ec98d6c
NN
30687 r=`${PWD_COMMAND}`; export r; \
30688 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 30689 $(HOST_EXPORTS) \
d5eec917 30690 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
30691 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30692 done; \
d5eec917 30693 echo "Doing clean in mmalloc" ; \
7fc2ca22 30694 (cd $(HOST_SUBDIR)/mmalloc && \
8ec98d6c
NN
30695 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30696 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30697 "RANLIB=$${RANLIB}" \
bffcbe34 30698 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 30699 clean) \
8ec98d6c
NN
30700 || exit 1
30701
d5eec917 30702@endif mmalloc
8ec98d6c 30703
d5eec917
PB
30704.PHONY: maybe-distclean-mmalloc distclean-mmalloc
30705maybe-distclean-mmalloc:
30706@if mmalloc
30707maybe-distclean-mmalloc: distclean-mmalloc
8ec98d6c 30708
d5eec917 30709distclean-mmalloc:
15b527ca 30710 @: $(MAKE); $(unstage)
d5eec917 30711 @[ -f ./mmalloc/Makefile ] || exit 0; \
8ec98d6c
NN
30712 r=`${PWD_COMMAND}`; export r; \
30713 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 30714 $(HOST_EXPORTS) \
d5eec917 30715 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
30716 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30717 done; \
d5eec917 30718 echo "Doing distclean in mmalloc" ; \
7fc2ca22 30719 (cd $(HOST_SUBDIR)/mmalloc && \
8ec98d6c
NN
30720 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30721 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30722 "RANLIB=$${RANLIB}" \
bffcbe34 30723 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 30724 distclean) \
8ec98d6c
NN
30725 || exit 1
30726
d5eec917 30727@endif mmalloc
8ec98d6c 30728
d5eec917
PB
30729.PHONY: maybe-maintainer-clean-mmalloc maintainer-clean-mmalloc
30730maybe-maintainer-clean-mmalloc:
30731@if mmalloc
30732maybe-maintainer-clean-mmalloc: maintainer-clean-mmalloc
8ec98d6c 30733
d5eec917 30734maintainer-clean-mmalloc:
15b527ca 30735 @: $(MAKE); $(unstage)
d5eec917 30736 @[ -f ./mmalloc/Makefile ] || exit 0; \
8ec98d6c
NN
30737 r=`${PWD_COMMAND}`; export r; \
30738 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 30739 $(HOST_EXPORTS) \
d5eec917 30740 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
30741 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30742 done; \
d5eec917 30743 echo "Doing maintainer-clean in mmalloc" ; \
7fc2ca22 30744 (cd $(HOST_SUBDIR)/mmalloc && \
8ec98d6c
NN
30745 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30746 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30747 "RANLIB=$${RANLIB}" \
bffcbe34 30748 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 30749 maintainer-clean) \
8ec98d6c 30750 || exit 1
70ffc148 30751
d5eec917 30752@endif mmalloc
8ecc6504
NN
30753
30754
f0fdfd34 30755
d5eec917
PB
30756.PHONY: configure-patch maybe-configure-patch
30757maybe-configure-patch:
e1e5148c
CD
30758@if gcc-bootstrap
30759configure-patch: stage_current
30760@endif gcc-bootstrap
d5eec917
PB
30761@if patch
30762maybe-configure-patch: configure-patch
ec92c4d6 30763configure-patch:
15b527ca 30764 @: $(MAKE); $(unstage)
ec92c4d6 30765 @r=`${PWD_COMMAND}`; export r; \
5230d454 30766 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
30767 test ! -f $(HOST_SUBDIR)/patch/Makefile || exit 0; \
30768 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/patch ; \
a675b75a 30769 $(HOST_EXPORTS) \
f0fdfd34
PB
30770 echo Configuring in $(HOST_SUBDIR)/patch; \
30771 cd "$(HOST_SUBDIR)/patch" || exit 1; \
94f860c0 30772 case $(srcdir) in \
7fc2ca22
PB
30773 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
30774 *) topdir=`echo $(HOST_SUBDIR)/patch/ | \
30775 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 30776 esac; \
7fc2ca22
PB
30777 srcdiroption="--srcdir=$${topdir}/patch"; \
30778 libsrcdir="$$s/patch"; \
94f860c0 30779 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
30780 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
30781 --target=${target_alias} $${srcdiroption} \
94f860c0 30782 || exit 1
d5eec917 30783@endif patch
94f860c0 30784
f0fdfd34
PB
30785
30786
a8a96878
PB
30787
30788
d5eec917
PB
30789.PHONY: all-patch maybe-all-patch
30790maybe-all-patch:
e1e5148c
CD
30791@if gcc-bootstrap
30792all-patch: stage_current
30793@endif gcc-bootstrap
d5eec917 30794@if patch
5e6b1f07 30795TARGET-patch=all
d5eec917
PB
30796maybe-all-patch: all-patch
30797all-patch: configure-patch
15b527ca 30798 @: $(MAKE); $(unstage)
5230d454
L
30799 @r=`${PWD_COMMAND}`; export r; \
30800 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 30801 $(HOST_EXPORTS) \
7fc2ca22 30802 (cd $(HOST_SUBDIR)/patch && \
6532abb6
PB
30803 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
30804 $(TARGET-patch))
d5eec917 30805@endif patch
8ecc6504 30806
f0fdfd34 30807
a8a96878
PB
30808
30809
d5eec917
PB
30810.PHONY: check-patch maybe-check-patch
30811maybe-check-patch:
30812@if patch
30813maybe-check-patch: check-patch
8ecc6504 30814
d5eec917 30815check-patch:
15b527ca 30816 @: $(MAKE); $(unstage)
5230d454
L
30817 @r=`${PWD_COMMAND}`; export r; \
30818 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 30819 $(HOST_EXPORTS) \
7fc2ca22
PB
30820 (cd $(HOST_SUBDIR)/patch && \
30821 $(MAKE) $(FLAGS_TO_PASS) check)
8ecc6504 30822
d5eec917 30823@endif patch
8ecc6504 30824
d5eec917
PB
30825.PHONY: install-patch maybe-install-patch
30826maybe-install-patch:
30827@if patch
30828maybe-install-patch: install-patch
70ffc148 30829
d5eec917 30830install-patch: installdirs
15b527ca 30831 @: $(MAKE); $(unstage)
5230d454
L
30832 @r=`${PWD_COMMAND}`; export r; \
30833 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 30834 $(HOST_EXPORTS) \
7fc2ca22 30835 (cd $(HOST_SUBDIR)/patch && \
93c60b6d 30836 $(MAKE) $(FLAGS_TO_PASS) install)
8ecc6504 30837
d5eec917 30838@endif patch
8ecc6504 30839
39bbbb69 30840# Other targets (info, dvi, pdf, etc.)
8ec98d6c 30841
d5eec917
PB
30842.PHONY: maybe-info-patch info-patch
30843maybe-info-patch:
30844@if patch
30845maybe-info-patch: info-patch
8ec98d6c 30846
d5eec917
PB
30847info-patch: \
30848 configure-patch
15b527ca 30849 @: $(MAKE); $(unstage)
d5eec917 30850 @[ -f ./patch/Makefile ] || exit 0; \
8ec98d6c
NN
30851 r=`${PWD_COMMAND}`; export r; \
30852 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 30853 $(HOST_EXPORTS) \
d5eec917 30854 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
30855 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30856 done; \
d5eec917 30857 echo "Doing info in patch" ; \
7fc2ca22 30858 (cd $(HOST_SUBDIR)/patch && \
8ec98d6c
NN
30859 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30860 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30861 "RANLIB=$${RANLIB}" \
bffcbe34 30862 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 30863 info) \
8ec98d6c
NN
30864 || exit 1
30865
d5eec917 30866@endif patch
8ec98d6c 30867
d5eec917
PB
30868.PHONY: maybe-dvi-patch dvi-patch
30869maybe-dvi-patch:
30870@if patch
30871maybe-dvi-patch: dvi-patch
8ec98d6c 30872
d5eec917
PB
30873dvi-patch: \
30874 configure-patch
15b527ca 30875 @: $(MAKE); $(unstage)
d5eec917 30876 @[ -f ./patch/Makefile ] || exit 0; \
8ec98d6c
NN
30877 r=`${PWD_COMMAND}`; export r; \
30878 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 30879 $(HOST_EXPORTS) \
d5eec917 30880 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
30881 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30882 done; \
d5eec917 30883 echo "Doing dvi in patch" ; \
7fc2ca22 30884 (cd $(HOST_SUBDIR)/patch && \
8ec98d6c
NN
30885 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30886 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30887 "RANLIB=$${RANLIB}" \
bffcbe34 30888 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 30889 dvi) \
8ec98d6c
NN
30890 || exit 1
30891
d5eec917 30892@endif patch
8ec98d6c 30893
39bbbb69
DD
30894.PHONY: maybe-pdf-patch pdf-patch
30895maybe-pdf-patch:
30896@if patch
30897maybe-pdf-patch: pdf-patch
30898
30899pdf-patch: \
30900 configure-patch
30901 @: $(MAKE); $(unstage)
30902 @[ -f ./patch/Makefile ] || exit 0; \
30903 r=`${PWD_COMMAND}`; export r; \
30904 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30905 $(HOST_EXPORTS) \
30906 for flag in $(EXTRA_HOST_FLAGS) ; do \
30907 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30908 done; \
30909 echo "Doing pdf in patch" ; \
30910 (cd $(HOST_SUBDIR)/patch && \
30911 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30912 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30913 "RANLIB=$${RANLIB}" \
bffcbe34 30914 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
30915 pdf) \
30916 || exit 1
30917
30918@endif patch
30919
b6fb961f
MS
30920.PHONY: maybe-html-patch html-patch
30921maybe-html-patch:
30922@if patch
30923maybe-html-patch: html-patch
30924
30925html-patch: \
30926 configure-patch
15b527ca 30927 @: $(MAKE); $(unstage)
b6fb961f
MS
30928 @[ -f ./patch/Makefile ] || exit 0; \
30929 r=`${PWD_COMMAND}`; export r; \
30930 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
30931 $(HOST_EXPORTS) \
30932 for flag in $(EXTRA_HOST_FLAGS) ; do \
30933 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30934 done; \
30935 echo "Doing html in patch" ; \
7fc2ca22 30936 (cd $(HOST_SUBDIR)/patch && \
b6fb961f
MS
30937 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30938 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30939 "RANLIB=$${RANLIB}" \
bffcbe34 30940 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
30941 html) \
30942 || exit 1
30943
30944@endif patch
30945
d5eec917
PB
30946.PHONY: maybe-TAGS-patch TAGS-patch
30947maybe-TAGS-patch:
30948@if patch
30949maybe-TAGS-patch: TAGS-patch
8ec98d6c 30950
d5eec917
PB
30951TAGS-patch: \
30952 configure-patch
15b527ca 30953 @: $(MAKE); $(unstage)
d5eec917 30954 @[ -f ./patch/Makefile ] || exit 0; \
8ec98d6c
NN
30955 r=`${PWD_COMMAND}`; export r; \
30956 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 30957 $(HOST_EXPORTS) \
d5eec917 30958 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
30959 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30960 done; \
d5eec917 30961 echo "Doing TAGS in patch" ; \
7fc2ca22 30962 (cd $(HOST_SUBDIR)/patch && \
8ec98d6c
NN
30963 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30964 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30965 "RANLIB=$${RANLIB}" \
bffcbe34 30966 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 30967 TAGS) \
8ec98d6c
NN
30968 || exit 1
30969
d5eec917 30970@endif patch
8ec98d6c 30971
d5eec917
PB
30972.PHONY: maybe-install-info-patch install-info-patch
30973maybe-install-info-patch:
30974@if patch
30975maybe-install-info-patch: install-info-patch
8ec98d6c 30976
d5eec917
PB
30977install-info-patch: \
30978 configure-patch \
30979 info-patch
15b527ca 30980 @: $(MAKE); $(unstage)
d5eec917 30981 @[ -f ./patch/Makefile ] || exit 0; \
8ec98d6c
NN
30982 r=`${PWD_COMMAND}`; export r; \
30983 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 30984 $(HOST_EXPORTS) \
d5eec917 30985 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
30986 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30987 done; \
d5eec917 30988 echo "Doing install-info in patch" ; \
7fc2ca22 30989 (cd $(HOST_SUBDIR)/patch && \
8ec98d6c
NN
30990 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30991 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30992 "RANLIB=$${RANLIB}" \
bffcbe34 30993 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 30994 install-info) \
8ec98d6c
NN
30995 || exit 1
30996
d5eec917 30997@endif patch
8ec98d6c 30998
d4954b6d
DD
30999.PHONY: maybe-install-pdf-patch install-pdf-patch
31000maybe-install-pdf-patch:
31001@if patch
31002maybe-install-pdf-patch: install-pdf-patch
31003
31004install-pdf-patch: \
31005 configure-patch \
31006 pdf-patch
31007 @: $(MAKE); $(unstage)
31008 @[ -f ./patch/Makefile ] || exit 0; \
31009 r=`${PWD_COMMAND}`; export r; \
31010 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31011 $(HOST_EXPORTS) \
31012 for flag in $(EXTRA_HOST_FLAGS) ; do \
31013 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31014 done; \
31015 echo "Doing install-pdf in patch" ; \
31016 (cd $(HOST_SUBDIR)/patch && \
31017 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31018 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31019 "RANLIB=$${RANLIB}" \
bffcbe34 31020 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
31021 install-pdf) \
31022 || exit 1
31023
31024@endif patch
31025
83c9add4
CD
31026.PHONY: maybe-install-html-patch install-html-patch
31027maybe-install-html-patch:
31028@if patch
31029maybe-install-html-patch: install-html-patch
31030
31031install-html-patch: \
31032 configure-patch \
31033 html-patch
31034 @: $(MAKE); $(unstage)
31035 @[ -f ./patch/Makefile ] || exit 0; \
31036 r=`${PWD_COMMAND}`; export r; \
31037 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31038 $(HOST_EXPORTS) \
31039 for flag in $(EXTRA_HOST_FLAGS) ; do \
31040 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31041 done; \
31042 echo "Doing install-html in patch" ; \
31043 (cd $(HOST_SUBDIR)/patch && \
31044 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31045 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31046 "RANLIB=$${RANLIB}" \
bffcbe34 31047 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
31048 install-html) \
31049 || exit 1
31050
31051@endif patch
31052
d5eec917
PB
31053.PHONY: maybe-installcheck-patch installcheck-patch
31054maybe-installcheck-patch:
31055@if patch
31056maybe-installcheck-patch: installcheck-patch
8ec98d6c 31057
d5eec917
PB
31058installcheck-patch: \
31059 configure-patch
15b527ca 31060 @: $(MAKE); $(unstage)
d5eec917 31061 @[ -f ./patch/Makefile ] || exit 0; \
8ec98d6c
NN
31062 r=`${PWD_COMMAND}`; export r; \
31063 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 31064 $(HOST_EXPORTS) \
d5eec917 31065 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
31066 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31067 done; \
d5eec917 31068 echo "Doing installcheck in patch" ; \
7fc2ca22 31069 (cd $(HOST_SUBDIR)/patch && \
8ec98d6c
NN
31070 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31071 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31072 "RANLIB=$${RANLIB}" \
bffcbe34 31073 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 31074 installcheck) \
8ec98d6c
NN
31075 || exit 1
31076
d5eec917 31077@endif patch
8ec98d6c 31078
d5eec917
PB
31079.PHONY: maybe-mostlyclean-patch mostlyclean-patch
31080maybe-mostlyclean-patch:
31081@if patch
31082maybe-mostlyclean-patch: mostlyclean-patch
8ec98d6c 31083
d5eec917 31084mostlyclean-patch:
15b527ca 31085 @: $(MAKE); $(unstage)
d5eec917 31086 @[ -f ./patch/Makefile ] || exit 0; \
8ec98d6c
NN
31087 r=`${PWD_COMMAND}`; export r; \
31088 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 31089 $(HOST_EXPORTS) \
d5eec917 31090 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
31091 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31092 done; \
d5eec917 31093 echo "Doing mostlyclean in patch" ; \
7fc2ca22 31094 (cd $(HOST_SUBDIR)/patch && \
8ec98d6c
NN
31095 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31096 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31097 "RANLIB=$${RANLIB}" \
bffcbe34 31098 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 31099 mostlyclean) \
8ec98d6c
NN
31100 || exit 1
31101
d5eec917 31102@endif patch
8ec98d6c 31103
d5eec917
PB
31104.PHONY: maybe-clean-patch clean-patch
31105maybe-clean-patch:
31106@if patch
31107maybe-clean-patch: clean-patch
8ec98d6c 31108
d5eec917 31109clean-patch:
15b527ca 31110 @: $(MAKE); $(unstage)
d5eec917 31111 @[ -f ./patch/Makefile ] || exit 0; \
8ec98d6c
NN
31112 r=`${PWD_COMMAND}`; export r; \
31113 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 31114 $(HOST_EXPORTS) \
d5eec917 31115 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
31116 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31117 done; \
d5eec917 31118 echo "Doing clean in patch" ; \
7fc2ca22 31119 (cd $(HOST_SUBDIR)/patch && \
8ec98d6c
NN
31120 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31121 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31122 "RANLIB=$${RANLIB}" \
bffcbe34 31123 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 31124 clean) \
8ec98d6c
NN
31125 || exit 1
31126
d5eec917 31127@endif patch
8ec98d6c 31128
d5eec917
PB
31129.PHONY: maybe-distclean-patch distclean-patch
31130maybe-distclean-patch:
31131@if patch
31132maybe-distclean-patch: distclean-patch
8ec98d6c 31133
d5eec917 31134distclean-patch:
15b527ca 31135 @: $(MAKE); $(unstage)
d5eec917 31136 @[ -f ./patch/Makefile ] || exit 0; \
8ec98d6c
NN
31137 r=`${PWD_COMMAND}`; export r; \
31138 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 31139 $(HOST_EXPORTS) \
d5eec917 31140 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
31141 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31142 done; \
d5eec917 31143 echo "Doing distclean in patch" ; \
7fc2ca22 31144 (cd $(HOST_SUBDIR)/patch && \
8ec98d6c
NN
31145 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31146 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31147 "RANLIB=$${RANLIB}" \
bffcbe34 31148 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 31149 distclean) \
8ec98d6c
NN
31150 || exit 1
31151
d5eec917 31152@endif patch
8ec98d6c 31153
d5eec917
PB
31154.PHONY: maybe-maintainer-clean-patch maintainer-clean-patch
31155maybe-maintainer-clean-patch:
31156@if patch
31157maybe-maintainer-clean-patch: maintainer-clean-patch
8ec98d6c 31158
d5eec917 31159maintainer-clean-patch:
15b527ca 31160 @: $(MAKE); $(unstage)
d5eec917 31161 @[ -f ./patch/Makefile ] || exit 0; \
8ec98d6c
NN
31162 r=`${PWD_COMMAND}`; export r; \
31163 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 31164 $(HOST_EXPORTS) \
d5eec917 31165 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
31166 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31167 done; \
d5eec917 31168 echo "Doing maintainer-clean in patch" ; \
7fc2ca22 31169 (cd $(HOST_SUBDIR)/patch && \
8ec98d6c
NN
31170 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31171 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31172 "RANLIB=$${RANLIB}" \
bffcbe34 31173 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 31174 maintainer-clean) \
8ec98d6c
NN
31175 || exit 1
31176
d5eec917 31177@endif patch
8ec98d6c
NN
31178
31179
f0fdfd34 31180
d5eec917
PB
31181.PHONY: configure-perl maybe-configure-perl
31182maybe-configure-perl:
e1e5148c
CD
31183@if gcc-bootstrap
31184configure-perl: stage_current
31185@endif gcc-bootstrap
d5eec917
PB
31186@if perl
31187maybe-configure-perl: configure-perl
ec92c4d6 31188configure-perl:
15b527ca 31189 @: $(MAKE); $(unstage)
ec92c4d6 31190 @r=`${PWD_COMMAND}`; export r; \
5230d454 31191 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
31192 test ! -f $(HOST_SUBDIR)/perl/Makefile || exit 0; \
31193 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/perl ; \
a675b75a 31194 $(HOST_EXPORTS) \
f0fdfd34
PB
31195 echo Configuring in $(HOST_SUBDIR)/perl; \
31196 cd "$(HOST_SUBDIR)/perl" || exit 1; \
94f860c0 31197 case $(srcdir) in \
7fc2ca22
PB
31198 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31199 *) topdir=`echo $(HOST_SUBDIR)/perl/ | \
31200 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 31201 esac; \
7fc2ca22
PB
31202 srcdiroption="--srcdir=$${topdir}/perl"; \
31203 libsrcdir="$$s/perl"; \
94f860c0 31204 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
31205 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
31206 --target=${target_alias} $${srcdiroption} \
94f860c0 31207 || exit 1
d5eec917 31208@endif perl
94f860c0 31209
f0fdfd34
PB
31210
31211
a8a96878
PB
31212
31213
d5eec917
PB
31214.PHONY: all-perl maybe-all-perl
31215maybe-all-perl:
e1e5148c
CD
31216@if gcc-bootstrap
31217all-perl: stage_current
31218@endif gcc-bootstrap
d5eec917 31219@if perl
5e6b1f07 31220TARGET-perl=all
d5eec917
PB
31221maybe-all-perl: all-perl
31222all-perl: configure-perl
15b527ca 31223 @: $(MAKE); $(unstage)
5230d454
L
31224 @r=`${PWD_COMMAND}`; export r; \
31225 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 31226 $(HOST_EXPORTS) \
7fc2ca22 31227 (cd $(HOST_SUBDIR)/perl && \
6532abb6
PB
31228 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
31229 $(TARGET-perl))
d5eec917 31230@endif perl
8ecc6504 31231
f0fdfd34 31232
a8a96878
PB
31233
31234
d5eec917
PB
31235.PHONY: check-perl maybe-check-perl
31236maybe-check-perl:
31237@if perl
31238maybe-check-perl: check-perl
8ecc6504 31239
d5eec917 31240check-perl:
15b527ca 31241 @: $(MAKE); $(unstage)
5230d454
L
31242 @r=`${PWD_COMMAND}`; export r; \
31243 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 31244 $(HOST_EXPORTS) \
7fc2ca22
PB
31245 (cd $(HOST_SUBDIR)/perl && \
31246 $(MAKE) $(FLAGS_TO_PASS) check)
8ecc6504 31247
d5eec917 31248@endif perl
8ecc6504 31249
d5eec917
PB
31250.PHONY: install-perl maybe-install-perl
31251maybe-install-perl:
31252@if perl
31253maybe-install-perl: install-perl
70ffc148 31254
d5eec917 31255install-perl: installdirs
15b527ca 31256 @: $(MAKE); $(unstage)
5230d454
L
31257 @r=`${PWD_COMMAND}`; export r; \
31258 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 31259 $(HOST_EXPORTS) \
7fc2ca22 31260 (cd $(HOST_SUBDIR)/perl && \
93c60b6d 31261 $(MAKE) $(FLAGS_TO_PASS) install)
8ecc6504 31262
d5eec917 31263@endif perl
8ecc6504 31264
39bbbb69 31265# Other targets (info, dvi, pdf, etc.)
8ec98d6c 31266
d5eec917
PB
31267.PHONY: maybe-info-perl info-perl
31268maybe-info-perl:
31269@if perl
31270maybe-info-perl: info-perl
8ec98d6c 31271
d5eec917
PB
31272info-perl: \
31273 configure-perl
15b527ca 31274 @: $(MAKE); $(unstage)
d5eec917 31275 @[ -f ./perl/Makefile ] || exit 0; \
5230d454
L
31276 r=`${PWD_COMMAND}`; export r; \
31277 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 31278 $(HOST_EXPORTS) \
d5eec917 31279 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
31280 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31281 done; \
d5eec917 31282 echo "Doing info in perl" ; \
7fc2ca22 31283 (cd $(HOST_SUBDIR)/perl && \
8ec98d6c
NN
31284 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31285 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31286 "RANLIB=$${RANLIB}" \
bffcbe34 31287 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 31288 info) \
94f860c0
NN
31289 || exit 1
31290
d5eec917 31291@endif perl
8ec98d6c 31292
d5eec917
PB
31293.PHONY: maybe-dvi-perl dvi-perl
31294maybe-dvi-perl:
31295@if perl
31296maybe-dvi-perl: dvi-perl
8ec98d6c 31297
d5eec917
PB
31298dvi-perl: \
31299 configure-perl
15b527ca 31300 @: $(MAKE); $(unstage)
d5eec917 31301 @[ -f ./perl/Makefile ] || exit 0; \
8ec98d6c 31302 r=`${PWD_COMMAND}`; export r; \
5230d454 31303 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 31304 $(HOST_EXPORTS) \
d5eec917 31305 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
31306 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31307 done; \
d5eec917 31308 echo "Doing dvi in perl" ; \
7fc2ca22 31309 (cd $(HOST_SUBDIR)/perl && \
8ec98d6c
NN
31310 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31311 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31312 "RANLIB=$${RANLIB}" \
bffcbe34 31313 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 31314 dvi) \
8ec98d6c 31315 || exit 1
8ecc6504 31316
d5eec917 31317@endif perl
8ecc6504 31318
39bbbb69
DD
31319.PHONY: maybe-pdf-perl pdf-perl
31320maybe-pdf-perl:
31321@if perl
31322maybe-pdf-perl: pdf-perl
31323
31324pdf-perl: \
31325 configure-perl
31326 @: $(MAKE); $(unstage)
31327 @[ -f ./perl/Makefile ] || exit 0; \
31328 r=`${PWD_COMMAND}`; export r; \
31329 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31330 $(HOST_EXPORTS) \
31331 for flag in $(EXTRA_HOST_FLAGS) ; do \
31332 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31333 done; \
31334 echo "Doing pdf in perl" ; \
31335 (cd $(HOST_SUBDIR)/perl && \
31336 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31337 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31338 "RANLIB=$${RANLIB}" \
bffcbe34 31339 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
31340 pdf) \
31341 || exit 1
31342
31343@endif perl
31344
b6fb961f
MS
31345.PHONY: maybe-html-perl html-perl
31346maybe-html-perl:
31347@if perl
31348maybe-html-perl: html-perl
31349
31350html-perl: \
31351 configure-perl
15b527ca 31352 @: $(MAKE); $(unstage)
b6fb961f
MS
31353 @[ -f ./perl/Makefile ] || exit 0; \
31354 r=`${PWD_COMMAND}`; export r; \
31355 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
31356 $(HOST_EXPORTS) \
31357 for flag in $(EXTRA_HOST_FLAGS) ; do \
31358 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31359 done; \
31360 echo "Doing html in perl" ; \
7fc2ca22 31361 (cd $(HOST_SUBDIR)/perl && \
b6fb961f
MS
31362 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31363 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31364 "RANLIB=$${RANLIB}" \
bffcbe34 31365 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
31366 html) \
31367 || exit 1
31368
31369@endif perl
31370
d5eec917
PB
31371.PHONY: maybe-TAGS-perl TAGS-perl
31372maybe-TAGS-perl:
31373@if perl
31374maybe-TAGS-perl: TAGS-perl
8ec98d6c 31375
d5eec917
PB
31376TAGS-perl: \
31377 configure-perl
15b527ca 31378 @: $(MAKE); $(unstage)
d5eec917 31379 @[ -f ./perl/Makefile ] || exit 0; \
8ec98d6c 31380 r=`${PWD_COMMAND}`; export r; \
5230d454 31381 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 31382 $(HOST_EXPORTS) \
d5eec917 31383 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
31384 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31385 done; \
d5eec917 31386 echo "Doing TAGS in perl" ; \
7fc2ca22 31387 (cd $(HOST_SUBDIR)/perl && \
8ec98d6c
NN
31388 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31389 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31390 "RANLIB=$${RANLIB}" \
bffcbe34 31391 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 31392 TAGS) \
8ec98d6c 31393 || exit 1
8ecc6504 31394
d5eec917 31395@endif perl
8ecc6504 31396
d5eec917
PB
31397.PHONY: maybe-install-info-perl install-info-perl
31398maybe-install-info-perl:
31399@if perl
31400maybe-install-info-perl: install-info-perl
70ffc148 31401
d5eec917
PB
31402install-info-perl: \
31403 configure-perl \
31404 info-perl
15b527ca 31405 @: $(MAKE); $(unstage)
d5eec917 31406 @[ -f ./perl/Makefile ] || exit 0; \
8ec98d6c
NN
31407 r=`${PWD_COMMAND}`; export r; \
31408 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 31409 $(HOST_EXPORTS) \
d5eec917 31410 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
31411 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31412 done; \
d5eec917 31413 echo "Doing install-info in perl" ; \
7fc2ca22 31414 (cd $(HOST_SUBDIR)/perl && \
8ec98d6c
NN
31415 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31416 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31417 "RANLIB=$${RANLIB}" \
bffcbe34 31418 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 31419 install-info) \
8ec98d6c
NN
31420 || exit 1
31421
d5eec917 31422@endif perl
8ec98d6c 31423
d4954b6d
DD
31424.PHONY: maybe-install-pdf-perl install-pdf-perl
31425maybe-install-pdf-perl:
31426@if perl
31427maybe-install-pdf-perl: install-pdf-perl
31428
31429install-pdf-perl: \
31430 configure-perl \
31431 pdf-perl
31432 @: $(MAKE); $(unstage)
31433 @[ -f ./perl/Makefile ] || exit 0; \
31434 r=`${PWD_COMMAND}`; export r; \
31435 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31436 $(HOST_EXPORTS) \
31437 for flag in $(EXTRA_HOST_FLAGS) ; do \
31438 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31439 done; \
31440 echo "Doing install-pdf in perl" ; \
31441 (cd $(HOST_SUBDIR)/perl && \
31442 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31443 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31444 "RANLIB=$${RANLIB}" \
bffcbe34 31445 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
31446 install-pdf) \
31447 || exit 1
31448
31449@endif perl
31450
83c9add4
CD
31451.PHONY: maybe-install-html-perl install-html-perl
31452maybe-install-html-perl:
31453@if perl
31454maybe-install-html-perl: install-html-perl
31455
31456install-html-perl: \
31457 configure-perl \
31458 html-perl
31459 @: $(MAKE); $(unstage)
31460 @[ -f ./perl/Makefile ] || exit 0; \
31461 r=`${PWD_COMMAND}`; export r; \
31462 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31463 $(HOST_EXPORTS) \
31464 for flag in $(EXTRA_HOST_FLAGS) ; do \
31465 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31466 done; \
31467 echo "Doing install-html in perl" ; \
31468 (cd $(HOST_SUBDIR)/perl && \
31469 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31470 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31471 "RANLIB=$${RANLIB}" \
bffcbe34 31472 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
31473 install-html) \
31474 || exit 1
31475
31476@endif perl
31477
d5eec917
PB
31478.PHONY: maybe-installcheck-perl installcheck-perl
31479maybe-installcheck-perl:
31480@if perl
31481maybe-installcheck-perl: installcheck-perl
8ec98d6c 31482
d5eec917
PB
31483installcheck-perl: \
31484 configure-perl
15b527ca 31485 @: $(MAKE); $(unstage)
d5eec917 31486 @[ -f ./perl/Makefile ] || exit 0; \
8ec98d6c
NN
31487 r=`${PWD_COMMAND}`; export r; \
31488 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 31489 $(HOST_EXPORTS) \
d5eec917 31490 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
31491 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31492 done; \
d5eec917 31493 echo "Doing installcheck in perl" ; \
7fc2ca22 31494 (cd $(HOST_SUBDIR)/perl && \
8ec98d6c
NN
31495 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31496 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31497 "RANLIB=$${RANLIB}" \
bffcbe34 31498 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 31499 installcheck) \
8ec98d6c
NN
31500 || exit 1
31501
d5eec917 31502@endif perl
8ec98d6c 31503
d5eec917
PB
31504.PHONY: maybe-mostlyclean-perl mostlyclean-perl
31505maybe-mostlyclean-perl:
31506@if perl
31507maybe-mostlyclean-perl: mostlyclean-perl
8ec98d6c 31508
d5eec917 31509mostlyclean-perl:
15b527ca 31510 @: $(MAKE); $(unstage)
d5eec917 31511 @[ -f ./perl/Makefile ] || exit 0; \
8ec98d6c
NN
31512 r=`${PWD_COMMAND}`; export r; \
31513 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 31514 $(HOST_EXPORTS) \
d5eec917 31515 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
31516 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31517 done; \
d5eec917 31518 echo "Doing mostlyclean in perl" ; \
7fc2ca22 31519 (cd $(HOST_SUBDIR)/perl && \
8ec98d6c
NN
31520 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31521 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31522 "RANLIB=$${RANLIB}" \
bffcbe34 31523 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 31524 mostlyclean) \
8ec98d6c
NN
31525 || exit 1
31526
d5eec917 31527@endif perl
8ec98d6c 31528
d5eec917
PB
31529.PHONY: maybe-clean-perl clean-perl
31530maybe-clean-perl:
31531@if perl
31532maybe-clean-perl: clean-perl
8ec98d6c 31533
d5eec917 31534clean-perl:
15b527ca 31535 @: $(MAKE); $(unstage)
d5eec917 31536 @[ -f ./perl/Makefile ] || exit 0; \
8ec98d6c
NN
31537 r=`${PWD_COMMAND}`; export r; \
31538 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 31539 $(HOST_EXPORTS) \
d5eec917 31540 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
31541 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31542 done; \
d5eec917 31543 echo "Doing clean in perl" ; \
7fc2ca22 31544 (cd $(HOST_SUBDIR)/perl && \
8ec98d6c
NN
31545 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31546 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31547 "RANLIB=$${RANLIB}" \
bffcbe34 31548 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 31549 clean) \
8ec98d6c
NN
31550 || exit 1
31551
d5eec917 31552@endif perl
8ec98d6c 31553
d5eec917
PB
31554.PHONY: maybe-distclean-perl distclean-perl
31555maybe-distclean-perl:
31556@if perl
31557maybe-distclean-perl: distclean-perl
8ec98d6c 31558
d5eec917 31559distclean-perl:
15b527ca 31560 @: $(MAKE); $(unstage)
d5eec917 31561 @[ -f ./perl/Makefile ] || exit 0; \
8ec98d6c
NN
31562 r=`${PWD_COMMAND}`; export r; \
31563 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 31564 $(HOST_EXPORTS) \
d5eec917 31565 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
31566 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31567 done; \
d5eec917 31568 echo "Doing distclean in perl" ; \
7fc2ca22 31569 (cd $(HOST_SUBDIR)/perl && \
8ec98d6c
NN
31570 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31571 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31572 "RANLIB=$${RANLIB}" \
bffcbe34 31573 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 31574 distclean) \
8ec98d6c
NN
31575 || exit 1
31576
d5eec917 31577@endif perl
8ec98d6c 31578
d5eec917
PB
31579.PHONY: maybe-maintainer-clean-perl maintainer-clean-perl
31580maybe-maintainer-clean-perl:
31581@if perl
31582maybe-maintainer-clean-perl: maintainer-clean-perl
8ec98d6c 31583
d5eec917 31584maintainer-clean-perl:
15b527ca 31585 @: $(MAKE); $(unstage)
d5eec917 31586 @[ -f ./perl/Makefile ] || exit 0; \
8ec98d6c 31587 r=`${PWD_COMMAND}`; export r; \
5230d454 31588 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 31589 $(HOST_EXPORTS) \
d5eec917 31590 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
31591 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31592 done; \
d5eec917 31593 echo "Doing maintainer-clean in perl" ; \
7fc2ca22 31594 (cd $(HOST_SUBDIR)/perl && \
8ec98d6c
NN
31595 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31596 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31597 "RANLIB=$${RANLIB}" \
bffcbe34 31598 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 31599 maintainer-clean) \
8ec98d6c 31600 || exit 1
8ecc6504 31601
d5eec917 31602@endif perl
8ecc6504 31603
8ec98d6c 31604
f0fdfd34 31605
d5eec917
PB
31606.PHONY: configure-prms maybe-configure-prms
31607maybe-configure-prms:
e1e5148c
CD
31608@if gcc-bootstrap
31609configure-prms: stage_current
31610@endif gcc-bootstrap
d5eec917
PB
31611@if prms
31612maybe-configure-prms: configure-prms
ec92c4d6 31613configure-prms:
15b527ca 31614 @: $(MAKE); $(unstage)
ec92c4d6 31615 @r=`${PWD_COMMAND}`; export r; \
5230d454 31616 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
31617 test ! -f $(HOST_SUBDIR)/prms/Makefile || exit 0; \
31618 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/prms ; \
a675b75a 31619 $(HOST_EXPORTS) \
f0fdfd34
PB
31620 echo Configuring in $(HOST_SUBDIR)/prms; \
31621 cd "$(HOST_SUBDIR)/prms" || exit 1; \
94f860c0 31622 case $(srcdir) in \
7fc2ca22
PB
31623 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31624 *) topdir=`echo $(HOST_SUBDIR)/prms/ | \
31625 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 31626 esac; \
7fc2ca22
PB
31627 srcdiroption="--srcdir=$${topdir}/prms"; \
31628 libsrcdir="$$s/prms"; \
94f860c0 31629 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
31630 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
31631 --target=${target_alias} $${srcdiroption} \
94f860c0 31632 || exit 1
d5eec917 31633@endif prms
94f860c0 31634
f0fdfd34
PB
31635
31636
a8a96878
PB
31637
31638
d5eec917
PB
31639.PHONY: all-prms maybe-all-prms
31640maybe-all-prms:
e1e5148c
CD
31641@if gcc-bootstrap
31642all-prms: stage_current
31643@endif gcc-bootstrap
d5eec917 31644@if prms
5e6b1f07 31645TARGET-prms=all
d5eec917
PB
31646maybe-all-prms: all-prms
31647all-prms: configure-prms
15b527ca 31648 @: $(MAKE); $(unstage)
5230d454
L
31649 @r=`${PWD_COMMAND}`; export r; \
31650 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 31651 $(HOST_EXPORTS) \
7fc2ca22 31652 (cd $(HOST_SUBDIR)/prms && \
6532abb6
PB
31653 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
31654 $(TARGET-prms))
d5eec917 31655@endif prms
8ecc6504 31656
f0fdfd34 31657
a8a96878
PB
31658
31659
d5eec917
PB
31660.PHONY: check-prms maybe-check-prms
31661maybe-check-prms:
31662@if prms
31663maybe-check-prms: check-prms
8ecc6504 31664
d5eec917 31665check-prms:
15b527ca 31666 @: $(MAKE); $(unstage)
5230d454
L
31667 @r=`${PWD_COMMAND}`; export r; \
31668 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 31669 $(HOST_EXPORTS) \
7fc2ca22
PB
31670 (cd $(HOST_SUBDIR)/prms && \
31671 $(MAKE) $(FLAGS_TO_PASS) check)
8ecc6504 31672
d5eec917 31673@endif prms
8ecc6504 31674
d5eec917
PB
31675.PHONY: install-prms maybe-install-prms
31676maybe-install-prms:
31677@if prms
31678maybe-install-prms: install-prms
8ec98d6c 31679
d5eec917 31680install-prms: installdirs
15b527ca 31681 @: $(MAKE); $(unstage)
8ec98d6c
NN
31682 @r=`${PWD_COMMAND}`; export r; \
31683 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 31684 $(HOST_EXPORTS) \
7fc2ca22 31685 (cd $(HOST_SUBDIR)/prms && \
93c60b6d 31686 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 31687
d5eec917 31688@endif prms
8ec98d6c 31689
39bbbb69 31690# Other targets (info, dvi, pdf, etc.)
8ec98d6c 31691
d5eec917
PB
31692.PHONY: maybe-info-prms info-prms
31693maybe-info-prms:
31694@if prms
31695maybe-info-prms: info-prms
8ec98d6c 31696
d5eec917
PB
31697info-prms: \
31698 configure-prms
15b527ca 31699 @: $(MAKE); $(unstage)
d5eec917 31700 @[ -f ./prms/Makefile ] || exit 0; \
8ec98d6c
NN
31701 r=`${PWD_COMMAND}`; export r; \
31702 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 31703 $(HOST_EXPORTS) \
d5eec917 31704 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
31705 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31706 done; \
d5eec917 31707 echo "Doing info in prms" ; \
7fc2ca22 31708 (cd $(HOST_SUBDIR)/prms && \
8ec98d6c
NN
31709 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31710 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31711 "RANLIB=$${RANLIB}" \
bffcbe34 31712 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 31713 info) \
8ec98d6c
NN
31714 || exit 1
31715
d5eec917 31716@endif prms
8ec98d6c 31717
d5eec917
PB
31718.PHONY: maybe-dvi-prms dvi-prms
31719maybe-dvi-prms:
31720@if prms
31721maybe-dvi-prms: dvi-prms
8ec98d6c 31722
d5eec917
PB
31723dvi-prms: \
31724 configure-prms
15b527ca 31725 @: $(MAKE); $(unstage)
d5eec917 31726 @[ -f ./prms/Makefile ] || exit 0; \
8ec98d6c
NN
31727 r=`${PWD_COMMAND}`; export r; \
31728 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 31729 $(HOST_EXPORTS) \
d5eec917 31730 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
31731 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31732 done; \
d5eec917 31733 echo "Doing dvi in prms" ; \
7fc2ca22 31734 (cd $(HOST_SUBDIR)/prms && \
8ec98d6c
NN
31735 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31736 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31737 "RANLIB=$${RANLIB}" \
bffcbe34 31738 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 31739 dvi) \
8ec98d6c
NN
31740 || exit 1
31741
d5eec917 31742@endif prms
8ec98d6c 31743
39bbbb69
DD
31744.PHONY: maybe-pdf-prms pdf-prms
31745maybe-pdf-prms:
31746@if prms
31747maybe-pdf-prms: pdf-prms
31748
31749pdf-prms: \
31750 configure-prms
31751 @: $(MAKE); $(unstage)
31752 @[ -f ./prms/Makefile ] || exit 0; \
31753 r=`${PWD_COMMAND}`; export r; \
31754 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31755 $(HOST_EXPORTS) \
31756 for flag in $(EXTRA_HOST_FLAGS) ; do \
31757 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31758 done; \
31759 echo "Doing pdf in prms" ; \
31760 (cd $(HOST_SUBDIR)/prms && \
31761 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31762 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31763 "RANLIB=$${RANLIB}" \
bffcbe34 31764 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
31765 pdf) \
31766 || exit 1
31767
31768@endif prms
31769
b6fb961f
MS
31770.PHONY: maybe-html-prms html-prms
31771maybe-html-prms:
31772@if prms
31773maybe-html-prms: html-prms
31774
31775html-prms: \
31776 configure-prms
15b527ca 31777 @: $(MAKE); $(unstage)
b6fb961f
MS
31778 @[ -f ./prms/Makefile ] || exit 0; \
31779 r=`${PWD_COMMAND}`; export r; \
31780 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
31781 $(HOST_EXPORTS) \
31782 for flag in $(EXTRA_HOST_FLAGS) ; do \
31783 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31784 done; \
31785 echo "Doing html in prms" ; \
7fc2ca22 31786 (cd $(HOST_SUBDIR)/prms && \
b6fb961f
MS
31787 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31788 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31789 "RANLIB=$${RANLIB}" \
bffcbe34 31790 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
31791 html) \
31792 || exit 1
31793
31794@endif prms
31795
d5eec917
PB
31796.PHONY: maybe-TAGS-prms TAGS-prms
31797maybe-TAGS-prms:
31798@if prms
31799maybe-TAGS-prms: TAGS-prms
8ec98d6c 31800
d5eec917
PB
31801TAGS-prms: \
31802 configure-prms
15b527ca 31803 @: $(MAKE); $(unstage)
d5eec917 31804 @[ -f ./prms/Makefile ] || exit 0; \
8ec98d6c
NN
31805 r=`${PWD_COMMAND}`; export r; \
31806 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 31807 $(HOST_EXPORTS) \
d5eec917 31808 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
31809 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31810 done; \
d5eec917 31811 echo "Doing TAGS in prms" ; \
7fc2ca22 31812 (cd $(HOST_SUBDIR)/prms && \
8ec98d6c
NN
31813 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31814 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31815 "RANLIB=$${RANLIB}" \
bffcbe34 31816 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 31817 TAGS) \
8ec98d6c
NN
31818 || exit 1
31819
d5eec917 31820@endif prms
8ec98d6c 31821
d5eec917
PB
31822.PHONY: maybe-install-info-prms install-info-prms
31823maybe-install-info-prms:
31824@if prms
31825maybe-install-info-prms: install-info-prms
8ec98d6c 31826
d5eec917
PB
31827install-info-prms: \
31828 configure-prms \
31829 info-prms
15b527ca 31830 @: $(MAKE); $(unstage)
d5eec917 31831 @[ -f ./prms/Makefile ] || exit 0; \
8ec98d6c
NN
31832 r=`${PWD_COMMAND}`; export r; \
31833 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 31834 $(HOST_EXPORTS) \
d5eec917 31835 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
31836 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31837 done; \
d5eec917 31838 echo "Doing install-info in prms" ; \
7fc2ca22 31839 (cd $(HOST_SUBDIR)/prms && \
8ec98d6c
NN
31840 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31841 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31842 "RANLIB=$${RANLIB}" \
bffcbe34 31843 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 31844 install-info) \
8ec98d6c
NN
31845 || exit 1
31846
d5eec917 31847@endif prms
8ec98d6c 31848
d4954b6d
DD
31849.PHONY: maybe-install-pdf-prms install-pdf-prms
31850maybe-install-pdf-prms:
31851@if prms
31852maybe-install-pdf-prms: install-pdf-prms
31853
31854install-pdf-prms: \
31855 configure-prms \
31856 pdf-prms
31857 @: $(MAKE); $(unstage)
31858 @[ -f ./prms/Makefile ] || exit 0; \
31859 r=`${PWD_COMMAND}`; export r; \
31860 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31861 $(HOST_EXPORTS) \
31862 for flag in $(EXTRA_HOST_FLAGS) ; do \
31863 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31864 done; \
31865 echo "Doing install-pdf in prms" ; \
31866 (cd $(HOST_SUBDIR)/prms && \
31867 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31868 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31869 "RANLIB=$${RANLIB}" \
bffcbe34 31870 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
31871 install-pdf) \
31872 || exit 1
31873
31874@endif prms
31875
83c9add4
CD
31876.PHONY: maybe-install-html-prms install-html-prms
31877maybe-install-html-prms:
31878@if prms
31879maybe-install-html-prms: install-html-prms
31880
31881install-html-prms: \
31882 configure-prms \
31883 html-prms
31884 @: $(MAKE); $(unstage)
31885 @[ -f ./prms/Makefile ] || exit 0; \
31886 r=`${PWD_COMMAND}`; export r; \
31887 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31888 $(HOST_EXPORTS) \
31889 for flag in $(EXTRA_HOST_FLAGS) ; do \
31890 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31891 done; \
31892 echo "Doing install-html in prms" ; \
31893 (cd $(HOST_SUBDIR)/prms && \
31894 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31895 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31896 "RANLIB=$${RANLIB}" \
bffcbe34 31897 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
31898 install-html) \
31899 || exit 1
31900
31901@endif prms
31902
d5eec917
PB
31903.PHONY: maybe-installcheck-prms installcheck-prms
31904maybe-installcheck-prms:
31905@if prms
31906maybe-installcheck-prms: installcheck-prms
8ec98d6c 31907
d5eec917
PB
31908installcheck-prms: \
31909 configure-prms
15b527ca 31910 @: $(MAKE); $(unstage)
d5eec917 31911 @[ -f ./prms/Makefile ] || exit 0; \
8ec98d6c
NN
31912 r=`${PWD_COMMAND}`; export r; \
31913 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 31914 $(HOST_EXPORTS) \
d5eec917 31915 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
31916 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31917 done; \
d5eec917 31918 echo "Doing installcheck in prms" ; \
7fc2ca22 31919 (cd $(HOST_SUBDIR)/prms && \
8ec98d6c
NN
31920 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31921 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31922 "RANLIB=$${RANLIB}" \
bffcbe34 31923 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 31924 installcheck) \
8ec98d6c
NN
31925 || exit 1
31926
d5eec917 31927@endif prms
8ec98d6c 31928
d5eec917
PB
31929.PHONY: maybe-mostlyclean-prms mostlyclean-prms
31930maybe-mostlyclean-prms:
31931@if prms
31932maybe-mostlyclean-prms: mostlyclean-prms
8ec98d6c 31933
d5eec917 31934mostlyclean-prms:
15b527ca 31935 @: $(MAKE); $(unstage)
d5eec917 31936 @[ -f ./prms/Makefile ] || exit 0; \
8ec98d6c
NN
31937 r=`${PWD_COMMAND}`; export r; \
31938 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 31939 $(HOST_EXPORTS) \
d5eec917 31940 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
31941 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31942 done; \
d5eec917 31943 echo "Doing mostlyclean in prms" ; \
7fc2ca22 31944 (cd $(HOST_SUBDIR)/prms && \
8ec98d6c
NN
31945 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31946 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31947 "RANLIB=$${RANLIB}" \
bffcbe34 31948 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 31949 mostlyclean) \
8ec98d6c
NN
31950 || exit 1
31951
d5eec917 31952@endif prms
8ec98d6c 31953
d5eec917
PB
31954.PHONY: maybe-clean-prms clean-prms
31955maybe-clean-prms:
31956@if prms
31957maybe-clean-prms: clean-prms
8ec98d6c 31958
d5eec917 31959clean-prms:
15b527ca 31960 @: $(MAKE); $(unstage)
d5eec917 31961 @[ -f ./prms/Makefile ] || exit 0; \
8ec98d6c
NN
31962 r=`${PWD_COMMAND}`; export r; \
31963 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 31964 $(HOST_EXPORTS) \
d5eec917 31965 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
31966 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31967 done; \
d5eec917 31968 echo "Doing clean in prms" ; \
7fc2ca22 31969 (cd $(HOST_SUBDIR)/prms && \
8ec98d6c
NN
31970 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31971 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31972 "RANLIB=$${RANLIB}" \
bffcbe34 31973 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 31974 clean) \
8ec98d6c
NN
31975 || exit 1
31976
d5eec917 31977@endif prms
8ec98d6c 31978
d5eec917
PB
31979.PHONY: maybe-distclean-prms distclean-prms
31980maybe-distclean-prms:
31981@if prms
31982maybe-distclean-prms: distclean-prms
8ec98d6c 31983
d5eec917 31984distclean-prms:
15b527ca 31985 @: $(MAKE); $(unstage)
d5eec917 31986 @[ -f ./prms/Makefile ] || exit 0; \
8ec98d6c
NN
31987 r=`${PWD_COMMAND}`; export r; \
31988 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 31989 $(HOST_EXPORTS) \
d5eec917 31990 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
31991 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31992 done; \
d5eec917 31993 echo "Doing distclean in prms" ; \
7fc2ca22 31994 (cd $(HOST_SUBDIR)/prms && \
8ec98d6c
NN
31995 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31996 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31997 "RANLIB=$${RANLIB}" \
bffcbe34 31998 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 31999 distclean) \
8ec98d6c
NN
32000 || exit 1
32001
d5eec917 32002@endif prms
8ec98d6c 32003
d5eec917
PB
32004.PHONY: maybe-maintainer-clean-prms maintainer-clean-prms
32005maybe-maintainer-clean-prms:
32006@if prms
32007maybe-maintainer-clean-prms: maintainer-clean-prms
8ec98d6c 32008
d5eec917 32009maintainer-clean-prms:
15b527ca 32010 @: $(MAKE); $(unstage)
d5eec917 32011 @[ -f ./prms/Makefile ] || exit 0; \
8ec98d6c
NN
32012 r=`${PWD_COMMAND}`; export r; \
32013 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 32014 $(HOST_EXPORTS) \
d5eec917 32015 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
32016 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32017 done; \
d5eec917 32018 echo "Doing maintainer-clean in prms" ; \
7fc2ca22 32019 (cd $(HOST_SUBDIR)/prms && \
8ec98d6c
NN
32020 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32021 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32022 "RANLIB=$${RANLIB}" \
bffcbe34 32023 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 32024 maintainer-clean) \
8ec98d6c 32025 || exit 1
70ffc148 32026
d5eec917 32027@endif prms
8ecc6504
NN
32028
32029
f0fdfd34 32030
d5eec917
PB
32031.PHONY: configure-rcs maybe-configure-rcs
32032maybe-configure-rcs:
e1e5148c
CD
32033@if gcc-bootstrap
32034configure-rcs: stage_current
32035@endif gcc-bootstrap
d5eec917
PB
32036@if rcs
32037maybe-configure-rcs: configure-rcs
ec92c4d6 32038configure-rcs:
15b527ca 32039 @: $(MAKE); $(unstage)
ec92c4d6 32040 @r=`${PWD_COMMAND}`; export r; \
5230d454 32041 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
32042 test ! -f $(HOST_SUBDIR)/rcs/Makefile || exit 0; \
32043 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/rcs ; \
a675b75a 32044 $(HOST_EXPORTS) \
f0fdfd34
PB
32045 echo Configuring in $(HOST_SUBDIR)/rcs; \
32046 cd "$(HOST_SUBDIR)/rcs" || exit 1; \
94f860c0 32047 case $(srcdir) in \
7fc2ca22
PB
32048 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32049 *) topdir=`echo $(HOST_SUBDIR)/rcs/ | \
32050 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 32051 esac; \
7fc2ca22
PB
32052 srcdiroption="--srcdir=$${topdir}/rcs"; \
32053 libsrcdir="$$s/rcs"; \
94f860c0 32054 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
32055 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
32056 --target=${target_alias} $${srcdiroption} \
94f860c0 32057 || exit 1
d5eec917 32058@endif rcs
94f860c0 32059
f0fdfd34
PB
32060
32061
a8a96878
PB
32062
32063
d5eec917
PB
32064.PHONY: all-rcs maybe-all-rcs
32065maybe-all-rcs:
e1e5148c
CD
32066@if gcc-bootstrap
32067all-rcs: stage_current
32068@endif gcc-bootstrap
d5eec917 32069@if rcs
5e6b1f07 32070TARGET-rcs=all
d5eec917
PB
32071maybe-all-rcs: all-rcs
32072all-rcs: configure-rcs
15b527ca 32073 @: $(MAKE); $(unstage)
5230d454
L
32074 @r=`${PWD_COMMAND}`; export r; \
32075 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 32076 $(HOST_EXPORTS) \
7fc2ca22 32077 (cd $(HOST_SUBDIR)/rcs && \
6532abb6
PB
32078 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
32079 $(TARGET-rcs))
d5eec917 32080@endif rcs
8ecc6504 32081
f0fdfd34 32082
a8a96878
PB
32083
32084
d5eec917
PB
32085.PHONY: check-rcs maybe-check-rcs
32086maybe-check-rcs:
32087@if rcs
32088maybe-check-rcs: check-rcs
8ecc6504 32089
d5eec917 32090check-rcs:
15b527ca 32091 @: $(MAKE); $(unstage)
5230d454
L
32092 @r=`${PWD_COMMAND}`; export r; \
32093 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 32094 $(HOST_EXPORTS) \
7fc2ca22
PB
32095 (cd $(HOST_SUBDIR)/rcs && \
32096 $(MAKE) $(FLAGS_TO_PASS) check)
8ecc6504 32097
d5eec917 32098@endif rcs
8ecc6504 32099
d5eec917
PB
32100.PHONY: install-rcs maybe-install-rcs
32101maybe-install-rcs:
32102@if rcs
32103maybe-install-rcs: install-rcs
70ffc148 32104
d5eec917 32105install-rcs: installdirs
15b527ca 32106 @: $(MAKE); $(unstage)
5230d454
L
32107 @r=`${PWD_COMMAND}`; export r; \
32108 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 32109 $(HOST_EXPORTS) \
7fc2ca22 32110 (cd $(HOST_SUBDIR)/rcs && \
93c60b6d 32111 $(MAKE) $(FLAGS_TO_PASS) install)
8ecc6504 32112
d5eec917 32113@endif rcs
8ecc6504 32114
39bbbb69 32115# Other targets (info, dvi, pdf, etc.)
8ec98d6c 32116
d5eec917
PB
32117.PHONY: maybe-info-rcs info-rcs
32118maybe-info-rcs:
32119@if rcs
32120maybe-info-rcs: info-rcs
8ec98d6c 32121
d5eec917
PB
32122info-rcs: \
32123 configure-rcs
15b527ca 32124 @: $(MAKE); $(unstage)
d5eec917 32125 @[ -f ./rcs/Makefile ] || exit 0; \
8ec98d6c
NN
32126 r=`${PWD_COMMAND}`; export r; \
32127 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 32128 $(HOST_EXPORTS) \
d5eec917 32129 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
32130 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32131 done; \
d5eec917 32132 echo "Doing info in rcs" ; \
7fc2ca22 32133 (cd $(HOST_SUBDIR)/rcs && \
8ec98d6c
NN
32134 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32135 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32136 "RANLIB=$${RANLIB}" \
bffcbe34 32137 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 32138 info) \
8ec98d6c
NN
32139 || exit 1
32140
d5eec917 32141@endif rcs
8ec98d6c 32142
d5eec917
PB
32143.PHONY: maybe-dvi-rcs dvi-rcs
32144maybe-dvi-rcs:
32145@if rcs
32146maybe-dvi-rcs: dvi-rcs
8ec98d6c 32147
d5eec917
PB
32148dvi-rcs: \
32149 configure-rcs
15b527ca 32150 @: $(MAKE); $(unstage)
d5eec917 32151 @[ -f ./rcs/Makefile ] || exit 0; \
8ec98d6c
NN
32152 r=`${PWD_COMMAND}`; export r; \
32153 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 32154 $(HOST_EXPORTS) \
d5eec917 32155 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
32156 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32157 done; \
d5eec917 32158 echo "Doing dvi in rcs" ; \
7fc2ca22 32159 (cd $(HOST_SUBDIR)/rcs && \
8ec98d6c
NN
32160 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32161 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32162 "RANLIB=$${RANLIB}" \
bffcbe34 32163 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 32164 dvi) \
8ec98d6c
NN
32165 || exit 1
32166
d5eec917 32167@endif rcs
8ec98d6c 32168
39bbbb69
DD
32169.PHONY: maybe-pdf-rcs pdf-rcs
32170maybe-pdf-rcs:
32171@if rcs
32172maybe-pdf-rcs: pdf-rcs
32173
32174pdf-rcs: \
32175 configure-rcs
32176 @: $(MAKE); $(unstage)
32177 @[ -f ./rcs/Makefile ] || exit 0; \
32178 r=`${PWD_COMMAND}`; export r; \
32179 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32180 $(HOST_EXPORTS) \
32181 for flag in $(EXTRA_HOST_FLAGS) ; do \
32182 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32183 done; \
32184 echo "Doing pdf in rcs" ; \
32185 (cd $(HOST_SUBDIR)/rcs && \
32186 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32187 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32188 "RANLIB=$${RANLIB}" \
bffcbe34 32189 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
32190 pdf) \
32191 || exit 1
32192
32193@endif rcs
32194
b6fb961f
MS
32195.PHONY: maybe-html-rcs html-rcs
32196maybe-html-rcs:
32197@if rcs
32198maybe-html-rcs: html-rcs
32199
32200html-rcs: \
32201 configure-rcs
15b527ca 32202 @: $(MAKE); $(unstage)
b6fb961f
MS
32203 @[ -f ./rcs/Makefile ] || exit 0; \
32204 r=`${PWD_COMMAND}`; export r; \
32205 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
32206 $(HOST_EXPORTS) \
32207 for flag in $(EXTRA_HOST_FLAGS) ; do \
32208 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32209 done; \
32210 echo "Doing html in rcs" ; \
7fc2ca22 32211 (cd $(HOST_SUBDIR)/rcs && \
b6fb961f
MS
32212 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32213 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32214 "RANLIB=$${RANLIB}" \
bffcbe34 32215 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
32216 html) \
32217 || exit 1
32218
32219@endif rcs
32220
d5eec917
PB
32221.PHONY: maybe-TAGS-rcs TAGS-rcs
32222maybe-TAGS-rcs:
32223@if rcs
32224maybe-TAGS-rcs: TAGS-rcs
8ec98d6c 32225
d5eec917
PB
32226TAGS-rcs: \
32227 configure-rcs
15b527ca 32228 @: $(MAKE); $(unstage)
d5eec917 32229 @[ -f ./rcs/Makefile ] || exit 0; \
8ec98d6c
NN
32230 r=`${PWD_COMMAND}`; export r; \
32231 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 32232 $(HOST_EXPORTS) \
d5eec917 32233 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
32234 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32235 done; \
d5eec917 32236 echo "Doing TAGS in rcs" ; \
7fc2ca22 32237 (cd $(HOST_SUBDIR)/rcs && \
8ec98d6c
NN
32238 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32239 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32240 "RANLIB=$${RANLIB}" \
bffcbe34 32241 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 32242 TAGS) \
8ec98d6c
NN
32243 || exit 1
32244
d5eec917 32245@endif rcs
8ec98d6c 32246
d5eec917
PB
32247.PHONY: maybe-install-info-rcs install-info-rcs
32248maybe-install-info-rcs:
32249@if rcs
32250maybe-install-info-rcs: install-info-rcs
8ec98d6c 32251
d5eec917
PB
32252install-info-rcs: \
32253 configure-rcs \
32254 info-rcs
15b527ca 32255 @: $(MAKE); $(unstage)
d5eec917 32256 @[ -f ./rcs/Makefile ] || exit 0; \
8ec98d6c
NN
32257 r=`${PWD_COMMAND}`; export r; \
32258 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 32259 $(HOST_EXPORTS) \
d5eec917 32260 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
32261 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32262 done; \
d5eec917 32263 echo "Doing install-info in rcs" ; \
7fc2ca22 32264 (cd $(HOST_SUBDIR)/rcs && \
8ec98d6c
NN
32265 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32266 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32267 "RANLIB=$${RANLIB}" \
bffcbe34 32268 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 32269 install-info) \
8ec98d6c
NN
32270 || exit 1
32271
d5eec917 32272@endif rcs
8ec98d6c 32273
d4954b6d
DD
32274.PHONY: maybe-install-pdf-rcs install-pdf-rcs
32275maybe-install-pdf-rcs:
32276@if rcs
32277maybe-install-pdf-rcs: install-pdf-rcs
32278
32279install-pdf-rcs: \
32280 configure-rcs \
32281 pdf-rcs
32282 @: $(MAKE); $(unstage)
32283 @[ -f ./rcs/Makefile ] || exit 0; \
32284 r=`${PWD_COMMAND}`; export r; \
32285 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32286 $(HOST_EXPORTS) \
32287 for flag in $(EXTRA_HOST_FLAGS) ; do \
32288 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32289 done; \
32290 echo "Doing install-pdf in rcs" ; \
32291 (cd $(HOST_SUBDIR)/rcs && \
32292 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32293 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32294 "RANLIB=$${RANLIB}" \
bffcbe34 32295 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
32296 install-pdf) \
32297 || exit 1
32298
32299@endif rcs
32300
83c9add4
CD
32301.PHONY: maybe-install-html-rcs install-html-rcs
32302maybe-install-html-rcs:
32303@if rcs
32304maybe-install-html-rcs: install-html-rcs
32305
32306install-html-rcs: \
32307 configure-rcs \
32308 html-rcs
32309 @: $(MAKE); $(unstage)
32310 @[ -f ./rcs/Makefile ] || exit 0; \
32311 r=`${PWD_COMMAND}`; export r; \
32312 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32313 $(HOST_EXPORTS) \
32314 for flag in $(EXTRA_HOST_FLAGS) ; do \
32315 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32316 done; \
32317 echo "Doing install-html in rcs" ; \
32318 (cd $(HOST_SUBDIR)/rcs && \
32319 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32320 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32321 "RANLIB=$${RANLIB}" \
bffcbe34 32322 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
32323 install-html) \
32324 || exit 1
32325
32326@endif rcs
32327
d5eec917
PB
32328.PHONY: maybe-installcheck-rcs installcheck-rcs
32329maybe-installcheck-rcs:
32330@if rcs
32331maybe-installcheck-rcs: installcheck-rcs
8ec98d6c 32332
d5eec917
PB
32333installcheck-rcs: \
32334 configure-rcs
15b527ca 32335 @: $(MAKE); $(unstage)
d5eec917 32336 @[ -f ./rcs/Makefile ] || exit 0; \
8ec98d6c
NN
32337 r=`${PWD_COMMAND}`; export r; \
32338 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 32339 $(HOST_EXPORTS) \
d5eec917 32340 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
32341 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32342 done; \
d5eec917 32343 echo "Doing installcheck in rcs" ; \
7fc2ca22 32344 (cd $(HOST_SUBDIR)/rcs && \
8ec98d6c
NN
32345 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32346 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32347 "RANLIB=$${RANLIB}" \
bffcbe34 32348 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 32349 installcheck) \
8ec98d6c
NN
32350 || exit 1
32351
d5eec917 32352@endif rcs
8ec98d6c 32353
d5eec917
PB
32354.PHONY: maybe-mostlyclean-rcs mostlyclean-rcs
32355maybe-mostlyclean-rcs:
32356@if rcs
32357maybe-mostlyclean-rcs: mostlyclean-rcs
8ec98d6c 32358
d5eec917 32359mostlyclean-rcs:
15b527ca 32360 @: $(MAKE); $(unstage)
d5eec917 32361 @[ -f ./rcs/Makefile ] || exit 0; \
8ec98d6c
NN
32362 r=`${PWD_COMMAND}`; export r; \
32363 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 32364 $(HOST_EXPORTS) \
d5eec917 32365 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
32366 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32367 done; \
d5eec917 32368 echo "Doing mostlyclean in rcs" ; \
7fc2ca22 32369 (cd $(HOST_SUBDIR)/rcs && \
8ec98d6c
NN
32370 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32371 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32372 "RANLIB=$${RANLIB}" \
bffcbe34 32373 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 32374 mostlyclean) \
8ec98d6c
NN
32375 || exit 1
32376
d5eec917 32377@endif rcs
8ec98d6c 32378
d5eec917
PB
32379.PHONY: maybe-clean-rcs clean-rcs
32380maybe-clean-rcs:
32381@if rcs
32382maybe-clean-rcs: clean-rcs
8ec98d6c 32383
d5eec917 32384clean-rcs:
15b527ca 32385 @: $(MAKE); $(unstage)
d5eec917 32386 @[ -f ./rcs/Makefile ] || exit 0; \
8ec98d6c
NN
32387 r=`${PWD_COMMAND}`; export r; \
32388 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 32389 $(HOST_EXPORTS) \
d5eec917 32390 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
32391 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32392 done; \
d5eec917 32393 echo "Doing clean in rcs" ; \
7fc2ca22 32394 (cd $(HOST_SUBDIR)/rcs && \
8ec98d6c
NN
32395 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32396 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32397 "RANLIB=$${RANLIB}" \
bffcbe34 32398 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 32399 clean) \
8ec98d6c
NN
32400 || exit 1
32401
d5eec917 32402@endif rcs
8ec98d6c 32403
d5eec917
PB
32404.PHONY: maybe-distclean-rcs distclean-rcs
32405maybe-distclean-rcs:
32406@if rcs
32407maybe-distclean-rcs: distclean-rcs
8ec98d6c 32408
d5eec917 32409distclean-rcs:
15b527ca 32410 @: $(MAKE); $(unstage)
d5eec917 32411 @[ -f ./rcs/Makefile ] || exit 0; \
8ec98d6c
NN
32412 r=`${PWD_COMMAND}`; export r; \
32413 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 32414 $(HOST_EXPORTS) \
d5eec917 32415 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
32416 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32417 done; \
d5eec917 32418 echo "Doing distclean in rcs" ; \
7fc2ca22 32419 (cd $(HOST_SUBDIR)/rcs && \
8ec98d6c
NN
32420 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32421 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32422 "RANLIB=$${RANLIB}" \
bffcbe34 32423 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 32424 distclean) \
8ec98d6c
NN
32425 || exit 1
32426
d5eec917 32427@endif rcs
8ec98d6c 32428
d5eec917
PB
32429.PHONY: maybe-maintainer-clean-rcs maintainer-clean-rcs
32430maybe-maintainer-clean-rcs:
32431@if rcs
32432maybe-maintainer-clean-rcs: maintainer-clean-rcs
8ec98d6c 32433
d5eec917 32434maintainer-clean-rcs:
15b527ca 32435 @: $(MAKE); $(unstage)
d5eec917 32436 @[ -f ./rcs/Makefile ] || exit 0; \
8ec98d6c
NN
32437 r=`${PWD_COMMAND}`; export r; \
32438 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 32439 $(HOST_EXPORTS) \
d5eec917 32440 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
32441 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32442 done; \
d5eec917 32443 echo "Doing maintainer-clean in rcs" ; \
7fc2ca22 32444 (cd $(HOST_SUBDIR)/rcs && \
8ec98d6c
NN
32445 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32446 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32447 "RANLIB=$${RANLIB}" \
bffcbe34 32448 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 32449 maintainer-clean) \
8ec98d6c
NN
32450 || exit 1
32451
d5eec917 32452@endif rcs
8ec98d6c
NN
32453
32454
f0fdfd34 32455
d5eec917
PB
32456.PHONY: configure-readline maybe-configure-readline
32457maybe-configure-readline:
e1e5148c
CD
32458@if gcc-bootstrap
32459configure-readline: stage_current
32460@endif gcc-bootstrap
d5eec917
PB
32461@if readline
32462maybe-configure-readline: configure-readline
ec92c4d6 32463configure-readline:
15b527ca 32464 @: $(MAKE); $(unstage)
ec92c4d6 32465 @r=`${PWD_COMMAND}`; export r; \
5230d454 32466 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
32467 test ! -f $(HOST_SUBDIR)/readline/Makefile || exit 0; \
32468 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/readline ; \
a675b75a 32469 $(HOST_EXPORTS) \
f0fdfd34
PB
32470 echo Configuring in $(HOST_SUBDIR)/readline; \
32471 cd "$(HOST_SUBDIR)/readline" || exit 1; \
94f860c0 32472 case $(srcdir) in \
7fc2ca22
PB
32473 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32474 *) topdir=`echo $(HOST_SUBDIR)/readline/ | \
32475 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 32476 esac; \
7fc2ca22
PB
32477 srcdiroption="--srcdir=$${topdir}/readline"; \
32478 libsrcdir="$$s/readline"; \
94f860c0 32479 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
32480 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
32481 --target=${target_alias} $${srcdiroption} \
94f860c0 32482 || exit 1
d5eec917 32483@endif readline
94f860c0 32484
f0fdfd34
PB
32485
32486
a8a96878
PB
32487
32488
d5eec917
PB
32489.PHONY: all-readline maybe-all-readline
32490maybe-all-readline:
e1e5148c
CD
32491@if gcc-bootstrap
32492all-readline: stage_current
32493@endif gcc-bootstrap
d5eec917 32494@if readline
5e6b1f07 32495TARGET-readline=all
d5eec917
PB
32496maybe-all-readline: all-readline
32497all-readline: configure-readline
15b527ca 32498 @: $(MAKE); $(unstage)
5230d454
L
32499 @r=`${PWD_COMMAND}`; export r; \
32500 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 32501 $(HOST_EXPORTS) \
7fc2ca22 32502 (cd $(HOST_SUBDIR)/readline && \
6532abb6
PB
32503 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
32504 $(TARGET-readline))
d5eec917 32505@endif readline
8ecc6504 32506
f0fdfd34 32507
a8a96878
PB
32508
32509
d5eec917
PB
32510.PHONY: check-readline maybe-check-readline
32511maybe-check-readline:
32512@if readline
32513maybe-check-readline: check-readline
8ecc6504 32514
d5eec917 32515check-readline:
15b527ca 32516 @: $(MAKE); $(unstage)
d5eec917
PB
32517 @r=`${PWD_COMMAND}`; export r; \
32518 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d5eec917 32519 $(HOST_EXPORTS) \
7fc2ca22
PB
32520 (cd $(HOST_SUBDIR)/readline && \
32521 $(MAKE) $(FLAGS_TO_PASS) check)
8ec98d6c 32522
d5eec917 32523@endif readline
8ec98d6c 32524
d5eec917
PB
32525.PHONY: install-readline maybe-install-readline
32526maybe-install-readline:
32527@if readline
32528maybe-install-readline: install-readline
8ec98d6c 32529
d5eec917 32530install-readline: installdirs
15b527ca 32531 @: $(MAKE); $(unstage)
d5eec917
PB
32532 @r=`${PWD_COMMAND}`; export r; \
32533 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d5eec917 32534 $(HOST_EXPORTS) \
7fc2ca22 32535 (cd $(HOST_SUBDIR)/readline && \
93c60b6d 32536 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 32537
d5eec917 32538@endif readline
8ec98d6c 32539
39bbbb69 32540# Other targets (info, dvi, pdf, etc.)
8ec98d6c 32541
d5eec917
PB
32542.PHONY: maybe-info-readline info-readline
32543maybe-info-readline:
32544@if readline
32545maybe-info-readline: info-readline
8ec98d6c 32546
d5eec917
PB
32547info-readline: \
32548 configure-readline
15b527ca 32549 @: $(MAKE); $(unstage)
d5eec917 32550 @[ -f ./readline/Makefile ] || exit 0; \
8ec98d6c 32551 r=`${PWD_COMMAND}`; export r; \
5230d454 32552 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 32553 $(HOST_EXPORTS) \
d5eec917 32554 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
32555 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32556 done; \
d5eec917 32557 echo "Doing info in readline" ; \
7fc2ca22 32558 (cd $(HOST_SUBDIR)/readline && \
8ec98d6c
NN
32559 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32560 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32561 "RANLIB=$${RANLIB}" \
bffcbe34 32562 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 32563 info) \
8ec98d6c 32564 || exit 1
8ecc6504 32565
d5eec917 32566@endif readline
8ecc6504 32567
d5eec917
PB
32568.PHONY: maybe-dvi-readline dvi-readline
32569maybe-dvi-readline:
32570@if readline
32571maybe-dvi-readline: dvi-readline
70ffc148 32572
d5eec917
PB
32573dvi-readline: \
32574 configure-readline
15b527ca 32575 @: $(MAKE); $(unstage)
d5eec917 32576 @[ -f ./readline/Makefile ] || exit 0; \
8ec98d6c 32577 r=`${PWD_COMMAND}`; export r; \
5230d454 32578 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 32579 $(HOST_EXPORTS) \
d5eec917 32580 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
32581 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32582 done; \
d5eec917 32583 echo "Doing dvi in readline" ; \
7fc2ca22 32584 (cd $(HOST_SUBDIR)/readline && \
8ec98d6c
NN
32585 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32586 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32587 "RANLIB=$${RANLIB}" \
bffcbe34 32588 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 32589 dvi) \
8ec98d6c 32590 || exit 1
8ecc6504 32591
d5eec917 32592@endif readline
8ecc6504 32593
39bbbb69
DD
32594.PHONY: maybe-pdf-readline pdf-readline
32595maybe-pdf-readline:
32596@if readline
32597maybe-pdf-readline: pdf-readline
32598
32599pdf-readline: \
32600 configure-readline
32601 @: $(MAKE); $(unstage)
32602 @[ -f ./readline/Makefile ] || exit 0; \
32603 r=`${PWD_COMMAND}`; export r; \
32604 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32605 $(HOST_EXPORTS) \
32606 for flag in $(EXTRA_HOST_FLAGS) ; do \
32607 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32608 done; \
32609 echo "Doing pdf in readline" ; \
32610 (cd $(HOST_SUBDIR)/readline && \
32611 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32612 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32613 "RANLIB=$${RANLIB}" \
bffcbe34 32614 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
32615 pdf) \
32616 || exit 1
32617
32618@endif readline
32619
b6fb961f
MS
32620.PHONY: maybe-html-readline html-readline
32621maybe-html-readline:
32622@if readline
32623maybe-html-readline: html-readline
32624
32625html-readline: \
32626 configure-readline
15b527ca 32627 @: $(MAKE); $(unstage)
b6fb961f
MS
32628 @[ -f ./readline/Makefile ] || exit 0; \
32629 r=`${PWD_COMMAND}`; export r; \
32630 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
32631 $(HOST_EXPORTS) \
32632 for flag in $(EXTRA_HOST_FLAGS) ; do \
32633 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32634 done; \
32635 echo "Doing html in readline" ; \
7fc2ca22 32636 (cd $(HOST_SUBDIR)/readline && \
b6fb961f
MS
32637 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32638 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32639 "RANLIB=$${RANLIB}" \
bffcbe34 32640 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
32641 html) \
32642 || exit 1
32643
32644@endif readline
32645
d5eec917
PB
32646.PHONY: maybe-TAGS-readline TAGS-readline
32647maybe-TAGS-readline:
32648@if readline
32649maybe-TAGS-readline: TAGS-readline
8ec98d6c 32650
d5eec917
PB
32651TAGS-readline: \
32652 configure-readline
15b527ca 32653 @: $(MAKE); $(unstage)
d5eec917 32654 @[ -f ./readline/Makefile ] || exit 0; \
5230d454
L
32655 r=`${PWD_COMMAND}`; export r; \
32656 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 32657 $(HOST_EXPORTS) \
d5eec917 32658 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
32659 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32660 done; \
d5eec917 32661 echo "Doing TAGS in readline" ; \
7fc2ca22 32662 (cd $(HOST_SUBDIR)/readline && \
8ec98d6c
NN
32663 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32664 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32665 "RANLIB=$${RANLIB}" \
bffcbe34 32666 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 32667 TAGS) \
94f860c0
NN
32668 || exit 1
32669
d5eec917 32670@endif readline
8ec98d6c 32671
d5eec917
PB
32672.PHONY: maybe-install-info-readline install-info-readline
32673maybe-install-info-readline:
32674@if readline
32675maybe-install-info-readline: install-info-readline
8ec98d6c 32676
d5eec917
PB
32677install-info-readline: \
32678 configure-readline \
32679 info-readline
15b527ca 32680 @: $(MAKE); $(unstage)
d5eec917 32681 @[ -f ./readline/Makefile ] || exit 0; \
8ec98d6c 32682 r=`${PWD_COMMAND}`; export r; \
5230d454 32683 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 32684 $(HOST_EXPORTS) \
d5eec917 32685 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
32686 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32687 done; \
d5eec917 32688 echo "Doing install-info in readline" ; \
7fc2ca22 32689 (cd $(HOST_SUBDIR)/readline && \
8ec98d6c
NN
32690 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32691 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32692 "RANLIB=$${RANLIB}" \
bffcbe34 32693 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 32694 install-info) \
8ec98d6c 32695 || exit 1
8ecc6504 32696
d5eec917 32697@endif readline
8ecc6504 32698
d4954b6d
DD
32699.PHONY: maybe-install-pdf-readline install-pdf-readline
32700maybe-install-pdf-readline:
32701@if readline
32702maybe-install-pdf-readline: install-pdf-readline
32703
32704install-pdf-readline: \
32705 configure-readline \
32706 pdf-readline
32707 @: $(MAKE); $(unstage)
32708 @[ -f ./readline/Makefile ] || exit 0; \
32709 r=`${PWD_COMMAND}`; export r; \
32710 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32711 $(HOST_EXPORTS) \
32712 for flag in $(EXTRA_HOST_FLAGS) ; do \
32713 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32714 done; \
32715 echo "Doing install-pdf in readline" ; \
32716 (cd $(HOST_SUBDIR)/readline && \
32717 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32718 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32719 "RANLIB=$${RANLIB}" \
bffcbe34 32720 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
32721 install-pdf) \
32722 || exit 1
32723
32724@endif readline
32725
83c9add4
CD
32726.PHONY: maybe-install-html-readline install-html-readline
32727maybe-install-html-readline:
32728@if readline
32729maybe-install-html-readline: install-html-readline
32730
32731install-html-readline: \
32732 configure-readline \
32733 html-readline
32734 @: $(MAKE); $(unstage)
32735 @[ -f ./readline/Makefile ] || exit 0; \
32736 r=`${PWD_COMMAND}`; export r; \
32737 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32738 $(HOST_EXPORTS) \
32739 for flag in $(EXTRA_HOST_FLAGS) ; do \
32740 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32741 done; \
32742 echo "Doing install-html in readline" ; \
32743 (cd $(HOST_SUBDIR)/readline && \
32744 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32745 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32746 "RANLIB=$${RANLIB}" \
bffcbe34 32747 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
32748 install-html) \
32749 || exit 1
32750
32751@endif readline
32752
d5eec917
PB
32753.PHONY: maybe-installcheck-readline installcheck-readline
32754maybe-installcheck-readline:
32755@if readline
32756maybe-installcheck-readline: installcheck-readline
8ec98d6c 32757
d5eec917
PB
32758installcheck-readline: \
32759 configure-readline
15b527ca 32760 @: $(MAKE); $(unstage)
d5eec917 32761 @[ -f ./readline/Makefile ] || exit 0; \
8ec98d6c
NN
32762 r=`${PWD_COMMAND}`; export r; \
32763 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 32764 $(HOST_EXPORTS) \
d5eec917 32765 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
32766 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32767 done; \
d5eec917 32768 echo "Doing installcheck in readline" ; \
7fc2ca22 32769 (cd $(HOST_SUBDIR)/readline && \
8ec98d6c
NN
32770 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32771 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32772 "RANLIB=$${RANLIB}" \
bffcbe34 32773 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 32774 installcheck) \
8ec98d6c 32775 || exit 1
8ecc6504 32776
d5eec917 32777@endif readline
8ecc6504 32778
d5eec917
PB
32779.PHONY: maybe-mostlyclean-readline mostlyclean-readline
32780maybe-mostlyclean-readline:
32781@if readline
32782maybe-mostlyclean-readline: mostlyclean-readline
8ec98d6c 32783
d5eec917 32784mostlyclean-readline:
15b527ca 32785 @: $(MAKE); $(unstage)
d5eec917 32786 @[ -f ./readline/Makefile ] || exit 0; \
8ec98d6c
NN
32787 r=`${PWD_COMMAND}`; export r; \
32788 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 32789 $(HOST_EXPORTS) \
d5eec917 32790 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
32791 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32792 done; \
d5eec917 32793 echo "Doing mostlyclean in readline" ; \
7fc2ca22 32794 (cd $(HOST_SUBDIR)/readline && \
8ec98d6c
NN
32795 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32796 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32797 "RANLIB=$${RANLIB}" \
bffcbe34 32798 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 32799 mostlyclean) \
8ec98d6c
NN
32800 || exit 1
32801
d5eec917 32802@endif readline
8ec98d6c 32803
d5eec917
PB
32804.PHONY: maybe-clean-readline clean-readline
32805maybe-clean-readline:
32806@if readline
32807maybe-clean-readline: clean-readline
8ec98d6c 32808
d5eec917 32809clean-readline:
15b527ca 32810 @: $(MAKE); $(unstage)
d5eec917 32811 @[ -f ./readline/Makefile ] || exit 0; \
8ec98d6c
NN
32812 r=`${PWD_COMMAND}`; export r; \
32813 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 32814 $(HOST_EXPORTS) \
d5eec917 32815 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
32816 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32817 done; \
d5eec917 32818 echo "Doing clean in readline" ; \
7fc2ca22 32819 (cd $(HOST_SUBDIR)/readline && \
8ec98d6c
NN
32820 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32821 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32822 "RANLIB=$${RANLIB}" \
bffcbe34 32823 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 32824 clean) \
8ec98d6c
NN
32825 || exit 1
32826
d5eec917 32827@endif readline
8ec98d6c 32828
d5eec917
PB
32829.PHONY: maybe-distclean-readline distclean-readline
32830maybe-distclean-readline:
32831@if readline
32832maybe-distclean-readline: distclean-readline
8ec98d6c 32833
d5eec917 32834distclean-readline:
15b527ca 32835 @: $(MAKE); $(unstage)
d5eec917 32836 @[ -f ./readline/Makefile ] || exit 0; \
8ec98d6c
NN
32837 r=`${PWD_COMMAND}`; export r; \
32838 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 32839 $(HOST_EXPORTS) \
d5eec917 32840 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
32841 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32842 done; \
d5eec917 32843 echo "Doing distclean in readline" ; \
7fc2ca22 32844 (cd $(HOST_SUBDIR)/readline && \
8ec98d6c
NN
32845 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32846 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32847 "RANLIB=$${RANLIB}" \
bffcbe34 32848 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 32849 distclean) \
8ec98d6c
NN
32850 || exit 1
32851
d5eec917 32852@endif readline
8ec98d6c 32853
d5eec917
PB
32854.PHONY: maybe-maintainer-clean-readline maintainer-clean-readline
32855maybe-maintainer-clean-readline:
32856@if readline
32857maybe-maintainer-clean-readline: maintainer-clean-readline
70ffc148 32858
d5eec917 32859maintainer-clean-readline:
15b527ca 32860 @: $(MAKE); $(unstage)
d5eec917 32861 @[ -f ./readline/Makefile ] || exit 0; \
8ec98d6c 32862 r=`${PWD_COMMAND}`; export r; \
5230d454 32863 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 32864 $(HOST_EXPORTS) \
d5eec917 32865 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
32866 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32867 done; \
d5eec917 32868 echo "Doing maintainer-clean in readline" ; \
7fc2ca22 32869 (cd $(HOST_SUBDIR)/readline && \
8ec98d6c
NN
32870 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32871 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32872 "RANLIB=$${RANLIB}" \
bffcbe34 32873 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 32874 maintainer-clean) \
8ec98d6c 32875 || exit 1
8ecc6504 32876
d5eec917 32877@endif readline
8ecc6504 32878
8ec98d6c 32879
f0fdfd34 32880
d5eec917
PB
32881.PHONY: configure-release maybe-configure-release
32882maybe-configure-release:
e1e5148c
CD
32883@if gcc-bootstrap
32884configure-release: stage_current
32885@endif gcc-bootstrap
d5eec917
PB
32886@if release
32887maybe-configure-release: configure-release
ec92c4d6 32888configure-release:
15b527ca 32889 @: $(MAKE); $(unstage)
ec92c4d6 32890 @r=`${PWD_COMMAND}`; export r; \
5230d454 32891 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
32892 test ! -f $(HOST_SUBDIR)/release/Makefile || exit 0; \
32893 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/release ; \
a675b75a 32894 $(HOST_EXPORTS) \
f0fdfd34
PB
32895 echo Configuring in $(HOST_SUBDIR)/release; \
32896 cd "$(HOST_SUBDIR)/release" || exit 1; \
94f860c0 32897 case $(srcdir) in \
7fc2ca22
PB
32898 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32899 *) topdir=`echo $(HOST_SUBDIR)/release/ | \
32900 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 32901 esac; \
7fc2ca22
PB
32902 srcdiroption="--srcdir=$${topdir}/release"; \
32903 libsrcdir="$$s/release"; \
94f860c0 32904 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
32905 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
32906 --target=${target_alias} $${srcdiroption} \
94f860c0 32907 || exit 1
d5eec917 32908@endif release
94f860c0 32909
f0fdfd34
PB
32910
32911
a8a96878
PB
32912
32913
d5eec917
PB
32914.PHONY: all-release maybe-all-release
32915maybe-all-release:
e1e5148c
CD
32916@if gcc-bootstrap
32917all-release: stage_current
32918@endif gcc-bootstrap
d5eec917 32919@if release
5e6b1f07 32920TARGET-release=all
d5eec917
PB
32921maybe-all-release: all-release
32922all-release: configure-release
15b527ca 32923 @: $(MAKE); $(unstage)
5230d454
L
32924 @r=`${PWD_COMMAND}`; export r; \
32925 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 32926 $(HOST_EXPORTS) \
7fc2ca22 32927 (cd $(HOST_SUBDIR)/release && \
6532abb6
PB
32928 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
32929 $(TARGET-release))
d5eec917 32930@endif release
8ecc6504 32931
f0fdfd34 32932
a8a96878
PB
32933
32934
d5eec917
PB
32935.PHONY: check-release maybe-check-release
32936maybe-check-release:
32937@if release
32938maybe-check-release: check-release
8ecc6504 32939
d5eec917 32940check-release:
8ecc6504 32941
d5eec917 32942@endif release
8ecc6504 32943
d5eec917
PB
32944.PHONY: install-release maybe-install-release
32945maybe-install-release:
32946@if release
32947maybe-install-release: install-release
70ffc148 32948
d5eec917 32949install-release:
8ec98d6c 32950
d5eec917 32951@endif release
8ec98d6c 32952
39bbbb69 32953# Other targets (info, dvi, pdf, etc.)
8ec98d6c 32954
d5eec917
PB
32955.PHONY: maybe-info-release info-release
32956maybe-info-release:
32957@if release
32958maybe-info-release: info-release
8ec98d6c 32959
d5eec917
PB
32960info-release: \
32961 configure-release
15b527ca 32962 @: $(MAKE); $(unstage)
d5eec917 32963 @[ -f ./release/Makefile ] || exit 0; \
8ec98d6c
NN
32964 r=`${PWD_COMMAND}`; export r; \
32965 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 32966 $(HOST_EXPORTS) \
d5eec917 32967 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
32968 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32969 done; \
d5eec917 32970 echo "Doing info in release" ; \
7fc2ca22 32971 (cd $(HOST_SUBDIR)/release && \
8ec98d6c
NN
32972 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32973 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32974 "RANLIB=$${RANLIB}" \
bffcbe34 32975 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 32976 info) \
8ec98d6c
NN
32977 || exit 1
32978
d5eec917 32979@endif release
8ec98d6c 32980
d5eec917
PB
32981.PHONY: maybe-dvi-release dvi-release
32982maybe-dvi-release:
32983@if release
32984maybe-dvi-release: dvi-release
8ec98d6c 32985
d5eec917
PB
32986dvi-release: \
32987 configure-release
15b527ca 32988 @: $(MAKE); $(unstage)
d5eec917 32989 @[ -f ./release/Makefile ] || exit 0; \
8ec98d6c
NN
32990 r=`${PWD_COMMAND}`; export r; \
32991 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 32992 $(HOST_EXPORTS) \
d5eec917 32993 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
32994 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32995 done; \
d5eec917 32996 echo "Doing dvi in release" ; \
7fc2ca22 32997 (cd $(HOST_SUBDIR)/release && \
8ec98d6c
NN
32998 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32999 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33000 "RANLIB=$${RANLIB}" \
bffcbe34 33001 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 33002 dvi) \
8ec98d6c
NN
33003 || exit 1
33004
d5eec917 33005@endif release
8ec98d6c 33006
39bbbb69
DD
33007.PHONY: maybe-pdf-release pdf-release
33008maybe-pdf-release:
33009@if release
33010maybe-pdf-release: pdf-release
33011
33012pdf-release: \
33013 configure-release
33014 @: $(MAKE); $(unstage)
33015 @[ -f ./release/Makefile ] || exit 0; \
33016 r=`${PWD_COMMAND}`; export r; \
33017 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33018 $(HOST_EXPORTS) \
33019 for flag in $(EXTRA_HOST_FLAGS) ; do \
33020 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33021 done; \
33022 echo "Doing pdf in release" ; \
33023 (cd $(HOST_SUBDIR)/release && \
33024 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33025 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33026 "RANLIB=$${RANLIB}" \
bffcbe34 33027 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
33028 pdf) \
33029 || exit 1
33030
33031@endif release
33032
b6fb961f
MS
33033.PHONY: maybe-html-release html-release
33034maybe-html-release:
33035@if release
33036maybe-html-release: html-release
33037
33038html-release: \
33039 configure-release
15b527ca 33040 @: $(MAKE); $(unstage)
b6fb961f
MS
33041 @[ -f ./release/Makefile ] || exit 0; \
33042 r=`${PWD_COMMAND}`; export r; \
33043 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
33044 $(HOST_EXPORTS) \
33045 for flag in $(EXTRA_HOST_FLAGS) ; do \
33046 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33047 done; \
33048 echo "Doing html in release" ; \
7fc2ca22 33049 (cd $(HOST_SUBDIR)/release && \
b6fb961f
MS
33050 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33051 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33052 "RANLIB=$${RANLIB}" \
bffcbe34 33053 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
33054 html) \
33055 || exit 1
33056
33057@endif release
33058
d5eec917
PB
33059.PHONY: maybe-TAGS-release TAGS-release
33060maybe-TAGS-release:
33061@if release
33062maybe-TAGS-release: TAGS-release
8ec98d6c 33063
d5eec917
PB
33064TAGS-release: \
33065 configure-release
15b527ca 33066 @: $(MAKE); $(unstage)
d5eec917 33067 @[ -f ./release/Makefile ] || exit 0; \
8ec98d6c
NN
33068 r=`${PWD_COMMAND}`; export r; \
33069 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 33070 $(HOST_EXPORTS) \
d5eec917 33071 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
33072 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33073 done; \
d5eec917 33074 echo "Doing TAGS in release" ; \
7fc2ca22 33075 (cd $(HOST_SUBDIR)/release && \
8ec98d6c
NN
33076 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33077 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33078 "RANLIB=$${RANLIB}" \
bffcbe34 33079 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 33080 TAGS) \
8ec98d6c
NN
33081 || exit 1
33082
d5eec917 33083@endif release
8ec98d6c 33084
d5eec917
PB
33085.PHONY: maybe-install-info-release install-info-release
33086maybe-install-info-release:
33087@if release
33088maybe-install-info-release: install-info-release
8ec98d6c 33089
d5eec917
PB
33090install-info-release: \
33091 configure-release \
33092 info-release
15b527ca 33093 @: $(MAKE); $(unstage)
d5eec917 33094 @[ -f ./release/Makefile ] || exit 0; \
8ec98d6c
NN
33095 r=`${PWD_COMMAND}`; export r; \
33096 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 33097 $(HOST_EXPORTS) \
d5eec917 33098 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
33099 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33100 done; \
d5eec917 33101 echo "Doing install-info in release" ; \
7fc2ca22 33102 (cd $(HOST_SUBDIR)/release && \
8ec98d6c
NN
33103 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33104 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33105 "RANLIB=$${RANLIB}" \
bffcbe34 33106 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 33107 install-info) \
8ec98d6c
NN
33108 || exit 1
33109
d5eec917 33110@endif release
8ec98d6c 33111
d4954b6d
DD
33112.PHONY: maybe-install-pdf-release install-pdf-release
33113maybe-install-pdf-release:
33114@if release
33115maybe-install-pdf-release: install-pdf-release
33116
33117install-pdf-release: \
33118 configure-release \
33119 pdf-release
33120 @: $(MAKE); $(unstage)
33121 @[ -f ./release/Makefile ] || exit 0; \
33122 r=`${PWD_COMMAND}`; export r; \
33123 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33124 $(HOST_EXPORTS) \
33125 for flag in $(EXTRA_HOST_FLAGS) ; do \
33126 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33127 done; \
33128 echo "Doing install-pdf in release" ; \
33129 (cd $(HOST_SUBDIR)/release && \
33130 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33131 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33132 "RANLIB=$${RANLIB}" \
bffcbe34 33133 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
33134 install-pdf) \
33135 || exit 1
33136
33137@endif release
33138
83c9add4
CD
33139.PHONY: maybe-install-html-release install-html-release
33140maybe-install-html-release:
33141@if release
33142maybe-install-html-release: install-html-release
33143
33144install-html-release: \
33145 configure-release \
33146 html-release
33147 @: $(MAKE); $(unstage)
33148 @[ -f ./release/Makefile ] || exit 0; \
33149 r=`${PWD_COMMAND}`; export r; \
33150 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33151 $(HOST_EXPORTS) \
33152 for flag in $(EXTRA_HOST_FLAGS) ; do \
33153 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33154 done; \
33155 echo "Doing install-html in release" ; \
33156 (cd $(HOST_SUBDIR)/release && \
33157 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33158 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33159 "RANLIB=$${RANLIB}" \
bffcbe34 33160 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
33161 install-html) \
33162 || exit 1
33163
33164@endif release
33165
d5eec917
PB
33166.PHONY: maybe-installcheck-release installcheck-release
33167maybe-installcheck-release:
33168@if release
33169maybe-installcheck-release: installcheck-release
8ec98d6c 33170
d5eec917
PB
33171installcheck-release: \
33172 configure-release
15b527ca 33173 @: $(MAKE); $(unstage)
d5eec917 33174 @[ -f ./release/Makefile ] || exit 0; \
8ec98d6c
NN
33175 r=`${PWD_COMMAND}`; export r; \
33176 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 33177 $(HOST_EXPORTS) \
d5eec917 33178 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
33179 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33180 done; \
d5eec917 33181 echo "Doing installcheck in release" ; \
7fc2ca22 33182 (cd $(HOST_SUBDIR)/release && \
8ec98d6c
NN
33183 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33184 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33185 "RANLIB=$${RANLIB}" \
bffcbe34 33186 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 33187 installcheck) \
8ec98d6c
NN
33188 || exit 1
33189
d5eec917 33190@endif release
8ec98d6c 33191
d5eec917
PB
33192.PHONY: maybe-mostlyclean-release mostlyclean-release
33193maybe-mostlyclean-release:
33194@if release
33195maybe-mostlyclean-release: mostlyclean-release
8ec98d6c 33196
d5eec917 33197mostlyclean-release:
15b527ca 33198 @: $(MAKE); $(unstage)
d5eec917 33199 @[ -f ./release/Makefile ] || exit 0; \
8ec98d6c
NN
33200 r=`${PWD_COMMAND}`; export r; \
33201 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 33202 $(HOST_EXPORTS) \
d5eec917 33203 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
33204 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33205 done; \
d5eec917 33206 echo "Doing mostlyclean in release" ; \
7fc2ca22 33207 (cd $(HOST_SUBDIR)/release && \
8ec98d6c
NN
33208 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33209 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33210 "RANLIB=$${RANLIB}" \
bffcbe34 33211 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 33212 mostlyclean) \
8ec98d6c
NN
33213 || exit 1
33214
d5eec917 33215@endif release
8ec98d6c 33216
d5eec917
PB
33217.PHONY: maybe-clean-release clean-release
33218maybe-clean-release:
33219@if release
33220maybe-clean-release: clean-release
8ec98d6c 33221
d5eec917 33222clean-release:
15b527ca 33223 @: $(MAKE); $(unstage)
d5eec917 33224 @[ -f ./release/Makefile ] || exit 0; \
8ec98d6c
NN
33225 r=`${PWD_COMMAND}`; export r; \
33226 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 33227 $(HOST_EXPORTS) \
d5eec917 33228 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
33229 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33230 done; \
d5eec917 33231 echo "Doing clean in release" ; \
7fc2ca22 33232 (cd $(HOST_SUBDIR)/release && \
8ec98d6c
NN
33233 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33234 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33235 "RANLIB=$${RANLIB}" \
bffcbe34 33236 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 33237 clean) \
8ec98d6c
NN
33238 || exit 1
33239
d5eec917 33240@endif release
8ec98d6c 33241
d5eec917
PB
33242.PHONY: maybe-distclean-release distclean-release
33243maybe-distclean-release:
33244@if release
33245maybe-distclean-release: distclean-release
8ec98d6c 33246
d5eec917 33247distclean-release:
15b527ca 33248 @: $(MAKE); $(unstage)
d5eec917 33249 @[ -f ./release/Makefile ] || exit 0; \
8ec98d6c
NN
33250 r=`${PWD_COMMAND}`; export r; \
33251 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 33252 $(HOST_EXPORTS) \
d5eec917 33253 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
33254 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33255 done; \
d5eec917 33256 echo "Doing distclean in release" ; \
7fc2ca22 33257 (cd $(HOST_SUBDIR)/release && \
8ec98d6c
NN
33258 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33259 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33260 "RANLIB=$${RANLIB}" \
bffcbe34 33261 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 33262 distclean) \
8ec98d6c
NN
33263 || exit 1
33264
d5eec917 33265@endif release
8ec98d6c 33266
d5eec917
PB
33267.PHONY: maybe-maintainer-clean-release maintainer-clean-release
33268maybe-maintainer-clean-release:
33269@if release
33270maybe-maintainer-clean-release: maintainer-clean-release
8ec98d6c 33271
d5eec917 33272maintainer-clean-release:
15b527ca 33273 @: $(MAKE); $(unstage)
d5eec917 33274 @[ -f ./release/Makefile ] || exit 0; \
8ec98d6c
NN
33275 r=`${PWD_COMMAND}`; export r; \
33276 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 33277 $(HOST_EXPORTS) \
d5eec917 33278 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
33279 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33280 done; \
d5eec917 33281 echo "Doing maintainer-clean in release" ; \
7fc2ca22 33282 (cd $(HOST_SUBDIR)/release && \
8ec98d6c
NN
33283 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33284 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33285 "RANLIB=$${RANLIB}" \
bffcbe34 33286 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 33287 maintainer-clean) \
8ec98d6c 33288 || exit 1
8ecc6504 33289
d5eec917 33290@endif release
8ecc6504 33291
8ec98d6c 33292
f0fdfd34 33293
d5eec917
PB
33294.PHONY: configure-recode maybe-configure-recode
33295maybe-configure-recode:
e1e5148c
CD
33296@if gcc-bootstrap
33297configure-recode: stage_current
33298@endif gcc-bootstrap
d5eec917
PB
33299@if recode
33300maybe-configure-recode: configure-recode
ec92c4d6 33301configure-recode:
15b527ca 33302 @: $(MAKE); $(unstage)
ec92c4d6 33303 @r=`${PWD_COMMAND}`; export r; \
5230d454 33304 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
33305 test ! -f $(HOST_SUBDIR)/recode/Makefile || exit 0; \
33306 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/recode ; \
a675b75a 33307 $(HOST_EXPORTS) \
f0fdfd34
PB
33308 echo Configuring in $(HOST_SUBDIR)/recode; \
33309 cd "$(HOST_SUBDIR)/recode" || exit 1; \
94f860c0 33310 case $(srcdir) in \
7fc2ca22
PB
33311 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33312 *) topdir=`echo $(HOST_SUBDIR)/recode/ | \
33313 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 33314 esac; \
7fc2ca22
PB
33315 srcdiroption="--srcdir=$${topdir}/recode"; \
33316 libsrcdir="$$s/recode"; \
94f860c0 33317 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
33318 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
33319 --target=${target_alias} $${srcdiroption} \
94f860c0 33320 || exit 1
d5eec917 33321@endif recode
94f860c0 33322
f0fdfd34
PB
33323
33324
a8a96878
PB
33325
33326
d5eec917
PB
33327.PHONY: all-recode maybe-all-recode
33328maybe-all-recode:
e1e5148c
CD
33329@if gcc-bootstrap
33330all-recode: stage_current
33331@endif gcc-bootstrap
d5eec917 33332@if recode
5e6b1f07 33333TARGET-recode=all
d5eec917
PB
33334maybe-all-recode: all-recode
33335all-recode: configure-recode
15b527ca 33336 @: $(MAKE); $(unstage)
5230d454
L
33337 @r=`${PWD_COMMAND}`; export r; \
33338 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 33339 $(HOST_EXPORTS) \
7fc2ca22 33340 (cd $(HOST_SUBDIR)/recode && \
6532abb6
PB
33341 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
33342 $(TARGET-recode))
d5eec917 33343@endif recode
8ecc6504 33344
f0fdfd34 33345
a8a96878
PB
33346
33347
d5eec917
PB
33348.PHONY: check-recode maybe-check-recode
33349maybe-check-recode:
33350@if recode
33351maybe-check-recode: check-recode
8ecc6504 33352
d5eec917 33353check-recode:
15b527ca 33354 @: $(MAKE); $(unstage)
5230d454
L
33355 @r=`${PWD_COMMAND}`; export r; \
33356 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 33357 $(HOST_EXPORTS) \
7fc2ca22
PB
33358 (cd $(HOST_SUBDIR)/recode && \
33359 $(MAKE) $(FLAGS_TO_PASS) check)
8ecc6504 33360
d5eec917 33361@endif recode
8ecc6504 33362
d5eec917
PB
33363.PHONY: install-recode maybe-install-recode
33364maybe-install-recode:
33365@if recode
33366maybe-install-recode: install-recode
8ec98d6c 33367
d5eec917 33368install-recode: installdirs
15b527ca 33369 @: $(MAKE); $(unstage)
8ec98d6c
NN
33370 @r=`${PWD_COMMAND}`; export r; \
33371 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 33372 $(HOST_EXPORTS) \
7fc2ca22 33373 (cd $(HOST_SUBDIR)/recode && \
93c60b6d 33374 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 33375
d5eec917 33376@endif recode
8ec98d6c 33377
39bbbb69 33378# Other targets (info, dvi, pdf, etc.)
8ec98d6c 33379
d5eec917
PB
33380.PHONY: maybe-info-recode info-recode
33381maybe-info-recode:
33382@if recode
33383maybe-info-recode: info-recode
8ec98d6c 33384
d5eec917
PB
33385info-recode: \
33386 configure-recode
15b527ca 33387 @: $(MAKE); $(unstage)
d5eec917 33388 @[ -f ./recode/Makefile ] || exit 0; \
8ec98d6c
NN
33389 r=`${PWD_COMMAND}`; export r; \
33390 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 33391 $(HOST_EXPORTS) \
d5eec917 33392 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
33393 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33394 done; \
d5eec917 33395 echo "Doing info in recode" ; \
7fc2ca22 33396 (cd $(HOST_SUBDIR)/recode && \
8ec98d6c
NN
33397 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33398 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33399 "RANLIB=$${RANLIB}" \
bffcbe34 33400 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 33401 info) \
8ec98d6c
NN
33402 || exit 1
33403
d5eec917 33404@endif recode
8ec98d6c 33405
d5eec917
PB
33406.PHONY: maybe-dvi-recode dvi-recode
33407maybe-dvi-recode:
33408@if recode
33409maybe-dvi-recode: dvi-recode
8ec98d6c 33410
d5eec917
PB
33411dvi-recode: \
33412 configure-recode
15b527ca 33413 @: $(MAKE); $(unstage)
d5eec917 33414 @[ -f ./recode/Makefile ] || exit 0; \
8ec98d6c
NN
33415 r=`${PWD_COMMAND}`; export r; \
33416 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 33417 $(HOST_EXPORTS) \
d5eec917 33418 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
33419 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33420 done; \
d5eec917 33421 echo "Doing dvi in recode" ; \
7fc2ca22 33422 (cd $(HOST_SUBDIR)/recode && \
8ec98d6c
NN
33423 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33424 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33425 "RANLIB=$${RANLIB}" \
bffcbe34 33426 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 33427 dvi) \
8ec98d6c
NN
33428 || exit 1
33429
d5eec917 33430@endif recode
8ec98d6c 33431
39bbbb69
DD
33432.PHONY: maybe-pdf-recode pdf-recode
33433maybe-pdf-recode:
33434@if recode
33435maybe-pdf-recode: pdf-recode
33436
33437pdf-recode: \
33438 configure-recode
33439 @: $(MAKE); $(unstage)
33440 @[ -f ./recode/Makefile ] || exit 0; \
33441 r=`${PWD_COMMAND}`; export r; \
33442 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33443 $(HOST_EXPORTS) \
33444 for flag in $(EXTRA_HOST_FLAGS) ; do \
33445 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33446 done; \
33447 echo "Doing pdf in recode" ; \
33448 (cd $(HOST_SUBDIR)/recode && \
33449 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33450 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33451 "RANLIB=$${RANLIB}" \
bffcbe34 33452 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
33453 pdf) \
33454 || exit 1
33455
33456@endif recode
33457
b6fb961f
MS
33458.PHONY: maybe-html-recode html-recode
33459maybe-html-recode:
33460@if recode
33461maybe-html-recode: html-recode
33462
33463html-recode: \
33464 configure-recode
15b527ca 33465 @: $(MAKE); $(unstage)
b6fb961f
MS
33466 @[ -f ./recode/Makefile ] || exit 0; \
33467 r=`${PWD_COMMAND}`; export r; \
33468 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
33469 $(HOST_EXPORTS) \
33470 for flag in $(EXTRA_HOST_FLAGS) ; do \
33471 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33472 done; \
33473 echo "Doing html in recode" ; \
7fc2ca22 33474 (cd $(HOST_SUBDIR)/recode && \
b6fb961f
MS
33475 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33476 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33477 "RANLIB=$${RANLIB}" \
bffcbe34 33478 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
33479 html) \
33480 || exit 1
33481
33482@endif recode
33483
d5eec917
PB
33484.PHONY: maybe-TAGS-recode TAGS-recode
33485maybe-TAGS-recode:
33486@if recode
33487maybe-TAGS-recode: TAGS-recode
8ec98d6c 33488
d5eec917
PB
33489TAGS-recode: \
33490 configure-recode
15b527ca 33491 @: $(MAKE); $(unstage)
d5eec917 33492 @[ -f ./recode/Makefile ] || exit 0; \
8ec98d6c
NN
33493 r=`${PWD_COMMAND}`; export r; \
33494 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 33495 $(HOST_EXPORTS) \
d5eec917 33496 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
33497 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33498 done; \
d5eec917 33499 echo "Doing TAGS in recode" ; \
7fc2ca22 33500 (cd $(HOST_SUBDIR)/recode && \
8ec98d6c
NN
33501 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33502 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33503 "RANLIB=$${RANLIB}" \
bffcbe34 33504 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 33505 TAGS) \
8ec98d6c
NN
33506 || exit 1
33507
d5eec917 33508@endif recode
8ec98d6c 33509
d5eec917
PB
33510.PHONY: maybe-install-info-recode install-info-recode
33511maybe-install-info-recode:
33512@if recode
33513maybe-install-info-recode: install-info-recode
8ec98d6c 33514
d5eec917
PB
33515install-info-recode: \
33516 configure-recode \
33517 info-recode
15b527ca 33518 @: $(MAKE); $(unstage)
d5eec917 33519 @[ -f ./recode/Makefile ] || exit 0; \
8ec98d6c
NN
33520 r=`${PWD_COMMAND}`; export r; \
33521 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 33522 $(HOST_EXPORTS) \
d5eec917 33523 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
33524 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33525 done; \
d5eec917 33526 echo "Doing install-info in recode" ; \
7fc2ca22 33527 (cd $(HOST_SUBDIR)/recode && \
8ec98d6c
NN
33528 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33529 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33530 "RANLIB=$${RANLIB}" \
bffcbe34 33531 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 33532 install-info) \
8ec98d6c
NN
33533 || exit 1
33534
d5eec917 33535@endif recode
8ec98d6c 33536
d4954b6d
DD
33537.PHONY: maybe-install-pdf-recode install-pdf-recode
33538maybe-install-pdf-recode:
33539@if recode
33540maybe-install-pdf-recode: install-pdf-recode
33541
33542install-pdf-recode: \
33543 configure-recode \
33544 pdf-recode
33545 @: $(MAKE); $(unstage)
33546 @[ -f ./recode/Makefile ] || exit 0; \
33547 r=`${PWD_COMMAND}`; export r; \
33548 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33549 $(HOST_EXPORTS) \
33550 for flag in $(EXTRA_HOST_FLAGS) ; do \
33551 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33552 done; \
33553 echo "Doing install-pdf in recode" ; \
33554 (cd $(HOST_SUBDIR)/recode && \
33555 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33556 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33557 "RANLIB=$${RANLIB}" \
bffcbe34 33558 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
33559 install-pdf) \
33560 || exit 1
33561
33562@endif recode
33563
83c9add4
CD
33564.PHONY: maybe-install-html-recode install-html-recode
33565maybe-install-html-recode:
33566@if recode
33567maybe-install-html-recode: install-html-recode
33568
33569install-html-recode: \
33570 configure-recode \
33571 html-recode
33572 @: $(MAKE); $(unstage)
33573 @[ -f ./recode/Makefile ] || exit 0; \
33574 r=`${PWD_COMMAND}`; export r; \
33575 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33576 $(HOST_EXPORTS) \
33577 for flag in $(EXTRA_HOST_FLAGS) ; do \
33578 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33579 done; \
33580 echo "Doing install-html in recode" ; \
33581 (cd $(HOST_SUBDIR)/recode && \
33582 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33583 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33584 "RANLIB=$${RANLIB}" \
bffcbe34 33585 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
33586 install-html) \
33587 || exit 1
33588
33589@endif recode
33590
d5eec917
PB
33591.PHONY: maybe-installcheck-recode installcheck-recode
33592maybe-installcheck-recode:
33593@if recode
33594maybe-installcheck-recode: installcheck-recode
8ec98d6c 33595
d5eec917
PB
33596installcheck-recode: \
33597 configure-recode
15b527ca 33598 @: $(MAKE); $(unstage)
d5eec917 33599 @[ -f ./recode/Makefile ] || exit 0; \
8ec98d6c
NN
33600 r=`${PWD_COMMAND}`; export r; \
33601 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 33602 $(HOST_EXPORTS) \
d5eec917 33603 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
33604 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33605 done; \
d5eec917 33606 echo "Doing installcheck in recode" ; \
7fc2ca22 33607 (cd $(HOST_SUBDIR)/recode && \
8ec98d6c
NN
33608 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33609 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33610 "RANLIB=$${RANLIB}" \
bffcbe34 33611 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 33612 installcheck) \
8ec98d6c
NN
33613 || exit 1
33614
d5eec917 33615@endif recode
8ec98d6c 33616
d5eec917
PB
33617.PHONY: maybe-mostlyclean-recode mostlyclean-recode
33618maybe-mostlyclean-recode:
33619@if recode
33620maybe-mostlyclean-recode: mostlyclean-recode
8ec98d6c 33621
d5eec917 33622mostlyclean-recode:
15b527ca 33623 @: $(MAKE); $(unstage)
d5eec917 33624 @[ -f ./recode/Makefile ] || exit 0; \
8ec98d6c
NN
33625 r=`${PWD_COMMAND}`; export r; \
33626 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 33627 $(HOST_EXPORTS) \
d5eec917 33628 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
33629 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33630 done; \
d5eec917 33631 echo "Doing mostlyclean in recode" ; \
7fc2ca22 33632 (cd $(HOST_SUBDIR)/recode && \
8ec98d6c
NN
33633 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33634 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33635 "RANLIB=$${RANLIB}" \
bffcbe34 33636 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 33637 mostlyclean) \
8ec98d6c
NN
33638 || exit 1
33639
d5eec917 33640@endif recode
8ec98d6c 33641
d5eec917
PB
33642.PHONY: maybe-clean-recode clean-recode
33643maybe-clean-recode:
33644@if recode
33645maybe-clean-recode: clean-recode
8ec98d6c 33646
d5eec917 33647clean-recode:
15b527ca 33648 @: $(MAKE); $(unstage)
d5eec917 33649 @[ -f ./recode/Makefile ] || exit 0; \
8ec98d6c
NN
33650 r=`${PWD_COMMAND}`; export r; \
33651 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 33652 $(HOST_EXPORTS) \
d5eec917 33653 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
33654 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33655 done; \
d5eec917 33656 echo "Doing clean in recode" ; \
7fc2ca22 33657 (cd $(HOST_SUBDIR)/recode && \
8ec98d6c
NN
33658 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33659 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33660 "RANLIB=$${RANLIB}" \
bffcbe34 33661 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 33662 clean) \
8ec98d6c
NN
33663 || exit 1
33664
d5eec917 33665@endif recode
8ec98d6c 33666
d5eec917
PB
33667.PHONY: maybe-distclean-recode distclean-recode
33668maybe-distclean-recode:
33669@if recode
33670maybe-distclean-recode: distclean-recode
8ec98d6c 33671
d5eec917 33672distclean-recode:
15b527ca 33673 @: $(MAKE); $(unstage)
d5eec917 33674 @[ -f ./recode/Makefile ] || exit 0; \
8ec98d6c
NN
33675 r=`${PWD_COMMAND}`; export r; \
33676 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 33677 $(HOST_EXPORTS) \
d5eec917 33678 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
33679 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33680 done; \
d5eec917 33681 echo "Doing distclean in recode" ; \
7fc2ca22 33682 (cd $(HOST_SUBDIR)/recode && \
8ec98d6c
NN
33683 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33684 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33685 "RANLIB=$${RANLIB}" \
bffcbe34 33686 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 33687 distclean) \
8ec98d6c
NN
33688 || exit 1
33689
d5eec917 33690@endif recode
8ec98d6c 33691
d5eec917
PB
33692.PHONY: maybe-maintainer-clean-recode maintainer-clean-recode
33693maybe-maintainer-clean-recode:
33694@if recode
33695maybe-maintainer-clean-recode: maintainer-clean-recode
8ec98d6c 33696
d5eec917 33697maintainer-clean-recode:
15b527ca 33698 @: $(MAKE); $(unstage)
d5eec917 33699 @[ -f ./recode/Makefile ] || exit 0; \
8ec98d6c
NN
33700 r=`${PWD_COMMAND}`; export r; \
33701 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 33702 $(HOST_EXPORTS) \
d5eec917 33703 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
33704 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33705 done; \
d5eec917 33706 echo "Doing maintainer-clean in recode" ; \
7fc2ca22 33707 (cd $(HOST_SUBDIR)/recode && \
8ec98d6c
NN
33708 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33709 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33710 "RANLIB=$${RANLIB}" \
bffcbe34 33711 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 33712 maintainer-clean) \
8ec98d6c 33713 || exit 1
70ffc148 33714
d5eec917 33715@endif recode
8ecc6504
NN
33716
33717
f0fdfd34 33718
d5eec917
PB
33719.PHONY: configure-sed maybe-configure-sed
33720maybe-configure-sed:
e1e5148c
CD
33721@if gcc-bootstrap
33722configure-sed: stage_current
33723@endif gcc-bootstrap
d5eec917
PB
33724@if sed
33725maybe-configure-sed: configure-sed
ec92c4d6 33726configure-sed:
15b527ca 33727 @: $(MAKE); $(unstage)
ec92c4d6 33728 @r=`${PWD_COMMAND}`; export r; \
5230d454 33729 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
33730 test ! -f $(HOST_SUBDIR)/sed/Makefile || exit 0; \
33731 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/sed ; \
a675b75a 33732 $(HOST_EXPORTS) \
f0fdfd34
PB
33733 echo Configuring in $(HOST_SUBDIR)/sed; \
33734 cd "$(HOST_SUBDIR)/sed" || exit 1; \
94f860c0 33735 case $(srcdir) in \
7fc2ca22
PB
33736 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33737 *) topdir=`echo $(HOST_SUBDIR)/sed/ | \
33738 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 33739 esac; \
7fc2ca22
PB
33740 srcdiroption="--srcdir=$${topdir}/sed"; \
33741 libsrcdir="$$s/sed"; \
94f860c0 33742 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
33743 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
33744 --target=${target_alias} $${srcdiroption} \
94f860c0 33745 || exit 1
d5eec917 33746@endif sed
94f860c0 33747
f0fdfd34
PB
33748
33749
a8a96878
PB
33750
33751
d5eec917
PB
33752.PHONY: all-sed maybe-all-sed
33753maybe-all-sed:
e1e5148c
CD
33754@if gcc-bootstrap
33755all-sed: stage_current
33756@endif gcc-bootstrap
d5eec917 33757@if sed
5e6b1f07 33758TARGET-sed=all
d5eec917
PB
33759maybe-all-sed: all-sed
33760all-sed: configure-sed
15b527ca 33761 @: $(MAKE); $(unstage)
5230d454
L
33762 @r=`${PWD_COMMAND}`; export r; \
33763 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 33764 $(HOST_EXPORTS) \
7fc2ca22 33765 (cd $(HOST_SUBDIR)/sed && \
6532abb6
PB
33766 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
33767 $(TARGET-sed))
d5eec917 33768@endif sed
8ecc6504 33769
f0fdfd34 33770
a8a96878
PB
33771
33772
d5eec917
PB
33773.PHONY: check-sed maybe-check-sed
33774maybe-check-sed:
33775@if sed
33776maybe-check-sed: check-sed
8ecc6504 33777
d5eec917 33778check-sed:
15b527ca 33779 @: $(MAKE); $(unstage)
5230d454
L
33780 @r=`${PWD_COMMAND}`; export r; \
33781 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 33782 $(HOST_EXPORTS) \
7fc2ca22
PB
33783 (cd $(HOST_SUBDIR)/sed && \
33784 $(MAKE) $(FLAGS_TO_PASS) check)
8ecc6504 33785
d5eec917 33786@endif sed
8ecc6504 33787
d5eec917
PB
33788.PHONY: install-sed maybe-install-sed
33789maybe-install-sed:
33790@if sed
33791maybe-install-sed: install-sed
70ffc148 33792
d5eec917 33793install-sed: installdirs
15b527ca 33794 @: $(MAKE); $(unstage)
5230d454
L
33795 @r=`${PWD_COMMAND}`; export r; \
33796 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 33797 $(HOST_EXPORTS) \
7fc2ca22 33798 (cd $(HOST_SUBDIR)/sed && \
93c60b6d 33799 $(MAKE) $(FLAGS_TO_PASS) install)
8ecc6504 33800
d5eec917 33801@endif sed
8ecc6504 33802
39bbbb69 33803# Other targets (info, dvi, pdf, etc.)
8ec98d6c 33804
d5eec917
PB
33805.PHONY: maybe-info-sed info-sed
33806maybe-info-sed:
33807@if sed
33808maybe-info-sed: info-sed
8ec98d6c 33809
d5eec917
PB
33810info-sed: \
33811 configure-sed
15b527ca 33812 @: $(MAKE); $(unstage)
d5eec917 33813 @[ -f ./sed/Makefile ] || exit 0; \
8ec98d6c
NN
33814 r=`${PWD_COMMAND}`; export r; \
33815 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 33816 $(HOST_EXPORTS) \
d5eec917 33817 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
33818 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33819 done; \
b6fb961f 33820 echo "Doing info in sed" ; \
7fc2ca22 33821 (cd $(HOST_SUBDIR)/sed && \
b6fb961f
MS
33822 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33823 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33824 "RANLIB=$${RANLIB}" \
bffcbe34 33825 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
33826 info) \
33827 || exit 1
33828
33829@endif sed
33830
33831.PHONY: maybe-dvi-sed dvi-sed
33832maybe-dvi-sed:
33833@if sed
33834maybe-dvi-sed: dvi-sed
33835
33836dvi-sed: \
33837 configure-sed
15b527ca 33838 @: $(MAKE); $(unstage)
b6fb961f
MS
33839 @[ -f ./sed/Makefile ] || exit 0; \
33840 r=`${PWD_COMMAND}`; export r; \
33841 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
33842 $(HOST_EXPORTS) \
33843 for flag in $(EXTRA_HOST_FLAGS) ; do \
33844 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33845 done; \
33846 echo "Doing dvi in sed" ; \
7fc2ca22 33847 (cd $(HOST_SUBDIR)/sed && \
8ec98d6c
NN
33848 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33849 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33850 "RANLIB=$${RANLIB}" \
bffcbe34 33851 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f 33852 dvi) \
8ec98d6c
NN
33853 || exit 1
33854
d5eec917 33855@endif sed
8ec98d6c 33856
39bbbb69
DD
33857.PHONY: maybe-pdf-sed pdf-sed
33858maybe-pdf-sed:
33859@if sed
33860maybe-pdf-sed: pdf-sed
33861
33862pdf-sed: \
33863 configure-sed
33864 @: $(MAKE); $(unstage)
33865 @[ -f ./sed/Makefile ] || exit 0; \
33866 r=`${PWD_COMMAND}`; export r; \
33867 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33868 $(HOST_EXPORTS) \
33869 for flag in $(EXTRA_HOST_FLAGS) ; do \
33870 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33871 done; \
33872 echo "Doing pdf in sed" ; \
33873 (cd $(HOST_SUBDIR)/sed && \
33874 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33875 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33876 "RANLIB=$${RANLIB}" \
bffcbe34 33877 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
33878 pdf) \
33879 || exit 1
33880
33881@endif sed
33882
b6fb961f
MS
33883.PHONY: maybe-html-sed html-sed
33884maybe-html-sed:
d5eec917 33885@if sed
b6fb961f 33886maybe-html-sed: html-sed
8ec98d6c 33887
b6fb961f 33888html-sed: \
d5eec917 33889 configure-sed
15b527ca 33890 @: $(MAKE); $(unstage)
d5eec917 33891 @[ -f ./sed/Makefile ] || exit 0; \
8ec98d6c
NN
33892 r=`${PWD_COMMAND}`; export r; \
33893 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 33894 $(HOST_EXPORTS) \
d5eec917 33895 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
33896 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33897 done; \
b6fb961f 33898 echo "Doing html in sed" ; \
7fc2ca22 33899 (cd $(HOST_SUBDIR)/sed && \
8ec98d6c
NN
33900 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33901 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33902 "RANLIB=$${RANLIB}" \
bffcbe34 33903 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f 33904 html) \
8ec98d6c
NN
33905 || exit 1
33906
d5eec917 33907@endif sed
8ec98d6c 33908
d5eec917
PB
33909.PHONY: maybe-TAGS-sed TAGS-sed
33910maybe-TAGS-sed:
33911@if sed
33912maybe-TAGS-sed: TAGS-sed
8ec98d6c 33913
d5eec917
PB
33914TAGS-sed: \
33915 configure-sed
15b527ca 33916 @: $(MAKE); $(unstage)
d5eec917 33917 @[ -f ./sed/Makefile ] || exit 0; \
8ec98d6c
NN
33918 r=`${PWD_COMMAND}`; export r; \
33919 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 33920 $(HOST_EXPORTS) \
d5eec917 33921 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
33922 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33923 done; \
d5eec917 33924 echo "Doing TAGS in sed" ; \
7fc2ca22 33925 (cd $(HOST_SUBDIR)/sed && \
8ec98d6c
NN
33926 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33927 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33928 "RANLIB=$${RANLIB}" \
bffcbe34 33929 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 33930 TAGS) \
8ec98d6c
NN
33931 || exit 1
33932
d5eec917 33933@endif sed
8ec98d6c 33934
d5eec917
PB
33935.PHONY: maybe-install-info-sed install-info-sed
33936maybe-install-info-sed:
33937@if sed
33938maybe-install-info-sed: install-info-sed
8ec98d6c 33939
d5eec917
PB
33940install-info-sed: \
33941 configure-sed \
33942 info-sed
15b527ca 33943 @: $(MAKE); $(unstage)
d5eec917 33944 @[ -f ./sed/Makefile ] || exit 0; \
8ec98d6c
NN
33945 r=`${PWD_COMMAND}`; export r; \
33946 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 33947 $(HOST_EXPORTS) \
d5eec917 33948 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
33949 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33950 done; \
d5eec917 33951 echo "Doing install-info in sed" ; \
7fc2ca22 33952 (cd $(HOST_SUBDIR)/sed && \
8ec98d6c
NN
33953 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33954 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33955 "RANLIB=$${RANLIB}" \
bffcbe34 33956 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 33957 install-info) \
8ec98d6c
NN
33958 || exit 1
33959
d5eec917 33960@endif sed
8ec98d6c 33961
d4954b6d
DD
33962.PHONY: maybe-install-pdf-sed install-pdf-sed
33963maybe-install-pdf-sed:
33964@if sed
33965maybe-install-pdf-sed: install-pdf-sed
33966
33967install-pdf-sed: \
33968 configure-sed \
33969 pdf-sed
33970 @: $(MAKE); $(unstage)
33971 @[ -f ./sed/Makefile ] || exit 0; \
33972 r=`${PWD_COMMAND}`; export r; \
33973 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33974 $(HOST_EXPORTS) \
33975 for flag in $(EXTRA_HOST_FLAGS) ; do \
33976 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33977 done; \
33978 echo "Doing install-pdf in sed" ; \
33979 (cd $(HOST_SUBDIR)/sed && \
33980 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33981 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33982 "RANLIB=$${RANLIB}" \
bffcbe34 33983 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
33984 install-pdf) \
33985 || exit 1
33986
33987@endif sed
33988
83c9add4
CD
33989.PHONY: maybe-install-html-sed install-html-sed
33990maybe-install-html-sed:
33991@if sed
33992maybe-install-html-sed: install-html-sed
33993
33994install-html-sed: \
33995 configure-sed \
33996 html-sed
33997 @: $(MAKE); $(unstage)
33998 @[ -f ./sed/Makefile ] || exit 0; \
33999 r=`${PWD_COMMAND}`; export r; \
34000 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34001 $(HOST_EXPORTS) \
34002 for flag in $(EXTRA_HOST_FLAGS) ; do \
34003 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34004 done; \
34005 echo "Doing install-html in sed" ; \
34006 (cd $(HOST_SUBDIR)/sed && \
34007 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34008 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34009 "RANLIB=$${RANLIB}" \
bffcbe34 34010 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
34011 install-html) \
34012 || exit 1
34013
34014@endif sed
34015
d5eec917
PB
34016.PHONY: maybe-installcheck-sed installcheck-sed
34017maybe-installcheck-sed:
34018@if sed
34019maybe-installcheck-sed: installcheck-sed
8ec98d6c 34020
d5eec917
PB
34021installcheck-sed: \
34022 configure-sed
15b527ca 34023 @: $(MAKE); $(unstage)
d5eec917 34024 @[ -f ./sed/Makefile ] || exit 0; \
8ec98d6c
NN
34025 r=`${PWD_COMMAND}`; export r; \
34026 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 34027 $(HOST_EXPORTS) \
d5eec917 34028 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
34029 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34030 done; \
d5eec917 34031 echo "Doing installcheck in sed" ; \
7fc2ca22 34032 (cd $(HOST_SUBDIR)/sed && \
8ec98d6c
NN
34033 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34034 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34035 "RANLIB=$${RANLIB}" \
bffcbe34 34036 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 34037 installcheck) \
8ec98d6c
NN
34038 || exit 1
34039
d5eec917 34040@endif sed
8ec98d6c 34041
d5eec917
PB
34042.PHONY: maybe-mostlyclean-sed mostlyclean-sed
34043maybe-mostlyclean-sed:
34044@if sed
34045maybe-mostlyclean-sed: mostlyclean-sed
8ec98d6c 34046
d5eec917 34047mostlyclean-sed:
15b527ca 34048 @: $(MAKE); $(unstage)
d5eec917 34049 @[ -f ./sed/Makefile ] || exit 0; \
8ec98d6c
NN
34050 r=`${PWD_COMMAND}`; export r; \
34051 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 34052 $(HOST_EXPORTS) \
d5eec917 34053 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
34054 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34055 done; \
d5eec917 34056 echo "Doing mostlyclean in sed" ; \
7fc2ca22 34057 (cd $(HOST_SUBDIR)/sed && \
8ec98d6c
NN
34058 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34059 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34060 "RANLIB=$${RANLIB}" \
bffcbe34 34061 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 34062 mostlyclean) \
8ec98d6c
NN
34063 || exit 1
34064
d5eec917 34065@endif sed
8ec98d6c 34066
d5eec917
PB
34067.PHONY: maybe-clean-sed clean-sed
34068maybe-clean-sed:
34069@if sed
34070maybe-clean-sed: clean-sed
8ec98d6c 34071
d5eec917 34072clean-sed:
15b527ca 34073 @: $(MAKE); $(unstage)
d5eec917 34074 @[ -f ./sed/Makefile ] || exit 0; \
8ec98d6c
NN
34075 r=`${PWD_COMMAND}`; export r; \
34076 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 34077 $(HOST_EXPORTS) \
d5eec917 34078 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
34079 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34080 done; \
d5eec917 34081 echo "Doing clean in sed" ; \
7fc2ca22 34082 (cd $(HOST_SUBDIR)/sed && \
8ec98d6c
NN
34083 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34084 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34085 "RANLIB=$${RANLIB}" \
bffcbe34 34086 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 34087 clean) \
8ec98d6c
NN
34088 || exit 1
34089
d5eec917 34090@endif sed
8ec98d6c 34091
d5eec917
PB
34092.PHONY: maybe-distclean-sed distclean-sed
34093maybe-distclean-sed:
34094@if sed
34095maybe-distclean-sed: distclean-sed
8ec98d6c 34096
d5eec917 34097distclean-sed:
15b527ca 34098 @: $(MAKE); $(unstage)
d5eec917 34099 @[ -f ./sed/Makefile ] || exit 0; \
8ec98d6c
NN
34100 r=`${PWD_COMMAND}`; export r; \
34101 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 34102 $(HOST_EXPORTS) \
d5eec917 34103 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
34104 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34105 done; \
d5eec917 34106 echo "Doing distclean in sed" ; \
7fc2ca22 34107 (cd $(HOST_SUBDIR)/sed && \
8ec98d6c
NN
34108 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34109 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34110 "RANLIB=$${RANLIB}" \
bffcbe34 34111 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 34112 distclean) \
8ec98d6c
NN
34113 || exit 1
34114
d5eec917 34115@endif sed
8ec98d6c 34116
d5eec917
PB
34117.PHONY: maybe-maintainer-clean-sed maintainer-clean-sed
34118maybe-maintainer-clean-sed:
34119@if sed
34120maybe-maintainer-clean-sed: maintainer-clean-sed
8ec98d6c 34121
d5eec917 34122maintainer-clean-sed:
15b527ca 34123 @: $(MAKE); $(unstage)
d5eec917 34124 @[ -f ./sed/Makefile ] || exit 0; \
8ec98d6c
NN
34125 r=`${PWD_COMMAND}`; export r; \
34126 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 34127 $(HOST_EXPORTS) \
d5eec917 34128 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
34129 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34130 done; \
d5eec917 34131 echo "Doing maintainer-clean in sed" ; \
7fc2ca22 34132 (cd $(HOST_SUBDIR)/sed && \
8ec98d6c
NN
34133 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34134 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34135 "RANLIB=$${RANLIB}" \
bffcbe34 34136 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 34137 maintainer-clean) \
8ec98d6c
NN
34138 || exit 1
34139
d5eec917 34140@endif sed
8ec98d6c
NN
34141
34142
f0fdfd34 34143
d5eec917
PB
34144.PHONY: configure-send-pr maybe-configure-send-pr
34145maybe-configure-send-pr:
e1e5148c
CD
34146@if gcc-bootstrap
34147configure-send-pr: stage_current
34148@endif gcc-bootstrap
d5eec917
PB
34149@if send-pr
34150maybe-configure-send-pr: configure-send-pr
ec92c4d6 34151configure-send-pr:
15b527ca 34152 @: $(MAKE); $(unstage)
ec92c4d6 34153 @r=`${PWD_COMMAND}`; export r; \
5230d454 34154 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
34155 test ! -f $(HOST_SUBDIR)/send-pr/Makefile || exit 0; \
34156 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/send-pr ; \
a675b75a 34157 $(HOST_EXPORTS) \
f0fdfd34
PB
34158 echo Configuring in $(HOST_SUBDIR)/send-pr; \
34159 cd "$(HOST_SUBDIR)/send-pr" || exit 1; \
94f860c0 34160 case $(srcdir) in \
7fc2ca22
PB
34161 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34162 *) topdir=`echo $(HOST_SUBDIR)/send-pr/ | \
34163 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 34164 esac; \
7fc2ca22
PB
34165 srcdiroption="--srcdir=$${topdir}/send-pr"; \
34166 libsrcdir="$$s/send-pr"; \
94f860c0 34167 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
34168 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
34169 --target=${target_alias} $${srcdiroption} \
94f860c0 34170 || exit 1
d5eec917 34171@endif send-pr
94f860c0 34172
f0fdfd34
PB
34173
34174
a8a96878
PB
34175
34176
d5eec917
PB
34177.PHONY: all-send-pr maybe-all-send-pr
34178maybe-all-send-pr:
e1e5148c
CD
34179@if gcc-bootstrap
34180all-send-pr: stage_current
34181@endif gcc-bootstrap
d5eec917 34182@if send-pr
5e6b1f07 34183TARGET-send-pr=all
d5eec917
PB
34184maybe-all-send-pr: all-send-pr
34185all-send-pr: configure-send-pr
15b527ca 34186 @: $(MAKE); $(unstage)
5230d454
L
34187 @r=`${PWD_COMMAND}`; export r; \
34188 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 34189 $(HOST_EXPORTS) \
7fc2ca22 34190 (cd $(HOST_SUBDIR)/send-pr && \
6532abb6
PB
34191 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
34192 $(TARGET-send-pr))
d5eec917 34193@endif send-pr
8ecc6504 34194
f0fdfd34 34195
a8a96878
PB
34196
34197
d5eec917
PB
34198.PHONY: check-send-pr maybe-check-send-pr
34199maybe-check-send-pr:
34200@if send-pr
34201maybe-check-send-pr: check-send-pr
8ecc6504 34202
d5eec917 34203check-send-pr:
15b527ca 34204 @: $(MAKE); $(unstage)
5230d454
L
34205 @r=`${PWD_COMMAND}`; export r; \
34206 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 34207 $(HOST_EXPORTS) \
7fc2ca22
PB
34208 (cd $(HOST_SUBDIR)/send-pr && \
34209 $(MAKE) $(FLAGS_TO_PASS) check)
8ecc6504 34210
d5eec917 34211@endif send-pr
8ecc6504 34212
d5eec917
PB
34213.PHONY: install-send-pr maybe-install-send-pr
34214maybe-install-send-pr:
34215@if send-pr
34216maybe-install-send-pr: install-send-pr
70ffc148 34217
d5eec917 34218install-send-pr: installdirs
15b527ca 34219 @: $(MAKE); $(unstage)
5230d454
L
34220 @r=`${PWD_COMMAND}`; export r; \
34221 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 34222 $(HOST_EXPORTS) \
7fc2ca22 34223 (cd $(HOST_SUBDIR)/send-pr && \
93c60b6d 34224 $(MAKE) $(FLAGS_TO_PASS) install)
8ecc6504 34225
d5eec917 34226@endif send-pr
8ecc6504 34227
39bbbb69 34228# Other targets (info, dvi, pdf, etc.)
8ec98d6c 34229
d5eec917
PB
34230.PHONY: maybe-info-send-pr info-send-pr
34231maybe-info-send-pr:
34232@if send-pr
34233maybe-info-send-pr: info-send-pr
8ec98d6c 34234
d5eec917
PB
34235info-send-pr: \
34236 configure-send-pr
15b527ca 34237 @: $(MAKE); $(unstage)
d5eec917 34238 @[ -f ./send-pr/Makefile ] || exit 0; \
5230d454
L
34239 r=`${PWD_COMMAND}`; export r; \
34240 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 34241 $(HOST_EXPORTS) \
d5eec917 34242 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
34243 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34244 done; \
d5eec917 34245 echo "Doing info in send-pr" ; \
7fc2ca22 34246 (cd $(HOST_SUBDIR)/send-pr && \
8ec98d6c
NN
34247 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34248 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34249 "RANLIB=$${RANLIB}" \
bffcbe34 34250 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 34251 info) \
94f860c0
NN
34252 || exit 1
34253
d5eec917 34254@endif send-pr
8ec98d6c 34255
d5eec917
PB
34256.PHONY: maybe-dvi-send-pr dvi-send-pr
34257maybe-dvi-send-pr:
34258@if send-pr
34259maybe-dvi-send-pr: dvi-send-pr
8ec98d6c 34260
d5eec917
PB
34261dvi-send-pr: \
34262 configure-send-pr
15b527ca 34263 @: $(MAKE); $(unstage)
d5eec917 34264 @[ -f ./send-pr/Makefile ] || exit 0; \
8ec98d6c 34265 r=`${PWD_COMMAND}`; export r; \
5230d454 34266 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 34267 $(HOST_EXPORTS) \
d5eec917 34268 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
34269 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34270 done; \
d5eec917 34271 echo "Doing dvi in send-pr" ; \
7fc2ca22 34272 (cd $(HOST_SUBDIR)/send-pr && \
8ec98d6c
NN
34273 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34274 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34275 "RANLIB=$${RANLIB}" \
bffcbe34 34276 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 34277 dvi) \
8ec98d6c 34278 || exit 1
8ecc6504 34279
d5eec917 34280@endif send-pr
8ecc6504 34281
39bbbb69
DD
34282.PHONY: maybe-pdf-send-pr pdf-send-pr
34283maybe-pdf-send-pr:
34284@if send-pr
34285maybe-pdf-send-pr: pdf-send-pr
34286
34287pdf-send-pr: \
34288 configure-send-pr
34289 @: $(MAKE); $(unstage)
34290 @[ -f ./send-pr/Makefile ] || exit 0; \
34291 r=`${PWD_COMMAND}`; export r; \
34292 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34293 $(HOST_EXPORTS) \
34294 for flag in $(EXTRA_HOST_FLAGS) ; do \
34295 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34296 done; \
34297 echo "Doing pdf in send-pr" ; \
34298 (cd $(HOST_SUBDIR)/send-pr && \
34299 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34300 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34301 "RANLIB=$${RANLIB}" \
bffcbe34 34302 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
34303 pdf) \
34304 || exit 1
34305
34306@endif send-pr
34307
b6fb961f
MS
34308.PHONY: maybe-html-send-pr html-send-pr
34309maybe-html-send-pr:
34310@if send-pr
34311maybe-html-send-pr: html-send-pr
34312
34313html-send-pr: \
34314 configure-send-pr
15b527ca 34315 @: $(MAKE); $(unstage)
b6fb961f
MS
34316 @[ -f ./send-pr/Makefile ] || exit 0; \
34317 r=`${PWD_COMMAND}`; export r; \
34318 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
34319 $(HOST_EXPORTS) \
34320 for flag in $(EXTRA_HOST_FLAGS) ; do \
34321 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34322 done; \
34323 echo "Doing html in send-pr" ; \
7fc2ca22 34324 (cd $(HOST_SUBDIR)/send-pr && \
b6fb961f
MS
34325 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34326 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34327 "RANLIB=$${RANLIB}" \
bffcbe34 34328 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
34329 html) \
34330 || exit 1
34331
34332@endif send-pr
34333
d5eec917
PB
34334.PHONY: maybe-TAGS-send-pr TAGS-send-pr
34335maybe-TAGS-send-pr:
34336@if send-pr
34337maybe-TAGS-send-pr: TAGS-send-pr
8ec98d6c 34338
d5eec917
PB
34339TAGS-send-pr: \
34340 configure-send-pr
15b527ca 34341 @: $(MAKE); $(unstage)
d5eec917 34342 @[ -f ./send-pr/Makefile ] || exit 0; \
8ec98d6c
NN
34343 r=`${PWD_COMMAND}`; export r; \
34344 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 34345 $(HOST_EXPORTS) \
d5eec917 34346 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
34347 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34348 done; \
d5eec917 34349 echo "Doing TAGS in send-pr" ; \
7fc2ca22 34350 (cd $(HOST_SUBDIR)/send-pr && \
8ec98d6c
NN
34351 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34352 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34353 "RANLIB=$${RANLIB}" \
bffcbe34 34354 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 34355 TAGS) \
8ec98d6c 34356 || exit 1
8ecc6504 34357
d5eec917 34358@endif send-pr
8ecc6504 34359
d5eec917
PB
34360.PHONY: maybe-install-info-send-pr install-info-send-pr
34361maybe-install-info-send-pr:
34362@if send-pr
34363maybe-install-info-send-pr: install-info-send-pr
70ffc148 34364
d5eec917
PB
34365install-info-send-pr: \
34366 configure-send-pr \
34367 info-send-pr
15b527ca 34368 @: $(MAKE); $(unstage)
d5eec917 34369 @[ -f ./send-pr/Makefile ] || exit 0; \
8ec98d6c
NN
34370 r=`${PWD_COMMAND}`; export r; \
34371 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 34372 $(HOST_EXPORTS) \
d5eec917 34373 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
34374 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34375 done; \
d5eec917 34376 echo "Doing install-info in send-pr" ; \
7fc2ca22 34377 (cd $(HOST_SUBDIR)/send-pr && \
8ec98d6c
NN
34378 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34379 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34380 "RANLIB=$${RANLIB}" \
bffcbe34 34381 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 34382 install-info) \
8ec98d6c
NN
34383 || exit 1
34384
d5eec917 34385@endif send-pr
8ec98d6c 34386
d4954b6d
DD
34387.PHONY: maybe-install-pdf-send-pr install-pdf-send-pr
34388maybe-install-pdf-send-pr:
34389@if send-pr
34390maybe-install-pdf-send-pr: install-pdf-send-pr
34391
34392install-pdf-send-pr: \
34393 configure-send-pr \
34394 pdf-send-pr
34395 @: $(MAKE); $(unstage)
34396 @[ -f ./send-pr/Makefile ] || exit 0; \
34397 r=`${PWD_COMMAND}`; export r; \
34398 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34399 $(HOST_EXPORTS) \
34400 for flag in $(EXTRA_HOST_FLAGS) ; do \
34401 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34402 done; \
34403 echo "Doing install-pdf in send-pr" ; \
34404 (cd $(HOST_SUBDIR)/send-pr && \
34405 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34406 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34407 "RANLIB=$${RANLIB}" \
bffcbe34 34408 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
34409 install-pdf) \
34410 || exit 1
34411
34412@endif send-pr
34413
83c9add4
CD
34414.PHONY: maybe-install-html-send-pr install-html-send-pr
34415maybe-install-html-send-pr:
34416@if send-pr
34417maybe-install-html-send-pr: install-html-send-pr
34418
34419install-html-send-pr: \
34420 configure-send-pr \
34421 html-send-pr
34422 @: $(MAKE); $(unstage)
34423 @[ -f ./send-pr/Makefile ] || exit 0; \
34424 r=`${PWD_COMMAND}`; export r; \
34425 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34426 $(HOST_EXPORTS) \
34427 for flag in $(EXTRA_HOST_FLAGS) ; do \
34428 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34429 done; \
34430 echo "Doing install-html in send-pr" ; \
34431 (cd $(HOST_SUBDIR)/send-pr && \
34432 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34433 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34434 "RANLIB=$${RANLIB}" \
bffcbe34 34435 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
34436 install-html) \
34437 || exit 1
34438
34439@endif send-pr
34440
d5eec917
PB
34441.PHONY: maybe-installcheck-send-pr installcheck-send-pr
34442maybe-installcheck-send-pr:
34443@if send-pr
34444maybe-installcheck-send-pr: installcheck-send-pr
8ec98d6c 34445
d5eec917
PB
34446installcheck-send-pr: \
34447 configure-send-pr
15b527ca 34448 @: $(MAKE); $(unstage)
d5eec917 34449 @[ -f ./send-pr/Makefile ] || exit 0; \
8ec98d6c
NN
34450 r=`${PWD_COMMAND}`; export r; \
34451 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 34452 $(HOST_EXPORTS) \
d5eec917 34453 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
34454 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34455 done; \
d5eec917 34456 echo "Doing installcheck in send-pr" ; \
7fc2ca22 34457 (cd $(HOST_SUBDIR)/send-pr && \
8ec98d6c
NN
34458 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34459 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34460 "RANLIB=$${RANLIB}" \
bffcbe34 34461 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 34462 installcheck) \
8ec98d6c
NN
34463 || exit 1
34464
d5eec917 34465@endif send-pr
8ec98d6c 34466
d5eec917
PB
34467.PHONY: maybe-mostlyclean-send-pr mostlyclean-send-pr
34468maybe-mostlyclean-send-pr:
34469@if send-pr
34470maybe-mostlyclean-send-pr: mostlyclean-send-pr
8ec98d6c 34471
d5eec917 34472mostlyclean-send-pr:
15b527ca 34473 @: $(MAKE); $(unstage)
d5eec917 34474 @[ -f ./send-pr/Makefile ] || exit 0; \
8ec98d6c
NN
34475 r=`${PWD_COMMAND}`; export r; \
34476 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 34477 $(HOST_EXPORTS) \
d5eec917 34478 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
34479 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34480 done; \
d5eec917 34481 echo "Doing mostlyclean in send-pr" ; \
7fc2ca22 34482 (cd $(HOST_SUBDIR)/send-pr && \
8ec98d6c
NN
34483 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34484 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34485 "RANLIB=$${RANLIB}" \
bffcbe34 34486 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 34487 mostlyclean) \
8ec98d6c
NN
34488 || exit 1
34489
d5eec917 34490@endif send-pr
8ec98d6c 34491
d5eec917
PB
34492.PHONY: maybe-clean-send-pr clean-send-pr
34493maybe-clean-send-pr:
34494@if send-pr
34495maybe-clean-send-pr: clean-send-pr
8ec98d6c 34496
d5eec917 34497clean-send-pr:
15b527ca 34498 @: $(MAKE); $(unstage)
d5eec917 34499 @[ -f ./send-pr/Makefile ] || exit 0; \
8ec98d6c
NN
34500 r=`${PWD_COMMAND}`; export r; \
34501 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 34502 $(HOST_EXPORTS) \
d5eec917 34503 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
34504 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34505 done; \
d5eec917 34506 echo "Doing clean in send-pr" ; \
7fc2ca22 34507 (cd $(HOST_SUBDIR)/send-pr && \
8ec98d6c
NN
34508 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34509 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34510 "RANLIB=$${RANLIB}" \
bffcbe34 34511 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 34512 clean) \
8ec98d6c
NN
34513 || exit 1
34514
d5eec917 34515@endif send-pr
8ec98d6c 34516
d5eec917
PB
34517.PHONY: maybe-distclean-send-pr distclean-send-pr
34518maybe-distclean-send-pr:
34519@if send-pr
34520maybe-distclean-send-pr: distclean-send-pr
8ec98d6c 34521
d5eec917 34522distclean-send-pr:
15b527ca 34523 @: $(MAKE); $(unstage)
d5eec917 34524 @[ -f ./send-pr/Makefile ] || exit 0; \
8ec98d6c
NN
34525 r=`${PWD_COMMAND}`; export r; \
34526 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 34527 $(HOST_EXPORTS) \
d5eec917 34528 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
34529 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34530 done; \
d5eec917 34531 echo "Doing distclean in send-pr" ; \
7fc2ca22 34532 (cd $(HOST_SUBDIR)/send-pr && \
8ec98d6c
NN
34533 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34534 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34535 "RANLIB=$${RANLIB}" \
bffcbe34 34536 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 34537 distclean) \
8ec98d6c
NN
34538 || exit 1
34539
d5eec917 34540@endif send-pr
8ec98d6c 34541
d5eec917
PB
34542.PHONY: maybe-maintainer-clean-send-pr maintainer-clean-send-pr
34543maybe-maintainer-clean-send-pr:
34544@if send-pr
34545maybe-maintainer-clean-send-pr: maintainer-clean-send-pr
8ec98d6c 34546
d5eec917 34547maintainer-clean-send-pr:
15b527ca 34548 @: $(MAKE); $(unstage)
d5eec917 34549 @[ -f ./send-pr/Makefile ] || exit 0; \
8ec98d6c 34550 r=`${PWD_COMMAND}`; export r; \
5230d454 34551 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 34552 $(HOST_EXPORTS) \
d5eec917 34553 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
34554 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34555 done; \
d5eec917 34556 echo "Doing maintainer-clean in send-pr" ; \
7fc2ca22 34557 (cd $(HOST_SUBDIR)/send-pr && \
8ec98d6c
NN
34558 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34559 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34560 "RANLIB=$${RANLIB}" \
bffcbe34 34561 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 34562 maintainer-clean) \
8ec98d6c 34563 || exit 1
8ecc6504 34564
d5eec917 34565@endif send-pr
8ecc6504 34566
8ec98d6c 34567
f0fdfd34 34568
d5eec917
PB
34569.PHONY: configure-shellutils maybe-configure-shellutils
34570maybe-configure-shellutils:
e1e5148c
CD
34571@if gcc-bootstrap
34572configure-shellutils: stage_current
34573@endif gcc-bootstrap
d5eec917
PB
34574@if shellutils
34575maybe-configure-shellutils: configure-shellutils
ec92c4d6 34576configure-shellutils:
15b527ca 34577 @: $(MAKE); $(unstage)
ec92c4d6 34578 @r=`${PWD_COMMAND}`; export r; \
5230d454 34579 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
34580 test ! -f $(HOST_SUBDIR)/shellutils/Makefile || exit 0; \
34581 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/shellutils ; \
a675b75a 34582 $(HOST_EXPORTS) \
f0fdfd34
PB
34583 echo Configuring in $(HOST_SUBDIR)/shellutils; \
34584 cd "$(HOST_SUBDIR)/shellutils" || exit 1; \
94f860c0 34585 case $(srcdir) in \
7fc2ca22
PB
34586 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34587 *) topdir=`echo $(HOST_SUBDIR)/shellutils/ | \
34588 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 34589 esac; \
7fc2ca22
PB
34590 srcdiroption="--srcdir=$${topdir}/shellutils"; \
34591 libsrcdir="$$s/shellutils"; \
94f860c0 34592 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
34593 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
34594 --target=${target_alias} $${srcdiroption} \
94f860c0 34595 || exit 1
d5eec917 34596@endif shellutils
94f860c0 34597
f0fdfd34
PB
34598
34599
a8a96878
PB
34600
34601
d5eec917
PB
34602.PHONY: all-shellutils maybe-all-shellutils
34603maybe-all-shellutils:
e1e5148c
CD
34604@if gcc-bootstrap
34605all-shellutils: stage_current
34606@endif gcc-bootstrap
d5eec917 34607@if shellutils
5e6b1f07 34608TARGET-shellutils=all
d5eec917
PB
34609maybe-all-shellutils: all-shellutils
34610all-shellutils: configure-shellutils
15b527ca 34611 @: $(MAKE); $(unstage)
5230d454
L
34612 @r=`${PWD_COMMAND}`; export r; \
34613 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 34614 $(HOST_EXPORTS) \
7fc2ca22 34615 (cd $(HOST_SUBDIR)/shellutils && \
6532abb6
PB
34616 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
34617 $(TARGET-shellutils))
d5eec917 34618@endif shellutils
8ecc6504 34619
f0fdfd34 34620
a8a96878
PB
34621
34622
d5eec917
PB
34623.PHONY: check-shellutils maybe-check-shellutils
34624maybe-check-shellutils:
34625@if shellutils
34626maybe-check-shellutils: check-shellutils
8ecc6504 34627
d5eec917 34628check-shellutils:
15b527ca 34629 @: $(MAKE); $(unstage)
5230d454
L
34630 @r=`${PWD_COMMAND}`; export r; \
34631 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 34632 $(HOST_EXPORTS) \
7fc2ca22
PB
34633 (cd $(HOST_SUBDIR)/shellutils && \
34634 $(MAKE) $(FLAGS_TO_PASS) check)
8ecc6504 34635
d5eec917 34636@endif shellutils
8ecc6504 34637
d5eec917
PB
34638.PHONY: install-shellutils maybe-install-shellutils
34639maybe-install-shellutils:
34640@if shellutils
34641maybe-install-shellutils: install-shellutils
70ffc148 34642
d5eec917 34643install-shellutils: installdirs
15b527ca 34644 @: $(MAKE); $(unstage)
5230d454
L
34645 @r=`${PWD_COMMAND}`; export r; \
34646 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 34647 $(HOST_EXPORTS) \
7fc2ca22 34648 (cd $(HOST_SUBDIR)/shellutils && \
93c60b6d 34649 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 34650
d5eec917 34651@endif shellutils
8ec98d6c 34652
39bbbb69 34653# Other targets (info, dvi, pdf, etc.)
8ec98d6c 34654
d5eec917
PB
34655.PHONY: maybe-info-shellutils info-shellutils
34656maybe-info-shellutils:
34657@if shellutils
34658maybe-info-shellutils: info-shellutils
8ec98d6c 34659
d5eec917
PB
34660info-shellutils: \
34661 configure-shellutils
15b527ca 34662 @: $(MAKE); $(unstage)
d5eec917 34663 @[ -f ./shellutils/Makefile ] || exit 0; \
8ec98d6c
NN
34664 r=`${PWD_COMMAND}`; export r; \
34665 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 34666 $(HOST_EXPORTS) \
d5eec917 34667 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
34668 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34669 done; \
d5eec917 34670 echo "Doing info in shellutils" ; \
7fc2ca22 34671 (cd $(HOST_SUBDIR)/shellutils && \
8ec98d6c
NN
34672 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34673 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34674 "RANLIB=$${RANLIB}" \
bffcbe34 34675 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 34676 info) \
8ec98d6c
NN
34677 || exit 1
34678
d5eec917 34679@endif shellutils
8ec98d6c 34680
d5eec917
PB
34681.PHONY: maybe-dvi-shellutils dvi-shellutils
34682maybe-dvi-shellutils:
34683@if shellutils
34684maybe-dvi-shellutils: dvi-shellutils
8ec98d6c 34685
d5eec917
PB
34686dvi-shellutils: \
34687 configure-shellutils
15b527ca 34688 @: $(MAKE); $(unstage)
d5eec917 34689 @[ -f ./shellutils/Makefile ] || exit 0; \
8ec98d6c
NN
34690 r=`${PWD_COMMAND}`; export r; \
34691 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 34692 $(HOST_EXPORTS) \
d5eec917 34693 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
34694 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34695 done; \
d5eec917 34696 echo "Doing dvi in shellutils" ; \
7fc2ca22 34697 (cd $(HOST_SUBDIR)/shellutils && \
8ec98d6c
NN
34698 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34699 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34700 "RANLIB=$${RANLIB}" \
bffcbe34 34701 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 34702 dvi) \
8ec98d6c
NN
34703 || exit 1
34704
d5eec917 34705@endif shellutils
8ec98d6c 34706
39bbbb69
DD
34707.PHONY: maybe-pdf-shellutils pdf-shellutils
34708maybe-pdf-shellutils:
34709@if shellutils
34710maybe-pdf-shellutils: pdf-shellutils
34711
34712pdf-shellutils: \
34713 configure-shellutils
34714 @: $(MAKE); $(unstage)
34715 @[ -f ./shellutils/Makefile ] || exit 0; \
34716 r=`${PWD_COMMAND}`; export r; \
34717 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34718 $(HOST_EXPORTS) \
34719 for flag in $(EXTRA_HOST_FLAGS) ; do \
34720 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34721 done; \
34722 echo "Doing pdf in shellutils" ; \
34723 (cd $(HOST_SUBDIR)/shellutils && \
34724 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34725 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34726 "RANLIB=$${RANLIB}" \
bffcbe34 34727 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
34728 pdf) \
34729 || exit 1
34730
34731@endif shellutils
34732
b6fb961f
MS
34733.PHONY: maybe-html-shellutils html-shellutils
34734maybe-html-shellutils:
34735@if shellutils
34736maybe-html-shellutils: html-shellutils
34737
34738html-shellutils: \
34739 configure-shellutils
15b527ca 34740 @: $(MAKE); $(unstage)
b6fb961f
MS
34741 @[ -f ./shellutils/Makefile ] || exit 0; \
34742 r=`${PWD_COMMAND}`; export r; \
34743 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
34744 $(HOST_EXPORTS) \
34745 for flag in $(EXTRA_HOST_FLAGS) ; do \
34746 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34747 done; \
34748 echo "Doing html in shellutils" ; \
7fc2ca22 34749 (cd $(HOST_SUBDIR)/shellutils && \
b6fb961f
MS
34750 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34751 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34752 "RANLIB=$${RANLIB}" \
bffcbe34 34753 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
34754 html) \
34755 || exit 1
34756
34757@endif shellutils
34758
d5eec917
PB
34759.PHONY: maybe-TAGS-shellutils TAGS-shellutils
34760maybe-TAGS-shellutils:
34761@if shellutils
34762maybe-TAGS-shellutils: TAGS-shellutils
8ec98d6c 34763
d5eec917
PB
34764TAGS-shellutils: \
34765 configure-shellutils
15b527ca 34766 @: $(MAKE); $(unstage)
d5eec917 34767 @[ -f ./shellutils/Makefile ] || exit 0; \
8ec98d6c
NN
34768 r=`${PWD_COMMAND}`; export r; \
34769 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 34770 $(HOST_EXPORTS) \
d5eec917 34771 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
34772 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34773 done; \
d5eec917 34774 echo "Doing TAGS in shellutils" ; \
7fc2ca22 34775 (cd $(HOST_SUBDIR)/shellutils && \
8ec98d6c
NN
34776 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34777 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34778 "RANLIB=$${RANLIB}" \
bffcbe34 34779 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 34780 TAGS) \
8ec98d6c
NN
34781 || exit 1
34782
d5eec917 34783@endif shellutils
8ec98d6c 34784
d5eec917
PB
34785.PHONY: maybe-install-info-shellutils install-info-shellutils
34786maybe-install-info-shellutils:
34787@if shellutils
34788maybe-install-info-shellutils: install-info-shellutils
8ec98d6c 34789
d5eec917
PB
34790install-info-shellutils: \
34791 configure-shellutils \
34792 info-shellutils
15b527ca 34793 @: $(MAKE); $(unstage)
d5eec917 34794 @[ -f ./shellutils/Makefile ] || exit 0; \
8ec98d6c
NN
34795 r=`${PWD_COMMAND}`; export r; \
34796 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 34797 $(HOST_EXPORTS) \
d5eec917 34798 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
34799 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34800 done; \
d5eec917 34801 echo "Doing install-info in shellutils" ; \
7fc2ca22 34802 (cd $(HOST_SUBDIR)/shellutils && \
8ec98d6c
NN
34803 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34804 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34805 "RANLIB=$${RANLIB}" \
bffcbe34 34806 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 34807 install-info) \
8ec98d6c
NN
34808 || exit 1
34809
d5eec917 34810@endif shellutils
8ec98d6c 34811
d4954b6d
DD
34812.PHONY: maybe-install-pdf-shellutils install-pdf-shellutils
34813maybe-install-pdf-shellutils:
34814@if shellutils
34815maybe-install-pdf-shellutils: install-pdf-shellutils
34816
34817install-pdf-shellutils: \
34818 configure-shellutils \
34819 pdf-shellutils
34820 @: $(MAKE); $(unstage)
34821 @[ -f ./shellutils/Makefile ] || exit 0; \
34822 r=`${PWD_COMMAND}`; export r; \
34823 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34824 $(HOST_EXPORTS) \
34825 for flag in $(EXTRA_HOST_FLAGS) ; do \
34826 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34827 done; \
34828 echo "Doing install-pdf in shellutils" ; \
34829 (cd $(HOST_SUBDIR)/shellutils && \
34830 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34831 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34832 "RANLIB=$${RANLIB}" \
bffcbe34 34833 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
34834 install-pdf) \
34835 || exit 1
34836
34837@endif shellutils
34838
83c9add4
CD
34839.PHONY: maybe-install-html-shellutils install-html-shellutils
34840maybe-install-html-shellutils:
34841@if shellutils
34842maybe-install-html-shellutils: install-html-shellutils
34843
34844install-html-shellutils: \
34845 configure-shellutils \
34846 html-shellutils
34847 @: $(MAKE); $(unstage)
34848 @[ -f ./shellutils/Makefile ] || exit 0; \
34849 r=`${PWD_COMMAND}`; export r; \
34850 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34851 $(HOST_EXPORTS) \
34852 for flag in $(EXTRA_HOST_FLAGS) ; do \
34853 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34854 done; \
34855 echo "Doing install-html in shellutils" ; \
34856 (cd $(HOST_SUBDIR)/shellutils && \
34857 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34858 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34859 "RANLIB=$${RANLIB}" \
bffcbe34 34860 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
34861 install-html) \
34862 || exit 1
34863
34864@endif shellutils
34865
d5eec917
PB
34866.PHONY: maybe-installcheck-shellutils installcheck-shellutils
34867maybe-installcheck-shellutils:
34868@if shellutils
34869maybe-installcheck-shellutils: installcheck-shellutils
8ec98d6c 34870
d5eec917
PB
34871installcheck-shellutils: \
34872 configure-shellutils
15b527ca 34873 @: $(MAKE); $(unstage)
d5eec917 34874 @[ -f ./shellutils/Makefile ] || exit 0; \
8ec98d6c
NN
34875 r=`${PWD_COMMAND}`; export r; \
34876 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 34877 $(HOST_EXPORTS) \
d5eec917 34878 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
34879 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34880 done; \
d5eec917 34881 echo "Doing installcheck in shellutils" ; \
7fc2ca22 34882 (cd $(HOST_SUBDIR)/shellutils && \
8ec98d6c
NN
34883 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34884 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34885 "RANLIB=$${RANLIB}" \
bffcbe34 34886 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 34887 installcheck) \
8ec98d6c
NN
34888 || exit 1
34889
d5eec917 34890@endif shellutils
8ec98d6c 34891
d5eec917
PB
34892.PHONY: maybe-mostlyclean-shellutils mostlyclean-shellutils
34893maybe-mostlyclean-shellutils:
34894@if shellutils
34895maybe-mostlyclean-shellutils: mostlyclean-shellutils
8ec98d6c 34896
d5eec917 34897mostlyclean-shellutils:
15b527ca 34898 @: $(MAKE); $(unstage)
d5eec917 34899 @[ -f ./shellutils/Makefile ] || exit 0; \
8ec98d6c
NN
34900 r=`${PWD_COMMAND}`; export r; \
34901 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 34902 $(HOST_EXPORTS) \
d5eec917 34903 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
34904 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34905 done; \
d5eec917 34906 echo "Doing mostlyclean in shellutils" ; \
7fc2ca22 34907 (cd $(HOST_SUBDIR)/shellutils && \
8ec98d6c
NN
34908 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34909 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34910 "RANLIB=$${RANLIB}" \
bffcbe34 34911 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 34912 mostlyclean) \
8ec98d6c
NN
34913 || exit 1
34914
d5eec917 34915@endif shellutils
8ec98d6c 34916
d5eec917
PB
34917.PHONY: maybe-clean-shellutils clean-shellutils
34918maybe-clean-shellutils:
34919@if shellutils
34920maybe-clean-shellutils: clean-shellutils
8ec98d6c 34921
d5eec917 34922clean-shellutils:
15b527ca 34923 @: $(MAKE); $(unstage)
d5eec917 34924 @[ -f ./shellutils/Makefile ] || exit 0; \
8ec98d6c
NN
34925 r=`${PWD_COMMAND}`; export r; \
34926 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 34927 $(HOST_EXPORTS) \
d5eec917 34928 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
34929 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34930 done; \
d5eec917 34931 echo "Doing clean in shellutils" ; \
7fc2ca22 34932 (cd $(HOST_SUBDIR)/shellutils && \
8ec98d6c
NN
34933 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34934 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34935 "RANLIB=$${RANLIB}" \
bffcbe34 34936 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 34937 clean) \
8ec98d6c
NN
34938 || exit 1
34939
d5eec917 34940@endif shellutils
8ec98d6c 34941
d5eec917
PB
34942.PHONY: maybe-distclean-shellutils distclean-shellutils
34943maybe-distclean-shellutils:
34944@if shellutils
34945maybe-distclean-shellutils: distclean-shellutils
8ec98d6c 34946
d5eec917 34947distclean-shellutils:
15b527ca 34948 @: $(MAKE); $(unstage)
d5eec917 34949 @[ -f ./shellutils/Makefile ] || exit 0; \
8ec98d6c
NN
34950 r=`${PWD_COMMAND}`; export r; \
34951 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 34952 $(HOST_EXPORTS) \
d5eec917 34953 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
34954 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34955 done; \
d5eec917 34956 echo "Doing distclean in shellutils" ; \
7fc2ca22 34957 (cd $(HOST_SUBDIR)/shellutils && \
8ec98d6c
NN
34958 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34959 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34960 "RANLIB=$${RANLIB}" \
bffcbe34 34961 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 34962 distclean) \
8ec98d6c
NN
34963 || exit 1
34964
d5eec917 34965@endif shellutils
8ec98d6c 34966
d5eec917
PB
34967.PHONY: maybe-maintainer-clean-shellutils maintainer-clean-shellutils
34968maybe-maintainer-clean-shellutils:
34969@if shellutils
34970maybe-maintainer-clean-shellutils: maintainer-clean-shellutils
8ec98d6c 34971
d5eec917 34972maintainer-clean-shellutils:
15b527ca 34973 @: $(MAKE); $(unstage)
d5eec917 34974 @[ -f ./shellutils/Makefile ] || exit 0; \
8ec98d6c
NN
34975 r=`${PWD_COMMAND}`; export r; \
34976 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 34977 $(HOST_EXPORTS) \
d5eec917 34978 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
34979 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34980 done; \
d5eec917 34981 echo "Doing maintainer-clean in shellutils" ; \
7fc2ca22 34982 (cd $(HOST_SUBDIR)/shellutils && \
8ec98d6c
NN
34983 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34984 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34985 "RANLIB=$${RANLIB}" \
bffcbe34 34986 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 34987 maintainer-clean) \
8ec98d6c 34988 || exit 1
8ecc6504 34989
d5eec917 34990@endif shellutils
8ecc6504 34991
8ec98d6c 34992
f0fdfd34 34993
d5eec917
PB
34994.PHONY: configure-sid maybe-configure-sid
34995maybe-configure-sid:
e1e5148c
CD
34996@if gcc-bootstrap
34997configure-sid: stage_current
34998@endif gcc-bootstrap
d5eec917
PB
34999@if sid
35000maybe-configure-sid: configure-sid
ec92c4d6 35001configure-sid:
15b527ca 35002 @: $(MAKE); $(unstage)
ec92c4d6 35003 @r=`${PWD_COMMAND}`; export r; \
5230d454 35004 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
35005 test ! -f $(HOST_SUBDIR)/sid/Makefile || exit 0; \
35006 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/sid ; \
a675b75a 35007 $(HOST_EXPORTS) \
f0fdfd34
PB
35008 echo Configuring in $(HOST_SUBDIR)/sid; \
35009 cd "$(HOST_SUBDIR)/sid" || exit 1; \
94f860c0 35010 case $(srcdir) in \
7fc2ca22
PB
35011 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35012 *) topdir=`echo $(HOST_SUBDIR)/sid/ | \
35013 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 35014 esac; \
7fc2ca22
PB
35015 srcdiroption="--srcdir=$${topdir}/sid"; \
35016 libsrcdir="$$s/sid"; \
94f860c0 35017 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
35018 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
35019 --target=${target_alias} $${srcdiroption} \
94f860c0 35020 || exit 1
d5eec917 35021@endif sid
94f860c0 35022
f0fdfd34
PB
35023
35024
a8a96878
PB
35025
35026
d5eec917
PB
35027.PHONY: all-sid maybe-all-sid
35028maybe-all-sid:
e1e5148c
CD
35029@if gcc-bootstrap
35030all-sid: stage_current
35031@endif gcc-bootstrap
d5eec917 35032@if sid
5e6b1f07 35033TARGET-sid=all
d5eec917
PB
35034maybe-all-sid: all-sid
35035all-sid: configure-sid
15b527ca 35036 @: $(MAKE); $(unstage)
5230d454
L
35037 @r=`${PWD_COMMAND}`; export r; \
35038 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 35039 $(HOST_EXPORTS) \
7fc2ca22 35040 (cd $(HOST_SUBDIR)/sid && \
6532abb6
PB
35041 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
35042 $(TARGET-sid))
d5eec917 35043@endif sid
8ecc6504 35044
f0fdfd34 35045
a8a96878
PB
35046
35047
d5eec917
PB
35048.PHONY: check-sid maybe-check-sid
35049maybe-check-sid:
35050@if sid
35051maybe-check-sid: check-sid
8ecc6504 35052
d5eec917 35053check-sid:
15b527ca 35054 @: $(MAKE); $(unstage)
8ec98d6c
NN
35055 @r=`${PWD_COMMAND}`; export r; \
35056 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 35057 $(HOST_EXPORTS) \
7fc2ca22
PB
35058 (cd $(HOST_SUBDIR)/sid && \
35059 $(MAKE) $(FLAGS_TO_PASS) check)
8ecc6504 35060
d5eec917 35061@endif sid
8ecc6504 35062
d5eec917
PB
35063.PHONY: install-sid maybe-install-sid
35064maybe-install-sid:
35065@if sid
35066maybe-install-sid: install-sid
70ffc148 35067
d5eec917 35068install-sid: installdirs
15b527ca 35069 @: $(MAKE); $(unstage)
5230d454
L
35070 @r=`${PWD_COMMAND}`; export r; \
35071 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 35072 $(HOST_EXPORTS) \
7fc2ca22 35073 (cd $(HOST_SUBDIR)/sid && \
93c60b6d 35074 $(MAKE) $(FLAGS_TO_PASS) install)
8ecc6504 35075
d5eec917 35076@endif sid
8ecc6504 35077
39bbbb69 35078# Other targets (info, dvi, pdf, etc.)
8ec98d6c 35079
d5eec917
PB
35080.PHONY: maybe-info-sid info-sid
35081maybe-info-sid:
35082@if sid
35083maybe-info-sid: info-sid
8ec98d6c 35084
d5eec917
PB
35085info-sid: \
35086 configure-sid
15b527ca 35087 @: $(MAKE); $(unstage)
d5eec917 35088 @[ -f ./sid/Makefile ] || exit 0; \
8ec98d6c
NN
35089 r=`${PWD_COMMAND}`; export r; \
35090 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 35091 $(HOST_EXPORTS) \
d5eec917 35092 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
35093 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35094 done; \
d5eec917 35095 echo "Doing info in sid" ; \
7fc2ca22 35096 (cd $(HOST_SUBDIR)/sid && \
8ec98d6c
NN
35097 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35098 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35099 "RANLIB=$${RANLIB}" \
bffcbe34 35100 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 35101 info) \
8ec98d6c
NN
35102 || exit 1
35103
d5eec917 35104@endif sid
8ec98d6c 35105
d5eec917
PB
35106.PHONY: maybe-dvi-sid dvi-sid
35107maybe-dvi-sid:
35108@if sid
35109maybe-dvi-sid: dvi-sid
8ec98d6c 35110
d5eec917
PB
35111dvi-sid: \
35112 configure-sid
15b527ca 35113 @: $(MAKE); $(unstage)
d5eec917 35114 @[ -f ./sid/Makefile ] || exit 0; \
8ec98d6c
NN
35115 r=`${PWD_COMMAND}`; export r; \
35116 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 35117 $(HOST_EXPORTS) \
d5eec917 35118 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
35119 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35120 done; \
d5eec917 35121 echo "Doing dvi in sid" ; \
7fc2ca22 35122 (cd $(HOST_SUBDIR)/sid && \
8ec98d6c
NN
35123 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35124 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35125 "RANLIB=$${RANLIB}" \
bffcbe34 35126 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 35127 dvi) \
8ec98d6c
NN
35128 || exit 1
35129
d5eec917 35130@endif sid
8ec98d6c 35131
39bbbb69
DD
35132.PHONY: maybe-pdf-sid pdf-sid
35133maybe-pdf-sid:
35134@if sid
35135maybe-pdf-sid: pdf-sid
35136
35137pdf-sid: \
35138 configure-sid
35139 @: $(MAKE); $(unstage)
35140 @[ -f ./sid/Makefile ] || exit 0; \
35141 r=`${PWD_COMMAND}`; export r; \
35142 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35143 $(HOST_EXPORTS) \
35144 for flag in $(EXTRA_HOST_FLAGS) ; do \
35145 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35146 done; \
35147 echo "Doing pdf in sid" ; \
35148 (cd $(HOST_SUBDIR)/sid && \
35149 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35150 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35151 "RANLIB=$${RANLIB}" \
bffcbe34 35152 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
35153 pdf) \
35154 || exit 1
35155
35156@endif sid
35157
b6fb961f
MS
35158.PHONY: maybe-html-sid html-sid
35159maybe-html-sid:
35160@if sid
35161maybe-html-sid: html-sid
35162
35163html-sid: \
35164 configure-sid
15b527ca 35165 @: $(MAKE); $(unstage)
b6fb961f
MS
35166 @[ -f ./sid/Makefile ] || exit 0; \
35167 r=`${PWD_COMMAND}`; export r; \
35168 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
35169 $(HOST_EXPORTS) \
35170 for flag in $(EXTRA_HOST_FLAGS) ; do \
35171 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35172 done; \
35173 echo "Doing html in sid" ; \
7fc2ca22 35174 (cd $(HOST_SUBDIR)/sid && \
b6fb961f
MS
35175 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35176 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35177 "RANLIB=$${RANLIB}" \
bffcbe34 35178 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
35179 html) \
35180 || exit 1
35181
35182@endif sid
35183
d5eec917
PB
35184.PHONY: maybe-TAGS-sid TAGS-sid
35185maybe-TAGS-sid:
35186@if sid
35187maybe-TAGS-sid: TAGS-sid
8ec98d6c 35188
d5eec917
PB
35189TAGS-sid: \
35190 configure-sid
15b527ca 35191 @: $(MAKE); $(unstage)
d5eec917 35192 @[ -f ./sid/Makefile ] || exit 0; \
8ec98d6c
NN
35193 r=`${PWD_COMMAND}`; export r; \
35194 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 35195 $(HOST_EXPORTS) \
d5eec917 35196 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
35197 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35198 done; \
d5eec917 35199 echo "Doing TAGS in sid" ; \
7fc2ca22 35200 (cd $(HOST_SUBDIR)/sid && \
8ec98d6c
NN
35201 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35202 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35203 "RANLIB=$${RANLIB}" \
bffcbe34 35204 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 35205 TAGS) \
8ec98d6c
NN
35206 || exit 1
35207
d5eec917 35208@endif sid
8ec98d6c 35209
d5eec917
PB
35210.PHONY: maybe-install-info-sid install-info-sid
35211maybe-install-info-sid:
35212@if sid
35213maybe-install-info-sid: install-info-sid
8ec98d6c 35214
d5eec917
PB
35215install-info-sid: \
35216 configure-sid \
35217 info-sid
15b527ca 35218 @: $(MAKE); $(unstage)
d5eec917 35219 @[ -f ./sid/Makefile ] || exit 0; \
8ec98d6c
NN
35220 r=`${PWD_COMMAND}`; export r; \
35221 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 35222 $(HOST_EXPORTS) \
d5eec917 35223 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
35224 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35225 done; \
d5eec917 35226 echo "Doing install-info in sid" ; \
7fc2ca22 35227 (cd $(HOST_SUBDIR)/sid && \
8ec98d6c
NN
35228 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35229 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35230 "RANLIB=$${RANLIB}" \
bffcbe34 35231 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 35232 install-info) \
8ec98d6c
NN
35233 || exit 1
35234
d5eec917 35235@endif sid
8ec98d6c 35236
d4954b6d
DD
35237.PHONY: maybe-install-pdf-sid install-pdf-sid
35238maybe-install-pdf-sid:
35239@if sid
35240maybe-install-pdf-sid: install-pdf-sid
35241
35242install-pdf-sid: \
35243 configure-sid \
35244 pdf-sid
35245 @: $(MAKE); $(unstage)
35246 @[ -f ./sid/Makefile ] || exit 0; \
35247 r=`${PWD_COMMAND}`; export r; \
35248 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35249 $(HOST_EXPORTS) \
35250 for flag in $(EXTRA_HOST_FLAGS) ; do \
35251 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35252 done; \
35253 echo "Doing install-pdf in sid" ; \
35254 (cd $(HOST_SUBDIR)/sid && \
35255 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35256 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35257 "RANLIB=$${RANLIB}" \
bffcbe34 35258 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
35259 install-pdf) \
35260 || exit 1
35261
35262@endif sid
35263
83c9add4
CD
35264.PHONY: maybe-install-html-sid install-html-sid
35265maybe-install-html-sid:
35266@if sid
35267maybe-install-html-sid: install-html-sid
35268
35269install-html-sid: \
35270 configure-sid \
35271 html-sid
35272 @: $(MAKE); $(unstage)
35273 @[ -f ./sid/Makefile ] || exit 0; \
35274 r=`${PWD_COMMAND}`; export r; \
35275 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35276 $(HOST_EXPORTS) \
35277 for flag in $(EXTRA_HOST_FLAGS) ; do \
35278 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35279 done; \
35280 echo "Doing install-html in sid" ; \
35281 (cd $(HOST_SUBDIR)/sid && \
35282 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35283 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35284 "RANLIB=$${RANLIB}" \
bffcbe34 35285 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
35286 install-html) \
35287 || exit 1
35288
35289@endif sid
35290
d5eec917
PB
35291.PHONY: maybe-installcheck-sid installcheck-sid
35292maybe-installcheck-sid:
35293@if sid
35294maybe-installcheck-sid: installcheck-sid
8ec98d6c 35295
d5eec917
PB
35296installcheck-sid: \
35297 configure-sid
15b527ca 35298 @: $(MAKE); $(unstage)
d5eec917
PB
35299 @[ -f ./sid/Makefile ] || exit 0; \
35300 r=`${PWD_COMMAND}`; export r; \
8ec98d6c 35301 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 35302 $(HOST_EXPORTS) \
d5eec917 35303 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
35304 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35305 done; \
d5eec917 35306 echo "Doing installcheck in sid" ; \
7fc2ca22 35307 (cd $(HOST_SUBDIR)/sid && \
8ec98d6c
NN
35308 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35309 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35310 "RANLIB=$${RANLIB}" \
bffcbe34 35311 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 35312 installcheck) \
8ec98d6c
NN
35313 || exit 1
35314
d5eec917 35315@endif sid
8ec98d6c 35316
d5eec917
PB
35317.PHONY: maybe-mostlyclean-sid mostlyclean-sid
35318maybe-mostlyclean-sid:
35319@if sid
35320maybe-mostlyclean-sid: mostlyclean-sid
8ec98d6c 35321
d5eec917 35322mostlyclean-sid:
15b527ca 35323 @: $(MAKE); $(unstage)
d5eec917 35324 @[ -f ./sid/Makefile ] || exit 0; \
8ec98d6c
NN
35325 r=`${PWD_COMMAND}`; export r; \
35326 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 35327 $(HOST_EXPORTS) \
d5eec917 35328 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
35329 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35330 done; \
d5eec917 35331 echo "Doing mostlyclean in sid" ; \
7fc2ca22 35332 (cd $(HOST_SUBDIR)/sid && \
8ec98d6c
NN
35333 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35334 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35335 "RANLIB=$${RANLIB}" \
bffcbe34 35336 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 35337 mostlyclean) \
8ec98d6c
NN
35338 || exit 1
35339
d5eec917 35340@endif sid
8ec98d6c 35341
d5eec917
PB
35342.PHONY: maybe-clean-sid clean-sid
35343maybe-clean-sid:
35344@if sid
35345maybe-clean-sid: clean-sid
8ec98d6c 35346
d5eec917 35347clean-sid:
15b527ca 35348 @: $(MAKE); $(unstage)
d5eec917 35349 @[ -f ./sid/Makefile ] || exit 0; \
8ec98d6c
NN
35350 r=`${PWD_COMMAND}`; export r; \
35351 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 35352 $(HOST_EXPORTS) \
d5eec917 35353 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
35354 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35355 done; \
d5eec917 35356 echo "Doing clean in sid" ; \
7fc2ca22 35357 (cd $(HOST_SUBDIR)/sid && \
8ec98d6c
NN
35358 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35359 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35360 "RANLIB=$${RANLIB}" \
bffcbe34 35361 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 35362 clean) \
8ec98d6c
NN
35363 || exit 1
35364
d5eec917 35365@endif sid
8ec98d6c 35366
d5eec917
PB
35367.PHONY: maybe-distclean-sid distclean-sid
35368maybe-distclean-sid:
35369@if sid
35370maybe-distclean-sid: distclean-sid
8ec98d6c 35371
d5eec917 35372distclean-sid:
15b527ca 35373 @: $(MAKE); $(unstage)
d5eec917 35374 @[ -f ./sid/Makefile ] || exit 0; \
8ec98d6c
NN
35375 r=`${PWD_COMMAND}`; export r; \
35376 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 35377 $(HOST_EXPORTS) \
d5eec917 35378 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
35379 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35380 done; \
d5eec917 35381 echo "Doing distclean in sid" ; \
7fc2ca22 35382 (cd $(HOST_SUBDIR)/sid && \
8ec98d6c
NN
35383 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35384 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35385 "RANLIB=$${RANLIB}" \
bffcbe34 35386 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 35387 distclean) \
8ec98d6c
NN
35388 || exit 1
35389
d5eec917 35390@endif sid
8ec98d6c 35391
d5eec917
PB
35392.PHONY: maybe-maintainer-clean-sid maintainer-clean-sid
35393maybe-maintainer-clean-sid:
35394@if sid
35395maybe-maintainer-clean-sid: maintainer-clean-sid
8ec98d6c 35396
d5eec917 35397maintainer-clean-sid:
15b527ca 35398 @: $(MAKE); $(unstage)
d5eec917 35399 @[ -f ./sid/Makefile ] || exit 0; \
8ec98d6c
NN
35400 r=`${PWD_COMMAND}`; export r; \
35401 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 35402 $(HOST_EXPORTS) \
d5eec917 35403 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
35404 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35405 done; \
d5eec917 35406 echo "Doing maintainer-clean in sid" ; \
7fc2ca22 35407 (cd $(HOST_SUBDIR)/sid && \
8ec98d6c
NN
35408 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35409 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35410 "RANLIB=$${RANLIB}" \
bffcbe34 35411 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 35412 maintainer-clean) \
8ec98d6c
NN
35413 || exit 1
35414
d5eec917 35415@endif sid
8ec98d6c
NN
35416
35417
f0fdfd34 35418
d5eec917
PB
35419.PHONY: configure-sim maybe-configure-sim
35420maybe-configure-sim:
e1e5148c
CD
35421@if gcc-bootstrap
35422configure-sim: stage_current
35423@endif gcc-bootstrap
d5eec917
PB
35424@if sim
35425maybe-configure-sim: configure-sim
ec92c4d6 35426configure-sim:
15b527ca 35427 @: $(MAKE); $(unstage)
ec92c4d6 35428 @r=`${PWD_COMMAND}`; export r; \
5230d454 35429 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
35430 test ! -f $(HOST_SUBDIR)/sim/Makefile || exit 0; \
35431 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/sim ; \
a675b75a 35432 $(HOST_EXPORTS) \
f0fdfd34
PB
35433 echo Configuring in $(HOST_SUBDIR)/sim; \
35434 cd "$(HOST_SUBDIR)/sim" || exit 1; \
94f860c0 35435 case $(srcdir) in \
7fc2ca22
PB
35436 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35437 *) topdir=`echo $(HOST_SUBDIR)/sim/ | \
35438 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 35439 esac; \
7fc2ca22
PB
35440 srcdiroption="--srcdir=$${topdir}/sim"; \
35441 libsrcdir="$$s/sim"; \
94f860c0 35442 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
35443 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
35444 --target=${target_alias} $${srcdiroption} \
94f860c0 35445 || exit 1
d5eec917 35446@endif sim
94f860c0 35447
f0fdfd34
PB
35448
35449
a8a96878
PB
35450
35451
d5eec917
PB
35452.PHONY: all-sim maybe-all-sim
35453maybe-all-sim:
e1e5148c
CD
35454@if gcc-bootstrap
35455all-sim: stage_current
35456@endif gcc-bootstrap
d5eec917 35457@if sim
5e6b1f07 35458TARGET-sim=all
d5eec917
PB
35459maybe-all-sim: all-sim
35460all-sim: configure-sim
15b527ca 35461 @: $(MAKE); $(unstage)
5230d454
L
35462 @r=`${PWD_COMMAND}`; export r; \
35463 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 35464 $(HOST_EXPORTS) \
7fc2ca22 35465 (cd $(HOST_SUBDIR)/sim && \
6532abb6
PB
35466 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
35467 $(TARGET-sim))
d5eec917 35468@endif sim
8ecc6504 35469
f0fdfd34 35470
a8a96878
PB
35471
35472
d5eec917
PB
35473.PHONY: check-sim maybe-check-sim
35474maybe-check-sim:
35475@if sim
35476maybe-check-sim: check-sim
8ecc6504 35477
d5eec917 35478check-sim:
15b527ca 35479 @: $(MAKE); $(unstage)
5230d454
L
35480 @r=`${PWD_COMMAND}`; export r; \
35481 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 35482 $(HOST_EXPORTS) \
7fc2ca22
PB
35483 (cd $(HOST_SUBDIR)/sim && \
35484 $(MAKE) $(FLAGS_TO_PASS) check)
8ecc6504 35485
d5eec917 35486@endif sim
8ecc6504 35487
d5eec917
PB
35488.PHONY: install-sim maybe-install-sim
35489maybe-install-sim:
35490@if sim
35491maybe-install-sim: install-sim
70ffc148 35492
d5eec917 35493install-sim: installdirs
15b527ca 35494 @: $(MAKE); $(unstage)
5230d454
L
35495 @r=`${PWD_COMMAND}`; export r; \
35496 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 35497 $(HOST_EXPORTS) \
7fc2ca22 35498 (cd $(HOST_SUBDIR)/sim && \
93c60b6d 35499 $(MAKE) $(FLAGS_TO_PASS) install)
8ecc6504 35500
d5eec917 35501@endif sim
8ecc6504 35502
39bbbb69 35503# Other targets (info, dvi, pdf, etc.)
8ec98d6c 35504
d5eec917
PB
35505.PHONY: maybe-info-sim info-sim
35506maybe-info-sim:
35507@if sim
35508maybe-info-sim: info-sim
8ec98d6c 35509
d5eec917
PB
35510info-sim: \
35511 configure-sim
15b527ca 35512 @: $(MAKE); $(unstage)
d5eec917 35513 @[ -f ./sim/Makefile ] || exit 0; \
5230d454
L
35514 r=`${PWD_COMMAND}`; export r; \
35515 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 35516 $(HOST_EXPORTS) \
d5eec917 35517 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
35518 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35519 done; \
d5eec917 35520 echo "Doing info in sim" ; \
7fc2ca22 35521 (cd $(HOST_SUBDIR)/sim && \
8ec98d6c
NN
35522 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35523 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35524 "RANLIB=$${RANLIB}" \
bffcbe34 35525 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 35526 info) \
94f860c0
NN
35527 || exit 1
35528
d5eec917 35529@endif sim
8ec98d6c 35530
d5eec917
PB
35531.PHONY: maybe-dvi-sim dvi-sim
35532maybe-dvi-sim:
35533@if sim
35534maybe-dvi-sim: dvi-sim
8ec98d6c 35535
d5eec917
PB
35536dvi-sim: \
35537 configure-sim
15b527ca 35538 @: $(MAKE); $(unstage)
d5eec917 35539 @[ -f ./sim/Makefile ] || exit 0; \
8ec98d6c 35540 r=`${PWD_COMMAND}`; export r; \
5230d454 35541 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 35542 $(HOST_EXPORTS) \
d5eec917 35543 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
35544 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35545 done; \
d5eec917 35546 echo "Doing dvi in sim" ; \
7fc2ca22 35547 (cd $(HOST_SUBDIR)/sim && \
8ec98d6c
NN
35548 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35549 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35550 "RANLIB=$${RANLIB}" \
bffcbe34 35551 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 35552 dvi) \
8ec98d6c 35553 || exit 1
8ecc6504 35554
d5eec917 35555@endif sim
8ecc6504 35556
39bbbb69
DD
35557.PHONY: maybe-pdf-sim pdf-sim
35558maybe-pdf-sim:
35559@if sim
35560maybe-pdf-sim: pdf-sim
35561
35562pdf-sim: \
35563 configure-sim
35564 @: $(MAKE); $(unstage)
35565 @[ -f ./sim/Makefile ] || exit 0; \
35566 r=`${PWD_COMMAND}`; export r; \
35567 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35568 $(HOST_EXPORTS) \
35569 for flag in $(EXTRA_HOST_FLAGS) ; do \
35570 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35571 done; \
35572 echo "Doing pdf in sim" ; \
35573 (cd $(HOST_SUBDIR)/sim && \
35574 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35575 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35576 "RANLIB=$${RANLIB}" \
bffcbe34 35577 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
35578 pdf) \
35579 || exit 1
35580
35581@endif sim
35582
b6fb961f
MS
35583.PHONY: maybe-html-sim html-sim
35584maybe-html-sim:
35585@if sim
35586maybe-html-sim: html-sim
35587
35588html-sim: \
35589 configure-sim
15b527ca 35590 @: $(MAKE); $(unstage)
b6fb961f
MS
35591 @[ -f ./sim/Makefile ] || exit 0; \
35592 r=`${PWD_COMMAND}`; export r; \
35593 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
35594 $(HOST_EXPORTS) \
35595 for flag in $(EXTRA_HOST_FLAGS) ; do \
35596 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35597 done; \
35598 echo "Doing html in sim" ; \
7fc2ca22 35599 (cd $(HOST_SUBDIR)/sim && \
b6fb961f
MS
35600 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35601 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35602 "RANLIB=$${RANLIB}" \
bffcbe34 35603 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
35604 html) \
35605 || exit 1
35606
35607@endif sim
35608
d5eec917
PB
35609.PHONY: maybe-TAGS-sim TAGS-sim
35610maybe-TAGS-sim:
35611@if sim
35612maybe-TAGS-sim: TAGS-sim
8ec98d6c 35613
d5eec917
PB
35614TAGS-sim: \
35615 configure-sim
15b527ca 35616 @: $(MAKE); $(unstage)
d5eec917 35617 @[ -f ./sim/Makefile ] || exit 0; \
8ec98d6c 35618 r=`${PWD_COMMAND}`; export r; \
5230d454 35619 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 35620 $(HOST_EXPORTS) \
d5eec917 35621 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
35622 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35623 done; \
d5eec917 35624 echo "Doing TAGS in sim" ; \
7fc2ca22 35625 (cd $(HOST_SUBDIR)/sim && \
8ec98d6c
NN
35626 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35627 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35628 "RANLIB=$${RANLIB}" \
bffcbe34 35629 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 35630 TAGS) \
8ec98d6c 35631 || exit 1
8ecc6504 35632
d5eec917 35633@endif sim
8ecc6504 35634
d5eec917
PB
35635.PHONY: maybe-install-info-sim install-info-sim
35636maybe-install-info-sim:
35637@if sim
35638maybe-install-info-sim: install-info-sim
8ec98d6c 35639
d5eec917
PB
35640install-info-sim: \
35641 configure-sim \
35642 info-sim
15b527ca 35643 @: $(MAKE); $(unstage)
d5eec917 35644 @[ -f ./sim/Makefile ] || exit 0; \
8ec98d6c
NN
35645 r=`${PWD_COMMAND}`; export r; \
35646 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 35647 $(HOST_EXPORTS) \
d5eec917 35648 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
35649 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35650 done; \
d5eec917 35651 echo "Doing install-info in sim" ; \
7fc2ca22 35652 (cd $(HOST_SUBDIR)/sim && \
8ec98d6c
NN
35653 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35654 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35655 "RANLIB=$${RANLIB}" \
bffcbe34 35656 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 35657 install-info) \
8ec98d6c
NN
35658 || exit 1
35659
d5eec917 35660@endif sim
8ec98d6c 35661
d4954b6d
DD
35662.PHONY: maybe-install-pdf-sim install-pdf-sim
35663maybe-install-pdf-sim:
35664@if sim
35665maybe-install-pdf-sim: install-pdf-sim
35666
35667install-pdf-sim: \
35668 configure-sim \
35669 pdf-sim
35670 @: $(MAKE); $(unstage)
35671 @[ -f ./sim/Makefile ] || exit 0; \
35672 r=`${PWD_COMMAND}`; export r; \
35673 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35674 $(HOST_EXPORTS) \
35675 for flag in $(EXTRA_HOST_FLAGS) ; do \
35676 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35677 done; \
35678 echo "Doing install-pdf in sim" ; \
35679 (cd $(HOST_SUBDIR)/sim && \
35680 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35681 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35682 "RANLIB=$${RANLIB}" \
bffcbe34 35683 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
35684 install-pdf) \
35685 || exit 1
35686
35687@endif sim
35688
83c9add4
CD
35689.PHONY: maybe-install-html-sim install-html-sim
35690maybe-install-html-sim:
35691@if sim
35692maybe-install-html-sim: install-html-sim
35693
35694install-html-sim: \
35695 configure-sim \
35696 html-sim
35697 @: $(MAKE); $(unstage)
35698 @[ -f ./sim/Makefile ] || exit 0; \
35699 r=`${PWD_COMMAND}`; export r; \
35700 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35701 $(HOST_EXPORTS) \
35702 for flag in $(EXTRA_HOST_FLAGS) ; do \
35703 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35704 done; \
35705 echo "Doing install-html in sim" ; \
35706 (cd $(HOST_SUBDIR)/sim && \
35707 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35708 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35709 "RANLIB=$${RANLIB}" \
bffcbe34 35710 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
35711 install-html) \
35712 || exit 1
35713
35714@endif sim
35715
d5eec917
PB
35716.PHONY: maybe-installcheck-sim installcheck-sim
35717maybe-installcheck-sim:
35718@if sim
35719maybe-installcheck-sim: installcheck-sim
8ec98d6c 35720
d5eec917
PB
35721installcheck-sim: \
35722 configure-sim
15b527ca 35723 @: $(MAKE); $(unstage)
d5eec917 35724 @[ -f ./sim/Makefile ] || exit 0; \
8ec98d6c
NN
35725 r=`${PWD_COMMAND}`; export r; \
35726 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 35727 $(HOST_EXPORTS) \
d5eec917 35728 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
35729 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35730 done; \
d5eec917 35731 echo "Doing installcheck in sim" ; \
7fc2ca22 35732 (cd $(HOST_SUBDIR)/sim && \
8ec98d6c
NN
35733 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35734 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35735 "RANLIB=$${RANLIB}" \
bffcbe34 35736 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 35737 installcheck) \
8ec98d6c
NN
35738 || exit 1
35739
d5eec917 35740@endif sim
8ec98d6c 35741
d5eec917
PB
35742.PHONY: maybe-mostlyclean-sim mostlyclean-sim
35743maybe-mostlyclean-sim:
35744@if sim
35745maybe-mostlyclean-sim: mostlyclean-sim
8ec98d6c 35746
d5eec917 35747mostlyclean-sim:
15b527ca 35748 @: $(MAKE); $(unstage)
d5eec917 35749 @[ -f ./sim/Makefile ] || exit 0; \
8ec98d6c
NN
35750 r=`${PWD_COMMAND}`; export r; \
35751 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 35752 $(HOST_EXPORTS) \
d5eec917 35753 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
35754 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35755 done; \
d5eec917 35756 echo "Doing mostlyclean in sim" ; \
7fc2ca22 35757 (cd $(HOST_SUBDIR)/sim && \
8ec98d6c
NN
35758 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35759 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35760 "RANLIB=$${RANLIB}" \
bffcbe34 35761 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 35762 mostlyclean) \
8ec98d6c
NN
35763 || exit 1
35764
d5eec917 35765@endif sim
8ec98d6c 35766
d5eec917
PB
35767.PHONY: maybe-clean-sim clean-sim
35768maybe-clean-sim:
35769@if sim
35770maybe-clean-sim: clean-sim
8ec98d6c 35771
d5eec917 35772clean-sim:
15b527ca 35773 @: $(MAKE); $(unstage)
d5eec917 35774 @[ -f ./sim/Makefile ] || exit 0; \
8ec98d6c
NN
35775 r=`${PWD_COMMAND}`; export r; \
35776 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 35777 $(HOST_EXPORTS) \
d5eec917 35778 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
35779 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35780 done; \
d5eec917 35781 echo "Doing clean in sim" ; \
7fc2ca22 35782 (cd $(HOST_SUBDIR)/sim && \
8ec98d6c
NN
35783 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35784 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35785 "RANLIB=$${RANLIB}" \
bffcbe34 35786 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 35787 clean) \
8ec98d6c
NN
35788 || exit 1
35789
d5eec917 35790@endif sim
8ec98d6c 35791
d5eec917
PB
35792.PHONY: maybe-distclean-sim distclean-sim
35793maybe-distclean-sim:
35794@if sim
35795maybe-distclean-sim: distclean-sim
8ec98d6c 35796
d5eec917 35797distclean-sim:
15b527ca 35798 @: $(MAKE); $(unstage)
d5eec917 35799 @[ -f ./sim/Makefile ] || exit 0; \
8ec98d6c
NN
35800 r=`${PWD_COMMAND}`; export r; \
35801 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 35802 $(HOST_EXPORTS) \
d5eec917 35803 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
35804 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35805 done; \
d5eec917 35806 echo "Doing distclean in sim" ; \
7fc2ca22 35807 (cd $(HOST_SUBDIR)/sim && \
8ec98d6c
NN
35808 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35809 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35810 "RANLIB=$${RANLIB}" \
bffcbe34 35811 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 35812 distclean) \
8ec98d6c
NN
35813 || exit 1
35814
d5eec917 35815@endif sim
8ec98d6c 35816
d5eec917
PB
35817.PHONY: maybe-maintainer-clean-sim maintainer-clean-sim
35818maybe-maintainer-clean-sim:
35819@if sim
35820maybe-maintainer-clean-sim: maintainer-clean-sim
70ffc148 35821
d5eec917 35822maintainer-clean-sim:
15b527ca 35823 @: $(MAKE); $(unstage)
d5eec917 35824 @[ -f ./sim/Makefile ] || exit 0; \
8ec98d6c 35825 r=`${PWD_COMMAND}`; export r; \
5230d454 35826 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 35827 $(HOST_EXPORTS) \
d5eec917 35828 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
35829 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35830 done; \
d5eec917 35831 echo "Doing maintainer-clean in sim" ; \
7fc2ca22 35832 (cd $(HOST_SUBDIR)/sim && \
8ec98d6c
NN
35833 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35834 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35835 "RANLIB=$${RANLIB}" \
bffcbe34 35836 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 35837 maintainer-clean) \
8ec98d6c 35838 || exit 1
8ecc6504 35839
d5eec917 35840@endif sim
8ecc6504 35841
8ec98d6c 35842
f0fdfd34 35843
d5eec917
PB
35844.PHONY: configure-tar maybe-configure-tar
35845maybe-configure-tar:
e1e5148c
CD
35846@if gcc-bootstrap
35847configure-tar: stage_current
35848@endif gcc-bootstrap
d5eec917
PB
35849@if tar
35850maybe-configure-tar: configure-tar
ec92c4d6 35851configure-tar:
15b527ca 35852 @: $(MAKE); $(unstage)
ec92c4d6 35853 @r=`${PWD_COMMAND}`; export r; \
5230d454 35854 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
35855 test ! -f $(HOST_SUBDIR)/tar/Makefile || exit 0; \
35856 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/tar ; \
a675b75a 35857 $(HOST_EXPORTS) \
f0fdfd34
PB
35858 echo Configuring in $(HOST_SUBDIR)/tar; \
35859 cd "$(HOST_SUBDIR)/tar" || exit 1; \
94f860c0 35860 case $(srcdir) in \
7fc2ca22
PB
35861 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35862 *) topdir=`echo $(HOST_SUBDIR)/tar/ | \
35863 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 35864 esac; \
7fc2ca22
PB
35865 srcdiroption="--srcdir=$${topdir}/tar"; \
35866 libsrcdir="$$s/tar"; \
94f860c0 35867 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
35868 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
35869 --target=${target_alias} $${srcdiroption} \
94f860c0 35870 || exit 1
d5eec917 35871@endif tar
94f860c0 35872
f0fdfd34
PB
35873
35874
a8a96878
PB
35875
35876
d5eec917
PB
35877.PHONY: all-tar maybe-all-tar
35878maybe-all-tar:
e1e5148c
CD
35879@if gcc-bootstrap
35880all-tar: stage_current
35881@endif gcc-bootstrap
d5eec917 35882@if tar
5e6b1f07 35883TARGET-tar=all
d5eec917
PB
35884maybe-all-tar: all-tar
35885all-tar: configure-tar
15b527ca 35886 @: $(MAKE); $(unstage)
5230d454
L
35887 @r=`${PWD_COMMAND}`; export r; \
35888 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 35889 $(HOST_EXPORTS) \
7fc2ca22 35890 (cd $(HOST_SUBDIR)/tar && \
6532abb6
PB
35891 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
35892 $(TARGET-tar))
d5eec917 35893@endif tar
8ecc6504 35894
f0fdfd34 35895
a8a96878
PB
35896
35897
d5eec917
PB
35898.PHONY: check-tar maybe-check-tar
35899maybe-check-tar:
35900@if tar
35901maybe-check-tar: check-tar
8ecc6504 35902
d5eec917 35903check-tar:
15b527ca 35904 @: $(MAKE); $(unstage)
5230d454
L
35905 @r=`${PWD_COMMAND}`; export r; \
35906 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 35907 $(HOST_EXPORTS) \
7fc2ca22
PB
35908 (cd $(HOST_SUBDIR)/tar && \
35909 $(MAKE) $(FLAGS_TO_PASS) check)
8ecc6504 35910
d5eec917 35911@endif tar
8ecc6504 35912
d5eec917
PB
35913.PHONY: install-tar maybe-install-tar
35914maybe-install-tar:
35915@if tar
35916maybe-install-tar: install-tar
70ffc148 35917
d5eec917 35918install-tar: installdirs
15b527ca 35919 @: $(MAKE); $(unstage)
d5eec917
PB
35920 @r=`${PWD_COMMAND}`; export r; \
35921 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d5eec917 35922 $(HOST_EXPORTS) \
7fc2ca22 35923 (cd $(HOST_SUBDIR)/tar && \
93c60b6d 35924 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 35925
d5eec917 35926@endif tar
8ec98d6c 35927
39bbbb69 35928# Other targets (info, dvi, pdf, etc.)
8ec98d6c 35929
d5eec917
PB
35930.PHONY: maybe-info-tar info-tar
35931maybe-info-tar:
35932@if tar
35933maybe-info-tar: info-tar
8ec98d6c 35934
d5eec917
PB
35935info-tar: \
35936 configure-tar
15b527ca 35937 @: $(MAKE); $(unstage)
d5eec917 35938 @[ -f ./tar/Makefile ] || exit 0; \
8ec98d6c 35939 r=`${PWD_COMMAND}`; export r; \
5230d454 35940 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 35941 $(HOST_EXPORTS) \
d5eec917 35942 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
35943 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35944 done; \
d5eec917 35945 echo "Doing info in tar" ; \
7fc2ca22 35946 (cd $(HOST_SUBDIR)/tar && \
8ec98d6c
NN
35947 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35948 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35949 "RANLIB=$${RANLIB}" \
bffcbe34 35950 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 35951 info) \
8ec98d6c
NN
35952 || exit 1
35953
d5eec917 35954@endif tar
8ec98d6c 35955
d5eec917
PB
35956.PHONY: maybe-dvi-tar dvi-tar
35957maybe-dvi-tar:
35958@if tar
35959maybe-dvi-tar: dvi-tar
8ec98d6c 35960
d5eec917
PB
35961dvi-tar: \
35962 configure-tar
15b527ca 35963 @: $(MAKE); $(unstage)
d5eec917 35964 @[ -f ./tar/Makefile ] || exit 0; \
8ec98d6c
NN
35965 r=`${PWD_COMMAND}`; export r; \
35966 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 35967 $(HOST_EXPORTS) \
d5eec917 35968 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
35969 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35970 done; \
d5eec917 35971 echo "Doing dvi in tar" ; \
7fc2ca22 35972 (cd $(HOST_SUBDIR)/tar && \
8ec98d6c
NN
35973 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35974 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35975 "RANLIB=$${RANLIB}" \
bffcbe34 35976 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 35977 dvi) \
8ec98d6c
NN
35978 || exit 1
35979
d5eec917 35980@endif tar
8ec98d6c 35981
39bbbb69
DD
35982.PHONY: maybe-pdf-tar pdf-tar
35983maybe-pdf-tar:
35984@if tar
35985maybe-pdf-tar: pdf-tar
35986
35987pdf-tar: \
35988 configure-tar
35989 @: $(MAKE); $(unstage)
35990 @[ -f ./tar/Makefile ] || exit 0; \
35991 r=`${PWD_COMMAND}`; export r; \
35992 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35993 $(HOST_EXPORTS) \
35994 for flag in $(EXTRA_HOST_FLAGS) ; do \
35995 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35996 done; \
35997 echo "Doing pdf in tar" ; \
35998 (cd $(HOST_SUBDIR)/tar && \
35999 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36000 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36001 "RANLIB=$${RANLIB}" \
bffcbe34 36002 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
36003 pdf) \
36004 || exit 1
36005
36006@endif tar
36007
b6fb961f
MS
36008.PHONY: maybe-html-tar html-tar
36009maybe-html-tar:
36010@if tar
36011maybe-html-tar: html-tar
36012
36013html-tar: \
36014 configure-tar
15b527ca 36015 @: $(MAKE); $(unstage)
b6fb961f
MS
36016 @[ -f ./tar/Makefile ] || exit 0; \
36017 r=`${PWD_COMMAND}`; export r; \
36018 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
36019 $(HOST_EXPORTS) \
36020 for flag in $(EXTRA_HOST_FLAGS) ; do \
36021 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36022 done; \
36023 echo "Doing html in tar" ; \
7fc2ca22 36024 (cd $(HOST_SUBDIR)/tar && \
b6fb961f
MS
36025 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36026 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36027 "RANLIB=$${RANLIB}" \
bffcbe34 36028 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
36029 html) \
36030 || exit 1
36031
36032@endif tar
36033
d5eec917
PB
36034.PHONY: maybe-TAGS-tar TAGS-tar
36035maybe-TAGS-tar:
36036@if tar
36037maybe-TAGS-tar: TAGS-tar
8ec98d6c 36038
d5eec917
PB
36039TAGS-tar: \
36040 configure-tar
15b527ca 36041 @: $(MAKE); $(unstage)
d5eec917 36042 @[ -f ./tar/Makefile ] || exit 0; \
8ec98d6c
NN
36043 r=`${PWD_COMMAND}`; export r; \
36044 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 36045 $(HOST_EXPORTS) \
d5eec917 36046 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
36047 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36048 done; \
d5eec917 36049 echo "Doing TAGS in tar" ; \
7fc2ca22 36050 (cd $(HOST_SUBDIR)/tar && \
8ec98d6c
NN
36051 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36052 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36053 "RANLIB=$${RANLIB}" \
bffcbe34 36054 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 36055 TAGS) \
8ec98d6c
NN
36056 || exit 1
36057
d5eec917 36058@endif tar
8ec98d6c 36059
d5eec917
PB
36060.PHONY: maybe-install-info-tar install-info-tar
36061maybe-install-info-tar:
36062@if tar
36063maybe-install-info-tar: install-info-tar
8ec98d6c 36064
d5eec917
PB
36065install-info-tar: \
36066 configure-tar \
36067 info-tar
15b527ca 36068 @: $(MAKE); $(unstage)
d5eec917 36069 @[ -f ./tar/Makefile ] || exit 0; \
8ec98d6c
NN
36070 r=`${PWD_COMMAND}`; export r; \
36071 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 36072 $(HOST_EXPORTS) \
d5eec917 36073 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
36074 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36075 done; \
d5eec917 36076 echo "Doing install-info in tar" ; \
7fc2ca22 36077 (cd $(HOST_SUBDIR)/tar && \
d5eec917 36078 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8ec98d6c
NN
36079 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36080 "RANLIB=$${RANLIB}" \
bffcbe34 36081 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 36082 install-info) \
8ec98d6c
NN
36083 || exit 1
36084
d5eec917 36085@endif tar
8ec98d6c 36086
d4954b6d
DD
36087.PHONY: maybe-install-pdf-tar install-pdf-tar
36088maybe-install-pdf-tar:
36089@if tar
36090maybe-install-pdf-tar: install-pdf-tar
36091
36092install-pdf-tar: \
36093 configure-tar \
36094 pdf-tar
36095 @: $(MAKE); $(unstage)
36096 @[ -f ./tar/Makefile ] || exit 0; \
36097 r=`${PWD_COMMAND}`; export r; \
36098 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36099 $(HOST_EXPORTS) \
36100 for flag in $(EXTRA_HOST_FLAGS) ; do \
36101 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36102 done; \
36103 echo "Doing install-pdf in tar" ; \
36104 (cd $(HOST_SUBDIR)/tar && \
36105 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36106 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36107 "RANLIB=$${RANLIB}" \
bffcbe34 36108 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
36109 install-pdf) \
36110 || exit 1
36111
36112@endif tar
36113
83c9add4
CD
36114.PHONY: maybe-install-html-tar install-html-tar
36115maybe-install-html-tar:
36116@if tar
36117maybe-install-html-tar: install-html-tar
36118
36119install-html-tar: \
36120 configure-tar \
36121 html-tar
36122 @: $(MAKE); $(unstage)
36123 @[ -f ./tar/Makefile ] || exit 0; \
36124 r=`${PWD_COMMAND}`; export r; \
36125 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36126 $(HOST_EXPORTS) \
36127 for flag in $(EXTRA_HOST_FLAGS) ; do \
36128 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36129 done; \
36130 echo "Doing install-html in tar" ; \
36131 (cd $(HOST_SUBDIR)/tar && \
36132 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36133 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36134 "RANLIB=$${RANLIB}" \
bffcbe34 36135 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
36136 install-html) \
36137 || exit 1
36138
36139@endif tar
36140
d5eec917
PB
36141.PHONY: maybe-installcheck-tar installcheck-tar
36142maybe-installcheck-tar:
36143@if tar
36144maybe-installcheck-tar: installcheck-tar
8ec98d6c 36145
d5eec917
PB
36146installcheck-tar: \
36147 configure-tar
15b527ca 36148 @: $(MAKE); $(unstage)
d5eec917 36149 @[ -f ./tar/Makefile ] || exit 0; \
8ec98d6c
NN
36150 r=`${PWD_COMMAND}`; export r; \
36151 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 36152 $(HOST_EXPORTS) \
d5eec917 36153 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
36154 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36155 done; \
d5eec917 36156 echo "Doing installcheck in tar" ; \
7fc2ca22 36157 (cd $(HOST_SUBDIR)/tar && \
8ec98d6c
NN
36158 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36159 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36160 "RANLIB=$${RANLIB}" \
bffcbe34 36161 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 36162 installcheck) \
8ec98d6c
NN
36163 || exit 1
36164
d5eec917 36165@endif tar
8ec98d6c 36166
d5eec917
PB
36167.PHONY: maybe-mostlyclean-tar mostlyclean-tar
36168maybe-mostlyclean-tar:
36169@if tar
36170maybe-mostlyclean-tar: mostlyclean-tar
8ec98d6c 36171
d5eec917 36172mostlyclean-tar:
15b527ca 36173 @: $(MAKE); $(unstage)
d5eec917 36174 @[ -f ./tar/Makefile ] || exit 0; \
8ec98d6c
NN
36175 r=`${PWD_COMMAND}`; export r; \
36176 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 36177 $(HOST_EXPORTS) \
d5eec917 36178 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
36179 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36180 done; \
d5eec917 36181 echo "Doing mostlyclean in tar" ; \
7fc2ca22 36182 (cd $(HOST_SUBDIR)/tar && \
8ec98d6c
NN
36183 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36184 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36185 "RANLIB=$${RANLIB}" \
bffcbe34 36186 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 36187 mostlyclean) \
8ec98d6c
NN
36188 || exit 1
36189
d5eec917 36190@endif tar
8ec98d6c 36191
d5eec917
PB
36192.PHONY: maybe-clean-tar clean-tar
36193maybe-clean-tar:
36194@if tar
36195maybe-clean-tar: clean-tar
8ec98d6c 36196
d5eec917 36197clean-tar:
15b527ca 36198 @: $(MAKE); $(unstage)
d5eec917 36199 @[ -f ./tar/Makefile ] || exit 0; \
8ec98d6c
NN
36200 r=`${PWD_COMMAND}`; export r; \
36201 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 36202 $(HOST_EXPORTS) \
d5eec917 36203 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
36204 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36205 done; \
d5eec917 36206 echo "Doing clean in tar" ; \
7fc2ca22 36207 (cd $(HOST_SUBDIR)/tar && \
8ec98d6c
NN
36208 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36209 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36210 "RANLIB=$${RANLIB}" \
bffcbe34 36211 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 36212 clean) \
8ec98d6c
NN
36213 || exit 1
36214
d5eec917 36215@endif tar
8ec98d6c 36216
d5eec917
PB
36217.PHONY: maybe-distclean-tar distclean-tar
36218maybe-distclean-tar:
36219@if tar
36220maybe-distclean-tar: distclean-tar
8ec98d6c 36221
d5eec917 36222distclean-tar:
15b527ca 36223 @: $(MAKE); $(unstage)
d5eec917 36224 @[ -f ./tar/Makefile ] || exit 0; \
8ec98d6c
NN
36225 r=`${PWD_COMMAND}`; export r; \
36226 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 36227 $(HOST_EXPORTS) \
d5eec917 36228 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
36229 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36230 done; \
d5eec917 36231 echo "Doing distclean in tar" ; \
7fc2ca22 36232 (cd $(HOST_SUBDIR)/tar && \
8ec98d6c
NN
36233 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36234 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36235 "RANLIB=$${RANLIB}" \
bffcbe34 36236 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 36237 distclean) \
8ec98d6c
NN
36238 || exit 1
36239
d5eec917 36240@endif tar
8ec98d6c 36241
d5eec917
PB
36242.PHONY: maybe-maintainer-clean-tar maintainer-clean-tar
36243maybe-maintainer-clean-tar:
36244@if tar
36245maybe-maintainer-clean-tar: maintainer-clean-tar
8ec98d6c 36246
d5eec917 36247maintainer-clean-tar:
15b527ca 36248 @: $(MAKE); $(unstage)
d5eec917 36249 @[ -f ./tar/Makefile ] || exit 0; \
8ec98d6c
NN
36250 r=`${PWD_COMMAND}`; export r; \
36251 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 36252 $(HOST_EXPORTS) \
d5eec917 36253 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
36254 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36255 done; \
d5eec917 36256 echo "Doing maintainer-clean in tar" ; \
7fc2ca22 36257 (cd $(HOST_SUBDIR)/tar && \
8ec98d6c
NN
36258 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36259 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36260 "RANLIB=$${RANLIB}" \
bffcbe34 36261 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 36262 maintainer-clean) \
8ec98d6c 36263 || exit 1
8ecc6504 36264
d5eec917 36265@endif tar
8ecc6504 36266
8ec98d6c 36267
f0fdfd34 36268
d5eec917
PB
36269.PHONY: configure-texinfo maybe-configure-texinfo
36270maybe-configure-texinfo:
e1e5148c
CD
36271@if gcc-bootstrap
36272configure-texinfo: stage_current
36273@endif gcc-bootstrap
d5eec917
PB
36274@if texinfo
36275maybe-configure-texinfo: configure-texinfo
ec92c4d6 36276configure-texinfo:
15b527ca 36277 @: $(MAKE); $(unstage)
ec92c4d6 36278 @r=`${PWD_COMMAND}`; export r; \
a675b75a 36279 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
36280 test ! -f $(HOST_SUBDIR)/texinfo/Makefile || exit 0; \
36281 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/texinfo ; \
a675b75a 36282 $(HOST_EXPORTS) \
f0fdfd34
PB
36283 echo Configuring in $(HOST_SUBDIR)/texinfo; \
36284 cd "$(HOST_SUBDIR)/texinfo" || exit 1; \
94f860c0 36285 case $(srcdir) in \
7fc2ca22
PB
36286 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
36287 *) topdir=`echo $(HOST_SUBDIR)/texinfo/ | \
36288 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 36289 esac; \
7fc2ca22
PB
36290 srcdiroption="--srcdir=$${topdir}/texinfo"; \
36291 libsrcdir="$$s/texinfo"; \
94f860c0 36292 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
36293 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
36294 --target=${target_alias} $${srcdiroption} \
94f860c0 36295 || exit 1
d5eec917 36296@endif texinfo
94f860c0 36297
f0fdfd34
PB
36298
36299
a8a96878
PB
36300
36301
d5eec917
PB
36302.PHONY: all-texinfo maybe-all-texinfo
36303maybe-all-texinfo:
e1e5148c
CD
36304@if gcc-bootstrap
36305all-texinfo: stage_current
36306@endif gcc-bootstrap
d5eec917 36307@if texinfo
5e6b1f07 36308TARGET-texinfo=all
d5eec917
PB
36309maybe-all-texinfo: all-texinfo
36310all-texinfo: configure-texinfo
15b527ca 36311 @: $(MAKE); $(unstage)
5230d454
L
36312 @r=`${PWD_COMMAND}`; export r; \
36313 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 36314 $(HOST_EXPORTS) \
7fc2ca22 36315 (cd $(HOST_SUBDIR)/texinfo && \
6532abb6
PB
36316 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
36317 $(TARGET-texinfo))
d5eec917 36318@endif texinfo
8ecc6504 36319
f0fdfd34 36320
a8a96878
PB
36321
36322
d5eec917
PB
36323.PHONY: check-texinfo maybe-check-texinfo
36324maybe-check-texinfo:
36325@if texinfo
36326maybe-check-texinfo: check-texinfo
8ecc6504 36327
d5eec917 36328check-texinfo:
15b527ca 36329 @: $(MAKE); $(unstage)
8ec98d6c
NN
36330 @r=`${PWD_COMMAND}`; export r; \
36331 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 36332 $(HOST_EXPORTS) \
7fc2ca22
PB
36333 (cd $(HOST_SUBDIR)/texinfo && \
36334 $(MAKE) $(FLAGS_TO_PASS) check)
8ecc6504 36335
d5eec917 36336@endif texinfo
8ecc6504 36337
d5eec917
PB
36338.PHONY: install-texinfo maybe-install-texinfo
36339maybe-install-texinfo:
36340@if texinfo
36341maybe-install-texinfo: install-texinfo
70ffc148 36342
d5eec917 36343install-texinfo:
8ecc6504 36344
d5eec917 36345@endif texinfo
8ecc6504 36346
39bbbb69 36347# Other targets (info, dvi, pdf, etc.)
8ec98d6c 36348
d5eec917
PB
36349.PHONY: maybe-info-texinfo info-texinfo
36350maybe-info-texinfo:
36351@if texinfo
36352maybe-info-texinfo: info-texinfo
8ec98d6c 36353
d5eec917
PB
36354info-texinfo: \
36355 configure-texinfo
15b527ca 36356 @: $(MAKE); $(unstage)
d5eec917 36357 @[ -f ./texinfo/Makefile ] || exit 0; \
8ec98d6c
NN
36358 r=`${PWD_COMMAND}`; export r; \
36359 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 36360 $(HOST_EXPORTS) \
d5eec917 36361 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
36362 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36363 done; \
d5eec917 36364 echo "Doing info in texinfo" ; \
7fc2ca22 36365 (cd $(HOST_SUBDIR)/texinfo && \
8ec98d6c
NN
36366 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36367 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36368 "RANLIB=$${RANLIB}" \
bffcbe34 36369 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 36370 info) \
8ec98d6c
NN
36371 || exit 1
36372
d5eec917 36373@endif texinfo
8ec98d6c 36374
d5eec917
PB
36375.PHONY: maybe-dvi-texinfo dvi-texinfo
36376maybe-dvi-texinfo:
36377@if texinfo
36378maybe-dvi-texinfo: dvi-texinfo
8ec98d6c 36379
d5eec917
PB
36380dvi-texinfo: \
36381 configure-texinfo
15b527ca 36382 @: $(MAKE); $(unstage)
d5eec917 36383 @[ -f ./texinfo/Makefile ] || exit 0; \
8ec98d6c
NN
36384 r=`${PWD_COMMAND}`; export r; \
36385 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 36386 $(HOST_EXPORTS) \
d5eec917 36387 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
36388 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36389 done; \
d5eec917 36390 echo "Doing dvi in texinfo" ; \
7fc2ca22 36391 (cd $(HOST_SUBDIR)/texinfo && \
8ec98d6c
NN
36392 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36393 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36394 "RANLIB=$${RANLIB}" \
bffcbe34 36395 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 36396 dvi) \
8ec98d6c
NN
36397 || exit 1
36398
d5eec917 36399@endif texinfo
8ec98d6c 36400
39bbbb69
DD
36401.PHONY: maybe-pdf-texinfo pdf-texinfo
36402maybe-pdf-texinfo:
36403@if texinfo
36404maybe-pdf-texinfo: pdf-texinfo
36405
36406pdf-texinfo: \
36407 configure-texinfo
36408 @: $(MAKE); $(unstage)
36409 @[ -f ./texinfo/Makefile ] || exit 0; \
36410 r=`${PWD_COMMAND}`; export r; \
36411 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36412 $(HOST_EXPORTS) \
36413 for flag in $(EXTRA_HOST_FLAGS) ; do \
36414 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36415 done; \
36416 echo "Doing pdf in texinfo" ; \
36417 (cd $(HOST_SUBDIR)/texinfo && \
36418 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36419 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36420 "RANLIB=$${RANLIB}" \
bffcbe34 36421 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
36422 pdf) \
36423 || exit 1
36424
36425@endif texinfo
36426
b6fb961f
MS
36427.PHONY: maybe-html-texinfo html-texinfo
36428maybe-html-texinfo:
36429@if texinfo
36430maybe-html-texinfo: html-texinfo
36431
36432html-texinfo: \
36433 configure-texinfo
15b527ca 36434 @: $(MAKE); $(unstage)
b6fb961f
MS
36435 @[ -f ./texinfo/Makefile ] || exit 0; \
36436 r=`${PWD_COMMAND}`; export r; \
36437 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
36438 $(HOST_EXPORTS) \
36439 for flag in $(EXTRA_HOST_FLAGS) ; do \
36440 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36441 done; \
36442 echo "Doing html in texinfo" ; \
7fc2ca22 36443 (cd $(HOST_SUBDIR)/texinfo && \
b6fb961f
MS
36444 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36445 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36446 "RANLIB=$${RANLIB}" \
bffcbe34 36447 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
36448 html) \
36449 || exit 1
36450
36451@endif texinfo
36452
d5eec917
PB
36453.PHONY: maybe-TAGS-texinfo TAGS-texinfo
36454maybe-TAGS-texinfo:
36455@if texinfo
36456maybe-TAGS-texinfo: TAGS-texinfo
8ec98d6c 36457
d5eec917
PB
36458TAGS-texinfo: \
36459 configure-texinfo
15b527ca 36460 @: $(MAKE); $(unstage)
d5eec917 36461 @[ -f ./texinfo/Makefile ] || exit 0; \
8ec98d6c
NN
36462 r=`${PWD_COMMAND}`; export r; \
36463 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 36464 $(HOST_EXPORTS) \
d5eec917 36465 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
36466 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36467 done; \
d5eec917 36468 echo "Doing TAGS in texinfo" ; \
7fc2ca22 36469 (cd $(HOST_SUBDIR)/texinfo && \
8ec98d6c
NN
36470 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36471 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36472 "RANLIB=$${RANLIB}" \
bffcbe34 36473 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 36474 TAGS) \
8ec98d6c
NN
36475 || exit 1
36476
d5eec917 36477@endif texinfo
8ec98d6c 36478
d5eec917
PB
36479.PHONY: maybe-install-info-texinfo install-info-texinfo
36480maybe-install-info-texinfo:
36481@if texinfo
36482maybe-install-info-texinfo: install-info-texinfo
8ec98d6c 36483
d5eec917
PB
36484install-info-texinfo: \
36485 configure-texinfo \
36486 info-texinfo
15b527ca 36487 @: $(MAKE); $(unstage)
d5eec917 36488 @[ -f ./texinfo/Makefile ] || exit 0; \
8ec98d6c
NN
36489 r=`${PWD_COMMAND}`; export r; \
36490 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 36491 $(HOST_EXPORTS) \
d5eec917 36492 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
36493 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36494 done; \
d5eec917 36495 echo "Doing install-info in texinfo" ; \
7fc2ca22 36496 (cd $(HOST_SUBDIR)/texinfo && \
8ec98d6c
NN
36497 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36498 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36499 "RANLIB=$${RANLIB}" \
bffcbe34 36500 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 36501 install-info) \
8ec98d6c
NN
36502 || exit 1
36503
d5eec917 36504@endif texinfo
8ec98d6c 36505
d4954b6d
DD
36506.PHONY: maybe-install-pdf-texinfo install-pdf-texinfo
36507maybe-install-pdf-texinfo:
36508@if texinfo
36509maybe-install-pdf-texinfo: install-pdf-texinfo
36510
36511install-pdf-texinfo: \
36512 configure-texinfo \
36513 pdf-texinfo
36514 @: $(MAKE); $(unstage)
36515 @[ -f ./texinfo/Makefile ] || exit 0; \
36516 r=`${PWD_COMMAND}`; export r; \
36517 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36518 $(HOST_EXPORTS) \
36519 for flag in $(EXTRA_HOST_FLAGS) ; do \
36520 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36521 done; \
36522 echo "Doing install-pdf in texinfo" ; \
36523 (cd $(HOST_SUBDIR)/texinfo && \
36524 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36525 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36526 "RANLIB=$${RANLIB}" \
bffcbe34 36527 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
36528 install-pdf) \
36529 || exit 1
36530
36531@endif texinfo
36532
83c9add4
CD
36533.PHONY: maybe-install-html-texinfo install-html-texinfo
36534maybe-install-html-texinfo:
36535@if texinfo
36536maybe-install-html-texinfo: install-html-texinfo
36537
36538install-html-texinfo: \
36539 configure-texinfo \
36540 html-texinfo
36541 @: $(MAKE); $(unstage)
36542 @[ -f ./texinfo/Makefile ] || exit 0; \
36543 r=`${PWD_COMMAND}`; export r; \
36544 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36545 $(HOST_EXPORTS) \
36546 for flag in $(EXTRA_HOST_FLAGS) ; do \
36547 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36548 done; \
36549 echo "Doing install-html in texinfo" ; \
36550 (cd $(HOST_SUBDIR)/texinfo && \
36551 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36552 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36553 "RANLIB=$${RANLIB}" \
bffcbe34 36554 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
36555 install-html) \
36556 || exit 1
36557
36558@endif texinfo
36559
d5eec917
PB
36560.PHONY: maybe-installcheck-texinfo installcheck-texinfo
36561maybe-installcheck-texinfo:
36562@if texinfo
36563maybe-installcheck-texinfo: installcheck-texinfo
8ec98d6c 36564
d5eec917
PB
36565installcheck-texinfo: \
36566 configure-texinfo
15b527ca 36567 @: $(MAKE); $(unstage)
d5eec917 36568 @[ -f ./texinfo/Makefile ] || exit 0; \
8ec98d6c
NN
36569 r=`${PWD_COMMAND}`; export r; \
36570 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 36571 $(HOST_EXPORTS) \
d5eec917 36572 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
36573 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36574 done; \
d5eec917 36575 echo "Doing installcheck in texinfo" ; \
7fc2ca22 36576 (cd $(HOST_SUBDIR)/texinfo && \
8ec98d6c
NN
36577 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36578 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36579 "RANLIB=$${RANLIB}" \
bffcbe34 36580 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 36581 installcheck) \
8ec98d6c
NN
36582 || exit 1
36583
d5eec917 36584@endif texinfo
8ec98d6c 36585
d5eec917
PB
36586.PHONY: maybe-mostlyclean-texinfo mostlyclean-texinfo
36587maybe-mostlyclean-texinfo:
36588@if texinfo
36589maybe-mostlyclean-texinfo: mostlyclean-texinfo
8ec98d6c 36590
d5eec917 36591mostlyclean-texinfo:
15b527ca 36592 @: $(MAKE); $(unstage)
d5eec917 36593 @[ -f ./texinfo/Makefile ] || exit 0; \
8ec98d6c
NN
36594 r=`${PWD_COMMAND}`; export r; \
36595 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 36596 $(HOST_EXPORTS) \
d5eec917 36597 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
36598 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36599 done; \
d5eec917 36600 echo "Doing mostlyclean in texinfo" ; \
7fc2ca22 36601 (cd $(HOST_SUBDIR)/texinfo && \
8ec98d6c
NN
36602 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36603 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36604 "RANLIB=$${RANLIB}" \
bffcbe34 36605 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 36606 mostlyclean) \
8ec98d6c
NN
36607 || exit 1
36608
d5eec917 36609@endif texinfo
8ec98d6c 36610
d5eec917
PB
36611.PHONY: maybe-clean-texinfo clean-texinfo
36612maybe-clean-texinfo:
36613@if texinfo
36614maybe-clean-texinfo: clean-texinfo
8ec98d6c 36615
d5eec917 36616clean-texinfo:
15b527ca 36617 @: $(MAKE); $(unstage)
d5eec917 36618 @[ -f ./texinfo/Makefile ] || exit 0; \
8ec98d6c
NN
36619 r=`${PWD_COMMAND}`; export r; \
36620 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 36621 $(HOST_EXPORTS) \
d5eec917 36622 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
36623 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36624 done; \
d5eec917 36625 echo "Doing clean in texinfo" ; \
7fc2ca22 36626 (cd $(HOST_SUBDIR)/texinfo && \
8ec98d6c
NN
36627 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36628 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36629 "RANLIB=$${RANLIB}" \
bffcbe34 36630 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 36631 clean) \
8ec98d6c
NN
36632 || exit 1
36633
d5eec917 36634@endif texinfo
8ec98d6c 36635
d5eec917
PB
36636.PHONY: maybe-distclean-texinfo distclean-texinfo
36637maybe-distclean-texinfo:
36638@if texinfo
36639maybe-distclean-texinfo: distclean-texinfo
8ec98d6c 36640
d5eec917 36641distclean-texinfo:
15b527ca 36642 @: $(MAKE); $(unstage)
d5eec917 36643 @[ -f ./texinfo/Makefile ] || exit 0; \
8ec98d6c
NN
36644 r=`${PWD_COMMAND}`; export r; \
36645 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 36646 $(HOST_EXPORTS) \
d5eec917 36647 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
36648 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36649 done; \
d5eec917 36650 echo "Doing distclean in texinfo" ; \
7fc2ca22 36651 (cd $(HOST_SUBDIR)/texinfo && \
8ec98d6c
NN
36652 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36653 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36654 "RANLIB=$${RANLIB}" \
bffcbe34 36655 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 36656 distclean) \
8ec98d6c
NN
36657 || exit 1
36658
d5eec917 36659@endif texinfo
8ec98d6c 36660
d5eec917
PB
36661.PHONY: maybe-maintainer-clean-texinfo maintainer-clean-texinfo
36662maybe-maintainer-clean-texinfo:
36663@if texinfo
36664maybe-maintainer-clean-texinfo: maintainer-clean-texinfo
8ec98d6c 36665
d5eec917 36666maintainer-clean-texinfo:
15b527ca 36667 @: $(MAKE); $(unstage)
d5eec917 36668 @[ -f ./texinfo/Makefile ] || exit 0; \
8ec98d6c
NN
36669 r=`${PWD_COMMAND}`; export r; \
36670 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 36671 $(HOST_EXPORTS) \
d5eec917 36672 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
36673 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36674 done; \
d5eec917 36675 echo "Doing maintainer-clean in texinfo" ; \
7fc2ca22 36676 (cd $(HOST_SUBDIR)/texinfo && \
8ec98d6c
NN
36677 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36678 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36679 "RANLIB=$${RANLIB}" \
bffcbe34 36680 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 36681 maintainer-clean) \
8ec98d6c
NN
36682 || exit 1
36683
d5eec917 36684@endif texinfo
8ec98d6c
NN
36685
36686
f0fdfd34 36687
d5eec917
PB
36688.PHONY: configure-textutils maybe-configure-textutils
36689maybe-configure-textutils:
e1e5148c
CD
36690@if gcc-bootstrap
36691configure-textutils: stage_current
36692@endif gcc-bootstrap
d5eec917
PB
36693@if textutils
36694maybe-configure-textutils: configure-textutils
ec92c4d6 36695configure-textutils:
15b527ca 36696 @: $(MAKE); $(unstage)
ec92c4d6 36697 @r=`${PWD_COMMAND}`; export r; \
5230d454 36698 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
36699 test ! -f $(HOST_SUBDIR)/textutils/Makefile || exit 0; \
36700 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/textutils ; \
a675b75a 36701 $(HOST_EXPORTS) \
f0fdfd34
PB
36702 echo Configuring in $(HOST_SUBDIR)/textutils; \
36703 cd "$(HOST_SUBDIR)/textutils" || exit 1; \
94f860c0 36704 case $(srcdir) in \
7fc2ca22
PB
36705 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
36706 *) topdir=`echo $(HOST_SUBDIR)/textutils/ | \
36707 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 36708 esac; \
7fc2ca22
PB
36709 srcdiroption="--srcdir=$${topdir}/textutils"; \
36710 libsrcdir="$$s/textutils"; \
94f860c0 36711 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
36712 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
36713 --target=${target_alias} $${srcdiroption} \
94f860c0 36714 || exit 1
d5eec917 36715@endif textutils
94f860c0 36716
f0fdfd34
PB
36717
36718
a8a96878
PB
36719
36720
d5eec917
PB
36721.PHONY: all-textutils maybe-all-textutils
36722maybe-all-textutils:
e1e5148c
CD
36723@if gcc-bootstrap
36724all-textutils: stage_current
36725@endif gcc-bootstrap
d5eec917 36726@if textutils
5e6b1f07 36727TARGET-textutils=all
d5eec917
PB
36728maybe-all-textutils: all-textutils
36729all-textutils: configure-textutils
15b527ca 36730 @: $(MAKE); $(unstage)
5230d454
L
36731 @r=`${PWD_COMMAND}`; export r; \
36732 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 36733 $(HOST_EXPORTS) \
7fc2ca22 36734 (cd $(HOST_SUBDIR)/textutils && \
6532abb6
PB
36735 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
36736 $(TARGET-textutils))
d5eec917 36737@endif textutils
8ecc6504 36738
f0fdfd34 36739
a8a96878
PB
36740
36741
d5eec917
PB
36742.PHONY: check-textutils maybe-check-textutils
36743maybe-check-textutils:
36744@if textutils
36745maybe-check-textutils: check-textutils
8ecc6504 36746
d5eec917 36747check-textutils:
15b527ca 36748 @: $(MAKE); $(unstage)
5230d454
L
36749 @r=`${PWD_COMMAND}`; export r; \
36750 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 36751 $(HOST_EXPORTS) \
7fc2ca22
PB
36752 (cd $(HOST_SUBDIR)/textutils && \
36753 $(MAKE) $(FLAGS_TO_PASS) check)
8ecc6504 36754
d5eec917 36755@endif textutils
8ecc6504 36756
d5eec917
PB
36757.PHONY: install-textutils maybe-install-textutils
36758maybe-install-textutils:
36759@if textutils
36760maybe-install-textutils: install-textutils
70ffc148 36761
d5eec917 36762install-textutils: installdirs
15b527ca 36763 @: $(MAKE); $(unstage)
5230d454
L
36764 @r=`${PWD_COMMAND}`; export r; \
36765 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 36766 $(HOST_EXPORTS) \
7fc2ca22 36767 (cd $(HOST_SUBDIR)/textutils && \
93c60b6d 36768 $(MAKE) $(FLAGS_TO_PASS) install)
8ecc6504 36769
d5eec917 36770@endif textutils
8ecc6504 36771
39bbbb69 36772# Other targets (info, dvi, pdf, etc.)
8ec98d6c 36773
d5eec917
PB
36774.PHONY: maybe-info-textutils info-textutils
36775maybe-info-textutils:
36776@if textutils
36777maybe-info-textutils: info-textutils
8ec98d6c 36778
d5eec917
PB
36779info-textutils: \
36780 configure-textutils
15b527ca 36781 @: $(MAKE); $(unstage)
d5eec917 36782 @[ -f ./textutils/Makefile ] || exit 0; \
5230d454
L
36783 r=`${PWD_COMMAND}`; export r; \
36784 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 36785 $(HOST_EXPORTS) \
d5eec917 36786 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
36787 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36788 done; \
d5eec917 36789 echo "Doing info in textutils" ; \
7fc2ca22 36790 (cd $(HOST_SUBDIR)/textutils && \
8ec98d6c
NN
36791 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36792 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36793 "RANLIB=$${RANLIB}" \
bffcbe34 36794 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 36795 info) \
94f860c0
NN
36796 || exit 1
36797
d5eec917 36798@endif textutils
8ec98d6c 36799
d5eec917
PB
36800.PHONY: maybe-dvi-textutils dvi-textutils
36801maybe-dvi-textutils:
36802@if textutils
36803maybe-dvi-textutils: dvi-textutils
8ec98d6c 36804
d5eec917
PB
36805dvi-textutils: \
36806 configure-textutils
15b527ca 36807 @: $(MAKE); $(unstage)
d5eec917 36808 @[ -f ./textutils/Makefile ] || exit 0; \
8ec98d6c 36809 r=`${PWD_COMMAND}`; export r; \
5230d454 36810 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 36811 $(HOST_EXPORTS) \
d5eec917 36812 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
36813 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36814 done; \
d5eec917 36815 echo "Doing dvi in textutils" ; \
7fc2ca22 36816 (cd $(HOST_SUBDIR)/textutils && \
8ec98d6c
NN
36817 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36818 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36819 "RANLIB=$${RANLIB}" \
bffcbe34 36820 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 36821 dvi) \
8ec98d6c 36822 || exit 1
8ecc6504 36823
d5eec917 36824@endif textutils
8ecc6504 36825
39bbbb69
DD
36826.PHONY: maybe-pdf-textutils pdf-textutils
36827maybe-pdf-textutils:
36828@if textutils
36829maybe-pdf-textutils: pdf-textutils
36830
36831pdf-textutils: \
36832 configure-textutils
36833 @: $(MAKE); $(unstage)
36834 @[ -f ./textutils/Makefile ] || exit 0; \
36835 r=`${PWD_COMMAND}`; export r; \
36836 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36837 $(HOST_EXPORTS) \
36838 for flag in $(EXTRA_HOST_FLAGS) ; do \
36839 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36840 done; \
36841 echo "Doing pdf in textutils" ; \
36842 (cd $(HOST_SUBDIR)/textutils && \
36843 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36844 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36845 "RANLIB=$${RANLIB}" \
bffcbe34 36846 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
36847 pdf) \
36848 || exit 1
36849
36850@endif textutils
36851
b6fb961f
MS
36852.PHONY: maybe-html-textutils html-textutils
36853maybe-html-textutils:
36854@if textutils
36855maybe-html-textutils: html-textutils
36856
36857html-textutils: \
36858 configure-textutils
15b527ca 36859 @: $(MAKE); $(unstage)
b6fb961f
MS
36860 @[ -f ./textutils/Makefile ] || exit 0; \
36861 r=`${PWD_COMMAND}`; export r; \
36862 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
36863 $(HOST_EXPORTS) \
36864 for flag in $(EXTRA_HOST_FLAGS) ; do \
36865 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36866 done; \
36867 echo "Doing html in textutils" ; \
7fc2ca22 36868 (cd $(HOST_SUBDIR)/textutils && \
b6fb961f
MS
36869 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36870 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36871 "RANLIB=$${RANLIB}" \
bffcbe34 36872 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
36873 html) \
36874 || exit 1
36875
36876@endif textutils
36877
d5eec917
PB
36878.PHONY: maybe-TAGS-textutils TAGS-textutils
36879maybe-TAGS-textutils:
36880@if textutils
36881maybe-TAGS-textutils: TAGS-textutils
8ec98d6c 36882
d5eec917
PB
36883TAGS-textutils: \
36884 configure-textutils
15b527ca 36885 @: $(MAKE); $(unstage)
d5eec917 36886 @[ -f ./textutils/Makefile ] || exit 0; \
8ec98d6c 36887 r=`${PWD_COMMAND}`; export r; \
5230d454 36888 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 36889 $(HOST_EXPORTS) \
d5eec917 36890 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
36891 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36892 done; \
d5eec917 36893 echo "Doing TAGS in textutils" ; \
7fc2ca22 36894 (cd $(HOST_SUBDIR)/textutils && \
8ec98d6c
NN
36895 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36896 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36897 "RANLIB=$${RANLIB}" \
bffcbe34 36898 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 36899 TAGS) \
8ec98d6c 36900 || exit 1
8ecc6504 36901
d5eec917 36902@endif textutils
8ecc6504 36903
d5eec917
PB
36904.PHONY: maybe-install-info-textutils install-info-textutils
36905maybe-install-info-textutils:
36906@if textutils
36907maybe-install-info-textutils: install-info-textutils
8ec98d6c 36908
d5eec917
PB
36909install-info-textutils: \
36910 configure-textutils \
36911 info-textutils
15b527ca 36912 @: $(MAKE); $(unstage)
d5eec917 36913 @[ -f ./textutils/Makefile ] || exit 0; \
8ec98d6c
NN
36914 r=`${PWD_COMMAND}`; export r; \
36915 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 36916 $(HOST_EXPORTS) \
d5eec917 36917 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
36918 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36919 done; \
d5eec917 36920 echo "Doing install-info in textutils" ; \
7fc2ca22 36921 (cd $(HOST_SUBDIR)/textutils && \
8ec98d6c
NN
36922 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36923 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36924 "RANLIB=$${RANLIB}" \
bffcbe34 36925 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 36926 install-info) \
8ec98d6c
NN
36927 || exit 1
36928
d5eec917 36929@endif textutils
8ec98d6c 36930
d4954b6d
DD
36931.PHONY: maybe-install-pdf-textutils install-pdf-textutils
36932maybe-install-pdf-textutils:
36933@if textutils
36934maybe-install-pdf-textutils: install-pdf-textutils
36935
36936install-pdf-textutils: \
36937 configure-textutils \
36938 pdf-textutils
36939 @: $(MAKE); $(unstage)
36940 @[ -f ./textutils/Makefile ] || exit 0; \
36941 r=`${PWD_COMMAND}`; export r; \
36942 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36943 $(HOST_EXPORTS) \
36944 for flag in $(EXTRA_HOST_FLAGS) ; do \
36945 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36946 done; \
36947 echo "Doing install-pdf in textutils" ; \
36948 (cd $(HOST_SUBDIR)/textutils && \
36949 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36950 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36951 "RANLIB=$${RANLIB}" \
bffcbe34 36952 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
36953 install-pdf) \
36954 || exit 1
36955
36956@endif textutils
36957
83c9add4
CD
36958.PHONY: maybe-install-html-textutils install-html-textutils
36959maybe-install-html-textutils:
36960@if textutils
36961maybe-install-html-textutils: install-html-textutils
36962
36963install-html-textutils: \
36964 configure-textutils \
36965 html-textutils
36966 @: $(MAKE); $(unstage)
36967 @[ -f ./textutils/Makefile ] || exit 0; \
36968 r=`${PWD_COMMAND}`; export r; \
36969 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36970 $(HOST_EXPORTS) \
36971 for flag in $(EXTRA_HOST_FLAGS) ; do \
36972 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36973 done; \
36974 echo "Doing install-html in textutils" ; \
36975 (cd $(HOST_SUBDIR)/textutils && \
36976 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36977 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36978 "RANLIB=$${RANLIB}" \
bffcbe34 36979 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
36980 install-html) \
36981 || exit 1
36982
36983@endif textutils
36984
d5eec917
PB
36985.PHONY: maybe-installcheck-textutils installcheck-textutils
36986maybe-installcheck-textutils:
36987@if textutils
36988maybe-installcheck-textutils: installcheck-textutils
8ec98d6c 36989
d5eec917
PB
36990installcheck-textutils: \
36991 configure-textutils
15b527ca 36992 @: $(MAKE); $(unstage)
d5eec917 36993 @[ -f ./textutils/Makefile ] || exit 0; \
8ec98d6c
NN
36994 r=`${PWD_COMMAND}`; export r; \
36995 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 36996 $(HOST_EXPORTS) \
d5eec917 36997 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
36998 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36999 done; \
d5eec917 37000 echo "Doing installcheck in textutils" ; \
7fc2ca22 37001 (cd $(HOST_SUBDIR)/textutils && \
8ec98d6c
NN
37002 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37003 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37004 "RANLIB=$${RANLIB}" \
bffcbe34 37005 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 37006 installcheck) \
8ec98d6c
NN
37007 || exit 1
37008
d5eec917 37009@endif textutils
8ec98d6c 37010
d5eec917
PB
37011.PHONY: maybe-mostlyclean-textutils mostlyclean-textutils
37012maybe-mostlyclean-textutils:
37013@if textutils
37014maybe-mostlyclean-textutils: mostlyclean-textutils
8ec98d6c 37015
d5eec917 37016mostlyclean-textutils:
15b527ca 37017 @: $(MAKE); $(unstage)
d5eec917 37018 @[ -f ./textutils/Makefile ] || exit 0; \
8ec98d6c
NN
37019 r=`${PWD_COMMAND}`; export r; \
37020 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 37021 $(HOST_EXPORTS) \
d5eec917 37022 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
37023 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37024 done; \
d5eec917 37025 echo "Doing mostlyclean in textutils" ; \
7fc2ca22 37026 (cd $(HOST_SUBDIR)/textutils && \
8ec98d6c
NN
37027 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37028 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37029 "RANLIB=$${RANLIB}" \
bffcbe34 37030 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 37031 mostlyclean) \
8ec98d6c
NN
37032 || exit 1
37033
d5eec917 37034@endif textutils
8ec98d6c 37035
d5eec917
PB
37036.PHONY: maybe-clean-textutils clean-textutils
37037maybe-clean-textutils:
37038@if textutils
37039maybe-clean-textutils: clean-textutils
8ec98d6c 37040
d5eec917 37041clean-textutils:
15b527ca 37042 @: $(MAKE); $(unstage)
d5eec917 37043 @[ -f ./textutils/Makefile ] || exit 0; \
8ec98d6c
NN
37044 r=`${PWD_COMMAND}`; export r; \
37045 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 37046 $(HOST_EXPORTS) \
d5eec917 37047 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
37048 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37049 done; \
d5eec917 37050 echo "Doing clean in textutils" ; \
7fc2ca22 37051 (cd $(HOST_SUBDIR)/textutils && \
8ec98d6c
NN
37052 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37053 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37054 "RANLIB=$${RANLIB}" \
bffcbe34 37055 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 37056 clean) \
8ec98d6c
NN
37057 || exit 1
37058
d5eec917 37059@endif textutils
8ec98d6c 37060
d5eec917
PB
37061.PHONY: maybe-distclean-textutils distclean-textutils
37062maybe-distclean-textutils:
37063@if textutils
37064maybe-distclean-textutils: distclean-textutils
8ec98d6c 37065
d5eec917 37066distclean-textutils:
15b527ca 37067 @: $(MAKE); $(unstage)
d5eec917 37068 @[ -f ./textutils/Makefile ] || exit 0; \
8ec98d6c
NN
37069 r=`${PWD_COMMAND}`; export r; \
37070 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 37071 $(HOST_EXPORTS) \
d5eec917 37072 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
37073 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37074 done; \
d5eec917 37075 echo "Doing distclean in textutils" ; \
7fc2ca22 37076 (cd $(HOST_SUBDIR)/textutils && \
8ec98d6c
NN
37077 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37078 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37079 "RANLIB=$${RANLIB}" \
bffcbe34 37080 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 37081 distclean) \
8ec98d6c
NN
37082 || exit 1
37083
d5eec917 37084@endif textutils
8ec98d6c 37085
d5eec917
PB
37086.PHONY: maybe-maintainer-clean-textutils maintainer-clean-textutils
37087maybe-maintainer-clean-textutils:
37088@if textutils
37089maybe-maintainer-clean-textutils: maintainer-clean-textutils
70ffc148 37090
d5eec917 37091maintainer-clean-textutils:
15b527ca 37092 @: $(MAKE); $(unstage)
d5eec917 37093 @[ -f ./textutils/Makefile ] || exit 0; \
8ec98d6c 37094 r=`${PWD_COMMAND}`; export r; \
5230d454 37095 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 37096 $(HOST_EXPORTS) \
d5eec917 37097 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
37098 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37099 done; \
d5eec917 37100 echo "Doing maintainer-clean in textutils" ; \
7fc2ca22 37101 (cd $(HOST_SUBDIR)/textutils && \
8ec98d6c
NN
37102 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37103 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37104 "RANLIB=$${RANLIB}" \
bffcbe34 37105 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 37106 maintainer-clean) \
8ec98d6c 37107 || exit 1
8ecc6504 37108
d5eec917 37109@endif textutils
8ecc6504 37110
8ec98d6c 37111
f0fdfd34 37112
d5eec917
PB
37113.PHONY: configure-time maybe-configure-time
37114maybe-configure-time:
e1e5148c
CD
37115@if gcc-bootstrap
37116configure-time: stage_current
37117@endif gcc-bootstrap
d5eec917
PB
37118@if time
37119maybe-configure-time: configure-time
ec92c4d6 37120configure-time:
15b527ca 37121 @: $(MAKE); $(unstage)
ec92c4d6 37122 @r=`${PWD_COMMAND}`; export r; \
5230d454 37123 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
37124 test ! -f $(HOST_SUBDIR)/time/Makefile || exit 0; \
37125 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/time ; \
a675b75a 37126 $(HOST_EXPORTS) \
f0fdfd34
PB
37127 echo Configuring in $(HOST_SUBDIR)/time; \
37128 cd "$(HOST_SUBDIR)/time" || exit 1; \
94f860c0 37129 case $(srcdir) in \
7fc2ca22
PB
37130 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
37131 *) topdir=`echo $(HOST_SUBDIR)/time/ | \
37132 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 37133 esac; \
7fc2ca22
PB
37134 srcdiroption="--srcdir=$${topdir}/time"; \
37135 libsrcdir="$$s/time"; \
94f860c0 37136 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
37137 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
37138 --target=${target_alias} $${srcdiroption} \
94f860c0 37139 || exit 1
d5eec917 37140@endif time
94f860c0 37141
f0fdfd34
PB
37142
37143
a8a96878
PB
37144
37145
d5eec917
PB
37146.PHONY: all-time maybe-all-time
37147maybe-all-time:
e1e5148c
CD
37148@if gcc-bootstrap
37149all-time: stage_current
37150@endif gcc-bootstrap
d5eec917 37151@if time
5e6b1f07 37152TARGET-time=all
d5eec917
PB
37153maybe-all-time: all-time
37154all-time: configure-time
15b527ca 37155 @: $(MAKE); $(unstage)
5230d454
L
37156 @r=`${PWD_COMMAND}`; export r; \
37157 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 37158 $(HOST_EXPORTS) \
7fc2ca22 37159 (cd $(HOST_SUBDIR)/time && \
6532abb6
PB
37160 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
37161 $(TARGET-time))
d5eec917 37162@endif time
8ecc6504 37163
f0fdfd34 37164
a8a96878
PB
37165
37166
d5eec917
PB
37167.PHONY: check-time maybe-check-time
37168maybe-check-time:
37169@if time
37170maybe-check-time: check-time
8ecc6504 37171
d5eec917 37172check-time:
15b527ca 37173 @: $(MAKE); $(unstage)
5230d454
L
37174 @r=`${PWD_COMMAND}`; export r; \
37175 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 37176 $(HOST_EXPORTS) \
7fc2ca22
PB
37177 (cd $(HOST_SUBDIR)/time && \
37178 $(MAKE) $(FLAGS_TO_PASS) check)
8ecc6504 37179
d5eec917 37180@endif time
8ecc6504 37181
d5eec917
PB
37182.PHONY: install-time maybe-install-time
37183maybe-install-time:
37184@if time
37185maybe-install-time: install-time
8ec98d6c 37186
d5eec917 37187install-time: installdirs
15b527ca 37188 @: $(MAKE); $(unstage)
8ec98d6c
NN
37189 @r=`${PWD_COMMAND}`; export r; \
37190 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 37191 $(HOST_EXPORTS) \
7fc2ca22 37192 (cd $(HOST_SUBDIR)/time && \
93c60b6d 37193 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 37194
d5eec917 37195@endif time
8ec98d6c 37196
39bbbb69 37197# Other targets (info, dvi, pdf, etc.)
8ec98d6c 37198
d5eec917
PB
37199.PHONY: maybe-info-time info-time
37200maybe-info-time:
37201@if time
37202maybe-info-time: info-time
8ec98d6c 37203
d5eec917
PB
37204info-time: \
37205 configure-time
15b527ca 37206 @: $(MAKE); $(unstage)
d5eec917 37207 @[ -f ./time/Makefile ] || exit 0; \
8ec98d6c
NN
37208 r=`${PWD_COMMAND}`; export r; \
37209 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 37210 $(HOST_EXPORTS) \
d5eec917 37211 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
37212 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37213 done; \
d5eec917 37214 echo "Doing info in time" ; \
7fc2ca22 37215 (cd $(HOST_SUBDIR)/time && \
8ec98d6c
NN
37216 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37217 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37218 "RANLIB=$${RANLIB}" \
bffcbe34 37219 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 37220 info) \
8ec98d6c
NN
37221 || exit 1
37222
d5eec917 37223@endif time
8ec98d6c 37224
d5eec917
PB
37225.PHONY: maybe-dvi-time dvi-time
37226maybe-dvi-time:
37227@if time
37228maybe-dvi-time: dvi-time
8ec98d6c 37229
d5eec917
PB
37230dvi-time: \
37231 configure-time
15b527ca 37232 @: $(MAKE); $(unstage)
d5eec917 37233 @[ -f ./time/Makefile ] || exit 0; \
8ec98d6c
NN
37234 r=`${PWD_COMMAND}`; export r; \
37235 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 37236 $(HOST_EXPORTS) \
d5eec917 37237 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
37238 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37239 done; \
d5eec917 37240 echo "Doing dvi in time" ; \
7fc2ca22 37241 (cd $(HOST_SUBDIR)/time && \
8ec98d6c
NN
37242 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37243 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37244 "RANLIB=$${RANLIB}" \
bffcbe34 37245 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 37246 dvi) \
8ec98d6c
NN
37247 || exit 1
37248
d5eec917 37249@endif time
8ec98d6c 37250
39bbbb69
DD
37251.PHONY: maybe-pdf-time pdf-time
37252maybe-pdf-time:
37253@if time
37254maybe-pdf-time: pdf-time
37255
37256pdf-time: \
37257 configure-time
37258 @: $(MAKE); $(unstage)
37259 @[ -f ./time/Makefile ] || exit 0; \
37260 r=`${PWD_COMMAND}`; export r; \
37261 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37262 $(HOST_EXPORTS) \
37263 for flag in $(EXTRA_HOST_FLAGS) ; do \
37264 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37265 done; \
37266 echo "Doing pdf in time" ; \
37267 (cd $(HOST_SUBDIR)/time && \
37268 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37269 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37270 "RANLIB=$${RANLIB}" \
bffcbe34 37271 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
37272 pdf) \
37273 || exit 1
37274
37275@endif time
37276
b6fb961f
MS
37277.PHONY: maybe-html-time html-time
37278maybe-html-time:
37279@if time
37280maybe-html-time: html-time
37281
37282html-time: \
37283 configure-time
15b527ca 37284 @: $(MAKE); $(unstage)
b6fb961f
MS
37285 @[ -f ./time/Makefile ] || exit 0; \
37286 r=`${PWD_COMMAND}`; export r; \
37287 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
37288 $(HOST_EXPORTS) \
37289 for flag in $(EXTRA_HOST_FLAGS) ; do \
37290 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37291 done; \
37292 echo "Doing html in time" ; \
7fc2ca22 37293 (cd $(HOST_SUBDIR)/time && \
b6fb961f
MS
37294 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37295 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37296 "RANLIB=$${RANLIB}" \
bffcbe34 37297 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
37298 html) \
37299 || exit 1
37300
37301@endif time
37302
d5eec917
PB
37303.PHONY: maybe-TAGS-time TAGS-time
37304maybe-TAGS-time:
37305@if time
37306maybe-TAGS-time: TAGS-time
8ec98d6c 37307
d5eec917
PB
37308TAGS-time: \
37309 configure-time
15b527ca 37310 @: $(MAKE); $(unstage)
d5eec917 37311 @[ -f ./time/Makefile ] || exit 0; \
8ec98d6c
NN
37312 r=`${PWD_COMMAND}`; export r; \
37313 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 37314 $(HOST_EXPORTS) \
d5eec917 37315 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
37316 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37317 done; \
d5eec917 37318 echo "Doing TAGS in time" ; \
7fc2ca22 37319 (cd $(HOST_SUBDIR)/time && \
8ec98d6c
NN
37320 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37321 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37322 "RANLIB=$${RANLIB}" \
bffcbe34 37323 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 37324 TAGS) \
8ec98d6c
NN
37325 || exit 1
37326
d5eec917 37327@endif time
8ec98d6c 37328
d5eec917
PB
37329.PHONY: maybe-install-info-time install-info-time
37330maybe-install-info-time:
37331@if time
37332maybe-install-info-time: install-info-time
8ec98d6c 37333
d5eec917
PB
37334install-info-time: \
37335 configure-time \
37336 info-time
15b527ca 37337 @: $(MAKE); $(unstage)
d5eec917 37338 @[ -f ./time/Makefile ] || exit 0; \
8ec98d6c
NN
37339 r=`${PWD_COMMAND}`; export r; \
37340 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 37341 $(HOST_EXPORTS) \
d5eec917 37342 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
37343 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37344 done; \
d5eec917 37345 echo "Doing install-info in time" ; \
7fc2ca22 37346 (cd $(HOST_SUBDIR)/time && \
8ec98d6c
NN
37347 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37348 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37349 "RANLIB=$${RANLIB}" \
bffcbe34 37350 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 37351 install-info) \
8ec98d6c
NN
37352 || exit 1
37353
d5eec917 37354@endif time
8ec98d6c 37355
d4954b6d
DD
37356.PHONY: maybe-install-pdf-time install-pdf-time
37357maybe-install-pdf-time:
37358@if time
37359maybe-install-pdf-time: install-pdf-time
37360
37361install-pdf-time: \
37362 configure-time \
37363 pdf-time
37364 @: $(MAKE); $(unstage)
37365 @[ -f ./time/Makefile ] || exit 0; \
37366 r=`${PWD_COMMAND}`; export r; \
37367 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37368 $(HOST_EXPORTS) \
37369 for flag in $(EXTRA_HOST_FLAGS) ; do \
37370 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37371 done; \
37372 echo "Doing install-pdf in time" ; \
37373 (cd $(HOST_SUBDIR)/time && \
37374 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37375 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37376 "RANLIB=$${RANLIB}" \
bffcbe34 37377 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
37378 install-pdf) \
37379 || exit 1
37380
37381@endif time
37382
83c9add4
CD
37383.PHONY: maybe-install-html-time install-html-time
37384maybe-install-html-time:
37385@if time
37386maybe-install-html-time: install-html-time
37387
37388install-html-time: \
37389 configure-time \
37390 html-time
37391 @: $(MAKE); $(unstage)
37392 @[ -f ./time/Makefile ] || exit 0; \
37393 r=`${PWD_COMMAND}`; export r; \
37394 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37395 $(HOST_EXPORTS) \
37396 for flag in $(EXTRA_HOST_FLAGS) ; do \
37397 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37398 done; \
37399 echo "Doing install-html in time" ; \
37400 (cd $(HOST_SUBDIR)/time && \
37401 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37402 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37403 "RANLIB=$${RANLIB}" \
bffcbe34 37404 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
37405 install-html) \
37406 || exit 1
37407
37408@endif time
37409
d5eec917
PB
37410.PHONY: maybe-installcheck-time installcheck-time
37411maybe-installcheck-time:
37412@if time
37413maybe-installcheck-time: installcheck-time
8ec98d6c 37414
d5eec917
PB
37415installcheck-time: \
37416 configure-time
15b527ca 37417 @: $(MAKE); $(unstage)
d5eec917 37418 @[ -f ./time/Makefile ] || exit 0; \
8ec98d6c
NN
37419 r=`${PWD_COMMAND}`; export r; \
37420 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 37421 $(HOST_EXPORTS) \
d5eec917 37422 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
37423 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37424 done; \
d5eec917 37425 echo "Doing installcheck in time" ; \
7fc2ca22 37426 (cd $(HOST_SUBDIR)/time && \
8ec98d6c
NN
37427 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37428 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37429 "RANLIB=$${RANLIB}" \
bffcbe34 37430 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 37431 installcheck) \
8ec98d6c
NN
37432 || exit 1
37433
d5eec917 37434@endif time
8ec98d6c 37435
d5eec917
PB
37436.PHONY: maybe-mostlyclean-time mostlyclean-time
37437maybe-mostlyclean-time:
37438@if time
37439maybe-mostlyclean-time: mostlyclean-time
8ec98d6c 37440
d5eec917 37441mostlyclean-time:
15b527ca 37442 @: $(MAKE); $(unstage)
d5eec917 37443 @[ -f ./time/Makefile ] || exit 0; \
8ec98d6c
NN
37444 r=`${PWD_COMMAND}`; export r; \
37445 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 37446 $(HOST_EXPORTS) \
d5eec917 37447 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
37448 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37449 done; \
d5eec917 37450 echo "Doing mostlyclean in time" ; \
7fc2ca22 37451 (cd $(HOST_SUBDIR)/time && \
8ec98d6c
NN
37452 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37453 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37454 "RANLIB=$${RANLIB}" \
bffcbe34 37455 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 37456 mostlyclean) \
8ec98d6c
NN
37457 || exit 1
37458
d5eec917 37459@endif time
8ec98d6c 37460
d5eec917
PB
37461.PHONY: maybe-clean-time clean-time
37462maybe-clean-time:
37463@if time
37464maybe-clean-time: clean-time
8ec98d6c 37465
d5eec917 37466clean-time:
15b527ca 37467 @: $(MAKE); $(unstage)
d5eec917 37468 @[ -f ./time/Makefile ] || exit 0; \
8ec98d6c
NN
37469 r=`${PWD_COMMAND}`; export r; \
37470 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 37471 $(HOST_EXPORTS) \
d5eec917 37472 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
37473 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37474 done; \
d5eec917 37475 echo "Doing clean in time" ; \
7fc2ca22 37476 (cd $(HOST_SUBDIR)/time && \
8ec98d6c
NN
37477 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37478 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37479 "RANLIB=$${RANLIB}" \
bffcbe34 37480 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 37481 clean) \
8ec98d6c
NN
37482 || exit 1
37483
d5eec917 37484@endif time
8ec98d6c 37485
d5eec917
PB
37486.PHONY: maybe-distclean-time distclean-time
37487maybe-distclean-time:
37488@if time
37489maybe-distclean-time: distclean-time
8ec98d6c 37490
d5eec917 37491distclean-time:
15b527ca 37492 @: $(MAKE); $(unstage)
d5eec917 37493 @[ -f ./time/Makefile ] || exit 0; \
8ec98d6c
NN
37494 r=`${PWD_COMMAND}`; export r; \
37495 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 37496 $(HOST_EXPORTS) \
d5eec917 37497 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
37498 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37499 done; \
d5eec917 37500 echo "Doing distclean in time" ; \
7fc2ca22 37501 (cd $(HOST_SUBDIR)/time && \
8ec98d6c
NN
37502 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37503 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37504 "RANLIB=$${RANLIB}" \
bffcbe34 37505 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 37506 distclean) \
8ec98d6c
NN
37507 || exit 1
37508
d5eec917 37509@endif time
8ec98d6c 37510
d5eec917
PB
37511.PHONY: maybe-maintainer-clean-time maintainer-clean-time
37512maybe-maintainer-clean-time:
37513@if time
37514maybe-maintainer-clean-time: maintainer-clean-time
8ec98d6c 37515
d5eec917 37516maintainer-clean-time:
15b527ca 37517 @: $(MAKE); $(unstage)
d5eec917 37518 @[ -f ./time/Makefile ] || exit 0; \
8ec98d6c
NN
37519 r=`${PWD_COMMAND}`; export r; \
37520 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 37521 $(HOST_EXPORTS) \
d5eec917 37522 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
37523 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37524 done; \
d5eec917 37525 echo "Doing maintainer-clean in time" ; \
7fc2ca22 37526 (cd $(HOST_SUBDIR)/time && \
8ec98d6c
NN
37527 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37528 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37529 "RANLIB=$${RANLIB}" \
bffcbe34 37530 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 37531 maintainer-clean) \
8ec98d6c 37532 || exit 1
70ffc148 37533
d5eec917 37534@endif time
8ecc6504
NN
37535
37536
f0fdfd34 37537
d5eec917
PB
37538.PHONY: configure-uudecode maybe-configure-uudecode
37539maybe-configure-uudecode:
e1e5148c
CD
37540@if gcc-bootstrap
37541configure-uudecode: stage_current
37542@endif gcc-bootstrap
d5eec917
PB
37543@if uudecode
37544maybe-configure-uudecode: configure-uudecode
ec92c4d6 37545configure-uudecode:
15b527ca 37546 @: $(MAKE); $(unstage)
ec92c4d6 37547 @r=`${PWD_COMMAND}`; export r; \
5230d454 37548 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
37549 test ! -f $(HOST_SUBDIR)/uudecode/Makefile || exit 0; \
37550 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/uudecode ; \
a675b75a 37551 $(HOST_EXPORTS) \
f0fdfd34
PB
37552 echo Configuring in $(HOST_SUBDIR)/uudecode; \
37553 cd "$(HOST_SUBDIR)/uudecode" || exit 1; \
94f860c0 37554 case $(srcdir) in \
7fc2ca22
PB
37555 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
37556 *) topdir=`echo $(HOST_SUBDIR)/uudecode/ | \
37557 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 37558 esac; \
7fc2ca22
PB
37559 srcdiroption="--srcdir=$${topdir}/uudecode"; \
37560 libsrcdir="$$s/uudecode"; \
94f860c0 37561 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
37562 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
37563 --target=${target_alias} $${srcdiroption} \
94f860c0 37564 || exit 1
d5eec917 37565@endif uudecode
94f860c0 37566
f0fdfd34
PB
37567
37568
a8a96878
PB
37569
37570
d5eec917
PB
37571.PHONY: all-uudecode maybe-all-uudecode
37572maybe-all-uudecode:
e1e5148c
CD
37573@if gcc-bootstrap
37574all-uudecode: stage_current
37575@endif gcc-bootstrap
d5eec917 37576@if uudecode
5e6b1f07 37577TARGET-uudecode=all
d5eec917
PB
37578maybe-all-uudecode: all-uudecode
37579all-uudecode: configure-uudecode
15b527ca 37580 @: $(MAKE); $(unstage)
5230d454
L
37581 @r=`${PWD_COMMAND}`; export r; \
37582 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 37583 $(HOST_EXPORTS) \
7fc2ca22 37584 (cd $(HOST_SUBDIR)/uudecode && \
6532abb6
PB
37585 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
37586 $(TARGET-uudecode))
d5eec917 37587@endif uudecode
8ecc6504 37588
f0fdfd34 37589
a8a96878
PB
37590
37591
d5eec917
PB
37592.PHONY: check-uudecode maybe-check-uudecode
37593maybe-check-uudecode:
37594@if uudecode
37595maybe-check-uudecode: check-uudecode
8ecc6504 37596
d5eec917 37597check-uudecode:
15b527ca 37598 @: $(MAKE); $(unstage)
5230d454
L
37599 @r=`${PWD_COMMAND}`; export r; \
37600 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 37601 $(HOST_EXPORTS) \
7fc2ca22
PB
37602 (cd $(HOST_SUBDIR)/uudecode && \
37603 $(MAKE) $(FLAGS_TO_PASS) check)
8ecc6504 37604
d5eec917 37605@endif uudecode
8ecc6504 37606
d5eec917
PB
37607.PHONY: install-uudecode maybe-install-uudecode
37608maybe-install-uudecode:
37609@if uudecode
37610maybe-install-uudecode: install-uudecode
8ec98d6c 37611
d5eec917 37612install-uudecode: installdirs
15b527ca 37613 @: $(MAKE); $(unstage)
8ec98d6c
NN
37614 @r=`${PWD_COMMAND}`; export r; \
37615 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 37616 $(HOST_EXPORTS) \
7fc2ca22 37617 (cd $(HOST_SUBDIR)/uudecode && \
93c60b6d 37618 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 37619
d5eec917 37620@endif uudecode
8ec98d6c 37621
39bbbb69 37622# Other targets (info, dvi, pdf, etc.)
8ec98d6c 37623
d5eec917
PB
37624.PHONY: maybe-info-uudecode info-uudecode
37625maybe-info-uudecode:
37626@if uudecode
37627maybe-info-uudecode: info-uudecode
8ec98d6c 37628
d5eec917
PB
37629info-uudecode: \
37630 configure-uudecode
15b527ca 37631 @: $(MAKE); $(unstage)
d5eec917 37632 @[ -f ./uudecode/Makefile ] || exit 0; \
8ec98d6c
NN
37633 r=`${PWD_COMMAND}`; export r; \
37634 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 37635 $(HOST_EXPORTS) \
d5eec917 37636 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
37637 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37638 done; \
d5eec917 37639 echo "Doing info in uudecode" ; \
7fc2ca22 37640 (cd $(HOST_SUBDIR)/uudecode && \
8ec98d6c
NN
37641 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37642 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37643 "RANLIB=$${RANLIB}" \
bffcbe34 37644 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 37645 info) \
8ec98d6c
NN
37646 || exit 1
37647
d5eec917 37648@endif uudecode
8ec98d6c 37649
d5eec917
PB
37650.PHONY: maybe-dvi-uudecode dvi-uudecode
37651maybe-dvi-uudecode:
37652@if uudecode
37653maybe-dvi-uudecode: dvi-uudecode
8ec98d6c 37654
d5eec917
PB
37655dvi-uudecode: \
37656 configure-uudecode
15b527ca 37657 @: $(MAKE); $(unstage)
d5eec917 37658 @[ -f ./uudecode/Makefile ] || exit 0; \
8ec98d6c
NN
37659 r=`${PWD_COMMAND}`; export r; \
37660 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 37661 $(HOST_EXPORTS) \
d5eec917 37662 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
37663 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37664 done; \
d5eec917 37665 echo "Doing dvi in uudecode" ; \
7fc2ca22 37666 (cd $(HOST_SUBDIR)/uudecode && \
8ec98d6c
NN
37667 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37668 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37669 "RANLIB=$${RANLIB}" \
bffcbe34 37670 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 37671 dvi) \
8ec98d6c
NN
37672 || exit 1
37673
d5eec917 37674@endif uudecode
8ec98d6c 37675
39bbbb69
DD
37676.PHONY: maybe-pdf-uudecode pdf-uudecode
37677maybe-pdf-uudecode:
37678@if uudecode
37679maybe-pdf-uudecode: pdf-uudecode
37680
37681pdf-uudecode: \
37682 configure-uudecode
37683 @: $(MAKE); $(unstage)
37684 @[ -f ./uudecode/Makefile ] || exit 0; \
37685 r=`${PWD_COMMAND}`; export r; \
37686 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37687 $(HOST_EXPORTS) \
37688 for flag in $(EXTRA_HOST_FLAGS) ; do \
37689 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37690 done; \
37691 echo "Doing pdf in uudecode" ; \
37692 (cd $(HOST_SUBDIR)/uudecode && \
37693 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37694 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37695 "RANLIB=$${RANLIB}" \
bffcbe34 37696 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
37697 pdf) \
37698 || exit 1
37699
37700@endif uudecode
37701
b6fb961f
MS
37702.PHONY: maybe-html-uudecode html-uudecode
37703maybe-html-uudecode:
37704@if uudecode
37705maybe-html-uudecode: html-uudecode
37706
37707html-uudecode: \
37708 configure-uudecode
15b527ca 37709 @: $(MAKE); $(unstage)
b6fb961f
MS
37710 @[ -f ./uudecode/Makefile ] || exit 0; \
37711 r=`${PWD_COMMAND}`; export r; \
37712 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
37713 $(HOST_EXPORTS) \
37714 for flag in $(EXTRA_HOST_FLAGS) ; do \
37715 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37716 done; \
37717 echo "Doing html in uudecode" ; \
7fc2ca22 37718 (cd $(HOST_SUBDIR)/uudecode && \
b6fb961f
MS
37719 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37720 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37721 "RANLIB=$${RANLIB}" \
bffcbe34 37722 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
37723 html) \
37724 || exit 1
37725
37726@endif uudecode
37727
d5eec917
PB
37728.PHONY: maybe-TAGS-uudecode TAGS-uudecode
37729maybe-TAGS-uudecode:
37730@if uudecode
37731maybe-TAGS-uudecode: TAGS-uudecode
8ec98d6c 37732
d5eec917
PB
37733TAGS-uudecode: \
37734 configure-uudecode
15b527ca 37735 @: $(MAKE); $(unstage)
d5eec917
PB
37736 @[ -f ./uudecode/Makefile ] || exit 0; \
37737 r=`${PWD_COMMAND}`; export r; \
8ec98d6c 37738 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 37739 $(HOST_EXPORTS) \
d5eec917 37740 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
37741 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37742 done; \
d5eec917 37743 echo "Doing TAGS in uudecode" ; \
7fc2ca22 37744 (cd $(HOST_SUBDIR)/uudecode && \
8ec98d6c
NN
37745 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37746 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37747 "RANLIB=$${RANLIB}" \
bffcbe34 37748 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 37749 TAGS) \
8ec98d6c
NN
37750 || exit 1
37751
d5eec917 37752@endif uudecode
8ec98d6c 37753
d5eec917
PB
37754.PHONY: maybe-install-info-uudecode install-info-uudecode
37755maybe-install-info-uudecode:
37756@if uudecode
37757maybe-install-info-uudecode: install-info-uudecode
8ec98d6c 37758
d5eec917
PB
37759install-info-uudecode: \
37760 configure-uudecode \
37761 info-uudecode
15b527ca 37762 @: $(MAKE); $(unstage)
d5eec917 37763 @[ -f ./uudecode/Makefile ] || exit 0; \
8ec98d6c
NN
37764 r=`${PWD_COMMAND}`; export r; \
37765 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 37766 $(HOST_EXPORTS) \
d5eec917 37767 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
37768 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37769 done; \
d5eec917 37770 echo "Doing install-info in uudecode" ; \
7fc2ca22 37771 (cd $(HOST_SUBDIR)/uudecode && \
8ec98d6c
NN
37772 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37773 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37774 "RANLIB=$${RANLIB}" \
bffcbe34 37775 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 37776 install-info) \
8ec98d6c
NN
37777 || exit 1
37778
d5eec917 37779@endif uudecode
8ec98d6c 37780
d4954b6d
DD
37781.PHONY: maybe-install-pdf-uudecode install-pdf-uudecode
37782maybe-install-pdf-uudecode:
37783@if uudecode
37784maybe-install-pdf-uudecode: install-pdf-uudecode
37785
37786install-pdf-uudecode: \
37787 configure-uudecode \
37788 pdf-uudecode
37789 @: $(MAKE); $(unstage)
37790 @[ -f ./uudecode/Makefile ] || exit 0; \
37791 r=`${PWD_COMMAND}`; export r; \
37792 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37793 $(HOST_EXPORTS) \
37794 for flag in $(EXTRA_HOST_FLAGS) ; do \
37795 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37796 done; \
37797 echo "Doing install-pdf in uudecode" ; \
37798 (cd $(HOST_SUBDIR)/uudecode && \
37799 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37800 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37801 "RANLIB=$${RANLIB}" \
bffcbe34 37802 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
37803 install-pdf) \
37804 || exit 1
37805
37806@endif uudecode
37807
83c9add4
CD
37808.PHONY: maybe-install-html-uudecode install-html-uudecode
37809maybe-install-html-uudecode:
37810@if uudecode
37811maybe-install-html-uudecode: install-html-uudecode
37812
37813install-html-uudecode: \
37814 configure-uudecode \
37815 html-uudecode
37816 @: $(MAKE); $(unstage)
37817 @[ -f ./uudecode/Makefile ] || exit 0; \
37818 r=`${PWD_COMMAND}`; export r; \
37819 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37820 $(HOST_EXPORTS) \
37821 for flag in $(EXTRA_HOST_FLAGS) ; do \
37822 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37823 done; \
37824 echo "Doing install-html in uudecode" ; \
37825 (cd $(HOST_SUBDIR)/uudecode && \
37826 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37827 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37828 "RANLIB=$${RANLIB}" \
bffcbe34 37829 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
37830 install-html) \
37831 || exit 1
37832
37833@endif uudecode
37834
d5eec917
PB
37835.PHONY: maybe-installcheck-uudecode installcheck-uudecode
37836maybe-installcheck-uudecode:
37837@if uudecode
37838maybe-installcheck-uudecode: installcheck-uudecode
8ec98d6c 37839
d5eec917
PB
37840installcheck-uudecode: \
37841 configure-uudecode
15b527ca 37842 @: $(MAKE); $(unstage)
d5eec917 37843 @[ -f ./uudecode/Makefile ] || exit 0; \
8ec98d6c
NN
37844 r=`${PWD_COMMAND}`; export r; \
37845 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 37846 $(HOST_EXPORTS) \
d5eec917 37847 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
37848 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37849 done; \
d5eec917 37850 echo "Doing installcheck in uudecode" ; \
7fc2ca22 37851 (cd $(HOST_SUBDIR)/uudecode && \
8ec98d6c
NN
37852 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37853 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37854 "RANLIB=$${RANLIB}" \
bffcbe34 37855 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 37856 installcheck) \
8ec98d6c
NN
37857 || exit 1
37858
d5eec917 37859@endif uudecode
8ec98d6c 37860
d5eec917
PB
37861.PHONY: maybe-mostlyclean-uudecode mostlyclean-uudecode
37862maybe-mostlyclean-uudecode:
37863@if uudecode
37864maybe-mostlyclean-uudecode: mostlyclean-uudecode
8ec98d6c 37865
d5eec917 37866mostlyclean-uudecode:
15b527ca 37867 @: $(MAKE); $(unstage)
d5eec917 37868 @[ -f ./uudecode/Makefile ] || exit 0; \
8ec98d6c
NN
37869 r=`${PWD_COMMAND}`; export r; \
37870 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 37871 $(HOST_EXPORTS) \
d5eec917 37872 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
37873 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37874 done; \
d5eec917 37875 echo "Doing mostlyclean in uudecode" ; \
7fc2ca22 37876 (cd $(HOST_SUBDIR)/uudecode && \
8ec98d6c
NN
37877 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37878 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37879 "RANLIB=$${RANLIB}" \
bffcbe34 37880 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 37881 mostlyclean) \
8ec98d6c
NN
37882 || exit 1
37883
d5eec917 37884@endif uudecode
8ec98d6c 37885
d5eec917
PB
37886.PHONY: maybe-clean-uudecode clean-uudecode
37887maybe-clean-uudecode:
37888@if uudecode
37889maybe-clean-uudecode: clean-uudecode
8ec98d6c 37890
d5eec917 37891clean-uudecode:
15b527ca 37892 @: $(MAKE); $(unstage)
d5eec917 37893 @[ -f ./uudecode/Makefile ] || exit 0; \
8ec98d6c
NN
37894 r=`${PWD_COMMAND}`; export r; \
37895 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 37896 $(HOST_EXPORTS) \
d5eec917 37897 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
37898 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37899 done; \
d5eec917 37900 echo "Doing clean in uudecode" ; \
7fc2ca22 37901 (cd $(HOST_SUBDIR)/uudecode && \
8ec98d6c
NN
37902 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37903 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37904 "RANLIB=$${RANLIB}" \
bffcbe34 37905 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 37906 clean) \
8ec98d6c
NN
37907 || exit 1
37908
d5eec917 37909@endif uudecode
8ec98d6c 37910
d5eec917
PB
37911.PHONY: maybe-distclean-uudecode distclean-uudecode
37912maybe-distclean-uudecode:
37913@if uudecode
37914maybe-distclean-uudecode: distclean-uudecode
8ec98d6c 37915
d5eec917 37916distclean-uudecode:
15b527ca 37917 @: $(MAKE); $(unstage)
d5eec917 37918 @[ -f ./uudecode/Makefile ] || exit 0; \
8ec98d6c
NN
37919 r=`${PWD_COMMAND}`; export r; \
37920 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 37921 $(HOST_EXPORTS) \
d5eec917 37922 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
37923 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37924 done; \
d5eec917 37925 echo "Doing distclean in uudecode" ; \
7fc2ca22 37926 (cd $(HOST_SUBDIR)/uudecode && \
8ec98d6c
NN
37927 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37928 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37929 "RANLIB=$${RANLIB}" \
bffcbe34 37930 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 37931 distclean) \
8ec98d6c
NN
37932 || exit 1
37933
d5eec917 37934@endif uudecode
8ec98d6c 37935
d5eec917
PB
37936.PHONY: maybe-maintainer-clean-uudecode maintainer-clean-uudecode
37937maybe-maintainer-clean-uudecode:
37938@if uudecode
37939maybe-maintainer-clean-uudecode: maintainer-clean-uudecode
8ec98d6c 37940
d5eec917 37941maintainer-clean-uudecode:
15b527ca 37942 @: $(MAKE); $(unstage)
d5eec917 37943 @[ -f ./uudecode/Makefile ] || exit 0; \
8ec98d6c
NN
37944 r=`${PWD_COMMAND}`; export r; \
37945 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 37946 $(HOST_EXPORTS) \
d5eec917 37947 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
37948 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37949 done; \
d5eec917 37950 echo "Doing maintainer-clean in uudecode" ; \
7fc2ca22 37951 (cd $(HOST_SUBDIR)/uudecode && \
8ec98d6c
NN
37952 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37953 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37954 "RANLIB=$${RANLIB}" \
bffcbe34 37955 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 37956 maintainer-clean) \
8ec98d6c 37957 || exit 1
70ffc148 37958
d5eec917 37959@endif uudecode
8ecc6504
NN
37960
37961
f0fdfd34 37962
d5eec917
PB
37963.PHONY: configure-wdiff maybe-configure-wdiff
37964maybe-configure-wdiff:
e1e5148c
CD
37965@if gcc-bootstrap
37966configure-wdiff: stage_current
37967@endif gcc-bootstrap
d5eec917
PB
37968@if wdiff
37969maybe-configure-wdiff: configure-wdiff
ec92c4d6 37970configure-wdiff:
15b527ca 37971 @: $(MAKE); $(unstage)
ec92c4d6 37972 @r=`${PWD_COMMAND}`; export r; \
5230d454 37973 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
37974 test ! -f $(HOST_SUBDIR)/wdiff/Makefile || exit 0; \
37975 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/wdiff ; \
a675b75a 37976 $(HOST_EXPORTS) \
f0fdfd34
PB
37977 echo Configuring in $(HOST_SUBDIR)/wdiff; \
37978 cd "$(HOST_SUBDIR)/wdiff" || exit 1; \
94f860c0 37979 case $(srcdir) in \
7fc2ca22
PB
37980 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
37981 *) topdir=`echo $(HOST_SUBDIR)/wdiff/ | \
37982 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 37983 esac; \
7fc2ca22
PB
37984 srcdiroption="--srcdir=$${topdir}/wdiff"; \
37985 libsrcdir="$$s/wdiff"; \
94f860c0 37986 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
37987 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
37988 --target=${target_alias} $${srcdiroption} \
94f860c0 37989 || exit 1
d5eec917 37990@endif wdiff
94f860c0 37991
f0fdfd34
PB
37992
37993
a8a96878
PB
37994
37995
d5eec917
PB
37996.PHONY: all-wdiff maybe-all-wdiff
37997maybe-all-wdiff:
e1e5148c
CD
37998@if gcc-bootstrap
37999all-wdiff: stage_current
38000@endif gcc-bootstrap
d5eec917 38001@if wdiff
5e6b1f07 38002TARGET-wdiff=all
d5eec917
PB
38003maybe-all-wdiff: all-wdiff
38004all-wdiff: configure-wdiff
15b527ca 38005 @: $(MAKE); $(unstage)
5230d454
L
38006 @r=`${PWD_COMMAND}`; export r; \
38007 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 38008 $(HOST_EXPORTS) \
7fc2ca22 38009 (cd $(HOST_SUBDIR)/wdiff && \
6532abb6
PB
38010 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
38011 $(TARGET-wdiff))
d5eec917 38012@endif wdiff
8ecc6504 38013
f0fdfd34 38014
a8a96878
PB
38015
38016
d5eec917
PB
38017.PHONY: check-wdiff maybe-check-wdiff
38018maybe-check-wdiff:
38019@if wdiff
38020maybe-check-wdiff: check-wdiff
8ecc6504 38021
d5eec917 38022check-wdiff:
15b527ca 38023 @: $(MAKE); $(unstage)
d5eec917
PB
38024 @r=`${PWD_COMMAND}`; export r; \
38025 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d5eec917 38026 $(HOST_EXPORTS) \
7fc2ca22
PB
38027 (cd $(HOST_SUBDIR)/wdiff && \
38028 $(MAKE) $(FLAGS_TO_PASS) check)
8ec98d6c 38029
d5eec917 38030@endif wdiff
8ec98d6c 38031
d5eec917
PB
38032.PHONY: install-wdiff maybe-install-wdiff
38033maybe-install-wdiff:
38034@if wdiff
38035maybe-install-wdiff: install-wdiff
8ec98d6c 38036
d5eec917 38037install-wdiff: installdirs
15b527ca 38038 @: $(MAKE); $(unstage)
5230d454
L
38039 @r=`${PWD_COMMAND}`; export r; \
38040 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 38041 $(HOST_EXPORTS) \
7fc2ca22 38042 (cd $(HOST_SUBDIR)/wdiff && \
93c60b6d 38043 $(MAKE) $(FLAGS_TO_PASS) install)
8ecc6504 38044
d5eec917 38045@endif wdiff
8ecc6504 38046
39bbbb69 38047# Other targets (info, dvi, pdf, etc.)
70ffc148 38048
d5eec917
PB
38049.PHONY: maybe-info-wdiff info-wdiff
38050maybe-info-wdiff:
38051@if wdiff
38052maybe-info-wdiff: info-wdiff
8ec98d6c 38053
d5eec917
PB
38054info-wdiff: \
38055 configure-wdiff
15b527ca 38056 @: $(MAKE); $(unstage)
d5eec917 38057 @[ -f ./wdiff/Makefile ] || exit 0; \
8ec98d6c 38058 r=`${PWD_COMMAND}`; export r; \
5230d454 38059 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 38060 $(HOST_EXPORTS) \
d5eec917 38061 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
38062 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38063 done; \
d5eec917 38064 echo "Doing info in wdiff" ; \
7fc2ca22 38065 (cd $(HOST_SUBDIR)/wdiff && \
8ec98d6c
NN
38066 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38067 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38068 "RANLIB=$${RANLIB}" \
bffcbe34 38069 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 38070 info) \
8ec98d6c 38071 || exit 1
8ecc6504 38072
d5eec917 38073@endif wdiff
8ecc6504 38074
d5eec917
PB
38075.PHONY: maybe-dvi-wdiff dvi-wdiff
38076maybe-dvi-wdiff:
38077@if wdiff
38078maybe-dvi-wdiff: dvi-wdiff
8ec98d6c 38079
d5eec917
PB
38080dvi-wdiff: \
38081 configure-wdiff
15b527ca 38082 @: $(MAKE); $(unstage)
d5eec917 38083 @[ -f ./wdiff/Makefile ] || exit 0; \
8ec98d6c
NN
38084 r=`${PWD_COMMAND}`; export r; \
38085 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 38086 $(HOST_EXPORTS) \
d5eec917 38087 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
38088 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38089 done; \
d5eec917 38090 echo "Doing dvi in wdiff" ; \
7fc2ca22 38091 (cd $(HOST_SUBDIR)/wdiff && \
8ec98d6c
NN
38092 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38093 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38094 "RANLIB=$${RANLIB}" \
bffcbe34 38095 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 38096 dvi) \
8ec98d6c
NN
38097 || exit 1
38098
d5eec917 38099@endif wdiff
8ec98d6c 38100
39bbbb69
DD
38101.PHONY: maybe-pdf-wdiff pdf-wdiff
38102maybe-pdf-wdiff:
38103@if wdiff
38104maybe-pdf-wdiff: pdf-wdiff
38105
38106pdf-wdiff: \
38107 configure-wdiff
38108 @: $(MAKE); $(unstage)
38109 @[ -f ./wdiff/Makefile ] || exit 0; \
38110 r=`${PWD_COMMAND}`; export r; \
38111 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38112 $(HOST_EXPORTS) \
38113 for flag in $(EXTRA_HOST_FLAGS) ; do \
38114 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38115 done; \
38116 echo "Doing pdf in wdiff" ; \
38117 (cd $(HOST_SUBDIR)/wdiff && \
38118 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38119 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38120 "RANLIB=$${RANLIB}" \
bffcbe34 38121 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
38122 pdf) \
38123 || exit 1
38124
38125@endif wdiff
38126
b6fb961f
MS
38127.PHONY: maybe-html-wdiff html-wdiff
38128maybe-html-wdiff:
38129@if wdiff
38130maybe-html-wdiff: html-wdiff
38131
38132html-wdiff: \
38133 configure-wdiff
15b527ca 38134 @: $(MAKE); $(unstage)
b6fb961f
MS
38135 @[ -f ./wdiff/Makefile ] || exit 0; \
38136 r=`${PWD_COMMAND}`; export r; \
38137 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
38138 $(HOST_EXPORTS) \
38139 for flag in $(EXTRA_HOST_FLAGS) ; do \
38140 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38141 done; \
38142 echo "Doing html in wdiff" ; \
7fc2ca22 38143 (cd $(HOST_SUBDIR)/wdiff && \
b6fb961f
MS
38144 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38145 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38146 "RANLIB=$${RANLIB}" \
bffcbe34 38147 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
38148 html) \
38149 || exit 1
38150
38151@endif wdiff
38152
d5eec917
PB
38153.PHONY: maybe-TAGS-wdiff TAGS-wdiff
38154maybe-TAGS-wdiff:
38155@if wdiff
38156maybe-TAGS-wdiff: TAGS-wdiff
8ec98d6c 38157
d5eec917
PB
38158TAGS-wdiff: \
38159 configure-wdiff
15b527ca 38160 @: $(MAKE); $(unstage)
d5eec917 38161 @[ -f ./wdiff/Makefile ] || exit 0; \
8ec98d6c
NN
38162 r=`${PWD_COMMAND}`; export r; \
38163 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 38164 $(HOST_EXPORTS) \
d5eec917 38165 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
38166 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38167 done; \
d5eec917 38168 echo "Doing TAGS in wdiff" ; \
7fc2ca22 38169 (cd $(HOST_SUBDIR)/wdiff && \
8ec98d6c
NN
38170 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38171 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38172 "RANLIB=$${RANLIB}" \
bffcbe34 38173 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 38174 TAGS) \
8ec98d6c
NN
38175 || exit 1
38176
d5eec917 38177@endif wdiff
8ec98d6c 38178
d5eec917
PB
38179.PHONY: maybe-install-info-wdiff install-info-wdiff
38180maybe-install-info-wdiff:
38181@if wdiff
38182maybe-install-info-wdiff: install-info-wdiff
8ec98d6c 38183
d5eec917
PB
38184install-info-wdiff: \
38185 configure-wdiff \
38186 info-wdiff
15b527ca 38187 @: $(MAKE); $(unstage)
d5eec917 38188 @[ -f ./wdiff/Makefile ] || exit 0; \
8ec98d6c
NN
38189 r=`${PWD_COMMAND}`; export r; \
38190 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 38191 $(HOST_EXPORTS) \
d5eec917 38192 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
38193 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38194 done; \
d5eec917 38195 echo "Doing install-info in wdiff" ; \
7fc2ca22 38196 (cd $(HOST_SUBDIR)/wdiff && \
8ec98d6c
NN
38197 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38198 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38199 "RANLIB=$${RANLIB}" \
bffcbe34 38200 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 38201 install-info) \
8ec98d6c
NN
38202 || exit 1
38203
d5eec917 38204@endif wdiff
8ec98d6c 38205
d4954b6d
DD
38206.PHONY: maybe-install-pdf-wdiff install-pdf-wdiff
38207maybe-install-pdf-wdiff:
38208@if wdiff
38209maybe-install-pdf-wdiff: install-pdf-wdiff
38210
38211install-pdf-wdiff: \
38212 configure-wdiff \
38213 pdf-wdiff
38214 @: $(MAKE); $(unstage)
38215 @[ -f ./wdiff/Makefile ] || exit 0; \
38216 r=`${PWD_COMMAND}`; export r; \
38217 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38218 $(HOST_EXPORTS) \
38219 for flag in $(EXTRA_HOST_FLAGS) ; do \
38220 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38221 done; \
38222 echo "Doing install-pdf in wdiff" ; \
38223 (cd $(HOST_SUBDIR)/wdiff && \
38224 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38225 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38226 "RANLIB=$${RANLIB}" \
bffcbe34 38227 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
38228 install-pdf) \
38229 || exit 1
38230
38231@endif wdiff
38232
83c9add4
CD
38233.PHONY: maybe-install-html-wdiff install-html-wdiff
38234maybe-install-html-wdiff:
38235@if wdiff
38236maybe-install-html-wdiff: install-html-wdiff
38237
38238install-html-wdiff: \
38239 configure-wdiff \
38240 html-wdiff
38241 @: $(MAKE); $(unstage)
38242 @[ -f ./wdiff/Makefile ] || exit 0; \
38243 r=`${PWD_COMMAND}`; export r; \
38244 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38245 $(HOST_EXPORTS) \
38246 for flag in $(EXTRA_HOST_FLAGS) ; do \
38247 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38248 done; \
38249 echo "Doing install-html in wdiff" ; \
38250 (cd $(HOST_SUBDIR)/wdiff && \
38251 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38252 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38253 "RANLIB=$${RANLIB}" \
bffcbe34 38254 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
38255 install-html) \
38256 || exit 1
38257
38258@endif wdiff
38259
d5eec917
PB
38260.PHONY: maybe-installcheck-wdiff installcheck-wdiff
38261maybe-installcheck-wdiff:
38262@if wdiff
38263maybe-installcheck-wdiff: installcheck-wdiff
8ec98d6c 38264
d5eec917
PB
38265installcheck-wdiff: \
38266 configure-wdiff
15b527ca 38267 @: $(MAKE); $(unstage)
d5eec917 38268 @[ -f ./wdiff/Makefile ] || exit 0; \
8ec98d6c
NN
38269 r=`${PWD_COMMAND}`; export r; \
38270 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 38271 $(HOST_EXPORTS) \
d5eec917 38272 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
38273 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38274 done; \
d5eec917 38275 echo "Doing installcheck in wdiff" ; \
7fc2ca22 38276 (cd $(HOST_SUBDIR)/wdiff && \
8ec98d6c
NN
38277 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38278 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38279 "RANLIB=$${RANLIB}" \
bffcbe34 38280 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 38281 installcheck) \
8ec98d6c
NN
38282 || exit 1
38283
d5eec917 38284@endif wdiff
8ec98d6c 38285
d5eec917
PB
38286.PHONY: maybe-mostlyclean-wdiff mostlyclean-wdiff
38287maybe-mostlyclean-wdiff:
38288@if wdiff
38289maybe-mostlyclean-wdiff: mostlyclean-wdiff
8ec98d6c 38290
d5eec917 38291mostlyclean-wdiff:
15b527ca 38292 @: $(MAKE); $(unstage)
d5eec917 38293 @[ -f ./wdiff/Makefile ] || exit 0; \
8ec98d6c
NN
38294 r=`${PWD_COMMAND}`; export r; \
38295 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 38296 $(HOST_EXPORTS) \
d5eec917 38297 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
38298 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38299 done; \
d5eec917 38300 echo "Doing mostlyclean in wdiff" ; \
7fc2ca22 38301 (cd $(HOST_SUBDIR)/wdiff && \
8ec98d6c
NN
38302 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38303 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38304 "RANLIB=$${RANLIB}" \
bffcbe34 38305 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 38306 mostlyclean) \
8ec98d6c
NN
38307 || exit 1
38308
d5eec917 38309@endif wdiff
8ec98d6c 38310
d5eec917
PB
38311.PHONY: maybe-clean-wdiff clean-wdiff
38312maybe-clean-wdiff:
38313@if wdiff
38314maybe-clean-wdiff: clean-wdiff
8ec98d6c 38315
d5eec917 38316clean-wdiff:
15b527ca 38317 @: $(MAKE); $(unstage)
d5eec917 38318 @[ -f ./wdiff/Makefile ] || exit 0; \
8ec98d6c
NN
38319 r=`${PWD_COMMAND}`; export r; \
38320 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 38321 $(HOST_EXPORTS) \
d5eec917 38322 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
38323 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38324 done; \
d5eec917 38325 echo "Doing clean in wdiff" ; \
7fc2ca22 38326 (cd $(HOST_SUBDIR)/wdiff && \
8ec98d6c
NN
38327 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38328 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38329 "RANLIB=$${RANLIB}" \
bffcbe34 38330 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 38331 clean) \
8ec98d6c
NN
38332 || exit 1
38333
d5eec917 38334@endif wdiff
8ec98d6c 38335
d5eec917
PB
38336.PHONY: maybe-distclean-wdiff distclean-wdiff
38337maybe-distclean-wdiff:
38338@if wdiff
38339maybe-distclean-wdiff: distclean-wdiff
8ec98d6c 38340
d5eec917 38341distclean-wdiff:
15b527ca 38342 @: $(MAKE); $(unstage)
d5eec917 38343 @[ -f ./wdiff/Makefile ] || exit 0; \
8ec98d6c
NN
38344 r=`${PWD_COMMAND}`; export r; \
38345 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 38346 $(HOST_EXPORTS) \
d5eec917 38347 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
38348 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38349 done; \
d5eec917 38350 echo "Doing distclean in wdiff" ; \
7fc2ca22 38351 (cd $(HOST_SUBDIR)/wdiff && \
8ec98d6c
NN
38352 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38353 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38354 "RANLIB=$${RANLIB}" \
bffcbe34 38355 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 38356 distclean) \
8ec98d6c
NN
38357 || exit 1
38358
d5eec917 38359@endif wdiff
8ec98d6c 38360
d5eec917
PB
38361.PHONY: maybe-maintainer-clean-wdiff maintainer-clean-wdiff
38362maybe-maintainer-clean-wdiff:
38363@if wdiff
38364maybe-maintainer-clean-wdiff: maintainer-clean-wdiff
8ec98d6c 38365
d5eec917 38366maintainer-clean-wdiff:
15b527ca 38367 @: $(MAKE); $(unstage)
d5eec917 38368 @[ -f ./wdiff/Makefile ] || exit 0; \
8ec98d6c
NN
38369 r=`${PWD_COMMAND}`; export r; \
38370 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 38371 $(HOST_EXPORTS) \
d5eec917 38372 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
38373 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38374 done; \
d5eec917 38375 echo "Doing maintainer-clean in wdiff" ; \
7fc2ca22 38376 (cd $(HOST_SUBDIR)/wdiff && \
8ec98d6c
NN
38377 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38378 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38379 "RANLIB=$${RANLIB}" \
bffcbe34 38380 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 38381 maintainer-clean) \
8ec98d6c
NN
38382 || exit 1
38383
d5eec917 38384@endif wdiff
8ec98d6c
NN
38385
38386
f0fdfd34 38387
d5eec917
PB
38388.PHONY: configure-zip maybe-configure-zip
38389maybe-configure-zip:
e1e5148c
CD
38390@if gcc-bootstrap
38391configure-zip: stage_current
38392@endif gcc-bootstrap
d5eec917
PB
38393@if zip
38394maybe-configure-zip: configure-zip
ec92c4d6 38395configure-zip:
15b527ca 38396 @: $(MAKE); $(unstage)
ec92c4d6 38397 @r=`${PWD_COMMAND}`; export r; \
5230d454 38398 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
38399 test ! -f $(HOST_SUBDIR)/zip/Makefile || exit 0; \
38400 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zip ; \
a675b75a 38401 $(HOST_EXPORTS) \
f0fdfd34
PB
38402 echo Configuring in $(HOST_SUBDIR)/zip; \
38403 cd "$(HOST_SUBDIR)/zip" || exit 1; \
94f860c0 38404 case $(srcdir) in \
7fc2ca22
PB
38405 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38406 *) topdir=`echo $(HOST_SUBDIR)/zip/ | \
38407 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 38408 esac; \
7fc2ca22
PB
38409 srcdiroption="--srcdir=$${topdir}/zip"; \
38410 libsrcdir="$$s/zip"; \
94f860c0 38411 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
38412 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
38413 --target=${target_alias} $${srcdiroption} \
94f860c0 38414 || exit 1
d5eec917 38415@endif zip
94f860c0 38416
f0fdfd34
PB
38417
38418
a8a96878
PB
38419
38420
d5eec917
PB
38421.PHONY: all-zip maybe-all-zip
38422maybe-all-zip:
e1e5148c
CD
38423@if gcc-bootstrap
38424all-zip: stage_current
38425@endif gcc-bootstrap
d5eec917 38426@if zip
5e6b1f07 38427TARGET-zip=all
d5eec917
PB
38428maybe-all-zip: all-zip
38429all-zip: configure-zip
15b527ca 38430 @: $(MAKE); $(unstage)
5230d454
L
38431 @r=`${PWD_COMMAND}`; export r; \
38432 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 38433 $(HOST_EXPORTS) \
7fc2ca22 38434 (cd $(HOST_SUBDIR)/zip && \
6532abb6
PB
38435 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
38436 $(TARGET-zip))
d5eec917 38437@endif zip
8ecc6504 38438
f0fdfd34 38439
a8a96878
PB
38440
38441
d5eec917
PB
38442.PHONY: check-zip maybe-check-zip
38443maybe-check-zip:
38444@if zip
38445maybe-check-zip: check-zip
8ecc6504 38446
d5eec917
PB
38447# This module is only tested in a native toolchain.
38448check-zip:
15b527ca 38449 @: $(MAKE); $(unstage)
d5eec917
PB
38450 @if [ '$(host)' = '$(target)' ] ; then \
38451 r=`${PWD_COMMAND}`; export r; \
38452 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d5eec917 38453 $(HOST_EXPORTS) \
7fc2ca22 38454 (cd $(HOST_SUBDIR)/zip && \
80e4c577 38455 $(MAKE) $(FLAGS_TO_PASS) check); \
d5eec917 38456 fi
8ec98d6c 38457
d5eec917 38458@endif zip
8ec98d6c 38459
d5eec917
PB
38460.PHONY: install-zip maybe-install-zip
38461maybe-install-zip:
38462@if zip
38463maybe-install-zip: install-zip
8ec98d6c 38464
d5eec917 38465install-zip: installdirs
15b527ca 38466 @: $(MAKE); $(unstage)
d5eec917
PB
38467 @r=`${PWD_COMMAND}`; export r; \
38468 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d5eec917 38469 $(HOST_EXPORTS) \
7fc2ca22 38470 (cd $(HOST_SUBDIR)/zip && \
93c60b6d 38471 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 38472
d5eec917 38473@endif zip
8ec98d6c 38474
39bbbb69 38475# Other targets (info, dvi, pdf, etc.)
8ec98d6c 38476
d5eec917
PB
38477.PHONY: maybe-info-zip info-zip
38478maybe-info-zip:
38479@if zip
38480maybe-info-zip: info-zip
8ec98d6c 38481
d5eec917
PB
38482info-zip: \
38483 configure-zip
15b527ca 38484 @: $(MAKE); $(unstage)
d5eec917 38485 @[ -f ./zip/Makefile ] || exit 0; \
8ec98d6c 38486 r=`${PWD_COMMAND}`; export r; \
5230d454 38487 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 38488 $(HOST_EXPORTS) \
d5eec917 38489 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
38490 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38491 done; \
d5eec917 38492 echo "Doing info in zip" ; \
7fc2ca22 38493 (cd $(HOST_SUBDIR)/zip && \
8ec98d6c
NN
38494 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38495 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38496 "RANLIB=$${RANLIB}" \
bffcbe34 38497 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 38498 info) \
8ec98d6c 38499 || exit 1
8ecc6504 38500
d5eec917 38501@endif zip
8ecc6504 38502
d5eec917
PB
38503.PHONY: maybe-dvi-zip dvi-zip
38504maybe-dvi-zip:
38505@if zip
38506maybe-dvi-zip: dvi-zip
70ffc148 38507
d5eec917
PB
38508dvi-zip: \
38509 configure-zip
15b527ca 38510 @: $(MAKE); $(unstage)
d5eec917 38511 @[ -f ./zip/Makefile ] || exit 0; \
8ec98d6c 38512 r=`${PWD_COMMAND}`; export r; \
5230d454 38513 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 38514 $(HOST_EXPORTS) \
d5eec917 38515 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
38516 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38517 done; \
d5eec917 38518 echo "Doing dvi in zip" ; \
7fc2ca22 38519 (cd $(HOST_SUBDIR)/zip && \
8ec98d6c
NN
38520 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38521 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38522 "RANLIB=$${RANLIB}" \
bffcbe34 38523 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 38524 dvi) \
8ec98d6c 38525 || exit 1
8ecc6504 38526
d5eec917 38527@endif zip
8ecc6504 38528
39bbbb69
DD
38529.PHONY: maybe-pdf-zip pdf-zip
38530maybe-pdf-zip:
38531@if zip
38532maybe-pdf-zip: pdf-zip
38533
38534pdf-zip: \
38535 configure-zip
38536 @: $(MAKE); $(unstage)
38537 @[ -f ./zip/Makefile ] || exit 0; \
38538 r=`${PWD_COMMAND}`; export r; \
38539 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38540 $(HOST_EXPORTS) \
38541 for flag in $(EXTRA_HOST_FLAGS) ; do \
38542 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38543 done; \
38544 echo "Doing pdf in zip" ; \
38545 (cd $(HOST_SUBDIR)/zip && \
38546 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38547 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38548 "RANLIB=$${RANLIB}" \
bffcbe34 38549 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
38550 pdf) \
38551 || exit 1
38552
38553@endif zip
38554
b6fb961f
MS
38555.PHONY: maybe-html-zip html-zip
38556maybe-html-zip:
38557@if zip
38558maybe-html-zip: html-zip
38559
38560html-zip: \
38561 configure-zip
15b527ca 38562 @: $(MAKE); $(unstage)
b6fb961f
MS
38563 @[ -f ./zip/Makefile ] || exit 0; \
38564 r=`${PWD_COMMAND}`; export r; \
38565 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
38566 $(HOST_EXPORTS) \
38567 for flag in $(EXTRA_HOST_FLAGS) ; do \
38568 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38569 done; \
38570 echo "Doing html in zip" ; \
7fc2ca22 38571 (cd $(HOST_SUBDIR)/zip && \
b6fb961f
MS
38572 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38573 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38574 "RANLIB=$${RANLIB}" \
bffcbe34 38575 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
38576 html) \
38577 || exit 1
38578
38579@endif zip
38580
d5eec917
PB
38581.PHONY: maybe-TAGS-zip TAGS-zip
38582maybe-TAGS-zip:
38583@if zip
38584maybe-TAGS-zip: TAGS-zip
8ec98d6c 38585
d5eec917
PB
38586TAGS-zip: \
38587 configure-zip
15b527ca 38588 @: $(MAKE); $(unstage)
d5eec917 38589 @[ -f ./zip/Makefile ] || exit 0; \
5230d454
L
38590 r=`${PWD_COMMAND}`; export r; \
38591 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 38592 $(HOST_EXPORTS) \
d5eec917 38593 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
38594 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38595 done; \
d5eec917 38596 echo "Doing TAGS in zip" ; \
7fc2ca22 38597 (cd $(HOST_SUBDIR)/zip && \
8ec98d6c
NN
38598 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38599 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38600 "RANLIB=$${RANLIB}" \
bffcbe34 38601 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 38602 TAGS) \
94f860c0
NN
38603 || exit 1
38604
d5eec917 38605@endif zip
8ec98d6c 38606
d5eec917
PB
38607.PHONY: maybe-install-info-zip install-info-zip
38608maybe-install-info-zip:
38609@if zip
38610maybe-install-info-zip: install-info-zip
8ec98d6c 38611
d5eec917
PB
38612install-info-zip: \
38613 configure-zip \
38614 info-zip
15b527ca 38615 @: $(MAKE); $(unstage)
d5eec917 38616 @[ -f ./zip/Makefile ] || exit 0; \
8ec98d6c 38617 r=`${PWD_COMMAND}`; export r; \
5230d454 38618 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 38619 $(HOST_EXPORTS) \
d5eec917 38620 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
38621 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38622 done; \
d5eec917 38623 echo "Doing install-info in zip" ; \
7fc2ca22 38624 (cd $(HOST_SUBDIR)/zip && \
8ec98d6c
NN
38625 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38626 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38627 "RANLIB=$${RANLIB}" \
bffcbe34 38628 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 38629 install-info) \
8ec98d6c 38630 || exit 1
8ecc6504 38631
d5eec917 38632@endif zip
8ecc6504 38633
d4954b6d
DD
38634.PHONY: maybe-install-pdf-zip install-pdf-zip
38635maybe-install-pdf-zip:
38636@if zip
38637maybe-install-pdf-zip: install-pdf-zip
38638
38639install-pdf-zip: \
38640 configure-zip \
38641 pdf-zip
38642 @: $(MAKE); $(unstage)
38643 @[ -f ./zip/Makefile ] || exit 0; \
38644 r=`${PWD_COMMAND}`; export r; \
38645 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38646 $(HOST_EXPORTS) \
38647 for flag in $(EXTRA_HOST_FLAGS) ; do \
38648 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38649 done; \
38650 echo "Doing install-pdf in zip" ; \
38651 (cd $(HOST_SUBDIR)/zip && \
38652 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38653 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38654 "RANLIB=$${RANLIB}" \
bffcbe34 38655 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
38656 install-pdf) \
38657 || exit 1
38658
38659@endif zip
38660
83c9add4
CD
38661.PHONY: maybe-install-html-zip install-html-zip
38662maybe-install-html-zip:
38663@if zip
38664maybe-install-html-zip: install-html-zip
38665
38666install-html-zip: \
38667 configure-zip \
38668 html-zip
38669 @: $(MAKE); $(unstage)
38670 @[ -f ./zip/Makefile ] || exit 0; \
38671 r=`${PWD_COMMAND}`; export r; \
38672 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38673 $(HOST_EXPORTS) \
38674 for flag in $(EXTRA_HOST_FLAGS) ; do \
38675 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38676 done; \
38677 echo "Doing install-html in zip" ; \
38678 (cd $(HOST_SUBDIR)/zip && \
38679 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38680 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38681 "RANLIB=$${RANLIB}" \
bffcbe34 38682 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
38683 install-html) \
38684 || exit 1
38685
38686@endif zip
38687
d5eec917
PB
38688.PHONY: maybe-installcheck-zip installcheck-zip
38689maybe-installcheck-zip:
38690@if zip
38691maybe-installcheck-zip: installcheck-zip
8ec98d6c 38692
d5eec917
PB
38693installcheck-zip: \
38694 configure-zip
15b527ca 38695 @: $(MAKE); $(unstage)
d5eec917 38696 @[ -f ./zip/Makefile ] || exit 0; \
8ec98d6c 38697 r=`${PWD_COMMAND}`; export r; \
5230d454 38698 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 38699 $(HOST_EXPORTS) \
d5eec917 38700 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
38701 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38702 done; \
d5eec917 38703 echo "Doing installcheck in zip" ; \
7fc2ca22 38704 (cd $(HOST_SUBDIR)/zip && \
8ec98d6c
NN
38705 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38706 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38707 "RANLIB=$${RANLIB}" \
bffcbe34 38708 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 38709 installcheck) \
8ec98d6c 38710 || exit 1
8ecc6504 38711
d5eec917 38712@endif zip
8ecc6504 38713
d5eec917
PB
38714.PHONY: maybe-mostlyclean-zip mostlyclean-zip
38715maybe-mostlyclean-zip:
38716@if zip
38717maybe-mostlyclean-zip: mostlyclean-zip
70ffc148 38718
d5eec917 38719mostlyclean-zip:
15b527ca 38720 @: $(MAKE); $(unstage)
d5eec917 38721 @[ -f ./zip/Makefile ] || exit 0; \
8ec98d6c
NN
38722 r=`${PWD_COMMAND}`; export r; \
38723 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 38724 $(HOST_EXPORTS) \
d5eec917 38725 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
38726 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38727 done; \
d5eec917 38728 echo "Doing mostlyclean in zip" ; \
7fc2ca22 38729 (cd $(HOST_SUBDIR)/zip && \
8ec98d6c
NN
38730 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38731 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38732 "RANLIB=$${RANLIB}" \
bffcbe34 38733 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 38734 mostlyclean) \
8ec98d6c
NN
38735 || exit 1
38736
d5eec917 38737@endif zip
8ec98d6c 38738
d5eec917
PB
38739.PHONY: maybe-clean-zip clean-zip
38740maybe-clean-zip:
38741@if zip
38742maybe-clean-zip: clean-zip
8ec98d6c 38743
d5eec917 38744clean-zip:
15b527ca 38745 @: $(MAKE); $(unstage)
d5eec917 38746 @[ -f ./zip/Makefile ] || exit 0; \
8ec98d6c
NN
38747 r=`${PWD_COMMAND}`; export r; \
38748 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 38749 $(HOST_EXPORTS) \
d5eec917 38750 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
38751 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38752 done; \
d5eec917 38753 echo "Doing clean in zip" ; \
7fc2ca22 38754 (cd $(HOST_SUBDIR)/zip && \
8ec98d6c
NN
38755 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38756 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38757 "RANLIB=$${RANLIB}" \
bffcbe34 38758 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 38759 clean) \
8ec98d6c
NN
38760 || exit 1
38761
d5eec917 38762@endif zip
8ec98d6c 38763
d5eec917
PB
38764.PHONY: maybe-distclean-zip distclean-zip
38765maybe-distclean-zip:
38766@if zip
38767maybe-distclean-zip: distclean-zip
8ec98d6c 38768
d5eec917 38769distclean-zip:
15b527ca 38770 @: $(MAKE); $(unstage)
d5eec917 38771 @[ -f ./zip/Makefile ] || exit 0; \
8ec98d6c
NN
38772 r=`${PWD_COMMAND}`; export r; \
38773 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 38774 $(HOST_EXPORTS) \
d5eec917 38775 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
38776 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38777 done; \
d5eec917 38778 echo "Doing distclean in zip" ; \
7fc2ca22 38779 (cd $(HOST_SUBDIR)/zip && \
8ec98d6c
NN
38780 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38781 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38782 "RANLIB=$${RANLIB}" \
bffcbe34 38783 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 38784 distclean) \
8ec98d6c
NN
38785 || exit 1
38786
d5eec917 38787@endif zip
8ec98d6c 38788
d5eec917
PB
38789.PHONY: maybe-maintainer-clean-zip maintainer-clean-zip
38790maybe-maintainer-clean-zip:
38791@if zip
38792maybe-maintainer-clean-zip: maintainer-clean-zip
8ec98d6c 38793
d5eec917 38794maintainer-clean-zip:
15b527ca 38795 @: $(MAKE); $(unstage)
d5eec917 38796 @[ -f ./zip/Makefile ] || exit 0; \
8ec98d6c 38797 r=`${PWD_COMMAND}`; export r; \
5230d454 38798 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 38799 $(HOST_EXPORTS) \
d5eec917 38800 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
38801 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38802 done; \
d5eec917 38803 echo "Doing maintainer-clean in zip" ; \
7fc2ca22 38804 (cd $(HOST_SUBDIR)/zip && \
8ec98d6c
NN
38805 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38806 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38807 "RANLIB=$${RANLIB}" \
bffcbe34 38808 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 38809 maintainer-clean) \
8ec98d6c 38810 || exit 1
8ecc6504 38811
d5eec917 38812@endif zip
8ecc6504 38813
8ec98d6c 38814
f0fdfd34 38815
d5eec917
PB
38816.PHONY: configure-zlib maybe-configure-zlib
38817maybe-configure-zlib:
e1e5148c
CD
38818@if gcc-bootstrap
38819configure-zlib: stage_current
38820@endif gcc-bootstrap
d5eec917
PB
38821@if zlib
38822maybe-configure-zlib: configure-zlib
ec92c4d6 38823configure-zlib:
ec92c4d6
PB
38824 @r=`${PWD_COMMAND}`; export r; \
38825 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7fc2ca22
PB
38826 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
38827 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \
a675b75a 38828 $(HOST_EXPORTS) \
f0fdfd34
PB
38829 echo Configuring in $(HOST_SUBDIR)/zlib; \
38830 cd "$(HOST_SUBDIR)/zlib" || exit 1; \
94f860c0 38831 case $(srcdir) in \
7fc2ca22
PB
38832 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38833 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
38834 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 38835 esac; \
7fc2ca22
PB
38836 srcdiroption="--srcdir=$${topdir}/zlib"; \
38837 libsrcdir="$$s/zlib"; \
94f860c0 38838 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
38839 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
38840 --target=${target_alias} $${srcdiroption} \
94f860c0 38841 || exit 1
d5eec917 38842@endif zlib
94f860c0 38843
f0fdfd34
PB
38844
38845
a8a96878
PB
38846.PHONY: configure-stage1-zlib maybe-configure-stage1-zlib
38847maybe-configure-stage1-zlib:
38848@if zlib-bootstrap
38849maybe-configure-stage1-zlib: configure-stage1-zlib
15b527ca 38850configure-stage1-zlib:
ec92c4d6 38851 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
15b527ca 38852 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
ec92c4d6
PB
38853 @r=`${PWD_COMMAND}`; export r; \
38854 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15b527ca 38855 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
6532abb6 38856 $(HOST_EXPORTS) \
2ba09444 38857 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
6532abb6 38858 CXXFLAGS="$(STAGE1_CFLAGS)"; export CXXFLAGS; \
a8a96878 38859 echo Configuring stage 1 in $(HOST_SUBDIR)/zlib ; \
15b527ca 38860 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \
a8a96878
PB
38861 cd $(HOST_SUBDIR)/zlib || exit 1; \
38862 case $(srcdir) in \
38863 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38864 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
38865 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38866 esac; \
38867 srcdiroption="--srcdir=$${topdir}/zlib"; \
38868 libsrcdir="$$s/zlib"; \
38869 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
38870 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
38871 --target=${target_alias} $${srcdiroption} \
380e48e5 38872 \
14a1406e 38873 --disable-intermodule $(STAGE1_CHECKING) --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
a8a96878
PB
38874@endif zlib-bootstrap
38875
38876.PHONY: configure-stage2-zlib maybe-configure-stage2-zlib
38877maybe-configure-stage2-zlib:
38878@if zlib-bootstrap
38879maybe-configure-stage2-zlib: configure-stage2-zlib
15b527ca 38880configure-stage2-zlib:
ec92c4d6 38881 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
15b527ca 38882 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
ec92c4d6
PB
38883 @r=`${PWD_COMMAND}`; export r; \
38884 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15b527ca 38885 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
a8a96878 38886 $(HOST_EXPORTS) \
6532abb6 38887 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 38888 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
6532abb6 38889 CXXFLAGS="$(STAGE2_CFLAGS)"; export CXXFLAGS; \
a8a96878 38890 echo Configuring stage 2 in $(HOST_SUBDIR)/zlib ; \
15b527ca 38891 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \
a8a96878
PB
38892 cd $(HOST_SUBDIR)/zlib || exit 1; \
38893 case $(srcdir) in \
38894 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38895 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
38896 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38897 esac; \
38898 srcdiroption="--srcdir=$${topdir}/zlib"; \
38899 libsrcdir="$$s/zlib"; \
38900 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
38901 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
38902 --target=${target_alias} $${srcdiroption} \
380e48e5 38903 --with-build-libsubdir=$(HOST_SUBDIR) \
a8a96878
PB
38904 @stage2_werror_flag@
38905@endif zlib-bootstrap
38906
2b41ef78
AO
38907.PHONY: configure-stageb2g0-zlib maybe-configure-stageb2g0-zlib
38908maybe-configure-stageb2g0-zlib:
38909@if zlib-bootstrap
38910maybe-configure-stageb2g0-zlib: configure-stageb2g0-zlib
38911configure-stageb2g0-zlib:
38912 @[ $(current_stage) = stageb2g0 ] || $(MAKE) stageb2g0-start
38913 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
38914 @r=`${PWD_COMMAND}`; export r; \
38915 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38916 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
38917 $(HOST_EXPORTS) \
6532abb6 38918 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 38919 CFLAGS="$(STAGE2_CFLAGS) -g0"; export CFLAGS; \
6532abb6 38920 CXXFLAGS="$(STAGE2_CFLAGS) -g0"; export CXXFLAGS; \
2b41ef78
AO
38921 echo Configuring stage b2g0 in $(HOST_SUBDIR)/zlib ; \
38922 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \
38923 cd $(HOST_SUBDIR)/zlib || exit 1; \
38924 case $(srcdir) in \
38925 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38926 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
38927 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38928 esac; \
38929 srcdiroption="--srcdir=$${topdir}/zlib"; \
38930 libsrcdir="$$s/zlib"; \
38931 $(SHELL) $${libsrcdir}/configure \
38932 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
38933 --target=${target_alias} $${srcdiroption} \
38934 --with-build-libsubdir=$(HOST_SUBDIR) \
38935 @stage2_werror_flag@
38936@endif zlib-bootstrap
38937
a8a96878
PB
38938.PHONY: configure-stage3-zlib maybe-configure-stage3-zlib
38939maybe-configure-stage3-zlib:
38940@if zlib-bootstrap
38941maybe-configure-stage3-zlib: configure-stage3-zlib
15b527ca 38942configure-stage3-zlib:
ec92c4d6 38943 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
15b527ca 38944 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
ec92c4d6
PB
38945 @r=`${PWD_COMMAND}`; export r; \
38946 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15b527ca 38947 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
a8a96878 38948 $(HOST_EXPORTS) \
6532abb6 38949 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 38950 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
6532abb6 38951 CXXFLAGS="$(STAGE3_CFLAGS)"; export CXXFLAGS; \
a8a96878 38952 echo Configuring stage 3 in $(HOST_SUBDIR)/zlib ; \
15b527ca 38953 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \
a8a96878
PB
38954 cd $(HOST_SUBDIR)/zlib || exit 1; \
38955 case $(srcdir) in \
38956 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38957 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
38958 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38959 esac; \
38960 srcdiroption="--srcdir=$${topdir}/zlib"; \
38961 libsrcdir="$$s/zlib"; \
38962 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
38963 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
38964 --target=${target_alias} $${srcdiroption} \
380e48e5 38965 --with-build-libsubdir=$(HOST_SUBDIR) \
a8a96878
PB
38966 @stage2_werror_flag@
38967@endif zlib-bootstrap
38968
2b41ef78
AO
38969.PHONY: configure-stageb3g2-zlib maybe-configure-stageb3g2-zlib
38970maybe-configure-stageb3g2-zlib:
38971@if zlib-bootstrap
38972maybe-configure-stageb3g2-zlib: configure-stageb3g2-zlib
38973configure-stageb3g2-zlib:
38974 @[ $(current_stage) = stageb3g2 ] || $(MAKE) stageb3g2-start
38975 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
38976 @r=`${PWD_COMMAND}`; export r; \
38977 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38978 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
38979 $(HOST_EXPORTS) \
6532abb6 38980 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 38981 CFLAGS="$(STAGE3_CFLAGS) -g2"; export CFLAGS; \
6532abb6 38982 CXXFLAGS="$(STAGE3_CFLAGS) -g2"; export CXXFLAGS; \
2b41ef78
AO
38983 echo Configuring stage b3g2 in $(HOST_SUBDIR)/zlib ; \
38984 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \
38985 cd $(HOST_SUBDIR)/zlib || exit 1; \
38986 case $(srcdir) in \
38987 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38988 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
38989 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38990 esac; \
38991 srcdiroption="--srcdir=$${topdir}/zlib"; \
38992 libsrcdir="$$s/zlib"; \
38993 $(SHELL) $${libsrcdir}/configure \
38994 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
38995 --target=${target_alias} $${srcdiroption} \
38996 --with-build-libsubdir=$(HOST_SUBDIR) \
38997 @stage2_werror_flag@
38998@endif zlib-bootstrap
38999
a8a96878
PB
39000.PHONY: configure-stage4-zlib maybe-configure-stage4-zlib
39001maybe-configure-stage4-zlib:
39002@if zlib-bootstrap
39003maybe-configure-stage4-zlib: configure-stage4-zlib
15b527ca 39004configure-stage4-zlib:
ec92c4d6 39005 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
15b527ca 39006 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
ec92c4d6
PB
39007 @r=`${PWD_COMMAND}`; export r; \
39008 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15b527ca 39009 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
a8a96878 39010 $(HOST_EXPORTS) \
6532abb6 39011 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 39012 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
6532abb6 39013 CXXFLAGS="$(STAGE4_CFLAGS)"; export CXXFLAGS; \
a8a96878 39014 echo Configuring stage 4 in $(HOST_SUBDIR)/zlib ; \
15b527ca 39015 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \
a8a96878
PB
39016 cd $(HOST_SUBDIR)/zlib || exit 1; \
39017 case $(srcdir) in \
39018 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
39019 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
39020 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
39021 esac; \
39022 srcdiroption="--srcdir=$${topdir}/zlib"; \
39023 libsrcdir="$$s/zlib"; \
39024 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
39025 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
39026 --target=${target_alias} $${srcdiroption} \
380e48e5 39027 --with-build-libsubdir=$(HOST_SUBDIR) \
a8a96878
PB
39028 @stage2_werror_flag@
39029@endif zlib-bootstrap
39030
39031.PHONY: configure-stageprofile-zlib maybe-configure-stageprofile-zlib
39032maybe-configure-stageprofile-zlib:
39033@if zlib-bootstrap
39034maybe-configure-stageprofile-zlib: configure-stageprofile-zlib
15b527ca 39035configure-stageprofile-zlib:
ec92c4d6 39036 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
15b527ca 39037 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
ec92c4d6
PB
39038 @r=`${PWD_COMMAND}`; export r; \
39039 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15b527ca 39040 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
a8a96878 39041 $(HOST_EXPORTS) \
6532abb6 39042 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 39043 CFLAGS="$(STAGE2_CFLAGS) -fprofile-generate"; export CFLAGS; \
6532abb6 39044 CXXFLAGS="$(STAGE2_CFLAGS) -fprofile-generate"; export CXXFLAGS; \
a8a96878 39045 echo Configuring stage profile in $(HOST_SUBDIR)/zlib ; \
15b527ca 39046 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \
a8a96878
PB
39047 cd $(HOST_SUBDIR)/zlib || exit 1; \
39048 case $(srcdir) in \
39049 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
39050 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
39051 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
39052 esac; \
39053 srcdiroption="--srcdir=$${topdir}/zlib"; \
39054 libsrcdir="$$s/zlib"; \
39055 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
39056 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
39057 --target=${target_alias} $${srcdiroption} \
380e48e5 39058 --with-build-libsubdir=$(HOST_SUBDIR) \
a8a96878
PB
39059 @stage2_werror_flag@
39060@endif zlib-bootstrap
39061
39062.PHONY: configure-stagefeedback-zlib maybe-configure-stagefeedback-zlib
39063maybe-configure-stagefeedback-zlib:
39064@if zlib-bootstrap
39065maybe-configure-stagefeedback-zlib: configure-stagefeedback-zlib
15b527ca 39066configure-stagefeedback-zlib:
ec92c4d6 39067 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
15b527ca 39068 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
ec92c4d6
PB
39069 @r=`${PWD_COMMAND}`; export r; \
39070 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15b527ca 39071 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
a8a96878 39072 $(HOST_EXPORTS) \
6532abb6 39073 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 39074 CFLAGS="$(STAGE3_CFLAGS) -fprofile-use"; export CFLAGS; \
6532abb6 39075 CXXFLAGS="$(STAGE3_CFLAGS) -fprofile-use"; export CXXFLAGS; \
a8a96878 39076 echo Configuring stage feedback in $(HOST_SUBDIR)/zlib ; \
15b527ca 39077 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \
a8a96878
PB
39078 cd $(HOST_SUBDIR)/zlib || exit 1; \
39079 case $(srcdir) in \
39080 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
39081 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
39082 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
39083 esac; \
39084 srcdiroption="--srcdir=$${topdir}/zlib"; \
39085 libsrcdir="$$s/zlib"; \
39086 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
39087 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
39088 --target=${target_alias} $${srcdiroption} \
380e48e5 39089 --with-build-libsubdir=$(HOST_SUBDIR) \
a8a96878
PB
39090 @stage2_werror_flag@
39091@endif zlib-bootstrap
39092
39093
39094
39095
39096
d5eec917
PB
39097.PHONY: all-zlib maybe-all-zlib
39098maybe-all-zlib:
e1e5148c
CD
39099@if gcc-bootstrap
39100all-zlib: stage_current
39101@endif gcc-bootstrap
d5eec917 39102@if zlib
5e6b1f07 39103TARGET-zlib=all
d5eec917
PB
39104maybe-all-zlib: all-zlib
39105all-zlib: configure-zlib
ec92c4d6 39106 @r=`${PWD_COMMAND}`; export r; \
5230d454 39107 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 39108 $(HOST_EXPORTS) \
7fc2ca22 39109 (cd $(HOST_SUBDIR)/zlib && \
6532abb6
PB
39110 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
39111 $(TARGET-zlib))
d5eec917 39112@endif zlib
8ecc6504 39113
f0fdfd34 39114
a8a96878
PB
39115
39116.PHONY: all-stage1-zlib maybe-all-stage1-zlib
39117.PHONY: clean-stage1-zlib maybe-clean-stage1-zlib
39118maybe-all-stage1-zlib:
39119maybe-clean-stage1-zlib:
39120@if zlib-bootstrap
39121maybe-all-stage1-zlib: all-stage1-zlib
39122all-stage1: all-stage1-zlib
168b158c 39123TARGET-stage1-zlib = $(TARGET-zlib)
a8a96878 39124all-stage1-zlib: configure-stage1-zlib
ec92c4d6 39125 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a8a96878
PB
39126 @r=`${PWD_COMMAND}`; export r; \
39127 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39128 $(HOST_EXPORTS) \
39129 cd $(HOST_SUBDIR)/zlib && \
6532abb6
PB
39130 $(MAKE) $(BASE_FLAGS_TO_PASS) \
39131 CFLAGS="$(STAGE1_CFLAGS)" CXXFLAGS="$(STAGE1_CFLAGS)" \
39132 LIBCFLAGS="$(STAGE1_LIBCFLAGS)" \
39133 CFLAGS_FOR_TARGET="$(STAGE1_LIBCFLAGS)" \
39134 CXXFLAGS_FOR_TARGET="$(STAGE1_LIBCFLAGS)" $(EXTRA_HOST_FLAGS) \
168b158c 39135 $(TARGET-stage1-zlib)
a8a96878
PB
39136
39137maybe-clean-stage1-zlib: clean-stage1-zlib
39138clean-stage1: clean-stage1-zlib
39139clean-stage1-zlib:
a6a4e782
DD
39140 @if [ $(current_stage) = stage1 ]; then \
39141 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
39142 else \
39143 [ -f $(HOST_SUBDIR)/stage1-zlib/Makefile ] || exit 0; \
39144 $(MAKE) stage1-start; \
39145 fi; \
a8a96878 39146 cd $(HOST_SUBDIR)/zlib && \
6532abb6 39147 $(MAKE) $(EXTRA_HOST_FLAGS) \
2ba09444 39148 clean
a8a96878
PB
39149@endif zlib-bootstrap
39150
39151
39152.PHONY: all-stage2-zlib maybe-all-stage2-zlib
39153.PHONY: clean-stage2-zlib maybe-clean-stage2-zlib
39154maybe-all-stage2-zlib:
39155maybe-clean-stage2-zlib:
39156@if zlib-bootstrap
39157maybe-all-stage2-zlib: all-stage2-zlib
39158all-stage2: all-stage2-zlib
168b158c 39159TARGET-stage2-zlib = $(TARGET-zlib)
a8a96878 39160all-stage2-zlib: configure-stage2-zlib
ec92c4d6 39161 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a8a96878
PB
39162 @r=`${PWD_COMMAND}`; export r; \
39163 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39164 $(HOST_EXPORTS) \
39165 $(POSTSTAGE1_HOST_EXPORTS) \
39166 cd $(HOST_SUBDIR)/zlib && \
6532abb6
PB
39167 $(MAKE) $(BASE_FLAGS_TO_PASS) \
39168 CFLAGS="$(STAGE2_CFLAGS)" CXXFLAGS="$(STAGE2_CFLAGS)" \
39169 LIBCFLAGS="$(STAGE2_LIBCFLAGS)" \
39170 CFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)" \
39171 CXXFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
168b158c 39172 $(TARGET-stage2-zlib)
a8a96878
PB
39173
39174maybe-clean-stage2-zlib: clean-stage2-zlib
39175clean-stage2: clean-stage2-zlib
39176clean-stage2-zlib:
a6a4e782
DD
39177 @if [ $(current_stage) = stage2 ]; then \
39178 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
39179 else \
39180 [ -f $(HOST_SUBDIR)/stage2-zlib/Makefile ] || exit 0; \
39181 $(MAKE) stage2-start; \
39182 fi; \
a8a96878 39183 cd $(HOST_SUBDIR)/zlib && \
6532abb6 39184 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 39185 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 39186 clean
a8a96878
PB
39187@endif zlib-bootstrap
39188
39189
2b41ef78
AO
39190.PHONY: all-stageb2g0-zlib maybe-all-stageb2g0-zlib
39191.PHONY: clean-stageb2g0-zlib maybe-clean-stageb2g0-zlib
39192maybe-all-stageb2g0-zlib:
39193maybe-clean-stageb2g0-zlib:
39194@if zlib-bootstrap
39195maybe-all-stageb2g0-zlib: all-stageb2g0-zlib
39196all-stageb2g0: all-stageb2g0-zlib
39197TARGET-stageb2g0-zlib = $(TARGET-zlib)
39198all-stageb2g0-zlib: configure-stageb2g0-zlib
39199 @[ $(current_stage) = stageb2g0 ] || $(MAKE) stageb2g0-start
39200 @r=`${PWD_COMMAND}`; export r; \
39201 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39202 $(HOST_EXPORTS) \
39203 $(POSTSTAGE1_HOST_EXPORTS) \
39204 cd $(HOST_SUBDIR)/zlib && \
6532abb6
PB
39205 $(MAKE) $(BASE_FLAGS_TO_PASS) \
39206 CFLAGS="$(STAGE2_CFLAGS) -g0" CXXFLAGS="$(STAGE2_CFLAGS) -g0" \
39207 LIBCFLAGS="$(STAGE2_LIBCFLAGS) -g0" \
39208 CFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS) -g0" \
39209 CXXFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS) -g0" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
2b41ef78
AO
39210 $(TARGET-stageb2g0-zlib)
39211
39212maybe-clean-stageb2g0-zlib: clean-stageb2g0-zlib
39213clean-stageb2g0: clean-stageb2g0-zlib
39214clean-stageb2g0-zlib:
39215 @if [ $(current_stage) = stageb2g0 ]; then \
39216 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
39217 else \
39218 [ -f $(HOST_SUBDIR)/stageb2g0-zlib/Makefile ] || exit 0; \
39219 $(MAKE) stageb2g0-start; \
39220 fi; \
39221 cd $(HOST_SUBDIR)/zlib && \
6532abb6 39222 $(MAKE) $(EXTRA_HOST_FLAGS) \
2b41ef78
AO
39223 $(POSTSTAGE1_FLAGS_TO_PASS) \
39224 clean
39225@endif zlib-bootstrap
39226
39227
a8a96878
PB
39228.PHONY: all-stage3-zlib maybe-all-stage3-zlib
39229.PHONY: clean-stage3-zlib maybe-clean-stage3-zlib
39230maybe-all-stage3-zlib:
39231maybe-clean-stage3-zlib:
39232@if zlib-bootstrap
39233maybe-all-stage3-zlib: all-stage3-zlib
39234all-stage3: all-stage3-zlib
168b158c 39235TARGET-stage3-zlib = $(TARGET-zlib)
a8a96878 39236all-stage3-zlib: configure-stage3-zlib
ec92c4d6 39237 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a8a96878
PB
39238 @r=`${PWD_COMMAND}`; export r; \
39239 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39240 $(HOST_EXPORTS) \
39241 $(POSTSTAGE1_HOST_EXPORTS) \
39242 cd $(HOST_SUBDIR)/zlib && \
6532abb6
PB
39243 $(MAKE) $(BASE_FLAGS_TO_PASS) \
39244 CFLAGS="$(STAGE3_CFLAGS)" CXXFLAGS="$(STAGE3_CFLAGS)" \
39245 LIBCFLAGS="$(STAGE3_LIBCFLAGS)" \
39246 CFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS)" \
39247 CXXFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS)" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
168b158c 39248 $(TARGET-stage3-zlib)
a8a96878
PB
39249
39250maybe-clean-stage3-zlib: clean-stage3-zlib
39251clean-stage3: clean-stage3-zlib
39252clean-stage3-zlib:
a6a4e782
DD
39253 @if [ $(current_stage) = stage3 ]; then \
39254 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
39255 else \
39256 [ -f $(HOST_SUBDIR)/stage3-zlib/Makefile ] || exit 0; \
39257 $(MAKE) stage3-start; \
39258 fi; \
a8a96878 39259 cd $(HOST_SUBDIR)/zlib && \
6532abb6 39260 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 39261 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 39262 clean
a8a96878
PB
39263@endif zlib-bootstrap
39264
39265
2b41ef78
AO
39266.PHONY: all-stageb3g2-zlib maybe-all-stageb3g2-zlib
39267.PHONY: clean-stageb3g2-zlib maybe-clean-stageb3g2-zlib
39268maybe-all-stageb3g2-zlib:
39269maybe-clean-stageb3g2-zlib:
39270@if zlib-bootstrap
39271maybe-all-stageb3g2-zlib: all-stageb3g2-zlib
39272all-stageb3g2: all-stageb3g2-zlib
39273TARGET-stageb3g2-zlib = $(TARGET-zlib)
39274all-stageb3g2-zlib: configure-stageb3g2-zlib
39275 @[ $(current_stage) = stageb3g2 ] || $(MAKE) stageb3g2-start
39276 @r=`${PWD_COMMAND}`; export r; \
39277 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39278 $(HOST_EXPORTS) \
39279 $(POSTSTAGE1_HOST_EXPORTS) \
39280 cd $(HOST_SUBDIR)/zlib && \
6532abb6
PB
39281 $(MAKE) $(BASE_FLAGS_TO_PASS) \
39282 CFLAGS="$(STAGE3_CFLAGS) -g2" CXXFLAGS="$(STAGE3_CFLAGS) -g2" \
39283 LIBCFLAGS="$(STAGE3_LIBCFLAGS) -g2" \
39284 CFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS) -g2" \
39285 CXXFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS) -g2" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
2b41ef78
AO
39286 $(TARGET-stageb3g2-zlib)
39287
39288maybe-clean-stageb3g2-zlib: clean-stageb3g2-zlib
39289clean-stageb3g2: clean-stageb3g2-zlib
39290clean-stageb3g2-zlib:
39291 @if [ $(current_stage) = stageb3g2 ]; then \
39292 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
39293 else \
39294 [ -f $(HOST_SUBDIR)/stageb3g2-zlib/Makefile ] || exit 0; \
39295 $(MAKE) stageb3g2-start; \
39296 fi; \
39297 cd $(HOST_SUBDIR)/zlib && \
6532abb6 39298 $(MAKE) $(EXTRA_HOST_FLAGS) \
2b41ef78
AO
39299 $(POSTSTAGE1_FLAGS_TO_PASS) \
39300 clean
39301@endif zlib-bootstrap
39302
39303
a8a96878
PB
39304.PHONY: all-stage4-zlib maybe-all-stage4-zlib
39305.PHONY: clean-stage4-zlib maybe-clean-stage4-zlib
39306maybe-all-stage4-zlib:
39307maybe-clean-stage4-zlib:
39308@if zlib-bootstrap
39309maybe-all-stage4-zlib: all-stage4-zlib
39310all-stage4: all-stage4-zlib
168b158c 39311TARGET-stage4-zlib = $(TARGET-zlib)
a8a96878 39312all-stage4-zlib: configure-stage4-zlib
ec92c4d6 39313 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a8a96878
PB
39314 @r=`${PWD_COMMAND}`; export r; \
39315 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39316 $(HOST_EXPORTS) \
39317 $(POSTSTAGE1_HOST_EXPORTS) \
39318 cd $(HOST_SUBDIR)/zlib && \
6532abb6
PB
39319 $(MAKE) $(BASE_FLAGS_TO_PASS) \
39320 CFLAGS="$(STAGE4_CFLAGS)" CXXFLAGS="$(STAGE4_CFLAGS)" \
39321 LIBCFLAGS="$(STAGE4_CFLAGS)" \
39322 CFLAGS_FOR_TARGET="$(STAGE4_CFLAGS)" \
39323 CXXFLAGS_FOR_TARGET="$(STAGE4_CFLAGS)" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
168b158c 39324 $(TARGET-stage4-zlib)
a8a96878
PB
39325
39326maybe-clean-stage4-zlib: clean-stage4-zlib
39327clean-stage4: clean-stage4-zlib
39328clean-stage4-zlib:
a6a4e782
DD
39329 @if [ $(current_stage) = stage4 ]; then \
39330 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
39331 else \
39332 [ -f $(HOST_SUBDIR)/stage4-zlib/Makefile ] || exit 0; \
39333 $(MAKE) stage4-start; \
39334 fi; \
a8a96878 39335 cd $(HOST_SUBDIR)/zlib && \
6532abb6 39336 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 39337 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 39338 clean
a8a96878
PB
39339@endif zlib-bootstrap
39340
39341
39342.PHONY: all-stageprofile-zlib maybe-all-stageprofile-zlib
39343.PHONY: clean-stageprofile-zlib maybe-clean-stageprofile-zlib
39344maybe-all-stageprofile-zlib:
39345maybe-clean-stageprofile-zlib:
39346@if zlib-bootstrap
39347maybe-all-stageprofile-zlib: all-stageprofile-zlib
39348all-stageprofile: all-stageprofile-zlib
168b158c 39349TARGET-stageprofile-zlib = $(TARGET-zlib)
a8a96878 39350all-stageprofile-zlib: configure-stageprofile-zlib
ec92c4d6 39351 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a8a96878
PB
39352 @r=`${PWD_COMMAND}`; export r; \
39353 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39354 $(HOST_EXPORTS) \
39355 $(POSTSTAGE1_HOST_EXPORTS) \
39356 cd $(HOST_SUBDIR)/zlib && \
6532abb6
PB
39357 $(MAKE) $(BASE_FLAGS_TO_PASS) \
39358 CFLAGS="$(STAGE2_CFLAGS) -fprofile-generate" CXXFLAGS="$(STAGE2_CFLAGS) -fprofile-generate" \
455b4f90
PB
39359 LIBCFLAGS="$(STAGE2_LIBCFLAGS)" \
39360 CFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)" \
39361 CXXFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
168b158c 39362 $(TARGET-stageprofile-zlib)
a8a96878
PB
39363
39364maybe-clean-stageprofile-zlib: clean-stageprofile-zlib
39365clean-stageprofile: clean-stageprofile-zlib
39366clean-stageprofile-zlib:
a6a4e782
DD
39367 @if [ $(current_stage) = stageprofile ]; then \
39368 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
39369 else \
39370 [ -f $(HOST_SUBDIR)/stageprofile-zlib/Makefile ] || exit 0; \
39371 $(MAKE) stageprofile-start; \
39372 fi; \
a8a96878 39373 cd $(HOST_SUBDIR)/zlib && \
6532abb6 39374 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 39375 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 39376 clean
a8a96878
PB
39377@endif zlib-bootstrap
39378
39379
39380.PHONY: all-stagefeedback-zlib maybe-all-stagefeedback-zlib
39381.PHONY: clean-stagefeedback-zlib maybe-clean-stagefeedback-zlib
39382maybe-all-stagefeedback-zlib:
39383maybe-clean-stagefeedback-zlib:
39384@if zlib-bootstrap
39385maybe-all-stagefeedback-zlib: all-stagefeedback-zlib
39386all-stagefeedback: all-stagefeedback-zlib
168b158c 39387TARGET-stagefeedback-zlib = $(TARGET-zlib)
a8a96878 39388all-stagefeedback-zlib: configure-stagefeedback-zlib
ec92c4d6 39389 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a8a96878
PB
39390 @r=`${PWD_COMMAND}`; export r; \
39391 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39392 $(HOST_EXPORTS) \
39393 $(POSTSTAGE1_HOST_EXPORTS) \
39394 cd $(HOST_SUBDIR)/zlib && \
6532abb6
PB
39395 $(MAKE) $(BASE_FLAGS_TO_PASS) \
39396 CFLAGS="$(STAGE3_CFLAGS) -fprofile-use" CXXFLAGS="$(STAGE3_CFLAGS) -fprofile-use" \
39397 LIBCFLAGS="$(STAGE3_LIBCFLAGS) -fprofile-use" \
39398 CFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS) -fprofile-use" \
39399 CXXFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS) -fprofile-use" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
168b158c 39400 $(TARGET-stagefeedback-zlib)
a8a96878
PB
39401
39402maybe-clean-stagefeedback-zlib: clean-stagefeedback-zlib
39403clean-stagefeedback: clean-stagefeedback-zlib
39404clean-stagefeedback-zlib:
a6a4e782
DD
39405 @if [ $(current_stage) = stagefeedback ]; then \
39406 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
39407 else \
39408 [ -f $(HOST_SUBDIR)/stagefeedback-zlib/Makefile ] || exit 0; \
39409 $(MAKE) stagefeedback-start; \
39410 fi; \
a8a96878 39411 cd $(HOST_SUBDIR)/zlib && \
6532abb6 39412 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 39413 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 39414 clean
a8a96878
PB
39415@endif zlib-bootstrap
39416
39417
39418
39419
39420
d5eec917
PB
39421.PHONY: check-zlib maybe-check-zlib
39422maybe-check-zlib:
39423@if zlib
39424maybe-check-zlib: check-zlib
8ecc6504 39425
d5eec917 39426check-zlib:
8ecc6504 39427
d5eec917 39428@endif zlib
8ecc6504 39429
d5eec917
PB
39430.PHONY: install-zlib maybe-install-zlib
39431maybe-install-zlib:
39432@if zlib
39433maybe-install-zlib: install-zlib
8ec98d6c 39434
d5eec917 39435install-zlib:
8ec98d6c 39436
d5eec917 39437@endif zlib
8ec98d6c 39438
39bbbb69 39439# Other targets (info, dvi, pdf, etc.)
8ec98d6c 39440
d5eec917
PB
39441.PHONY: maybe-info-zlib info-zlib
39442maybe-info-zlib:
39443@if zlib
39444maybe-info-zlib: info-zlib
8ec98d6c 39445
b6fb961f
MS
39446info-zlib: \
39447 configure-zlib
39448 @[ -f ./zlib/Makefile ] || exit 0; \
39449 r=`${PWD_COMMAND}`; export r; \
39450 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
39451 $(HOST_EXPORTS) \
39452 for flag in $(EXTRA_HOST_FLAGS) ; do \
39453 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39454 done; \
39455 echo "Doing info in zlib" ; \
7fc2ca22 39456 (cd $(HOST_SUBDIR)/zlib && \
b6fb961f
MS
39457 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39458 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39459 "RANLIB=$${RANLIB}" \
bffcbe34 39460 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
39461 info) \
39462 || exit 1
39463
39464@endif zlib
39465
39466.PHONY: maybe-dvi-zlib dvi-zlib
39467maybe-dvi-zlib:
39468@if zlib
39469maybe-dvi-zlib: dvi-zlib
39470
39471dvi-zlib: \
d5eec917
PB
39472 configure-zlib
39473 @[ -f ./zlib/Makefile ] || exit 0; \
8ec98d6c
NN
39474 r=`${PWD_COMMAND}`; export r; \
39475 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 39476 $(HOST_EXPORTS) \
d5eec917 39477 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
39478 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39479 done; \
b6fb961f 39480 echo "Doing dvi in zlib" ; \
7fc2ca22 39481 (cd $(HOST_SUBDIR)/zlib && \
8ec98d6c
NN
39482 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39483 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39484 "RANLIB=$${RANLIB}" \
bffcbe34 39485 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f 39486 dvi) \
8ec98d6c
NN
39487 || exit 1
39488
d5eec917 39489@endif zlib
8ec98d6c 39490
39bbbb69
DD
39491.PHONY: maybe-pdf-zlib pdf-zlib
39492maybe-pdf-zlib:
39493@if zlib
39494maybe-pdf-zlib: pdf-zlib
39495
39496pdf-zlib: \
39497 configure-zlib
39498 @[ -f ./zlib/Makefile ] || exit 0; \
39499 r=`${PWD_COMMAND}`; export r; \
39500 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39501 $(HOST_EXPORTS) \
39502 for flag in $(EXTRA_HOST_FLAGS) ; do \
39503 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39504 done; \
39505 echo "Doing pdf in zlib" ; \
39506 (cd $(HOST_SUBDIR)/zlib && \
39507 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39508 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39509 "RANLIB=$${RANLIB}" \
bffcbe34 39510 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
39511 pdf) \
39512 || exit 1
39513
39514@endif zlib
39515
b6fb961f
MS
39516.PHONY: maybe-html-zlib html-zlib
39517maybe-html-zlib:
d5eec917 39518@if zlib
b6fb961f 39519maybe-html-zlib: html-zlib
8ec98d6c 39520
b6fb961f 39521html-zlib: \
d5eec917
PB
39522 configure-zlib
39523 @[ -f ./zlib/Makefile ] || exit 0; \
8ec98d6c
NN
39524 r=`${PWD_COMMAND}`; export r; \
39525 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 39526 $(HOST_EXPORTS) \
d5eec917 39527 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
39528 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39529 done; \
b6fb961f 39530 echo "Doing html in zlib" ; \
7fc2ca22 39531 (cd $(HOST_SUBDIR)/zlib && \
8ec98d6c
NN
39532 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39533 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39534 "RANLIB=$${RANLIB}" \
bffcbe34 39535 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f 39536 html) \
8ec98d6c
NN
39537 || exit 1
39538
d5eec917 39539@endif zlib
8ec98d6c 39540
d5eec917
PB
39541.PHONY: maybe-TAGS-zlib TAGS-zlib
39542maybe-TAGS-zlib:
39543@if zlib
39544maybe-TAGS-zlib: TAGS-zlib
8ec98d6c 39545
d5eec917
PB
39546TAGS-zlib: \
39547 configure-zlib
39548 @[ -f ./zlib/Makefile ] || exit 0; \
8ec98d6c
NN
39549 r=`${PWD_COMMAND}`; export r; \
39550 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 39551 $(HOST_EXPORTS) \
d5eec917 39552 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
39553 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39554 done; \
d5eec917 39555 echo "Doing TAGS in zlib" ; \
7fc2ca22 39556 (cd $(HOST_SUBDIR)/zlib && \
8ec98d6c
NN
39557 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39558 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39559 "RANLIB=$${RANLIB}" \
bffcbe34 39560 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 39561 TAGS) \
8ec98d6c
NN
39562 || exit 1
39563
d5eec917 39564@endif zlib
8ec98d6c 39565
d5eec917
PB
39566.PHONY: maybe-install-info-zlib install-info-zlib
39567maybe-install-info-zlib:
39568@if zlib
39569maybe-install-info-zlib: install-info-zlib
8ec98d6c 39570
d5eec917
PB
39571install-info-zlib: \
39572 configure-zlib \
39573 info-zlib
39574 @[ -f ./zlib/Makefile ] || exit 0; \
8ec98d6c
NN
39575 r=`${PWD_COMMAND}`; export r; \
39576 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 39577 $(HOST_EXPORTS) \
d5eec917 39578 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
39579 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39580 done; \
d5eec917 39581 echo "Doing install-info in zlib" ; \
7fc2ca22 39582 (cd $(HOST_SUBDIR)/zlib && \
8ec98d6c
NN
39583 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39584 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39585 "RANLIB=$${RANLIB}" \
bffcbe34 39586 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 39587 install-info) \
8ec98d6c
NN
39588 || exit 1
39589
d5eec917 39590@endif zlib
8ec98d6c 39591
d4954b6d
DD
39592.PHONY: maybe-install-pdf-zlib install-pdf-zlib
39593maybe-install-pdf-zlib:
39594@if zlib
39595maybe-install-pdf-zlib: install-pdf-zlib
39596
39597install-pdf-zlib: \
39598 configure-zlib \
39599 pdf-zlib
39600 @[ -f ./zlib/Makefile ] || exit 0; \
39601 r=`${PWD_COMMAND}`; export r; \
39602 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39603 $(HOST_EXPORTS) \
39604 for flag in $(EXTRA_HOST_FLAGS) ; do \
39605 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39606 done; \
39607 echo "Doing install-pdf in zlib" ; \
39608 (cd $(HOST_SUBDIR)/zlib && \
39609 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39610 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39611 "RANLIB=$${RANLIB}" \
bffcbe34 39612 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
39613 install-pdf) \
39614 || exit 1
39615
39616@endif zlib
39617
83c9add4
CD
39618.PHONY: maybe-install-html-zlib install-html-zlib
39619maybe-install-html-zlib:
39620@if zlib
39621maybe-install-html-zlib: install-html-zlib
39622
39623install-html-zlib: \
39624 configure-zlib \
39625 html-zlib
39626 @[ -f ./zlib/Makefile ] || exit 0; \
39627 r=`${PWD_COMMAND}`; export r; \
39628 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39629 $(HOST_EXPORTS) \
39630 for flag in $(EXTRA_HOST_FLAGS) ; do \
39631 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39632 done; \
39633 echo "Doing install-html in zlib" ; \
39634 (cd $(HOST_SUBDIR)/zlib && \
39635 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39636 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39637 "RANLIB=$${RANLIB}" \
bffcbe34 39638 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
39639 install-html) \
39640 || exit 1
39641
39642@endif zlib
39643
d5eec917
PB
39644.PHONY: maybe-installcheck-zlib installcheck-zlib
39645maybe-installcheck-zlib:
39646@if zlib
39647maybe-installcheck-zlib: installcheck-zlib
8ec98d6c 39648
d5eec917
PB
39649installcheck-zlib: \
39650 configure-zlib
39651 @[ -f ./zlib/Makefile ] || exit 0; \
8ec98d6c
NN
39652 r=`${PWD_COMMAND}`; export r; \
39653 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 39654 $(HOST_EXPORTS) \
d5eec917 39655 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
39656 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39657 done; \
d5eec917 39658 echo "Doing installcheck in zlib" ; \
7fc2ca22 39659 (cd $(HOST_SUBDIR)/zlib && \
8ec98d6c
NN
39660 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39661 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39662 "RANLIB=$${RANLIB}" \
bffcbe34 39663 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 39664 installcheck) \
8ec98d6c
NN
39665 || exit 1
39666
d5eec917 39667@endif zlib
8ec98d6c 39668
d5eec917
PB
39669.PHONY: maybe-mostlyclean-zlib mostlyclean-zlib
39670maybe-mostlyclean-zlib:
39671@if zlib
39672maybe-mostlyclean-zlib: mostlyclean-zlib
8ec98d6c 39673
d5eec917
PB
39674mostlyclean-zlib:
39675 @[ -f ./zlib/Makefile ] || exit 0; \
8ec98d6c
NN
39676 r=`${PWD_COMMAND}`; export r; \
39677 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 39678 $(HOST_EXPORTS) \
d5eec917 39679 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
39680 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39681 done; \
d5eec917 39682 echo "Doing mostlyclean in zlib" ; \
7fc2ca22 39683 (cd $(HOST_SUBDIR)/zlib && \
8ec98d6c
NN
39684 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39685 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39686 "RANLIB=$${RANLIB}" \
bffcbe34 39687 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 39688 mostlyclean) \
8ec98d6c
NN
39689 || exit 1
39690
d5eec917 39691@endif zlib
8ec98d6c 39692
d5eec917
PB
39693.PHONY: maybe-clean-zlib clean-zlib
39694maybe-clean-zlib:
39695@if zlib
39696maybe-clean-zlib: clean-zlib
8ec98d6c 39697
d5eec917
PB
39698clean-zlib:
39699 @[ -f ./zlib/Makefile ] || exit 0; \
8ec98d6c
NN
39700 r=`${PWD_COMMAND}`; export r; \
39701 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 39702 $(HOST_EXPORTS) \
d5eec917 39703 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
39704 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39705 done; \
d5eec917 39706 echo "Doing clean in zlib" ; \
7fc2ca22 39707 (cd $(HOST_SUBDIR)/zlib && \
8ec98d6c
NN
39708 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39709 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39710 "RANLIB=$${RANLIB}" \
bffcbe34 39711 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 39712 clean) \
8ec98d6c
NN
39713 || exit 1
39714
d5eec917 39715@endif zlib
8ec98d6c 39716
d5eec917
PB
39717.PHONY: maybe-distclean-zlib distclean-zlib
39718maybe-distclean-zlib:
39719@if zlib
39720maybe-distclean-zlib: distclean-zlib
8ec98d6c 39721
d5eec917
PB
39722distclean-zlib:
39723 @[ -f ./zlib/Makefile ] || exit 0; \
8ec98d6c
NN
39724 r=`${PWD_COMMAND}`; export r; \
39725 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 39726 $(HOST_EXPORTS) \
d5eec917 39727 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
39728 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39729 done; \
d5eec917 39730 echo "Doing distclean in zlib" ; \
7fc2ca22 39731 (cd $(HOST_SUBDIR)/zlib && \
8ec98d6c
NN
39732 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39733 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39734 "RANLIB=$${RANLIB}" \
bffcbe34 39735 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 39736 distclean) \
8ec98d6c
NN
39737 || exit 1
39738
d5eec917 39739@endif zlib
8ec98d6c 39740
d5eec917
PB
39741.PHONY: maybe-maintainer-clean-zlib maintainer-clean-zlib
39742maybe-maintainer-clean-zlib:
39743@if zlib
39744maybe-maintainer-clean-zlib: maintainer-clean-zlib
8ec98d6c 39745
d5eec917
PB
39746maintainer-clean-zlib:
39747 @[ -f ./zlib/Makefile ] || exit 0; \
8ec98d6c
NN
39748 r=`${PWD_COMMAND}`; export r; \
39749 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 39750 $(HOST_EXPORTS) \
d5eec917 39751 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
39752 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39753 done; \
d5eec917 39754 echo "Doing maintainer-clean in zlib" ; \
7fc2ca22 39755 (cd $(HOST_SUBDIR)/zlib && \
8ec98d6c
NN
39756 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39757 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39758 "RANLIB=$${RANLIB}" \
bffcbe34 39759 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 39760 maintainer-clean) \
8ec98d6c 39761 || exit 1
70ffc148 39762
d5eec917 39763@endif zlib
8ecc6504
NN
39764
39765
f0fdfd34 39766
d5eec917
PB
39767.PHONY: configure-gdb maybe-configure-gdb
39768maybe-configure-gdb:
e1e5148c
CD
39769@if gcc-bootstrap
39770configure-gdb: stage_current
39771@endif gcc-bootstrap
d5eec917
PB
39772@if gdb
39773maybe-configure-gdb: configure-gdb
ec92c4d6 39774configure-gdb:
15b527ca 39775 @: $(MAKE); $(unstage)
ec92c4d6 39776 @r=`${PWD_COMMAND}`; export r; \
5230d454 39777 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
39778 test ! -f $(HOST_SUBDIR)/gdb/Makefile || exit 0; \
39779 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gdb ; \
a675b75a 39780 $(HOST_EXPORTS) \
f0fdfd34
PB
39781 echo Configuring in $(HOST_SUBDIR)/gdb; \
39782 cd "$(HOST_SUBDIR)/gdb" || exit 1; \
94f860c0 39783 case $(srcdir) in \
7fc2ca22
PB
39784 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
39785 *) topdir=`echo $(HOST_SUBDIR)/gdb/ | \
39786 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 39787 esac; \
7fc2ca22
PB
39788 srcdiroption="--srcdir=$${topdir}/gdb"; \
39789 libsrcdir="$$s/gdb"; \
94f860c0 39790 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
39791 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
39792 --target=${target_alias} $${srcdiroption} \
94f860c0 39793 || exit 1
d5eec917 39794@endif gdb
94f860c0 39795
f0fdfd34
PB
39796
39797
a8a96878
PB
39798
39799
d5eec917
PB
39800.PHONY: all-gdb maybe-all-gdb
39801maybe-all-gdb:
e1e5148c
CD
39802@if gcc-bootstrap
39803all-gdb: stage_current
39804@endif gcc-bootstrap
d5eec917 39805@if gdb
5e6b1f07 39806TARGET-gdb=all
d5eec917
PB
39807maybe-all-gdb: all-gdb
39808all-gdb: configure-gdb
15b527ca 39809 @: $(MAKE); $(unstage)
5230d454
L
39810 @r=`${PWD_COMMAND}`; export r; \
39811 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 39812 $(HOST_EXPORTS) \
7fc2ca22 39813 (cd $(HOST_SUBDIR)/gdb && \
6532abb6
PB
39814 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS) \
39815 $(TARGET-gdb))
d5eec917 39816@endif gdb
8ecc6504 39817
f0fdfd34 39818
a8a96878
PB
39819
39820
d5eec917
PB
39821.PHONY: check-gdb maybe-check-gdb
39822maybe-check-gdb:
39823@if gdb
39824maybe-check-gdb: check-gdb
8ecc6504 39825
d5eec917 39826check-gdb:
15b527ca 39827 @: $(MAKE); $(unstage)
5230d454
L
39828 @r=`${PWD_COMMAND}`; export r; \
39829 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 39830 $(HOST_EXPORTS) \
7fc2ca22
PB
39831 (cd $(HOST_SUBDIR)/gdb && \
39832 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
8ecc6504 39833
d5eec917 39834@endif gdb
8ecc6504 39835
d5eec917
PB
39836.PHONY: install-gdb maybe-install-gdb
39837maybe-install-gdb:
39838@if gdb
39839maybe-install-gdb: install-gdb
70ffc148 39840
d5eec917 39841install-gdb: installdirs
15b527ca 39842 @: $(MAKE); $(unstage)
5230d454
L
39843 @r=`${PWD_COMMAND}`; export r; \
39844 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 39845 $(HOST_EXPORTS) \
7fc2ca22 39846 (cd $(HOST_SUBDIR)/gdb && \
93c60b6d 39847 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
8ecc6504 39848
d5eec917 39849@endif gdb
8ecc6504 39850
39bbbb69 39851# Other targets (info, dvi, pdf, etc.)
8ec98d6c 39852
d5eec917
PB
39853.PHONY: maybe-info-gdb info-gdb
39854maybe-info-gdb:
39855@if gdb
39856maybe-info-gdb: info-gdb
8ec98d6c 39857
d5eec917
PB
39858info-gdb: \
39859 configure-gdb
15b527ca 39860 @: $(MAKE); $(unstage)
d5eec917 39861 @[ -f ./gdb/Makefile ] || exit 0; \
8ec98d6c
NN
39862 r=`${PWD_COMMAND}`; export r; \
39863 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 39864 $(HOST_EXPORTS) \
6a19fd82 39865 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
39866 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39867 done; \
d5eec917 39868 echo "Doing info in gdb" ; \
7fc2ca22 39869 (cd $(HOST_SUBDIR)/gdb && \
8ec98d6c
NN
39870 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39871 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39872 "RANLIB=$${RANLIB}" \
bffcbe34 39873 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 39874 info) \
8ec98d6c
NN
39875 || exit 1
39876
d5eec917 39877@endif gdb
8ec98d6c 39878
d5eec917
PB
39879.PHONY: maybe-dvi-gdb dvi-gdb
39880maybe-dvi-gdb:
39881@if gdb
39882maybe-dvi-gdb: dvi-gdb
8ec98d6c 39883
d5eec917
PB
39884dvi-gdb: \
39885 configure-gdb
15b527ca 39886 @: $(MAKE); $(unstage)
d5eec917 39887 @[ -f ./gdb/Makefile ] || exit 0; \
8ec98d6c
NN
39888 r=`${PWD_COMMAND}`; export r; \
39889 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 39890 $(HOST_EXPORTS) \
6a19fd82 39891 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
39892 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39893 done; \
d5eec917 39894 echo "Doing dvi in gdb" ; \
7fc2ca22 39895 (cd $(HOST_SUBDIR)/gdb && \
8ec98d6c
NN
39896 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39897 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39898 "RANLIB=$${RANLIB}" \
bffcbe34 39899 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 39900 dvi) \
8ec98d6c
NN
39901 || exit 1
39902
d5eec917 39903@endif gdb
8ec98d6c 39904
39bbbb69
DD
39905.PHONY: maybe-pdf-gdb pdf-gdb
39906maybe-pdf-gdb:
39907@if gdb
39908maybe-pdf-gdb: pdf-gdb
39909
39910pdf-gdb: \
39911 configure-gdb
39912 @: $(MAKE); $(unstage)
39913 @[ -f ./gdb/Makefile ] || exit 0; \
39914 r=`${PWD_COMMAND}`; export r; \
39915 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39916 $(HOST_EXPORTS) \
39917 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
39918 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39919 done; \
39920 echo "Doing pdf in gdb" ; \
39921 (cd $(HOST_SUBDIR)/gdb && \
39922 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39923 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39924 "RANLIB=$${RANLIB}" \
bffcbe34 39925 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
39926 pdf) \
39927 || exit 1
39928
39929@endif gdb
39930
b6fb961f
MS
39931.PHONY: maybe-html-gdb html-gdb
39932maybe-html-gdb:
39933@if gdb
39934maybe-html-gdb: html-gdb
39935
39936html-gdb: \
39937 configure-gdb
15b527ca 39938 @: $(MAKE); $(unstage)
b6fb961f
MS
39939 @[ -f ./gdb/Makefile ] || exit 0; \
39940 r=`${PWD_COMMAND}`; export r; \
39941 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
39942 $(HOST_EXPORTS) \
39943 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
39944 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39945 done; \
39946 echo "Doing html in gdb" ; \
7fc2ca22 39947 (cd $(HOST_SUBDIR)/gdb && \
b6fb961f
MS
39948 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39949 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39950 "RANLIB=$${RANLIB}" \
bffcbe34 39951 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
39952 html) \
39953 || exit 1
39954
39955@endif gdb
39956
d5eec917
PB
39957.PHONY: maybe-TAGS-gdb TAGS-gdb
39958maybe-TAGS-gdb:
39959@if gdb
39960maybe-TAGS-gdb: TAGS-gdb
8ec98d6c 39961
d5eec917
PB
39962TAGS-gdb: \
39963 configure-gdb
15b527ca 39964 @: $(MAKE); $(unstage)
d5eec917 39965 @[ -f ./gdb/Makefile ] || exit 0; \
8ec98d6c
NN
39966 r=`${PWD_COMMAND}`; export r; \
39967 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 39968 $(HOST_EXPORTS) \
6a19fd82 39969 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
39970 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39971 done; \
d5eec917 39972 echo "Doing TAGS in gdb" ; \
7fc2ca22 39973 (cd $(HOST_SUBDIR)/gdb && \
8ec98d6c
NN
39974 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39975 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39976 "RANLIB=$${RANLIB}" \
bffcbe34 39977 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 39978 TAGS) \
8ec98d6c
NN
39979 || exit 1
39980
d5eec917 39981@endif gdb
8ec98d6c 39982
d5eec917
PB
39983.PHONY: maybe-install-info-gdb install-info-gdb
39984maybe-install-info-gdb:
39985@if gdb
39986maybe-install-info-gdb: install-info-gdb
8ec98d6c 39987
d5eec917
PB
39988install-info-gdb: \
39989 configure-gdb \
39990 info-gdb
15b527ca 39991 @: $(MAKE); $(unstage)
d5eec917 39992 @[ -f ./gdb/Makefile ] || exit 0; \
8ec98d6c
NN
39993 r=`${PWD_COMMAND}`; export r; \
39994 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 39995 $(HOST_EXPORTS) \
6a19fd82 39996 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
39997 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39998 done; \
d5eec917 39999 echo "Doing install-info in gdb" ; \
7fc2ca22 40000 (cd $(HOST_SUBDIR)/gdb && \
8ec98d6c
NN
40001 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40002 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40003 "RANLIB=$${RANLIB}" \
bffcbe34 40004 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 40005 install-info) \
8ec98d6c
NN
40006 || exit 1
40007
d5eec917 40008@endif gdb
8ec98d6c 40009
d4954b6d
DD
40010.PHONY: maybe-install-pdf-gdb install-pdf-gdb
40011maybe-install-pdf-gdb:
40012@if gdb
40013maybe-install-pdf-gdb: install-pdf-gdb
40014
40015install-pdf-gdb: \
40016 configure-gdb \
40017 pdf-gdb
40018 @: $(MAKE); $(unstage)
40019 @[ -f ./gdb/Makefile ] || exit 0; \
40020 r=`${PWD_COMMAND}`; export r; \
40021 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40022 $(HOST_EXPORTS) \
40023 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
40024 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40025 done; \
40026 echo "Doing install-pdf in gdb" ; \
40027 (cd $(HOST_SUBDIR)/gdb && \
40028 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40029 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40030 "RANLIB=$${RANLIB}" \
bffcbe34 40031 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
40032 install-pdf) \
40033 || exit 1
40034
40035@endif gdb
40036
83c9add4
CD
40037.PHONY: maybe-install-html-gdb install-html-gdb
40038maybe-install-html-gdb:
40039@if gdb
40040maybe-install-html-gdb: install-html-gdb
40041
40042install-html-gdb: \
40043 configure-gdb \
40044 html-gdb
40045 @: $(MAKE); $(unstage)
40046 @[ -f ./gdb/Makefile ] || exit 0; \
40047 r=`${PWD_COMMAND}`; export r; \
40048 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40049 $(HOST_EXPORTS) \
40050 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
40051 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40052 done; \
40053 echo "Doing install-html in gdb" ; \
40054 (cd $(HOST_SUBDIR)/gdb && \
40055 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40056 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40057 "RANLIB=$${RANLIB}" \
bffcbe34 40058 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
40059 install-html) \
40060 || exit 1
40061
40062@endif gdb
40063
d5eec917
PB
40064.PHONY: maybe-installcheck-gdb installcheck-gdb
40065maybe-installcheck-gdb:
40066@if gdb
40067maybe-installcheck-gdb: installcheck-gdb
8ec98d6c 40068
d5eec917
PB
40069installcheck-gdb: \
40070 configure-gdb
15b527ca 40071 @: $(MAKE); $(unstage)
d5eec917 40072 @[ -f ./gdb/Makefile ] || exit 0; \
8ec98d6c
NN
40073 r=`${PWD_COMMAND}`; export r; \
40074 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 40075 $(HOST_EXPORTS) \
6a19fd82 40076 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
40077 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40078 done; \
d5eec917 40079 echo "Doing installcheck in gdb" ; \
7fc2ca22 40080 (cd $(HOST_SUBDIR)/gdb && \
8ec98d6c
NN
40081 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40082 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40083 "RANLIB=$${RANLIB}" \
bffcbe34 40084 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 40085 installcheck) \
8ec98d6c
NN
40086 || exit 1
40087
d5eec917 40088@endif gdb
8ec98d6c 40089
d5eec917
PB
40090.PHONY: maybe-mostlyclean-gdb mostlyclean-gdb
40091maybe-mostlyclean-gdb:
40092@if gdb
40093maybe-mostlyclean-gdb: mostlyclean-gdb
8ec98d6c 40094
d5eec917 40095mostlyclean-gdb:
15b527ca 40096 @: $(MAKE); $(unstage)
d5eec917 40097 @[ -f ./gdb/Makefile ] || exit 0; \
8ec98d6c
NN
40098 r=`${PWD_COMMAND}`; export r; \
40099 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 40100 $(HOST_EXPORTS) \
6a19fd82 40101 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
40102 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40103 done; \
d5eec917 40104 echo "Doing mostlyclean in gdb" ; \
7fc2ca22 40105 (cd $(HOST_SUBDIR)/gdb && \
8ec98d6c
NN
40106 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40107 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40108 "RANLIB=$${RANLIB}" \
bffcbe34 40109 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 40110 mostlyclean) \
8ec98d6c
NN
40111 || exit 1
40112
d5eec917 40113@endif gdb
8ec98d6c 40114
d5eec917
PB
40115.PHONY: maybe-clean-gdb clean-gdb
40116maybe-clean-gdb:
40117@if gdb
40118maybe-clean-gdb: clean-gdb
8ec98d6c 40119
d5eec917 40120clean-gdb:
15b527ca 40121 @: $(MAKE); $(unstage)
d5eec917 40122 @[ -f ./gdb/Makefile ] || exit 0; \
8ec98d6c
NN
40123 r=`${PWD_COMMAND}`; export r; \
40124 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 40125 $(HOST_EXPORTS) \
6a19fd82 40126 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
40127 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40128 done; \
d5eec917 40129 echo "Doing clean in gdb" ; \
7fc2ca22 40130 (cd $(HOST_SUBDIR)/gdb && \
8ec98d6c
NN
40131 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40132 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40133 "RANLIB=$${RANLIB}" \
bffcbe34 40134 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 40135 clean) \
8ec98d6c
NN
40136 || exit 1
40137
d5eec917 40138@endif gdb
8ec98d6c 40139
d5eec917
PB
40140.PHONY: maybe-distclean-gdb distclean-gdb
40141maybe-distclean-gdb:
40142@if gdb
40143maybe-distclean-gdb: distclean-gdb
8ec98d6c 40144
d5eec917 40145distclean-gdb:
15b527ca 40146 @: $(MAKE); $(unstage)
d5eec917 40147 @[ -f ./gdb/Makefile ] || exit 0; \
8ec98d6c
NN
40148 r=`${PWD_COMMAND}`; export r; \
40149 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 40150 $(HOST_EXPORTS) \
6a19fd82 40151 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
40152 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40153 done; \
d5eec917 40154 echo "Doing distclean in gdb" ; \
7fc2ca22 40155 (cd $(HOST_SUBDIR)/gdb && \
8ec98d6c
NN
40156 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40157 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40158 "RANLIB=$${RANLIB}" \
bffcbe34 40159 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 40160 distclean) \
8ec98d6c
NN
40161 || exit 1
40162
d5eec917 40163@endif gdb
8ec98d6c 40164
d5eec917
PB
40165.PHONY: maybe-maintainer-clean-gdb maintainer-clean-gdb
40166maybe-maintainer-clean-gdb:
40167@if gdb
40168maybe-maintainer-clean-gdb: maintainer-clean-gdb
8ec98d6c 40169
d5eec917 40170maintainer-clean-gdb:
15b527ca 40171 @: $(MAKE); $(unstage)
d5eec917 40172 @[ -f ./gdb/Makefile ] || exit 0; \
8ec98d6c
NN
40173 r=`${PWD_COMMAND}`; export r; \
40174 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 40175 $(HOST_EXPORTS) \
6a19fd82 40176 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
40177 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40178 done; \
d5eec917 40179 echo "Doing maintainer-clean in gdb" ; \
7fc2ca22 40180 (cd $(HOST_SUBDIR)/gdb && \
8ec98d6c
NN
40181 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40182 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40183 "RANLIB=$${RANLIB}" \
bffcbe34 40184 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 40185 maintainer-clean) \
8ec98d6c
NN
40186 || exit 1
40187
d5eec917 40188@endif gdb
8ec98d6c
NN
40189
40190
f0fdfd34 40191
d5eec917
PB
40192.PHONY: configure-expect maybe-configure-expect
40193maybe-configure-expect:
e1e5148c
CD
40194@if gcc-bootstrap
40195configure-expect: stage_current
40196@endif gcc-bootstrap
d5eec917
PB
40197@if expect
40198maybe-configure-expect: configure-expect
ec92c4d6 40199configure-expect:
15b527ca 40200 @: $(MAKE); $(unstage)
ec92c4d6 40201 @r=`${PWD_COMMAND}`; export r; \
5230d454 40202 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
40203 test ! -f $(HOST_SUBDIR)/expect/Makefile || exit 0; \
40204 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/expect ; \
a675b75a 40205 $(HOST_EXPORTS) \
f0fdfd34
PB
40206 echo Configuring in $(HOST_SUBDIR)/expect; \
40207 cd "$(HOST_SUBDIR)/expect" || exit 1; \
94f860c0 40208 case $(srcdir) in \
7fc2ca22
PB
40209 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
40210 *) topdir=`echo $(HOST_SUBDIR)/expect/ | \
40211 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 40212 esac; \
7fc2ca22
PB
40213 srcdiroption="--srcdir=$${topdir}/expect"; \
40214 libsrcdir="$$s/expect"; \
94f860c0 40215 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
40216 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
40217 --target=${target_alias} $${srcdiroption} \
94f860c0 40218 || exit 1
d5eec917 40219@endif expect
94f860c0 40220
f0fdfd34
PB
40221
40222
a8a96878
PB
40223
40224
d5eec917
PB
40225.PHONY: all-expect maybe-all-expect
40226maybe-all-expect:
e1e5148c
CD
40227@if gcc-bootstrap
40228all-expect: stage_current
40229@endif gcc-bootstrap
d5eec917 40230@if expect
5e6b1f07 40231TARGET-expect=all
d5eec917
PB
40232maybe-all-expect: all-expect
40233all-expect: configure-expect
15b527ca 40234 @: $(MAKE); $(unstage)
5230d454
L
40235 @r=`${PWD_COMMAND}`; export r; \
40236 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 40237 $(HOST_EXPORTS) \
7fc2ca22 40238 (cd $(HOST_SUBDIR)/expect && \
6532abb6
PB
40239 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS) \
40240 $(TARGET-expect))
d5eec917 40241@endif expect
8ecc6504 40242
f0fdfd34 40243
a8a96878
PB
40244
40245
d5eec917
PB
40246.PHONY: check-expect maybe-check-expect
40247maybe-check-expect:
40248@if expect
40249maybe-check-expect: check-expect
8ecc6504 40250
d5eec917 40251check-expect:
15b527ca 40252 @: $(MAKE); $(unstage)
5230d454
L
40253 @r=`${PWD_COMMAND}`; export r; \
40254 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 40255 $(HOST_EXPORTS) \
7fc2ca22
PB
40256 (cd $(HOST_SUBDIR)/expect && \
40257 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
8ecc6504 40258
d5eec917 40259@endif expect
8ecc6504 40260
d5eec917
PB
40261.PHONY: install-expect maybe-install-expect
40262maybe-install-expect:
40263@if expect
40264maybe-install-expect: install-expect
70ffc148 40265
d5eec917 40266install-expect: installdirs
15b527ca 40267 @: $(MAKE); $(unstage)
5230d454
L
40268 @r=`${PWD_COMMAND}`; export r; \
40269 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 40270 $(HOST_EXPORTS) \
7fc2ca22 40271 (cd $(HOST_SUBDIR)/expect && \
93c60b6d 40272 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
8ecc6504 40273
d5eec917 40274@endif expect
8ecc6504 40275
39bbbb69 40276# Other targets (info, dvi, pdf, etc.)
8ec98d6c 40277
d5eec917
PB
40278.PHONY: maybe-info-expect info-expect
40279maybe-info-expect:
40280@if expect
40281maybe-info-expect: info-expect
8ec98d6c 40282
d5eec917
PB
40283info-expect: \
40284 configure-expect
15b527ca 40285 @: $(MAKE); $(unstage)
d5eec917 40286 @[ -f ./expect/Makefile ] || exit 0; \
5230d454
L
40287 r=`${PWD_COMMAND}`; export r; \
40288 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 40289 $(HOST_EXPORTS) \
6a19fd82 40290 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
40291 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40292 done; \
d5eec917 40293 echo "Doing info in expect" ; \
7fc2ca22 40294 (cd $(HOST_SUBDIR)/expect && \
8ec98d6c
NN
40295 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40296 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40297 "RANLIB=$${RANLIB}" \
bffcbe34 40298 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 40299 info) \
94f860c0
NN
40300 || exit 1
40301
d5eec917 40302@endif expect
8ec98d6c 40303
d5eec917
PB
40304.PHONY: maybe-dvi-expect dvi-expect
40305maybe-dvi-expect:
40306@if expect
40307maybe-dvi-expect: dvi-expect
8ec98d6c 40308
d5eec917
PB
40309dvi-expect: \
40310 configure-expect
15b527ca 40311 @: $(MAKE); $(unstage)
d5eec917 40312 @[ -f ./expect/Makefile ] || exit 0; \
8ec98d6c 40313 r=`${PWD_COMMAND}`; export r; \
5230d454 40314 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 40315 $(HOST_EXPORTS) \
6a19fd82 40316 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
40317 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40318 done; \
d5eec917 40319 echo "Doing dvi in expect" ; \
7fc2ca22 40320 (cd $(HOST_SUBDIR)/expect && \
8ec98d6c
NN
40321 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40322 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40323 "RANLIB=$${RANLIB}" \
bffcbe34 40324 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 40325 dvi) \
8ec98d6c 40326 || exit 1
8ecc6504 40327
d5eec917 40328@endif expect
8ecc6504 40329
39bbbb69
DD
40330.PHONY: maybe-pdf-expect pdf-expect
40331maybe-pdf-expect:
40332@if expect
40333maybe-pdf-expect: pdf-expect
40334
40335pdf-expect: \
40336 configure-expect
40337 @: $(MAKE); $(unstage)
40338 @[ -f ./expect/Makefile ] || exit 0; \
40339 r=`${PWD_COMMAND}`; export r; \
40340 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40341 $(HOST_EXPORTS) \
40342 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
40343 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40344 done; \
40345 echo "Doing pdf in expect" ; \
40346 (cd $(HOST_SUBDIR)/expect && \
40347 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40348 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40349 "RANLIB=$${RANLIB}" \
bffcbe34 40350 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
40351 pdf) \
40352 || exit 1
40353
40354@endif expect
40355
b6fb961f
MS
40356.PHONY: maybe-html-expect html-expect
40357maybe-html-expect:
40358@if expect
40359maybe-html-expect: html-expect
40360
40361html-expect: \
40362 configure-expect
15b527ca 40363 @: $(MAKE); $(unstage)
b6fb961f
MS
40364 @[ -f ./expect/Makefile ] || exit 0; \
40365 r=`${PWD_COMMAND}`; export r; \
40366 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
40367 $(HOST_EXPORTS) \
40368 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
40369 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40370 done; \
40371 echo "Doing html in expect" ; \
7fc2ca22 40372 (cd $(HOST_SUBDIR)/expect && \
b6fb961f
MS
40373 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40374 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40375 "RANLIB=$${RANLIB}" \
bffcbe34 40376 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
40377 html) \
40378 || exit 1
40379
40380@endif expect
40381
d5eec917
PB
40382.PHONY: maybe-TAGS-expect TAGS-expect
40383maybe-TAGS-expect:
40384@if expect
40385maybe-TAGS-expect: TAGS-expect
8ec98d6c 40386
d5eec917
PB
40387TAGS-expect: \
40388 configure-expect
15b527ca 40389 @: $(MAKE); $(unstage)
d5eec917 40390 @[ -f ./expect/Makefile ] || exit 0; \
8ec98d6c 40391 r=`${PWD_COMMAND}`; export r; \
5230d454 40392 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 40393 $(HOST_EXPORTS) \
6a19fd82 40394 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
40395 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40396 done; \
d5eec917 40397 echo "Doing TAGS in expect" ; \
7fc2ca22 40398 (cd $(HOST_SUBDIR)/expect && \
8ec98d6c
NN
40399 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40400 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40401 "RANLIB=$${RANLIB}" \
bffcbe34 40402 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 40403 TAGS) \
8ec98d6c 40404 || exit 1
8ecc6504 40405
d5eec917 40406@endif expect
8ecc6504 40407
d5eec917
PB
40408.PHONY: maybe-install-info-expect install-info-expect
40409maybe-install-info-expect:
40410@if expect
40411maybe-install-info-expect: install-info-expect
70ffc148 40412
d5eec917
PB
40413install-info-expect: \
40414 configure-expect \
40415 info-expect
15b527ca 40416 @: $(MAKE); $(unstage)
d5eec917 40417 @[ -f ./expect/Makefile ] || exit 0; \
8ec98d6c
NN
40418 r=`${PWD_COMMAND}`; export r; \
40419 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 40420 $(HOST_EXPORTS) \
6a19fd82 40421 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
40422 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40423 done; \
d5eec917 40424 echo "Doing install-info in expect" ; \
7fc2ca22 40425 (cd $(HOST_SUBDIR)/expect && \
8ec98d6c
NN
40426 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40427 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40428 "RANLIB=$${RANLIB}" \
bffcbe34 40429 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 40430 install-info) \
8ec98d6c
NN
40431 || exit 1
40432
d5eec917 40433@endif expect
8ec98d6c 40434
d4954b6d
DD
40435.PHONY: maybe-install-pdf-expect install-pdf-expect
40436maybe-install-pdf-expect:
40437@if expect
40438maybe-install-pdf-expect: install-pdf-expect
40439
40440install-pdf-expect: \
40441 configure-expect \
40442 pdf-expect
40443 @: $(MAKE); $(unstage)
40444 @[ -f ./expect/Makefile ] || exit 0; \
40445 r=`${PWD_COMMAND}`; export r; \
40446 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40447 $(HOST_EXPORTS) \
40448 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
40449 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40450 done; \
40451 echo "Doing install-pdf in expect" ; \
40452 (cd $(HOST_SUBDIR)/expect && \
40453 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40454 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40455 "RANLIB=$${RANLIB}" \
bffcbe34 40456 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
40457 install-pdf) \
40458 || exit 1
40459
40460@endif expect
40461
83c9add4
CD
40462.PHONY: maybe-install-html-expect install-html-expect
40463maybe-install-html-expect:
40464@if expect
40465maybe-install-html-expect: install-html-expect
40466
40467install-html-expect: \
40468 configure-expect \
40469 html-expect
40470 @: $(MAKE); $(unstage)
40471 @[ -f ./expect/Makefile ] || exit 0; \
40472 r=`${PWD_COMMAND}`; export r; \
40473 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40474 $(HOST_EXPORTS) \
40475 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
40476 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40477 done; \
40478 echo "Doing install-html in expect" ; \
40479 (cd $(HOST_SUBDIR)/expect && \
40480 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40481 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40482 "RANLIB=$${RANLIB}" \
bffcbe34 40483 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
40484 install-html) \
40485 || exit 1
40486
40487@endif expect
40488
d5eec917
PB
40489.PHONY: maybe-installcheck-expect installcheck-expect
40490maybe-installcheck-expect:
40491@if expect
40492maybe-installcheck-expect: installcheck-expect
8ec98d6c 40493
d5eec917
PB
40494installcheck-expect: \
40495 configure-expect
15b527ca 40496 @: $(MAKE); $(unstage)
d5eec917 40497 @[ -f ./expect/Makefile ] || exit 0; \
8ec98d6c
NN
40498 r=`${PWD_COMMAND}`; export r; \
40499 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 40500 $(HOST_EXPORTS) \
6a19fd82 40501 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
40502 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40503 done; \
d5eec917 40504 echo "Doing installcheck in expect" ; \
7fc2ca22 40505 (cd $(HOST_SUBDIR)/expect && \
8ec98d6c
NN
40506 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40507 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40508 "RANLIB=$${RANLIB}" \
bffcbe34 40509 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 40510 installcheck) \
8ec98d6c
NN
40511 || exit 1
40512
d5eec917 40513@endif expect
8ec98d6c 40514
d5eec917
PB
40515.PHONY: maybe-mostlyclean-expect mostlyclean-expect
40516maybe-mostlyclean-expect:
40517@if expect
40518maybe-mostlyclean-expect: mostlyclean-expect
8ec98d6c 40519
d5eec917 40520mostlyclean-expect:
15b527ca 40521 @: $(MAKE); $(unstage)
d5eec917 40522 @[ -f ./expect/Makefile ] || exit 0; \
8ec98d6c
NN
40523 r=`${PWD_COMMAND}`; export r; \
40524 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 40525 $(HOST_EXPORTS) \
6a19fd82 40526 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
40527 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40528 done; \
d5eec917 40529 echo "Doing mostlyclean in expect" ; \
7fc2ca22 40530 (cd $(HOST_SUBDIR)/expect && \
8ec98d6c
NN
40531 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40532 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40533 "RANLIB=$${RANLIB}" \
bffcbe34 40534 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 40535 mostlyclean) \
8ec98d6c
NN
40536 || exit 1
40537
d5eec917 40538@endif expect
8ec98d6c 40539
d5eec917
PB
40540.PHONY: maybe-clean-expect clean-expect
40541maybe-clean-expect:
40542@if expect
40543maybe-clean-expect: clean-expect
8ec98d6c 40544
d5eec917 40545clean-expect:
15b527ca 40546 @: $(MAKE); $(unstage)
d5eec917 40547 @[ -f ./expect/Makefile ] || exit 0; \
8ec98d6c
NN
40548 r=`${PWD_COMMAND}`; export r; \
40549 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 40550 $(HOST_EXPORTS) \
6a19fd82 40551 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
40552 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40553 done; \
d5eec917 40554 echo "Doing clean in expect" ; \
7fc2ca22 40555 (cd $(HOST_SUBDIR)/expect && \
8ec98d6c
NN
40556 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40557 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40558 "RANLIB=$${RANLIB}" \
bffcbe34 40559 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 40560 clean) \
8ec98d6c
NN
40561 || exit 1
40562
d5eec917 40563@endif expect
8ec98d6c 40564
d5eec917
PB
40565.PHONY: maybe-distclean-expect distclean-expect
40566maybe-distclean-expect:
40567@if expect
40568maybe-distclean-expect: distclean-expect
8ec98d6c 40569
d5eec917 40570distclean-expect:
15b527ca 40571 @: $(MAKE); $(unstage)
d5eec917 40572 @[ -f ./expect/Makefile ] || exit 0; \
8ec98d6c
NN
40573 r=`${PWD_COMMAND}`; export r; \
40574 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 40575 $(HOST_EXPORTS) \
6a19fd82 40576 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
40577 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40578 done; \
d5eec917 40579 echo "Doing distclean in expect" ; \
7fc2ca22 40580 (cd $(HOST_SUBDIR)/expect && \
8ec98d6c
NN
40581 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40582 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40583 "RANLIB=$${RANLIB}" \
bffcbe34 40584 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 40585 distclean) \
8ec98d6c
NN
40586 || exit 1
40587
d5eec917 40588@endif expect
8ec98d6c 40589
d5eec917
PB
40590.PHONY: maybe-maintainer-clean-expect maintainer-clean-expect
40591maybe-maintainer-clean-expect:
40592@if expect
40593maybe-maintainer-clean-expect: maintainer-clean-expect
8ec98d6c 40594
d5eec917 40595maintainer-clean-expect:
15b527ca 40596 @: $(MAKE); $(unstage)
d5eec917 40597 @[ -f ./expect/Makefile ] || exit 0; \
8ec98d6c 40598 r=`${PWD_COMMAND}`; export r; \
5230d454 40599 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 40600 $(HOST_EXPORTS) \
6a19fd82 40601 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
40602 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40603 done; \
d5eec917 40604 echo "Doing maintainer-clean in expect" ; \
7fc2ca22 40605 (cd $(HOST_SUBDIR)/expect && \
8ec98d6c
NN
40606 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40607 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40608 "RANLIB=$${RANLIB}" \
bffcbe34 40609 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 40610 maintainer-clean) \
8ec98d6c 40611 || exit 1
8ecc6504 40612
d5eec917 40613@endif expect
8ecc6504 40614
8ec98d6c 40615
f0fdfd34 40616
d5eec917
PB
40617.PHONY: configure-guile maybe-configure-guile
40618maybe-configure-guile:
e1e5148c
CD
40619@if gcc-bootstrap
40620configure-guile: stage_current
40621@endif gcc-bootstrap
d5eec917
PB
40622@if guile
40623maybe-configure-guile: configure-guile
ec92c4d6 40624configure-guile:
15b527ca 40625 @: $(MAKE); $(unstage)
ec92c4d6 40626 @r=`${PWD_COMMAND}`; export r; \
5230d454 40627 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
40628 test ! -f $(HOST_SUBDIR)/guile/Makefile || exit 0; \
40629 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/guile ; \
a675b75a 40630 $(HOST_EXPORTS) \
f0fdfd34
PB
40631 echo Configuring in $(HOST_SUBDIR)/guile; \
40632 cd "$(HOST_SUBDIR)/guile" || exit 1; \
94f860c0 40633 case $(srcdir) in \
7fc2ca22
PB
40634 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
40635 *) topdir=`echo $(HOST_SUBDIR)/guile/ | \
40636 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 40637 esac; \
7fc2ca22
PB
40638 srcdiroption="--srcdir=$${topdir}/guile"; \
40639 libsrcdir="$$s/guile"; \
94f860c0 40640 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
40641 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
40642 --target=${target_alias} $${srcdiroption} \
94f860c0 40643 || exit 1
d5eec917 40644@endif guile
94f860c0 40645
f0fdfd34
PB
40646
40647
a8a96878
PB
40648
40649
d5eec917
PB
40650.PHONY: all-guile maybe-all-guile
40651maybe-all-guile:
e1e5148c
CD
40652@if gcc-bootstrap
40653all-guile: stage_current
40654@endif gcc-bootstrap
d5eec917 40655@if guile
5e6b1f07 40656TARGET-guile=all
d5eec917
PB
40657maybe-all-guile: all-guile
40658all-guile: configure-guile
15b527ca 40659 @: $(MAKE); $(unstage)
5230d454
L
40660 @r=`${PWD_COMMAND}`; export r; \
40661 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 40662 $(HOST_EXPORTS) \
7fc2ca22 40663 (cd $(HOST_SUBDIR)/guile && \
6532abb6
PB
40664 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS) \
40665 $(TARGET-guile))
d5eec917 40666@endif guile
8ecc6504 40667
f0fdfd34 40668
a8a96878
PB
40669
40670
d5eec917
PB
40671.PHONY: check-guile maybe-check-guile
40672maybe-check-guile:
40673@if guile
40674maybe-check-guile: check-guile
8ecc6504 40675
d5eec917 40676check-guile:
15b527ca 40677 @: $(MAKE); $(unstage)
5230d454
L
40678 @r=`${PWD_COMMAND}`; export r; \
40679 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 40680 $(HOST_EXPORTS) \
7fc2ca22
PB
40681 (cd $(HOST_SUBDIR)/guile && \
40682 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
8ecc6504 40683
d5eec917 40684@endif guile
70ffc148 40685
d5eec917
PB
40686.PHONY: install-guile maybe-install-guile
40687maybe-install-guile:
40688@if guile
40689maybe-install-guile: install-guile
40690
40691install-guile: installdirs
15b527ca 40692 @: $(MAKE); $(unstage)
5230d454
L
40693 @r=`${PWD_COMMAND}`; export r; \
40694 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 40695 $(HOST_EXPORTS) \
7fc2ca22 40696 (cd $(HOST_SUBDIR)/guile && \
93c60b6d 40697 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
8ec98d6c 40698
d5eec917 40699@endif guile
8ec98d6c 40700
39bbbb69 40701# Other targets (info, dvi, pdf, etc.)
8ec98d6c 40702
d5eec917
PB
40703.PHONY: maybe-info-guile info-guile
40704maybe-info-guile:
40705@if guile
40706maybe-info-guile: info-guile
8ec98d6c 40707
d5eec917
PB
40708info-guile: \
40709 configure-guile
15b527ca 40710 @: $(MAKE); $(unstage)
d5eec917 40711 @[ -f ./guile/Makefile ] || exit 0; \
8ec98d6c
NN
40712 r=`${PWD_COMMAND}`; export r; \
40713 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 40714 $(HOST_EXPORTS) \
6a19fd82 40715 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
40716 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40717 done; \
d5eec917 40718 echo "Doing info in guile" ; \
7fc2ca22 40719 (cd $(HOST_SUBDIR)/guile && \
8ec98d6c
NN
40720 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40721 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40722 "RANLIB=$${RANLIB}" \
bffcbe34 40723 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 40724 info) \
8ec98d6c
NN
40725 || exit 1
40726
d5eec917 40727@endif guile
8ec98d6c 40728
d5eec917
PB
40729.PHONY: maybe-dvi-guile dvi-guile
40730maybe-dvi-guile:
40731@if guile
40732maybe-dvi-guile: dvi-guile
8ec98d6c 40733
d5eec917
PB
40734dvi-guile: \
40735 configure-guile
15b527ca 40736 @: $(MAKE); $(unstage)
d5eec917 40737 @[ -f ./guile/Makefile ] || exit 0; \
8ec98d6c
NN
40738 r=`${PWD_COMMAND}`; export r; \
40739 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 40740 $(HOST_EXPORTS) \
6a19fd82 40741 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
40742 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40743 done; \
d5eec917 40744 echo "Doing dvi in guile" ; \
7fc2ca22 40745 (cd $(HOST_SUBDIR)/guile && \
8ec98d6c
NN
40746 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40747 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40748 "RANLIB=$${RANLIB}" \
bffcbe34 40749 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 40750 dvi) \
8ec98d6c
NN
40751 || exit 1
40752
d5eec917 40753@endif guile
8ec98d6c 40754
39bbbb69
DD
40755.PHONY: maybe-pdf-guile pdf-guile
40756maybe-pdf-guile:
40757@if guile
40758maybe-pdf-guile: pdf-guile
40759
40760pdf-guile: \
40761 configure-guile
40762 @: $(MAKE); $(unstage)
40763 @[ -f ./guile/Makefile ] || exit 0; \
40764 r=`${PWD_COMMAND}`; export r; \
40765 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40766 $(HOST_EXPORTS) \
40767 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
40768 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40769 done; \
40770 echo "Doing pdf in guile" ; \
40771 (cd $(HOST_SUBDIR)/guile && \
40772 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40773 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40774 "RANLIB=$${RANLIB}" \
bffcbe34 40775 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
40776 pdf) \
40777 || exit 1
40778
40779@endif guile
40780
b6fb961f
MS
40781.PHONY: maybe-html-guile html-guile
40782maybe-html-guile:
40783@if guile
40784maybe-html-guile: html-guile
40785
40786html-guile: \
40787 configure-guile
15b527ca 40788 @: $(MAKE); $(unstage)
b6fb961f
MS
40789 @[ -f ./guile/Makefile ] || exit 0; \
40790 r=`${PWD_COMMAND}`; export r; \
40791 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
40792 $(HOST_EXPORTS) \
40793 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
40794 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40795 done; \
40796 echo "Doing html in guile" ; \
7fc2ca22 40797 (cd $(HOST_SUBDIR)/guile && \
b6fb961f
MS
40798 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40799 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40800 "RANLIB=$${RANLIB}" \
bffcbe34 40801 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
40802 html) \
40803 || exit 1
40804
40805@endif guile
40806
d5eec917
PB
40807.PHONY: maybe-TAGS-guile TAGS-guile
40808maybe-TAGS-guile:
40809@if guile
40810maybe-TAGS-guile: TAGS-guile
8ec98d6c 40811
d5eec917
PB
40812TAGS-guile: \
40813 configure-guile
15b527ca 40814 @: $(MAKE); $(unstage)
d5eec917 40815 @[ -f ./guile/Makefile ] || exit 0; \
8ec98d6c
NN
40816 r=`${PWD_COMMAND}`; export r; \
40817 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 40818 $(HOST_EXPORTS) \
6a19fd82 40819 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
40820 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40821 done; \
d5eec917 40822 echo "Doing TAGS in guile" ; \
7fc2ca22 40823 (cd $(HOST_SUBDIR)/guile && \
8ec98d6c
NN
40824 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40825 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40826 "RANLIB=$${RANLIB}" \
bffcbe34 40827 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 40828 TAGS) \
8ec98d6c
NN
40829 || exit 1
40830
d5eec917 40831@endif guile
8ec98d6c 40832
d5eec917
PB
40833.PHONY: maybe-install-info-guile install-info-guile
40834maybe-install-info-guile:
40835@if guile
40836maybe-install-info-guile: install-info-guile
8ec98d6c 40837
d5eec917
PB
40838install-info-guile: \
40839 configure-guile \
40840 info-guile
15b527ca 40841 @: $(MAKE); $(unstage)
d5eec917 40842 @[ -f ./guile/Makefile ] || exit 0; \
8ec98d6c
NN
40843 r=`${PWD_COMMAND}`; export r; \
40844 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 40845 $(HOST_EXPORTS) \
6a19fd82 40846 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
40847 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40848 done; \
d5eec917 40849 echo "Doing install-info in guile" ; \
7fc2ca22 40850 (cd $(HOST_SUBDIR)/guile && \
8ec98d6c
NN
40851 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40852 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40853 "RANLIB=$${RANLIB}" \
bffcbe34 40854 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 40855 install-info) \
8ec98d6c
NN
40856 || exit 1
40857
d5eec917 40858@endif guile
8ec98d6c 40859
d4954b6d
DD
40860.PHONY: maybe-install-pdf-guile install-pdf-guile
40861maybe-install-pdf-guile:
40862@if guile
40863maybe-install-pdf-guile: install-pdf-guile
40864
40865install-pdf-guile: \
40866 configure-guile \
40867 pdf-guile
40868 @: $(MAKE); $(unstage)
40869 @[ -f ./guile/Makefile ] || exit 0; \
40870 r=`${PWD_COMMAND}`; export r; \
40871 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40872 $(HOST_EXPORTS) \
40873 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
40874 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40875 done; \
40876 echo "Doing install-pdf in guile" ; \
40877 (cd $(HOST_SUBDIR)/guile && \
40878 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40879 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40880 "RANLIB=$${RANLIB}" \
bffcbe34 40881 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
40882 install-pdf) \
40883 || exit 1
40884
40885@endif guile
40886
83c9add4
CD
40887.PHONY: maybe-install-html-guile install-html-guile
40888maybe-install-html-guile:
40889@if guile
40890maybe-install-html-guile: install-html-guile
40891
40892install-html-guile: \
40893 configure-guile \
40894 html-guile
40895 @: $(MAKE); $(unstage)
40896 @[ -f ./guile/Makefile ] || exit 0; \
40897 r=`${PWD_COMMAND}`; export r; \
40898 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40899 $(HOST_EXPORTS) \
40900 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
40901 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40902 done; \
40903 echo "Doing install-html in guile" ; \
40904 (cd $(HOST_SUBDIR)/guile && \
40905 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40906 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40907 "RANLIB=$${RANLIB}" \
bffcbe34 40908 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
40909 install-html) \
40910 || exit 1
40911
40912@endif guile
40913
d5eec917
PB
40914.PHONY: maybe-installcheck-guile installcheck-guile
40915maybe-installcheck-guile:
40916@if guile
40917maybe-installcheck-guile: installcheck-guile
8ec98d6c 40918
d5eec917
PB
40919installcheck-guile: \
40920 configure-guile
15b527ca 40921 @: $(MAKE); $(unstage)
d5eec917 40922 @[ -f ./guile/Makefile ] || exit 0; \
8ec98d6c
NN
40923 r=`${PWD_COMMAND}`; export r; \
40924 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 40925 $(HOST_EXPORTS) \
6a19fd82 40926 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
40927 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40928 done; \
d5eec917 40929 echo "Doing installcheck in guile" ; \
7fc2ca22 40930 (cd $(HOST_SUBDIR)/guile && \
8ec98d6c
NN
40931 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40932 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40933 "RANLIB=$${RANLIB}" \
bffcbe34 40934 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 40935 installcheck) \
8ec98d6c
NN
40936 || exit 1
40937
d5eec917 40938@endif guile
8ec98d6c 40939
d5eec917
PB
40940.PHONY: maybe-mostlyclean-guile mostlyclean-guile
40941maybe-mostlyclean-guile:
40942@if guile
40943maybe-mostlyclean-guile: mostlyclean-guile
8ec98d6c 40944
d5eec917 40945mostlyclean-guile:
15b527ca 40946 @: $(MAKE); $(unstage)
d5eec917 40947 @[ -f ./guile/Makefile ] || exit 0; \
8ec98d6c
NN
40948 r=`${PWD_COMMAND}`; export r; \
40949 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 40950 $(HOST_EXPORTS) \
6a19fd82 40951 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
40952 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40953 done; \
d5eec917 40954 echo "Doing mostlyclean in guile" ; \
7fc2ca22 40955 (cd $(HOST_SUBDIR)/guile && \
8ec98d6c
NN
40956 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40957 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40958 "RANLIB=$${RANLIB}" \
bffcbe34 40959 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 40960 mostlyclean) \
8ec98d6c
NN
40961 || exit 1
40962
d5eec917 40963@endif guile
8ec98d6c 40964
d5eec917
PB
40965.PHONY: maybe-clean-guile clean-guile
40966maybe-clean-guile:
40967@if guile
40968maybe-clean-guile: clean-guile
8ec98d6c 40969
d5eec917 40970clean-guile:
15b527ca 40971 @: $(MAKE); $(unstage)
d5eec917 40972 @[ -f ./guile/Makefile ] || exit 0; \
8ec98d6c
NN
40973 r=`${PWD_COMMAND}`; export r; \
40974 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 40975 $(HOST_EXPORTS) \
6a19fd82 40976 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
40977 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40978 done; \
d5eec917 40979 echo "Doing clean in guile" ; \
7fc2ca22 40980 (cd $(HOST_SUBDIR)/guile && \
8ec98d6c
NN
40981 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40982 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40983 "RANLIB=$${RANLIB}" \
bffcbe34 40984 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 40985 clean) \
8ec98d6c
NN
40986 || exit 1
40987
d5eec917 40988@endif guile
8ec98d6c 40989
d5eec917
PB
40990.PHONY: maybe-distclean-guile distclean-guile
40991maybe-distclean-guile:
40992@if guile
40993maybe-distclean-guile: distclean-guile
8ec98d6c 40994
d5eec917 40995distclean-guile:
15b527ca 40996 @: $(MAKE); $(unstage)
d5eec917 40997 @[ -f ./guile/Makefile ] || exit 0; \
8ec98d6c
NN
40998 r=`${PWD_COMMAND}`; export r; \
40999 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 41000 $(HOST_EXPORTS) \
6a19fd82 41001 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
41002 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41003 done; \
d5eec917 41004 echo "Doing distclean in guile" ; \
7fc2ca22 41005 (cd $(HOST_SUBDIR)/guile && \
8ec98d6c
NN
41006 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41007 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41008 "RANLIB=$${RANLIB}" \
bffcbe34 41009 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 41010 distclean) \
8ec98d6c
NN
41011 || exit 1
41012
d5eec917 41013@endif guile
8ec98d6c 41014
d5eec917
PB
41015.PHONY: maybe-maintainer-clean-guile maintainer-clean-guile
41016maybe-maintainer-clean-guile:
41017@if guile
41018maybe-maintainer-clean-guile: maintainer-clean-guile
8ec98d6c 41019
d5eec917 41020maintainer-clean-guile:
15b527ca 41021 @: $(MAKE); $(unstage)
d5eec917 41022 @[ -f ./guile/Makefile ] || exit 0; \
8ec98d6c
NN
41023 r=`${PWD_COMMAND}`; export r; \
41024 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 41025 $(HOST_EXPORTS) \
6a19fd82 41026 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
41027 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41028 done; \
d5eec917 41029 echo "Doing maintainer-clean in guile" ; \
7fc2ca22 41030 (cd $(HOST_SUBDIR)/guile && \
8ec98d6c
NN
41031 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41032 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41033 "RANLIB=$${RANLIB}" \
bffcbe34 41034 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 41035 maintainer-clean) \
8ec98d6c
NN
41036 || exit 1
41037
d5eec917 41038@endif guile
8ecc6504
NN
41039
41040
f0fdfd34 41041
d5eec917
PB
41042.PHONY: configure-tk maybe-configure-tk
41043maybe-configure-tk:
e1e5148c
CD
41044@if gcc-bootstrap
41045configure-tk: stage_current
41046@endif gcc-bootstrap
d5eec917
PB
41047@if tk
41048maybe-configure-tk: configure-tk
ec92c4d6 41049configure-tk:
15b527ca 41050 @: $(MAKE); $(unstage)
ec92c4d6 41051 @r=`${PWD_COMMAND}`; export r; \
5230d454 41052 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
41053 test ! -f $(HOST_SUBDIR)/tk/Makefile || exit 0; \
41054 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/tk ; \
a675b75a 41055 $(HOST_EXPORTS) \
f0fdfd34
PB
41056 echo Configuring in $(HOST_SUBDIR)/tk; \
41057 cd "$(HOST_SUBDIR)/tk" || exit 1; \
94f860c0 41058 case $(srcdir) in \
7fc2ca22
PB
41059 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
41060 *) topdir=`echo $(HOST_SUBDIR)/tk/ | \
41061 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 41062 esac; \
7fc2ca22
PB
41063 srcdiroption="--srcdir=$${topdir}/tk"; \
41064 libsrcdir="$$s/tk"; \
94f860c0 41065 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
41066 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
41067 --target=${target_alias} $${srcdiroption} \
94f860c0 41068 || exit 1
d5eec917 41069@endif tk
94f860c0 41070
f0fdfd34
PB
41071
41072
a8a96878
PB
41073
41074
d5eec917
PB
41075.PHONY: all-tk maybe-all-tk
41076maybe-all-tk:
e1e5148c
CD
41077@if gcc-bootstrap
41078all-tk: stage_current
41079@endif gcc-bootstrap
d5eec917 41080@if tk
5e6b1f07 41081TARGET-tk=all
d5eec917
PB
41082maybe-all-tk: all-tk
41083all-tk: configure-tk
15b527ca 41084 @: $(MAKE); $(unstage)
5230d454
L
41085 @r=`${PWD_COMMAND}`; export r; \
41086 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 41087 $(HOST_EXPORTS) \
7fc2ca22 41088 (cd $(HOST_SUBDIR)/tk && \
6532abb6
PB
41089 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS) \
41090 $(TARGET-tk))
d5eec917 41091@endif tk
8ecc6504 41092
f0fdfd34 41093
a8a96878
PB
41094
41095
d5eec917
PB
41096.PHONY: check-tk maybe-check-tk
41097maybe-check-tk:
41098@if tk
41099maybe-check-tk: check-tk
8ecc6504 41100
d5eec917 41101check-tk:
15b527ca 41102 @: $(MAKE); $(unstage)
5230d454
L
41103 @r=`${PWD_COMMAND}`; export r; \
41104 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 41105 $(HOST_EXPORTS) \
7fc2ca22
PB
41106 (cd $(HOST_SUBDIR)/tk && \
41107 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
8ecc6504 41108
d5eec917 41109@endif tk
8ecc6504 41110
d5eec917
PB
41111.PHONY: install-tk maybe-install-tk
41112maybe-install-tk:
41113@if tk
41114maybe-install-tk: install-tk
70ffc148 41115
d5eec917 41116install-tk: installdirs
15b527ca 41117 @: $(MAKE); $(unstage)
5230d454
L
41118 @r=`${PWD_COMMAND}`; export r; \
41119 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 41120 $(HOST_EXPORTS) \
7fc2ca22 41121 (cd $(HOST_SUBDIR)/tk && \
93c60b6d 41122 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
8ecc6504 41123
d5eec917 41124@endif tk
8ecc6504 41125
39bbbb69 41126# Other targets (info, dvi, pdf, etc.)
8ec98d6c 41127
d5eec917
PB
41128.PHONY: maybe-info-tk info-tk
41129maybe-info-tk:
41130@if tk
41131maybe-info-tk: info-tk
8ec98d6c 41132
d5eec917
PB
41133info-tk: \
41134 configure-tk
15b527ca 41135 @: $(MAKE); $(unstage)
d5eec917 41136 @[ -f ./tk/Makefile ] || exit 0; \
5230d454
L
41137 r=`${PWD_COMMAND}`; export r; \
41138 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 41139 $(HOST_EXPORTS) \
6a19fd82 41140 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
41141 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41142 done; \
d5eec917 41143 echo "Doing info in tk" ; \
7fc2ca22 41144 (cd $(HOST_SUBDIR)/tk && \
8ec98d6c
NN
41145 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41146 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41147 "RANLIB=$${RANLIB}" \
bffcbe34 41148 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 41149 info) \
94f860c0
NN
41150 || exit 1
41151
d5eec917 41152@endif tk
8ec98d6c 41153
d5eec917
PB
41154.PHONY: maybe-dvi-tk dvi-tk
41155maybe-dvi-tk:
41156@if tk
41157maybe-dvi-tk: dvi-tk
8ec98d6c 41158
d5eec917
PB
41159dvi-tk: \
41160 configure-tk
15b527ca 41161 @: $(MAKE); $(unstage)
d5eec917 41162 @[ -f ./tk/Makefile ] || exit 0; \
8ec98d6c 41163 r=`${PWD_COMMAND}`; export r; \
5230d454 41164 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 41165 $(HOST_EXPORTS) \
6a19fd82 41166 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
41167 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41168 done; \
d5eec917 41169 echo "Doing dvi in tk" ; \
7fc2ca22 41170 (cd $(HOST_SUBDIR)/tk && \
8ec98d6c
NN
41171 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41172 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41173 "RANLIB=$${RANLIB}" \
bffcbe34 41174 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 41175 dvi) \
8ec98d6c 41176 || exit 1
8ecc6504 41177
d5eec917 41178@endif tk
8ecc6504 41179
39bbbb69
DD
41180.PHONY: maybe-pdf-tk pdf-tk
41181maybe-pdf-tk:
41182@if tk
41183maybe-pdf-tk: pdf-tk
41184
41185pdf-tk: \
41186 configure-tk
41187 @: $(MAKE); $(unstage)
41188 @[ -f ./tk/Makefile ] || exit 0; \
41189 r=`${PWD_COMMAND}`; export r; \
41190 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41191 $(HOST_EXPORTS) \
41192 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
41193 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41194 done; \
41195 echo "Doing pdf in tk" ; \
41196 (cd $(HOST_SUBDIR)/tk && \
41197 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41198 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41199 "RANLIB=$${RANLIB}" \
bffcbe34 41200 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
41201 pdf) \
41202 || exit 1
41203
41204@endif tk
41205
b6fb961f
MS
41206.PHONY: maybe-html-tk html-tk
41207maybe-html-tk:
41208@if tk
41209maybe-html-tk: html-tk
41210
41211html-tk: \
41212 configure-tk
15b527ca 41213 @: $(MAKE); $(unstage)
b6fb961f
MS
41214 @[ -f ./tk/Makefile ] || exit 0; \
41215 r=`${PWD_COMMAND}`; export r; \
41216 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
41217 $(HOST_EXPORTS) \
41218 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
41219 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41220 done; \
41221 echo "Doing html in tk" ; \
7fc2ca22 41222 (cd $(HOST_SUBDIR)/tk && \
b6fb961f
MS
41223 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41224 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41225 "RANLIB=$${RANLIB}" \
bffcbe34 41226 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
41227 html) \
41228 || exit 1
41229
41230@endif tk
41231
d5eec917
PB
41232.PHONY: maybe-TAGS-tk TAGS-tk
41233maybe-TAGS-tk:
41234@if tk
41235maybe-TAGS-tk: TAGS-tk
8ec98d6c 41236
d5eec917
PB
41237TAGS-tk: \
41238 configure-tk
15b527ca 41239 @: $(MAKE); $(unstage)
d5eec917 41240 @[ -f ./tk/Makefile ] || exit 0; \
8ec98d6c 41241 r=`${PWD_COMMAND}`; export r; \
5230d454 41242 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 41243 $(HOST_EXPORTS) \
6a19fd82 41244 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
41245 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41246 done; \
d5eec917 41247 echo "Doing TAGS in tk" ; \
7fc2ca22 41248 (cd $(HOST_SUBDIR)/tk && \
8ec98d6c
NN
41249 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41250 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41251 "RANLIB=$${RANLIB}" \
bffcbe34 41252 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 41253 TAGS) \
8ec98d6c 41254 || exit 1
8ecc6504 41255
d5eec917 41256@endif tk
8ecc6504 41257
d5eec917
PB
41258.PHONY: maybe-install-info-tk install-info-tk
41259maybe-install-info-tk:
41260@if tk
41261maybe-install-info-tk: install-info-tk
8ec98d6c 41262
d5eec917
PB
41263install-info-tk: \
41264 configure-tk \
41265 info-tk
15b527ca 41266 @: $(MAKE); $(unstage)
d5eec917 41267 @[ -f ./tk/Makefile ] || exit 0; \
8ec98d6c
NN
41268 r=`${PWD_COMMAND}`; export r; \
41269 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 41270 $(HOST_EXPORTS) \
6a19fd82 41271 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
41272 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41273 done; \
d5eec917 41274 echo "Doing install-info in tk" ; \
7fc2ca22 41275 (cd $(HOST_SUBDIR)/tk && \
8ec98d6c
NN
41276 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41277 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41278 "RANLIB=$${RANLIB}" \
bffcbe34 41279 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 41280 install-info) \
8ec98d6c
NN
41281 || exit 1
41282
d5eec917 41283@endif tk
8ec98d6c 41284
d4954b6d
DD
41285.PHONY: maybe-install-pdf-tk install-pdf-tk
41286maybe-install-pdf-tk:
41287@if tk
41288maybe-install-pdf-tk: install-pdf-tk
41289
41290install-pdf-tk: \
41291 configure-tk \
41292 pdf-tk
41293 @: $(MAKE); $(unstage)
41294 @[ -f ./tk/Makefile ] || exit 0; \
41295 r=`${PWD_COMMAND}`; export r; \
41296 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41297 $(HOST_EXPORTS) \
41298 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
41299 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41300 done; \
41301 echo "Doing install-pdf in tk" ; \
41302 (cd $(HOST_SUBDIR)/tk && \
41303 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41304 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41305 "RANLIB=$${RANLIB}" \
bffcbe34 41306 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
41307 install-pdf) \
41308 || exit 1
41309
41310@endif tk
41311
83c9add4
CD
41312.PHONY: maybe-install-html-tk install-html-tk
41313maybe-install-html-tk:
41314@if tk
41315maybe-install-html-tk: install-html-tk
41316
41317install-html-tk: \
41318 configure-tk \
41319 html-tk
41320 @: $(MAKE); $(unstage)
41321 @[ -f ./tk/Makefile ] || exit 0; \
41322 r=`${PWD_COMMAND}`; export r; \
41323 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41324 $(HOST_EXPORTS) \
41325 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
41326 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41327 done; \
41328 echo "Doing install-html in tk" ; \
41329 (cd $(HOST_SUBDIR)/tk && \
41330 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41331 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41332 "RANLIB=$${RANLIB}" \
bffcbe34 41333 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
41334 install-html) \
41335 || exit 1
41336
41337@endif tk
41338
d5eec917
PB
41339.PHONY: maybe-installcheck-tk installcheck-tk
41340maybe-installcheck-tk:
41341@if tk
41342maybe-installcheck-tk: installcheck-tk
8ec98d6c 41343
d5eec917
PB
41344installcheck-tk: \
41345 configure-tk
15b527ca 41346 @: $(MAKE); $(unstage)
d5eec917 41347 @[ -f ./tk/Makefile ] || exit 0; \
8ec98d6c
NN
41348 r=`${PWD_COMMAND}`; export r; \
41349 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 41350 $(HOST_EXPORTS) \
6a19fd82 41351 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
41352 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41353 done; \
d5eec917 41354 echo "Doing installcheck in tk" ; \
7fc2ca22 41355 (cd $(HOST_SUBDIR)/tk && \
8ec98d6c
NN
41356 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41357 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41358 "RANLIB=$${RANLIB}" \
bffcbe34 41359 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 41360 installcheck) \
8ec98d6c
NN
41361 || exit 1
41362
d5eec917 41363@endif tk
8ec98d6c 41364
d5eec917
PB
41365.PHONY: maybe-mostlyclean-tk mostlyclean-tk
41366maybe-mostlyclean-tk:
41367@if tk
41368maybe-mostlyclean-tk: mostlyclean-tk
8ec98d6c 41369
d5eec917 41370mostlyclean-tk:
15b527ca 41371 @: $(MAKE); $(unstage)
d5eec917 41372 @[ -f ./tk/Makefile ] || exit 0; \
8ec98d6c
NN
41373 r=`${PWD_COMMAND}`; export r; \
41374 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 41375 $(HOST_EXPORTS) \
6a19fd82 41376 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
41377 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41378 done; \
d5eec917 41379 echo "Doing mostlyclean in tk" ; \
7fc2ca22 41380 (cd $(HOST_SUBDIR)/tk && \
8ec98d6c
NN
41381 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41382 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41383 "RANLIB=$${RANLIB}" \
bffcbe34 41384 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 41385 mostlyclean) \
8ec98d6c
NN
41386 || exit 1
41387
d5eec917 41388@endif tk
8ec98d6c 41389
d5eec917
PB
41390.PHONY: maybe-clean-tk clean-tk
41391maybe-clean-tk:
41392@if tk
41393maybe-clean-tk: clean-tk
8ec98d6c 41394
d5eec917 41395clean-tk:
15b527ca 41396 @: $(MAKE); $(unstage)
d5eec917 41397 @[ -f ./tk/Makefile ] || exit 0; \
8ec98d6c
NN
41398 r=`${PWD_COMMAND}`; export r; \
41399 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 41400 $(HOST_EXPORTS) \
6a19fd82 41401 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
41402 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41403 done; \
d5eec917 41404 echo "Doing clean in tk" ; \
7fc2ca22 41405 (cd $(HOST_SUBDIR)/tk && \
8ec98d6c
NN
41406 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41407 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41408 "RANLIB=$${RANLIB}" \
bffcbe34 41409 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 41410 clean) \
8ec98d6c
NN
41411 || exit 1
41412
d5eec917 41413@endif tk
8ec98d6c 41414
d5eec917
PB
41415.PHONY: maybe-distclean-tk distclean-tk
41416maybe-distclean-tk:
41417@if tk
41418maybe-distclean-tk: distclean-tk
8ec98d6c 41419
d5eec917 41420distclean-tk:
15b527ca 41421 @: $(MAKE); $(unstage)
d5eec917 41422 @[ -f ./tk/Makefile ] || exit 0; \
8ec98d6c
NN
41423 r=`${PWD_COMMAND}`; export r; \
41424 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 41425 $(HOST_EXPORTS) \
6a19fd82 41426 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
41427 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41428 done; \
d5eec917 41429 echo "Doing distclean in tk" ; \
7fc2ca22 41430 (cd $(HOST_SUBDIR)/tk && \
8ec98d6c
NN
41431 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41432 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41433 "RANLIB=$${RANLIB}" \
bffcbe34 41434 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 41435 distclean) \
8ec98d6c
NN
41436 || exit 1
41437
d5eec917 41438@endif tk
8ec98d6c 41439
d5eec917
PB
41440.PHONY: maybe-maintainer-clean-tk maintainer-clean-tk
41441maybe-maintainer-clean-tk:
41442@if tk
41443maybe-maintainer-clean-tk: maintainer-clean-tk
70ffc148 41444
d5eec917 41445maintainer-clean-tk:
15b527ca 41446 @: $(MAKE); $(unstage)
d5eec917 41447 @[ -f ./tk/Makefile ] || exit 0; \
8ec98d6c 41448 r=`${PWD_COMMAND}`; export r; \
5230d454 41449 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 41450 $(HOST_EXPORTS) \
6a19fd82 41451 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
41452 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41453 done; \
d5eec917 41454 echo "Doing maintainer-clean in tk" ; \
7fc2ca22 41455 (cd $(HOST_SUBDIR)/tk && \
8ec98d6c
NN
41456 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41457 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41458 "RANLIB=$${RANLIB}" \
bffcbe34 41459 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 41460 maintainer-clean) \
8ec98d6c 41461 || exit 1
8ecc6504 41462
d5eec917 41463@endif tk
8ecc6504 41464
8ec98d6c 41465
f0fdfd34 41466
d5eec917
PB
41467.PHONY: configure-libtermcap maybe-configure-libtermcap
41468maybe-configure-libtermcap:
e1e5148c
CD
41469@if gcc-bootstrap
41470configure-libtermcap: stage_current
41471@endif gcc-bootstrap
d5eec917
PB
41472@if libtermcap
41473maybe-configure-libtermcap: configure-libtermcap
ec92c4d6 41474configure-libtermcap:
15b527ca 41475 @: $(MAKE); $(unstage)
ec92c4d6 41476 @r=`${PWD_COMMAND}`; export r; \
d5eec917 41477 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
41478 test ! -f $(HOST_SUBDIR)/libtermcap/Makefile || exit 0; \
41479 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libtermcap ; \
d5eec917 41480 $(HOST_EXPORTS) \
f0fdfd34
PB
41481 echo Configuring in $(HOST_SUBDIR)/libtermcap; \
41482 cd "$(HOST_SUBDIR)/libtermcap" || exit 1; \
d5eec917 41483 case $(srcdir) in \
7fc2ca22
PB
41484 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
41485 *) topdir=`echo $(HOST_SUBDIR)/libtermcap/ | \
41486 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
d5eec917 41487 esac; \
7fc2ca22
PB
41488 srcdiroption="--srcdir=$${topdir}/libtermcap"; \
41489 libsrcdir="$$s/libtermcap"; \
d5eec917 41490 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
41491 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
41492 --target=${target_alias} $${srcdiroption} \
d5eec917
PB
41493 || exit 1
41494@endif libtermcap
41495
f0fdfd34
PB
41496
41497
a8a96878
PB
41498
41499
d5eec917
PB
41500.PHONY: all-libtermcap maybe-all-libtermcap
41501maybe-all-libtermcap:
e1e5148c
CD
41502@if gcc-bootstrap
41503all-libtermcap: stage_current
41504@endif gcc-bootstrap
d5eec917 41505@if libtermcap
5e6b1f07 41506TARGET-libtermcap=all
d5eec917
PB
41507maybe-all-libtermcap: all-libtermcap
41508all-libtermcap: configure-libtermcap
15b527ca 41509 @: $(MAKE); $(unstage)
d5eec917
PB
41510 @r=`${PWD_COMMAND}`; export r; \
41511 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d5eec917 41512 $(HOST_EXPORTS) \
7fc2ca22 41513 (cd $(HOST_SUBDIR)/libtermcap && \
6532abb6
PB
41514 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
41515 $(TARGET-libtermcap))
d5eec917
PB
41516@endif libtermcap
41517
f0fdfd34 41518
a8a96878
PB
41519
41520
d5eec917
PB
41521.PHONY: check-libtermcap maybe-check-libtermcap
41522maybe-check-libtermcap:
41523@if libtermcap
41524maybe-check-libtermcap: check-libtermcap
41525
41526check-libtermcap:
8ec98d6c 41527
a7e609d6 41528@endif libtermcap
8ec98d6c
NN
41529
41530.PHONY: install-libtermcap maybe-install-libtermcap
41531maybe-install-libtermcap:
a7e609d6
PB
41532@if libtermcap
41533maybe-install-libtermcap: install-libtermcap
8ec98d6c
NN
41534
41535install-libtermcap: installdirs
15b527ca 41536 @: $(MAKE); $(unstage)
5230d454
L
41537 @r=`${PWD_COMMAND}`; export r; \
41538 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 41539 $(HOST_EXPORTS) \
7fc2ca22 41540 (cd $(HOST_SUBDIR)/libtermcap && \
93c60b6d 41541 $(MAKE) $(FLAGS_TO_PASS) install)
8ecc6504 41542
a7e609d6 41543@endif libtermcap
8ecc6504 41544
39bbbb69 41545# Other targets (info, dvi, pdf, etc.)
70ffc148 41546
8ec98d6c
NN
41547.PHONY: maybe-info-libtermcap info-libtermcap
41548maybe-info-libtermcap:
a7e609d6
PB
41549@if libtermcap
41550maybe-info-libtermcap: info-libtermcap
8ec98d6c
NN
41551
41552info-libtermcap: \
41553 configure-libtermcap
15b527ca 41554 @: $(MAKE); $(unstage)
8ec98d6c
NN
41555 @[ -f ./libtermcap/Makefile ] || exit 0; \
41556 r=`${PWD_COMMAND}`; export r; \
5230d454 41557 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 41558 $(HOST_EXPORTS) \
d5eec917 41559 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
41560 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41561 done; \
41562 echo "Doing info in libtermcap" ; \
7fc2ca22 41563 (cd $(HOST_SUBDIR)/libtermcap && \
8ec98d6c
NN
41564 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41565 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41566 "RANLIB=$${RANLIB}" \
bffcbe34 41567 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 41568 info) \
8ec98d6c 41569 || exit 1
8ecc6504 41570
a7e609d6 41571@endif libtermcap
8ecc6504 41572
8ec98d6c
NN
41573.PHONY: maybe-dvi-libtermcap dvi-libtermcap
41574maybe-dvi-libtermcap:
a7e609d6
PB
41575@if libtermcap
41576maybe-dvi-libtermcap: dvi-libtermcap
8ec98d6c
NN
41577
41578dvi-libtermcap: \
41579 configure-libtermcap
15b527ca 41580 @: $(MAKE); $(unstage)
8ec98d6c
NN
41581 @[ -f ./libtermcap/Makefile ] || exit 0; \
41582 r=`${PWD_COMMAND}`; export r; \
41583 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 41584 $(HOST_EXPORTS) \
d5eec917 41585 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
41586 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41587 done; \
41588 echo "Doing dvi in libtermcap" ; \
7fc2ca22 41589 (cd $(HOST_SUBDIR)/libtermcap && \
8ec98d6c
NN
41590 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41591 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41592 "RANLIB=$${RANLIB}" \
bffcbe34 41593 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 41594 dvi) \
8ec98d6c
NN
41595 || exit 1
41596
a7e609d6 41597@endif libtermcap
8ec98d6c 41598
39bbbb69
DD
41599.PHONY: maybe-pdf-libtermcap pdf-libtermcap
41600maybe-pdf-libtermcap:
41601@if libtermcap
41602maybe-pdf-libtermcap: pdf-libtermcap
41603
41604pdf-libtermcap: \
41605 configure-libtermcap
41606 @: $(MAKE); $(unstage)
41607 @[ -f ./libtermcap/Makefile ] || exit 0; \
41608 r=`${PWD_COMMAND}`; export r; \
41609 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41610 $(HOST_EXPORTS) \
41611 for flag in $(EXTRA_HOST_FLAGS) ; do \
41612 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41613 done; \
41614 echo "Doing pdf in libtermcap" ; \
41615 (cd $(HOST_SUBDIR)/libtermcap && \
41616 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41617 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41618 "RANLIB=$${RANLIB}" \
bffcbe34 41619 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
41620 pdf) \
41621 || exit 1
41622
41623@endif libtermcap
41624
b6fb961f
MS
41625.PHONY: maybe-html-libtermcap html-libtermcap
41626maybe-html-libtermcap:
41627@if libtermcap
41628maybe-html-libtermcap: html-libtermcap
41629
41630html-libtermcap: \
41631 configure-libtermcap
15b527ca 41632 @: $(MAKE); $(unstage)
b6fb961f
MS
41633 @[ -f ./libtermcap/Makefile ] || exit 0; \
41634 r=`${PWD_COMMAND}`; export r; \
41635 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
41636 $(HOST_EXPORTS) \
41637 for flag in $(EXTRA_HOST_FLAGS) ; do \
41638 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41639 done; \
41640 echo "Doing html in libtermcap" ; \
7fc2ca22 41641 (cd $(HOST_SUBDIR)/libtermcap && \
b6fb961f
MS
41642 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41643 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41644 "RANLIB=$${RANLIB}" \
bffcbe34 41645 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
41646 html) \
41647 || exit 1
41648
41649@endif libtermcap
41650
8ec98d6c
NN
41651.PHONY: maybe-TAGS-libtermcap TAGS-libtermcap
41652maybe-TAGS-libtermcap:
a7e609d6
PB
41653@if libtermcap
41654maybe-TAGS-libtermcap: TAGS-libtermcap
8ec98d6c
NN
41655
41656TAGS-libtermcap: \
41657 configure-libtermcap
15b527ca 41658 @: $(MAKE); $(unstage)
8ec98d6c
NN
41659 @[ -f ./libtermcap/Makefile ] || exit 0; \
41660 r=`${PWD_COMMAND}`; export r; \
41661 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 41662 $(HOST_EXPORTS) \
d5eec917 41663 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
41664 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41665 done; \
41666 echo "Doing TAGS in libtermcap" ; \
7fc2ca22 41667 (cd $(HOST_SUBDIR)/libtermcap && \
8ec98d6c
NN
41668 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41669 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41670 "RANLIB=$${RANLIB}" \
bffcbe34 41671 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 41672 TAGS) \
8ec98d6c
NN
41673 || exit 1
41674
a7e609d6 41675@endif libtermcap
8ec98d6c
NN
41676
41677.PHONY: maybe-install-info-libtermcap install-info-libtermcap
41678maybe-install-info-libtermcap:
a7e609d6
PB
41679@if libtermcap
41680maybe-install-info-libtermcap: install-info-libtermcap
8ec98d6c
NN
41681
41682install-info-libtermcap: \
41683 configure-libtermcap \
41684 info-libtermcap
15b527ca 41685 @: $(MAKE); $(unstage)
8ec98d6c
NN
41686 @[ -f ./libtermcap/Makefile ] || exit 0; \
41687 r=`${PWD_COMMAND}`; export r; \
41688 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 41689 $(HOST_EXPORTS) \
d5eec917 41690 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
41691 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41692 done; \
41693 echo "Doing install-info in libtermcap" ; \
7fc2ca22 41694 (cd $(HOST_SUBDIR)/libtermcap && \
8ec98d6c
NN
41695 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41696 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41697 "RANLIB=$${RANLIB}" \
bffcbe34 41698 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 41699 install-info) \
8ec98d6c
NN
41700 || exit 1
41701
a7e609d6 41702@endif libtermcap
8ec98d6c 41703
d4954b6d
DD
41704.PHONY: maybe-install-pdf-libtermcap install-pdf-libtermcap
41705maybe-install-pdf-libtermcap:
41706@if libtermcap
41707maybe-install-pdf-libtermcap: install-pdf-libtermcap
41708
41709install-pdf-libtermcap: \
41710 configure-libtermcap \
41711 pdf-libtermcap
41712 @: $(MAKE); $(unstage)
41713 @[ -f ./libtermcap/Makefile ] || exit 0; \
41714 r=`${PWD_COMMAND}`; export r; \
41715 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41716 $(HOST_EXPORTS) \
41717 for flag in $(EXTRA_HOST_FLAGS) ; do \
41718 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41719 done; \
41720 echo "Doing install-pdf in libtermcap" ; \
41721 (cd $(HOST_SUBDIR)/libtermcap && \
41722 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41723 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41724 "RANLIB=$${RANLIB}" \
bffcbe34 41725 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
41726 install-pdf) \
41727 || exit 1
41728
41729@endif libtermcap
41730
83c9add4
CD
41731.PHONY: maybe-install-html-libtermcap install-html-libtermcap
41732maybe-install-html-libtermcap:
41733@if libtermcap
41734maybe-install-html-libtermcap: install-html-libtermcap
41735
41736install-html-libtermcap: \
41737 configure-libtermcap \
41738 html-libtermcap
41739 @: $(MAKE); $(unstage)
41740 @[ -f ./libtermcap/Makefile ] || exit 0; \
41741 r=`${PWD_COMMAND}`; export r; \
41742 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41743 $(HOST_EXPORTS) \
41744 for flag in $(EXTRA_HOST_FLAGS) ; do \
41745 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41746 done; \
41747 echo "Doing install-html in libtermcap" ; \
41748 (cd $(HOST_SUBDIR)/libtermcap && \
41749 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41750 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41751 "RANLIB=$${RANLIB}" \
bffcbe34 41752 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
41753 install-html) \
41754 || exit 1
41755
41756@endif libtermcap
41757
8ec98d6c
NN
41758.PHONY: maybe-installcheck-libtermcap installcheck-libtermcap
41759maybe-installcheck-libtermcap:
a7e609d6
PB
41760@if libtermcap
41761maybe-installcheck-libtermcap: installcheck-libtermcap
8ec98d6c
NN
41762
41763installcheck-libtermcap: \
41764 configure-libtermcap
15b527ca 41765 @: $(MAKE); $(unstage)
8ec98d6c
NN
41766 @[ -f ./libtermcap/Makefile ] || exit 0; \
41767 r=`${PWD_COMMAND}`; export r; \
41768 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 41769 $(HOST_EXPORTS) \
d5eec917 41770 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
41771 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41772 done; \
41773 echo "Doing installcheck in libtermcap" ; \
7fc2ca22 41774 (cd $(HOST_SUBDIR)/libtermcap && \
8ec98d6c
NN
41775 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41776 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41777 "RANLIB=$${RANLIB}" \
bffcbe34 41778 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 41779 installcheck) \
8ec98d6c
NN
41780 || exit 1
41781
a7e609d6 41782@endif libtermcap
8ec98d6c
NN
41783
41784.PHONY: maybe-mostlyclean-libtermcap mostlyclean-libtermcap
41785maybe-mostlyclean-libtermcap:
a7e609d6
PB
41786@if libtermcap
41787maybe-mostlyclean-libtermcap: mostlyclean-libtermcap
8ec98d6c
NN
41788
41789# libtermcap doesn't support mostlyclean.
41790mostlyclean-libtermcap:
41791
a7e609d6 41792@endif libtermcap
8ec98d6c
NN
41793
41794.PHONY: maybe-clean-libtermcap clean-libtermcap
41795maybe-clean-libtermcap:
a7e609d6
PB
41796@if libtermcap
41797maybe-clean-libtermcap: clean-libtermcap
8ec98d6c
NN
41798
41799# libtermcap doesn't support clean.
41800clean-libtermcap:
41801
a7e609d6 41802@endif libtermcap
8ec98d6c
NN
41803
41804.PHONY: maybe-distclean-libtermcap distclean-libtermcap
41805maybe-distclean-libtermcap:
a7e609d6
PB
41806@if libtermcap
41807maybe-distclean-libtermcap: distclean-libtermcap
8ec98d6c
NN
41808
41809# libtermcap doesn't support distclean.
41810distclean-libtermcap:
41811
a7e609d6 41812@endif libtermcap
8ec98d6c
NN
41813
41814.PHONY: maybe-maintainer-clean-libtermcap maintainer-clean-libtermcap
41815maybe-maintainer-clean-libtermcap:
a7e609d6
PB
41816@if libtermcap
41817maybe-maintainer-clean-libtermcap: maintainer-clean-libtermcap
8ec98d6c
NN
41818
41819# libtermcap doesn't support maintainer-clean.
41820maintainer-clean-libtermcap:
41821
a7e609d6 41822@endif libtermcap
8ec98d6c
NN
41823
41824
f0fdfd34 41825
8ec98d6c
NN
41826.PHONY: configure-utils maybe-configure-utils
41827maybe-configure-utils:
e1e5148c
CD
41828@if gcc-bootstrap
41829configure-utils: stage_current
41830@endif gcc-bootstrap
a7e609d6
PB
41831@if utils
41832maybe-configure-utils: configure-utils
ec92c4d6 41833configure-utils:
15b527ca 41834 @: $(MAKE); $(unstage)
ec92c4d6 41835 @r=`${PWD_COMMAND}`; export r; \
5230d454 41836 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
41837 test ! -f $(HOST_SUBDIR)/utils/Makefile || exit 0; \
41838 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/utils ; \
a675b75a 41839 $(HOST_EXPORTS) \
f0fdfd34
PB
41840 echo Configuring in $(HOST_SUBDIR)/utils; \
41841 cd "$(HOST_SUBDIR)/utils" || exit 1; \
94f860c0 41842 case $(srcdir) in \
7fc2ca22
PB
41843 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
41844 *) topdir=`echo $(HOST_SUBDIR)/utils/ | \
41845 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 41846 esac; \
7fc2ca22
PB
41847 srcdiroption="--srcdir=$${topdir}/utils"; \
41848 libsrcdir="$$s/utils"; \
94f860c0 41849 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
41850 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
41851 --target=${target_alias} $${srcdiroption} \
94f860c0 41852 || exit 1
a7e609d6 41853@endif utils
94f860c0 41854
f0fdfd34
PB
41855
41856
a8a96878
PB
41857
41858
8ec98d6c
NN
41859.PHONY: all-utils maybe-all-utils
41860maybe-all-utils:
e1e5148c
CD
41861@if gcc-bootstrap
41862all-utils: stage_current
41863@endif gcc-bootstrap
a7e609d6 41864@if utils
5e6b1f07 41865TARGET-utils=all
a7e609d6 41866maybe-all-utils: all-utils
8ec98d6c 41867all-utils: configure-utils
15b527ca 41868 @: $(MAKE); $(unstage)
8ec98d6c
NN
41869 @r=`${PWD_COMMAND}`; export r; \
41870 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 41871 $(HOST_EXPORTS) \
7fc2ca22 41872 (cd $(HOST_SUBDIR)/utils && \
6532abb6
PB
41873 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
41874 $(TARGET-utils))
a7e609d6 41875@endif utils
8ec98d6c 41876
f0fdfd34 41877
a8a96878
PB
41878
41879
8ec98d6c
NN
41880.PHONY: check-utils maybe-check-utils
41881maybe-check-utils:
a7e609d6
PB
41882@if utils
41883maybe-check-utils: check-utils
8ec98d6c
NN
41884
41885check-utils:
41886
a7e609d6 41887@endif utils
8ec98d6c
NN
41888
41889.PHONY: install-utils maybe-install-utils
41890maybe-install-utils:
a7e609d6
PB
41891@if utils
41892maybe-install-utils: install-utils
8ec98d6c
NN
41893
41894install-utils: installdirs
15b527ca 41895 @: $(MAKE); $(unstage)
8ec98d6c
NN
41896 @r=`${PWD_COMMAND}`; export r; \
41897 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 41898 $(HOST_EXPORTS) \
7fc2ca22 41899 (cd $(HOST_SUBDIR)/utils && \
93c60b6d 41900 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 41901
a7e609d6 41902@endif utils
8ec98d6c 41903
39bbbb69 41904# Other targets (info, dvi, pdf, etc.)
8ec98d6c
NN
41905
41906.PHONY: maybe-info-utils info-utils
41907maybe-info-utils:
a7e609d6
PB
41908@if utils
41909maybe-info-utils: info-utils
8ec98d6c
NN
41910
41911info-utils: \
41912 configure-utils
15b527ca 41913 @: $(MAKE); $(unstage)
8ec98d6c
NN
41914 @[ -f ./utils/Makefile ] || exit 0; \
41915 r=`${PWD_COMMAND}`; export r; \
41916 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 41917 $(HOST_EXPORTS) \
d5eec917 41918 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
41919 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41920 done; \
41921 echo "Doing info in utils" ; \
7fc2ca22 41922 (cd $(HOST_SUBDIR)/utils && \
8ec98d6c
NN
41923 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41924 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41925 "RANLIB=$${RANLIB}" \
bffcbe34 41926 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 41927 info) \
8ec98d6c
NN
41928 || exit 1
41929
a7e609d6 41930@endif utils
8ec98d6c
NN
41931
41932.PHONY: maybe-dvi-utils dvi-utils
41933maybe-dvi-utils:
a7e609d6
PB
41934@if utils
41935maybe-dvi-utils: dvi-utils
8ec98d6c
NN
41936
41937dvi-utils: \
41938 configure-utils
15b527ca 41939 @: $(MAKE); $(unstage)
8ec98d6c
NN
41940 @[ -f ./utils/Makefile ] || exit 0; \
41941 r=`${PWD_COMMAND}`; export r; \
5230d454 41942 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 41943 $(HOST_EXPORTS) \
d5eec917 41944 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
41945 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41946 done; \
41947 echo "Doing dvi in utils" ; \
7fc2ca22 41948 (cd $(HOST_SUBDIR)/utils && \
8ec98d6c
NN
41949 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41950 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41951 "RANLIB=$${RANLIB}" \
bffcbe34 41952 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 41953 dvi) \
8ec98d6c 41954 || exit 1
8ecc6504 41955
a7e609d6 41956@endif utils
8ecc6504 41957
39bbbb69
DD
41958.PHONY: maybe-pdf-utils pdf-utils
41959maybe-pdf-utils:
41960@if utils
41961maybe-pdf-utils: pdf-utils
41962
41963pdf-utils: \
41964 configure-utils
41965 @: $(MAKE); $(unstage)
41966 @[ -f ./utils/Makefile ] || exit 0; \
41967 r=`${PWD_COMMAND}`; export r; \
41968 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41969 $(HOST_EXPORTS) \
41970 for flag in $(EXTRA_HOST_FLAGS) ; do \
41971 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41972 done; \
41973 echo "Doing pdf in utils" ; \
41974 (cd $(HOST_SUBDIR)/utils && \
41975 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41976 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41977 "RANLIB=$${RANLIB}" \
bffcbe34 41978 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
41979 pdf) \
41980 || exit 1
41981
41982@endif utils
41983
b6fb961f
MS
41984.PHONY: maybe-html-utils html-utils
41985maybe-html-utils:
41986@if utils
41987maybe-html-utils: html-utils
41988
41989html-utils: \
41990 configure-utils
15b527ca 41991 @: $(MAKE); $(unstage)
b6fb961f
MS
41992 @[ -f ./utils/Makefile ] || exit 0; \
41993 r=`${PWD_COMMAND}`; export r; \
41994 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
41995 $(HOST_EXPORTS) \
41996 for flag in $(EXTRA_HOST_FLAGS) ; do \
41997 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41998 done; \
41999 echo "Doing html in utils" ; \
7fc2ca22 42000 (cd $(HOST_SUBDIR)/utils && \
b6fb961f
MS
42001 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42002 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42003 "RANLIB=$${RANLIB}" \
bffcbe34 42004 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
42005 html) \
42006 || exit 1
42007
42008@endif utils
42009
8ec98d6c
NN
42010.PHONY: maybe-TAGS-utils TAGS-utils
42011maybe-TAGS-utils:
a7e609d6
PB
42012@if utils
42013maybe-TAGS-utils: TAGS-utils
8ec98d6c
NN
42014
42015TAGS-utils: \
42016 configure-utils
15b527ca 42017 @: $(MAKE); $(unstage)
8ec98d6c
NN
42018 @[ -f ./utils/Makefile ] || exit 0; \
42019 r=`${PWD_COMMAND}`; export r; \
5230d454 42020 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 42021 $(HOST_EXPORTS) \
d5eec917 42022 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
42023 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42024 done; \
42025 echo "Doing TAGS in utils" ; \
7fc2ca22 42026 (cd $(HOST_SUBDIR)/utils && \
8ec98d6c
NN
42027 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42028 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42029 "RANLIB=$${RANLIB}" \
bffcbe34 42030 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 42031 TAGS) \
8ec98d6c 42032 || exit 1
8ecc6504 42033
a7e609d6 42034@endif utils
8ecc6504 42035
8ec98d6c
NN
42036.PHONY: maybe-install-info-utils install-info-utils
42037maybe-install-info-utils:
a7e609d6
PB
42038@if utils
42039maybe-install-info-utils: install-info-utils
70ffc148 42040
8ec98d6c
NN
42041install-info-utils: \
42042 configure-utils \
42043 info-utils
15b527ca 42044 @: $(MAKE); $(unstage)
8ec98d6c
NN
42045 @[ -f ./utils/Makefile ] || exit 0; \
42046 r=`${PWD_COMMAND}`; export r; \
5230d454 42047 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 42048 $(HOST_EXPORTS) \
d5eec917 42049 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
42050 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42051 done; \
42052 echo "Doing install-info in utils" ; \
7fc2ca22 42053 (cd $(HOST_SUBDIR)/utils && \
8ec98d6c
NN
42054 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42055 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42056 "RANLIB=$${RANLIB}" \
bffcbe34 42057 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 42058 install-info) \
8ec98d6c 42059 || exit 1
8ecc6504 42060
a7e609d6 42061@endif utils
8ecc6504 42062
d4954b6d
DD
42063.PHONY: maybe-install-pdf-utils install-pdf-utils
42064maybe-install-pdf-utils:
42065@if utils
42066maybe-install-pdf-utils: install-pdf-utils
42067
42068install-pdf-utils: \
42069 configure-utils \
42070 pdf-utils
42071 @: $(MAKE); $(unstage)
42072 @[ -f ./utils/Makefile ] || exit 0; \
42073 r=`${PWD_COMMAND}`; export r; \
42074 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42075 $(HOST_EXPORTS) \
42076 for flag in $(EXTRA_HOST_FLAGS) ; do \
42077 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42078 done; \
42079 echo "Doing install-pdf in utils" ; \
42080 (cd $(HOST_SUBDIR)/utils && \
42081 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42082 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42083 "RANLIB=$${RANLIB}" \
bffcbe34 42084 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
42085 install-pdf) \
42086 || exit 1
42087
42088@endif utils
42089
83c9add4
CD
42090.PHONY: maybe-install-html-utils install-html-utils
42091maybe-install-html-utils:
42092@if utils
42093maybe-install-html-utils: install-html-utils
42094
42095install-html-utils: \
42096 configure-utils \
42097 html-utils
42098 @: $(MAKE); $(unstage)
42099 @[ -f ./utils/Makefile ] || exit 0; \
42100 r=`${PWD_COMMAND}`; export r; \
42101 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42102 $(HOST_EXPORTS) \
42103 for flag in $(EXTRA_HOST_FLAGS) ; do \
42104 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42105 done; \
42106 echo "Doing install-html in utils" ; \
42107 (cd $(HOST_SUBDIR)/utils && \
42108 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42109 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42110 "RANLIB=$${RANLIB}" \
bffcbe34 42111 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
42112 install-html) \
42113 || exit 1
42114
42115@endif utils
42116
8ec98d6c
NN
42117.PHONY: maybe-installcheck-utils installcheck-utils
42118maybe-installcheck-utils:
a7e609d6
PB
42119@if utils
42120maybe-installcheck-utils: installcheck-utils
8ec98d6c
NN
42121
42122installcheck-utils: \
42123 configure-utils
15b527ca 42124 @: $(MAKE); $(unstage)
8ec98d6c 42125 @[ -f ./utils/Makefile ] || exit 0; \
5230d454
L
42126 r=`${PWD_COMMAND}`; export r; \
42127 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 42128 $(HOST_EXPORTS) \
d5eec917 42129 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
42130 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42131 done; \
42132 echo "Doing installcheck in utils" ; \
7fc2ca22 42133 (cd $(HOST_SUBDIR)/utils && \
8ec98d6c
NN
42134 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42135 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42136 "RANLIB=$${RANLIB}" \
bffcbe34 42137 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 42138 installcheck) \
94f860c0
NN
42139 || exit 1
42140
a7e609d6 42141@endif utils
8ec98d6c
NN
42142
42143.PHONY: maybe-mostlyclean-utils mostlyclean-utils
42144maybe-mostlyclean-utils:
a7e609d6
PB
42145@if utils
42146maybe-mostlyclean-utils: mostlyclean-utils
8ec98d6c
NN
42147
42148mostlyclean-utils:
15b527ca 42149 @: $(MAKE); $(unstage)
8ec98d6c
NN
42150 @[ -f ./utils/Makefile ] || exit 0; \
42151 r=`${PWD_COMMAND}`; export r; \
5230d454 42152 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 42153 $(HOST_EXPORTS) \
d5eec917 42154 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
42155 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42156 done; \
42157 echo "Doing mostlyclean in utils" ; \
7fc2ca22 42158 (cd $(HOST_SUBDIR)/utils && \
8ec98d6c
NN
42159 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42160 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42161 "RANLIB=$${RANLIB}" \
bffcbe34 42162 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 42163 mostlyclean) \
8ec98d6c 42164 || exit 1
8ecc6504 42165
a7e609d6 42166@endif utils
8ecc6504 42167
8ec98d6c
NN
42168.PHONY: maybe-clean-utils clean-utils
42169maybe-clean-utils:
a7e609d6
PB
42170@if utils
42171maybe-clean-utils: clean-utils
8ec98d6c
NN
42172
42173clean-utils:
15b527ca 42174 @: $(MAKE); $(unstage)
8ec98d6c
NN
42175 @[ -f ./utils/Makefile ] || exit 0; \
42176 r=`${PWD_COMMAND}`; export r; \
5230d454 42177 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 42178 $(HOST_EXPORTS) \
d5eec917 42179 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
42180 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42181 done; \
42182 echo "Doing clean in utils" ; \
7fc2ca22 42183 (cd $(HOST_SUBDIR)/utils && \
8ec98d6c
NN
42184 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42185 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42186 "RANLIB=$${RANLIB}" \
bffcbe34 42187 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 42188 clean) \
8ec98d6c 42189 || exit 1
8ecc6504 42190
a7e609d6 42191@endif utils
8ecc6504 42192
8ec98d6c
NN
42193.PHONY: maybe-distclean-utils distclean-utils
42194maybe-distclean-utils:
a7e609d6
PB
42195@if utils
42196maybe-distclean-utils: distclean-utils
70ffc148 42197
8ec98d6c 42198distclean-utils:
15b527ca 42199 @: $(MAKE); $(unstage)
8ec98d6c
NN
42200 @[ -f ./utils/Makefile ] || exit 0; \
42201 r=`${PWD_COMMAND}`; export r; \
5230d454 42202 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 42203 $(HOST_EXPORTS) \
d5eec917 42204 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
42205 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42206 done; \
42207 echo "Doing distclean in utils" ; \
7fc2ca22 42208 (cd $(HOST_SUBDIR)/utils && \
8ec98d6c
NN
42209 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42210 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42211 "RANLIB=$${RANLIB}" \
bffcbe34 42212 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 42213 distclean) \
8ec98d6c 42214 || exit 1
8ecc6504 42215
a7e609d6 42216@endif utils
8ecc6504 42217
8ec98d6c
NN
42218.PHONY: maybe-maintainer-clean-utils maintainer-clean-utils
42219maybe-maintainer-clean-utils:
a7e609d6
PB
42220@if utils
42221maybe-maintainer-clean-utils: maintainer-clean-utils
8ec98d6c
NN
42222
42223maintainer-clean-utils:
15b527ca 42224 @: $(MAKE); $(unstage)
8ec98d6c 42225 @[ -f ./utils/Makefile ] || exit 0; \
5230d454
L
42226 r=`${PWD_COMMAND}`; export r; \
42227 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 42228 $(HOST_EXPORTS) \
d5eec917 42229 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
42230 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42231 done; \
42232 echo "Doing maintainer-clean in utils" ; \
7fc2ca22 42233 (cd $(HOST_SUBDIR)/utils && \
8ec98d6c
NN
42234 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42235 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42236 "RANLIB=$${RANLIB}" \
bffcbe34 42237 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 42238 maintainer-clean) \
94f860c0
NN
42239 || exit 1
42240
a7e609d6 42241@endif utils
8ecc6504 42242
8ecc6504 42243
f0fdfd34 42244
7fc2ca22
PB
42245.PHONY: configure-gnattools maybe-configure-gnattools
42246maybe-configure-gnattools:
e1e5148c
CD
42247@if gcc-bootstrap
42248configure-gnattools: stage_current
42249@endif gcc-bootstrap
7fc2ca22
PB
42250@if gnattools
42251maybe-configure-gnattools: configure-gnattools
ec92c4d6 42252configure-gnattools:
15b527ca 42253 @: $(MAKE); $(unstage)
ec92c4d6 42254 @r=`${PWD_COMMAND}`; export r; \
7fc2ca22 42255 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
42256 test ! -f $(HOST_SUBDIR)/gnattools/Makefile || exit 0; \
42257 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gnattools ; \
7fc2ca22 42258 $(HOST_EXPORTS) \
f0fdfd34
PB
42259 echo Configuring in $(HOST_SUBDIR)/gnattools; \
42260 cd "$(HOST_SUBDIR)/gnattools" || exit 1; \
7fc2ca22
PB
42261 case $(srcdir) in \
42262 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
42263 *) topdir=`echo $(HOST_SUBDIR)/gnattools/ | \
42264 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
42265 esac; \
42266 srcdiroption="--srcdir=$${topdir}/gnattools"; \
42267 libsrcdir="$$s/gnattools"; \
42268 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
42269 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
42270 --target=${target_alias} $${srcdiroption} \
7fc2ca22
PB
42271 || exit 1
42272@endif gnattools
42273
f0fdfd34
PB
42274
42275
a8a96878
PB
42276
42277
7fc2ca22
PB
42278.PHONY: all-gnattools maybe-all-gnattools
42279maybe-all-gnattools:
e1e5148c
CD
42280@if gcc-bootstrap
42281all-gnattools: stage_current
42282@endif gcc-bootstrap
7fc2ca22
PB
42283@if gnattools
42284TARGET-gnattools=all
42285maybe-all-gnattools: all-gnattools
42286all-gnattools: configure-gnattools
15b527ca 42287 @: $(MAKE); $(unstage)
7fc2ca22
PB
42288 @r=`${PWD_COMMAND}`; export r; \
42289 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7fc2ca22
PB
42290 $(HOST_EXPORTS) \
42291 (cd $(HOST_SUBDIR)/gnattools && \
6532abb6
PB
42292 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
42293 $(TARGET-gnattools))
7fc2ca22
PB
42294@endif gnattools
42295
f0fdfd34 42296
a8a96878
PB
42297
42298
7fc2ca22
PB
42299.PHONY: check-gnattools maybe-check-gnattools
42300maybe-check-gnattools:
42301@if gnattools
42302maybe-check-gnattools: check-gnattools
42303
42304check-gnattools:
15b527ca 42305 @: $(MAKE); $(unstage)
7fc2ca22
PB
42306 @r=`${PWD_COMMAND}`; export r; \
42307 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7fc2ca22
PB
42308 $(HOST_EXPORTS) \
42309 (cd $(HOST_SUBDIR)/gnattools && \
42310 $(MAKE) $(FLAGS_TO_PASS) check)
42311
42312@endif gnattools
42313
42314.PHONY: install-gnattools maybe-install-gnattools
42315maybe-install-gnattools:
42316@if gnattools
42317maybe-install-gnattools: install-gnattools
42318
42319install-gnattools: installdirs
15b527ca 42320 @: $(MAKE); $(unstage)
7fc2ca22
PB
42321 @r=`${PWD_COMMAND}`; export r; \
42322 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7fc2ca22
PB
42323 $(HOST_EXPORTS) \
42324 (cd $(HOST_SUBDIR)/gnattools && \
93c60b6d 42325 $(MAKE) $(FLAGS_TO_PASS) install)
7fc2ca22
PB
42326
42327@endif gnattools
42328
39bbbb69 42329# Other targets (info, dvi, pdf, etc.)
7fc2ca22
PB
42330
42331.PHONY: maybe-info-gnattools info-gnattools
42332maybe-info-gnattools:
42333@if gnattools
42334maybe-info-gnattools: info-gnattools
42335
42336info-gnattools: \
42337 configure-gnattools
15b527ca 42338 @: $(MAKE); $(unstage)
7fc2ca22
PB
42339 @[ -f ./gnattools/Makefile ] || exit 0; \
42340 r=`${PWD_COMMAND}`; export r; \
42341 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7fc2ca22
PB
42342 $(HOST_EXPORTS) \
42343 for flag in $(EXTRA_HOST_FLAGS) ; do \
42344 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42345 done; \
42346 echo "Doing info in gnattools" ; \
42347 (cd $(HOST_SUBDIR)/gnattools && \
42348 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42349 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42350 "RANLIB=$${RANLIB}" \
bffcbe34 42351 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7fc2ca22
PB
42352 info) \
42353 || exit 1
42354
42355@endif gnattools
42356
42357.PHONY: maybe-dvi-gnattools dvi-gnattools
42358maybe-dvi-gnattools:
42359@if gnattools
42360maybe-dvi-gnattools: dvi-gnattools
42361
42362dvi-gnattools: \
42363 configure-gnattools
15b527ca 42364 @: $(MAKE); $(unstage)
7fc2ca22
PB
42365 @[ -f ./gnattools/Makefile ] || exit 0; \
42366 r=`${PWD_COMMAND}`; export r; \
42367 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7fc2ca22
PB
42368 $(HOST_EXPORTS) \
42369 for flag in $(EXTRA_HOST_FLAGS) ; do \
42370 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42371 done; \
42372 echo "Doing dvi in gnattools" ; \
42373 (cd $(HOST_SUBDIR)/gnattools && \
42374 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42375 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42376 "RANLIB=$${RANLIB}" \
bffcbe34 42377 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7fc2ca22
PB
42378 dvi) \
42379 || exit 1
42380
42381@endif gnattools
42382
39bbbb69
DD
42383.PHONY: maybe-pdf-gnattools pdf-gnattools
42384maybe-pdf-gnattools:
42385@if gnattools
42386maybe-pdf-gnattools: pdf-gnattools
42387
42388pdf-gnattools: \
42389 configure-gnattools
42390 @: $(MAKE); $(unstage)
42391 @[ -f ./gnattools/Makefile ] || exit 0; \
42392 r=`${PWD_COMMAND}`; export r; \
42393 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42394 $(HOST_EXPORTS) \
42395 for flag in $(EXTRA_HOST_FLAGS) ; do \
42396 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42397 done; \
42398 echo "Doing pdf in gnattools" ; \
42399 (cd $(HOST_SUBDIR)/gnattools && \
42400 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42401 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42402 "RANLIB=$${RANLIB}" \
bffcbe34 42403 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
42404 pdf) \
42405 || exit 1
42406
42407@endif gnattools
42408
7fc2ca22
PB
42409.PHONY: maybe-html-gnattools html-gnattools
42410maybe-html-gnattools:
42411@if gnattools
42412maybe-html-gnattools: html-gnattools
42413
42414html-gnattools: \
42415 configure-gnattools
15b527ca 42416 @: $(MAKE); $(unstage)
7fc2ca22
PB
42417 @[ -f ./gnattools/Makefile ] || exit 0; \
42418 r=`${PWD_COMMAND}`; export r; \
42419 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7fc2ca22
PB
42420 $(HOST_EXPORTS) \
42421 for flag in $(EXTRA_HOST_FLAGS) ; do \
42422 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42423 done; \
42424 echo "Doing html in gnattools" ; \
42425 (cd $(HOST_SUBDIR)/gnattools && \
42426 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42427 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42428 "RANLIB=$${RANLIB}" \
bffcbe34 42429 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7fc2ca22
PB
42430 html) \
42431 || exit 1
42432
42433@endif gnattools
42434
42435.PHONY: maybe-TAGS-gnattools TAGS-gnattools
42436maybe-TAGS-gnattools:
42437@if gnattools
42438maybe-TAGS-gnattools: TAGS-gnattools
42439
42440TAGS-gnattools: \
42441 configure-gnattools
15b527ca 42442 @: $(MAKE); $(unstage)
7fc2ca22
PB
42443 @[ -f ./gnattools/Makefile ] || exit 0; \
42444 r=`${PWD_COMMAND}`; export r; \
42445 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7fc2ca22
PB
42446 $(HOST_EXPORTS) \
42447 for flag in $(EXTRA_HOST_FLAGS) ; do \
42448 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42449 done; \
42450 echo "Doing TAGS in gnattools" ; \
42451 (cd $(HOST_SUBDIR)/gnattools && \
42452 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42453 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42454 "RANLIB=$${RANLIB}" \
bffcbe34 42455 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7fc2ca22
PB
42456 TAGS) \
42457 || exit 1
42458
42459@endif gnattools
42460
42461.PHONY: maybe-install-info-gnattools install-info-gnattools
42462maybe-install-info-gnattools:
42463@if gnattools
42464maybe-install-info-gnattools: install-info-gnattools
42465
42466install-info-gnattools: \
42467 configure-gnattools \
42468 info-gnattools
15b527ca 42469 @: $(MAKE); $(unstage)
7fc2ca22
PB
42470 @[ -f ./gnattools/Makefile ] || exit 0; \
42471 r=`${PWD_COMMAND}`; export r; \
42472 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7fc2ca22
PB
42473 $(HOST_EXPORTS) \
42474 for flag in $(EXTRA_HOST_FLAGS) ; do \
42475 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42476 done; \
42477 echo "Doing install-info in gnattools" ; \
42478 (cd $(HOST_SUBDIR)/gnattools && \
42479 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42480 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42481 "RANLIB=$${RANLIB}" \
bffcbe34 42482 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7fc2ca22
PB
42483 install-info) \
42484 || exit 1
42485
42486@endif gnattools
42487
d4954b6d
DD
42488.PHONY: maybe-install-pdf-gnattools install-pdf-gnattools
42489maybe-install-pdf-gnattools:
42490@if gnattools
42491maybe-install-pdf-gnattools: install-pdf-gnattools
42492
42493install-pdf-gnattools: \
42494 configure-gnattools \
42495 pdf-gnattools
42496 @: $(MAKE); $(unstage)
42497 @[ -f ./gnattools/Makefile ] || exit 0; \
42498 r=`${PWD_COMMAND}`; export r; \
42499 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42500 $(HOST_EXPORTS) \
42501 for flag in $(EXTRA_HOST_FLAGS) ; do \
42502 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42503 done; \
42504 echo "Doing install-pdf in gnattools" ; \
42505 (cd $(HOST_SUBDIR)/gnattools && \
42506 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42507 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42508 "RANLIB=$${RANLIB}" \
bffcbe34 42509 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
42510 install-pdf) \
42511 || exit 1
42512
42513@endif gnattools
42514
83c9add4
CD
42515.PHONY: maybe-install-html-gnattools install-html-gnattools
42516maybe-install-html-gnattools:
42517@if gnattools
42518maybe-install-html-gnattools: install-html-gnattools
42519
42520install-html-gnattools: \
42521 configure-gnattools \
42522 html-gnattools
42523 @: $(MAKE); $(unstage)
42524 @[ -f ./gnattools/Makefile ] || exit 0; \
42525 r=`${PWD_COMMAND}`; export r; \
42526 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42527 $(HOST_EXPORTS) \
42528 for flag in $(EXTRA_HOST_FLAGS) ; do \
42529 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42530 done; \
42531 echo "Doing install-html in gnattools" ; \
42532 (cd $(HOST_SUBDIR)/gnattools && \
42533 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42534 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42535 "RANLIB=$${RANLIB}" \
bffcbe34 42536 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
42537 install-html) \
42538 || exit 1
42539
42540@endif gnattools
42541
7fc2ca22
PB
42542.PHONY: maybe-installcheck-gnattools installcheck-gnattools
42543maybe-installcheck-gnattools:
42544@if gnattools
42545maybe-installcheck-gnattools: installcheck-gnattools
42546
42547installcheck-gnattools: \
42548 configure-gnattools
15b527ca 42549 @: $(MAKE); $(unstage)
7fc2ca22
PB
42550 @[ -f ./gnattools/Makefile ] || exit 0; \
42551 r=`${PWD_COMMAND}`; export r; \
42552 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7fc2ca22
PB
42553 $(HOST_EXPORTS) \
42554 for flag in $(EXTRA_HOST_FLAGS) ; do \
42555 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42556 done; \
42557 echo "Doing installcheck in gnattools" ; \
42558 (cd $(HOST_SUBDIR)/gnattools && \
42559 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42560 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42561 "RANLIB=$${RANLIB}" \
bffcbe34 42562 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7fc2ca22
PB
42563 installcheck) \
42564 || exit 1
42565
42566@endif gnattools
42567
42568.PHONY: maybe-mostlyclean-gnattools mostlyclean-gnattools
42569maybe-mostlyclean-gnattools:
42570@if gnattools
42571maybe-mostlyclean-gnattools: mostlyclean-gnattools
42572
42573mostlyclean-gnattools:
15b527ca 42574 @: $(MAKE); $(unstage)
7fc2ca22
PB
42575 @[ -f ./gnattools/Makefile ] || exit 0; \
42576 r=`${PWD_COMMAND}`; export r; \
42577 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7fc2ca22
PB
42578 $(HOST_EXPORTS) \
42579 for flag in $(EXTRA_HOST_FLAGS) ; do \
42580 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42581 done; \
42582 echo "Doing mostlyclean in gnattools" ; \
42583 (cd $(HOST_SUBDIR)/gnattools && \
42584 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42585 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42586 "RANLIB=$${RANLIB}" \
bffcbe34 42587 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7fc2ca22
PB
42588 mostlyclean) \
42589 || exit 1
42590
42591@endif gnattools
42592
42593.PHONY: maybe-clean-gnattools clean-gnattools
42594maybe-clean-gnattools:
42595@if gnattools
42596maybe-clean-gnattools: clean-gnattools
42597
42598clean-gnattools:
15b527ca 42599 @: $(MAKE); $(unstage)
7fc2ca22
PB
42600 @[ -f ./gnattools/Makefile ] || exit 0; \
42601 r=`${PWD_COMMAND}`; export r; \
42602 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7fc2ca22
PB
42603 $(HOST_EXPORTS) \
42604 for flag in $(EXTRA_HOST_FLAGS) ; do \
42605 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42606 done; \
42607 echo "Doing clean in gnattools" ; \
42608 (cd $(HOST_SUBDIR)/gnattools && \
42609 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42610 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42611 "RANLIB=$${RANLIB}" \
bffcbe34 42612 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7fc2ca22
PB
42613 clean) \
42614 || exit 1
42615
42616@endif gnattools
42617
42618.PHONY: maybe-distclean-gnattools distclean-gnattools
42619maybe-distclean-gnattools:
42620@if gnattools
42621maybe-distclean-gnattools: distclean-gnattools
42622
42623distclean-gnattools:
15b527ca 42624 @: $(MAKE); $(unstage)
7fc2ca22
PB
42625 @[ -f ./gnattools/Makefile ] || exit 0; \
42626 r=`${PWD_COMMAND}`; export r; \
42627 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7fc2ca22
PB
42628 $(HOST_EXPORTS) \
42629 for flag in $(EXTRA_HOST_FLAGS) ; do \
42630 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42631 done; \
42632 echo "Doing distclean in gnattools" ; \
42633 (cd $(HOST_SUBDIR)/gnattools && \
42634 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42635 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42636 "RANLIB=$${RANLIB}" \
bffcbe34 42637 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7fc2ca22
PB
42638 distclean) \
42639 || exit 1
42640
42641@endif gnattools
42642
42643.PHONY: maybe-maintainer-clean-gnattools maintainer-clean-gnattools
42644maybe-maintainer-clean-gnattools:
42645@if gnattools
42646maybe-maintainer-clean-gnattools: maintainer-clean-gnattools
42647
42648maintainer-clean-gnattools:
15b527ca 42649 @: $(MAKE); $(unstage)
7fc2ca22
PB
42650 @[ -f ./gnattools/Makefile ] || exit 0; \
42651 r=`${PWD_COMMAND}`; export r; \
42652 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7fc2ca22
PB
42653 $(HOST_EXPORTS) \
42654 for flag in $(EXTRA_HOST_FLAGS) ; do \
42655 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42656 done; \
42657 echo "Doing maintainer-clean in gnattools" ; \
42658 (cd $(HOST_SUBDIR)/gnattools && \
42659 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42660 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42661 "RANLIB=$${RANLIB}" \
bffcbe34 42662 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7fc2ca22
PB
42663 maintainer-clean) \
42664 || exit 1
42665
42666@endif gnattools
42667
42668
8ecc6504 42669
8ec98d6c
NN
42670# ---------------------------------------
42671# Modules which run on the target machine
42672# ---------------------------------------
70ffc148 42673
8ecc6504 42674
f0fdfd34
PB
42675
42676
42677.PHONY: configure-target-libstdc++-v3 maybe-configure-target-libstdc++-v3
42678maybe-configure-target-libstdc++-v3:
e1e5148c
CD
42679@if gcc-bootstrap
42680configure-target-libstdc++-v3: stage_current
42681@endif gcc-bootstrap
f0fdfd34
PB
42682@if target-libstdc++-v3
42683maybe-configure-target-libstdc++-v3: configure-target-libstdc++-v3
ec92c4d6 42684configure-target-libstdc++-v3:
15b527ca
PB
42685 @: $(MAKE); $(unstage)
42686 @r=`${PWD_COMMAND}`; export r; \
42687 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42688 echo "Checking multilib configuration for libstdc++-v3..."; \
42689 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \
42690 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null ; \
42691 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
42692 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
42693 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
42694 else \
42695 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
42696 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
42697 fi; \
42698 else \
42699 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
ec92c4d6
PB
42700 fi; \
42701 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
8ec98d6c 42702 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \
a675b75a 42703 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c
NN
42704 echo Configuring in $(TARGET_SUBDIR)/libstdc++-v3; \
42705 cd "$(TARGET_SUBDIR)/libstdc++-v3" || exit 1; \
94f860c0 42706 case $(srcdir) in \
7fc2ca22
PB
42707 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
42708 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
42709 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 42710 esac; \
7fc2ca22
PB
42711 srcdiroption="--srcdir=$${topdir}/libstdc++-v3"; \
42712 libsrcdir="$$s/libstdc++-v3"; \
8ec98d6c
NN
42713 rm -f no-such-file || : ; \
42714 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
42715 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
42716 --target=${target_alias} $${srcdiroption} \
94f860c0 42717 || exit 1
a7e609d6 42718@endif target-libstdc++-v3
94f860c0 42719
f0fdfd34
PB
42720
42721
a8a96878
PB
42722
42723
8ec98d6c
NN
42724.PHONY: all-target-libstdc++-v3 maybe-all-target-libstdc++-v3
42725maybe-all-target-libstdc++-v3:
e1e5148c
CD
42726@if gcc-bootstrap
42727all-target-libstdc++-v3: stage_current
42728@endif gcc-bootstrap
a7e609d6 42729@if target-libstdc++-v3
6a19fd82 42730TARGET-target-libstdc++-v3=all
a7e609d6 42731maybe-all-target-libstdc++-v3: all-target-libstdc++-v3
8ec98d6c 42732all-target-libstdc++-v3: configure-target-libstdc++-v3
15b527ca 42733 @: $(MAKE); $(unstage)
5230d454
L
42734 @r=`${PWD_COMMAND}`; export r; \
42735 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 42736 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c 42737 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
6532abb6
PB
42738 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
42739 $(TARGET-target-libstdc++-v3))
a7e609d6 42740@endif target-libstdc++-v3
8ecc6504 42741
f0fdfd34
PB
42742
42743
a8a96878
PB
42744
42745
8ec98d6c
NN
42746.PHONY: check-target-libstdc++-v3 maybe-check-target-libstdc++-v3
42747maybe-check-target-libstdc++-v3:
a7e609d6
PB
42748@if target-libstdc++-v3
42749maybe-check-target-libstdc++-v3: check-target-libstdc++-v3
8ecc6504 42750
8ec98d6c 42751check-target-libstdc++-v3:
15b527ca 42752 @: $(MAKE); $(unstage)
5230d454
L
42753 @r=`${PWD_COMMAND}`; export r; \
42754 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 42755 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c 42756 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
63673a5b 42757 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
8ecc6504 42758
a7e609d6 42759@endif target-libstdc++-v3
8ecc6504 42760
8ec98d6c
NN
42761.PHONY: install-target-libstdc++-v3 maybe-install-target-libstdc++-v3
42762maybe-install-target-libstdc++-v3:
a7e609d6
PB
42763@if target-libstdc++-v3
42764maybe-install-target-libstdc++-v3: install-target-libstdc++-v3
70ffc148 42765
8ec98d6c 42766install-target-libstdc++-v3: installdirs
15b527ca 42767 @: $(MAKE); $(unstage)
5230d454
L
42768 @r=`${PWD_COMMAND}`; export r; \
42769 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 42770 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c 42771 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
63673a5b 42772 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
8ecc6504 42773
a7e609d6 42774@endif target-libstdc++-v3
94f860c0 42775
39bbbb69 42776# Other targets (info, dvi, pdf, etc.)
8ecc6504 42777
8ec98d6c
NN
42778.PHONY: maybe-info-target-libstdc++-v3 info-target-libstdc++-v3
42779maybe-info-target-libstdc++-v3:
a7e609d6
PB
42780@if target-libstdc++-v3
42781maybe-info-target-libstdc++-v3: info-target-libstdc++-v3
8ecc6504 42782
8ec98d6c
NN
42783info-target-libstdc++-v3: \
42784 configure-target-libstdc++-v3
15b527ca 42785 @: $(MAKE); $(unstage)
8ec98d6c
NN
42786 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
42787 r=`${PWD_COMMAND}`; export r; \
5230d454 42788 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 42789 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c
NN
42790 echo "Doing info in $(TARGET_SUBDIR)/libstdc++-v3" ; \
42791 for flag in $(EXTRA_TARGET_FLAGS); do \
42792 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42793 done; \
42794 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
42795 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42796 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42797 "RANLIB=$${RANLIB}" \
bffcbe34 42798 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 42799 info) \
8ec98d6c 42800 || exit 1
8ecc6504 42801
a7e609d6 42802@endif target-libstdc++-v3
8ecc6504 42803
8ec98d6c
NN
42804.PHONY: maybe-dvi-target-libstdc++-v3 dvi-target-libstdc++-v3
42805maybe-dvi-target-libstdc++-v3:
a7e609d6
PB
42806@if target-libstdc++-v3
42807maybe-dvi-target-libstdc++-v3: dvi-target-libstdc++-v3
70ffc148 42808
8ec98d6c
NN
42809dvi-target-libstdc++-v3: \
42810 configure-target-libstdc++-v3
15b527ca 42811 @: $(MAKE); $(unstage)
8ec98d6c
NN
42812 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
42813 r=`${PWD_COMMAND}`; export r; \
5230d454 42814 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 42815 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c
NN
42816 echo "Doing dvi in $(TARGET_SUBDIR)/libstdc++-v3" ; \
42817 for flag in $(EXTRA_TARGET_FLAGS); do \
42818 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42819 done; \
42820 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
42821 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42822 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42823 "RANLIB=$${RANLIB}" \
bffcbe34 42824 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 42825 dvi) \
8ec98d6c 42826 || exit 1
8ecc6504 42827
a7e609d6 42828@endif target-libstdc++-v3
8ecc6504 42829
39bbbb69
DD
42830.PHONY: maybe-pdf-target-libstdc++-v3 pdf-target-libstdc++-v3
42831maybe-pdf-target-libstdc++-v3:
42832@if target-libstdc++-v3
42833maybe-pdf-target-libstdc++-v3: pdf-target-libstdc++-v3
42834
42835pdf-target-libstdc++-v3: \
42836 configure-target-libstdc++-v3
42837 @: $(MAKE); $(unstage)
42838 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
42839 r=`${PWD_COMMAND}`; export r; \
42840 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42841 $(RAW_CXX_TARGET_EXPORTS) \
42842 echo "Doing pdf in $(TARGET_SUBDIR)/libstdc++-v3" ; \
42843 for flag in $(EXTRA_TARGET_FLAGS); do \
42844 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42845 done; \
42846 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
42847 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42848 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42849 "RANLIB=$${RANLIB}" \
bffcbe34 42850 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
42851 pdf) \
42852 || exit 1
42853
42854@endif target-libstdc++-v3
42855
b6fb961f
MS
42856.PHONY: maybe-html-target-libstdc++-v3 html-target-libstdc++-v3
42857maybe-html-target-libstdc++-v3:
42858@if target-libstdc++-v3
42859maybe-html-target-libstdc++-v3: html-target-libstdc++-v3
42860
42861html-target-libstdc++-v3: \
42862 configure-target-libstdc++-v3
15b527ca 42863 @: $(MAKE); $(unstage)
b6fb961f
MS
42864 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
42865 r=`${PWD_COMMAND}`; export r; \
42866 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
42867 $(RAW_CXX_TARGET_EXPORTS) \
42868 echo "Doing html in $(TARGET_SUBDIR)/libstdc++-v3" ; \
42869 for flag in $(EXTRA_TARGET_FLAGS); do \
42870 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42871 done; \
42872 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
42873 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42874 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42875 "RANLIB=$${RANLIB}" \
bffcbe34 42876 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
42877 html) \
42878 || exit 1
42879
42880@endif target-libstdc++-v3
42881
8ec98d6c
NN
42882.PHONY: maybe-TAGS-target-libstdc++-v3 TAGS-target-libstdc++-v3
42883maybe-TAGS-target-libstdc++-v3:
a7e609d6
PB
42884@if target-libstdc++-v3
42885maybe-TAGS-target-libstdc++-v3: TAGS-target-libstdc++-v3
8ec98d6c
NN
42886
42887TAGS-target-libstdc++-v3: \
42888 configure-target-libstdc++-v3
15b527ca 42889 @: $(MAKE); $(unstage)
8ec98d6c 42890 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
5230d454
L
42891 r=`${PWD_COMMAND}`; export r; \
42892 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 42893 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c
NN
42894 echo "Doing TAGS in $(TARGET_SUBDIR)/libstdc++-v3" ; \
42895 for flag in $(EXTRA_TARGET_FLAGS); do \
42896 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42897 done; \
42898 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
42899 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42900 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42901 "RANLIB=$${RANLIB}" \
bffcbe34 42902 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 42903 TAGS) \
94f860c0
NN
42904 || exit 1
42905
a7e609d6 42906@endif target-libstdc++-v3
8ecc6504 42907
8ec98d6c
NN
42908.PHONY: maybe-install-info-target-libstdc++-v3 install-info-target-libstdc++-v3
42909maybe-install-info-target-libstdc++-v3:
a7e609d6
PB
42910@if target-libstdc++-v3
42911maybe-install-info-target-libstdc++-v3: install-info-target-libstdc++-v3
8ecc6504 42912
8ec98d6c
NN
42913install-info-target-libstdc++-v3: \
42914 configure-target-libstdc++-v3 \
42915 info-target-libstdc++-v3
15b527ca 42916 @: $(MAKE); $(unstage)
8ec98d6c
NN
42917 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
42918 r=`${PWD_COMMAND}`; export r; \
5230d454 42919 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 42920 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c
NN
42921 echo "Doing install-info in $(TARGET_SUBDIR)/libstdc++-v3" ; \
42922 for flag in $(EXTRA_TARGET_FLAGS); do \
42923 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42924 done; \
42925 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
42926 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42927 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42928 "RANLIB=$${RANLIB}" \
bffcbe34 42929 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 42930 install-info) \
8ec98d6c 42931 || exit 1
8ecc6504 42932
a7e609d6 42933@endif target-libstdc++-v3
8ecc6504 42934
d4954b6d
DD
42935.PHONY: maybe-install-pdf-target-libstdc++-v3 install-pdf-target-libstdc++-v3
42936maybe-install-pdf-target-libstdc++-v3:
42937@if target-libstdc++-v3
42938maybe-install-pdf-target-libstdc++-v3: install-pdf-target-libstdc++-v3
42939
42940install-pdf-target-libstdc++-v3: \
42941 configure-target-libstdc++-v3 \
42942 pdf-target-libstdc++-v3
42943 @: $(MAKE); $(unstage)
42944 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
42945 r=`${PWD_COMMAND}`; export r; \
42946 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42947 $(RAW_CXX_TARGET_EXPORTS) \
42948 echo "Doing install-pdf in $(TARGET_SUBDIR)/libstdc++-v3" ; \
42949 for flag in $(EXTRA_TARGET_FLAGS); do \
42950 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42951 done; \
42952 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
42953 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42954 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42955 "RANLIB=$${RANLIB}" \
bffcbe34 42956 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
42957 install-pdf) \
42958 || exit 1
42959
42960@endif target-libstdc++-v3
42961
83c9add4
CD
42962.PHONY: maybe-install-html-target-libstdc++-v3 install-html-target-libstdc++-v3
42963maybe-install-html-target-libstdc++-v3:
42964@if target-libstdc++-v3
42965maybe-install-html-target-libstdc++-v3: install-html-target-libstdc++-v3
42966
42967install-html-target-libstdc++-v3: \
42968 configure-target-libstdc++-v3 \
42969 html-target-libstdc++-v3
42970 @: $(MAKE); $(unstage)
42971 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
42972 r=`${PWD_COMMAND}`; export r; \
42973 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42974 $(RAW_CXX_TARGET_EXPORTS) \
42975 echo "Doing install-html in $(TARGET_SUBDIR)/libstdc++-v3" ; \
42976 for flag in $(EXTRA_TARGET_FLAGS); do \
42977 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42978 done; \
42979 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
42980 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42981 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42982 "RANLIB=$${RANLIB}" \
bffcbe34 42983 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
42984 install-html) \
42985 || exit 1
42986
42987@endif target-libstdc++-v3
42988
8ec98d6c
NN
42989.PHONY: maybe-installcheck-target-libstdc++-v3 installcheck-target-libstdc++-v3
42990maybe-installcheck-target-libstdc++-v3:
a7e609d6
PB
42991@if target-libstdc++-v3
42992maybe-installcheck-target-libstdc++-v3: installcheck-target-libstdc++-v3
70ffc148 42993
8ec98d6c
NN
42994installcheck-target-libstdc++-v3: \
42995 configure-target-libstdc++-v3
15b527ca 42996 @: $(MAKE); $(unstage)
8ec98d6c
NN
42997 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
42998 r=`${PWD_COMMAND}`; export r; \
5230d454 42999 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 43000 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c
NN
43001 echo "Doing installcheck in $(TARGET_SUBDIR)/libstdc++-v3" ; \
43002 for flag in $(EXTRA_TARGET_FLAGS); do \
43003 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43004 done; \
43005 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
43006 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43007 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43008 "RANLIB=$${RANLIB}" \
bffcbe34 43009 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 43010 installcheck) \
8ec98d6c 43011 || exit 1
8ecc6504 43012
a7e609d6 43013@endif target-libstdc++-v3
8ecc6504 43014
8ec98d6c
NN
43015.PHONY: maybe-mostlyclean-target-libstdc++-v3 mostlyclean-target-libstdc++-v3
43016maybe-mostlyclean-target-libstdc++-v3:
a7e609d6
PB
43017@if target-libstdc++-v3
43018maybe-mostlyclean-target-libstdc++-v3: mostlyclean-target-libstdc++-v3
8ec98d6c
NN
43019
43020mostlyclean-target-libstdc++-v3:
15b527ca 43021 @: $(MAKE); $(unstage)
8ec98d6c 43022 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
5230d454
L
43023 r=`${PWD_COMMAND}`; export r; \
43024 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 43025 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c
NN
43026 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libstdc++-v3" ; \
43027 for flag in $(EXTRA_TARGET_FLAGS); do \
43028 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43029 done; \
43030 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
43031 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43032 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43033 "RANLIB=$${RANLIB}" \
bffcbe34 43034 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 43035 mostlyclean) \
94f860c0
NN
43036 || exit 1
43037
a7e609d6 43038@endif target-libstdc++-v3
8ec98d6c
NN
43039
43040.PHONY: maybe-clean-target-libstdc++-v3 clean-target-libstdc++-v3
43041maybe-clean-target-libstdc++-v3:
a7e609d6
PB
43042@if target-libstdc++-v3
43043maybe-clean-target-libstdc++-v3: clean-target-libstdc++-v3
8ec98d6c
NN
43044
43045clean-target-libstdc++-v3:
15b527ca 43046 @: $(MAKE); $(unstage)
8ec98d6c
NN
43047 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
43048 r=`${PWD_COMMAND}`; export r; \
5230d454 43049 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 43050 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c
NN
43051 echo "Doing clean in $(TARGET_SUBDIR)/libstdc++-v3" ; \
43052 for flag in $(EXTRA_TARGET_FLAGS); do \
43053 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43054 done; \
43055 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
43056 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43057 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43058 "RANLIB=$${RANLIB}" \
bffcbe34 43059 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 43060 clean) \
8ec98d6c 43061 || exit 1
8ecc6504 43062
a7e609d6 43063@endif target-libstdc++-v3
8ecc6504 43064
8ec98d6c
NN
43065.PHONY: maybe-distclean-target-libstdc++-v3 distclean-target-libstdc++-v3
43066maybe-distclean-target-libstdc++-v3:
a7e609d6
PB
43067@if target-libstdc++-v3
43068maybe-distclean-target-libstdc++-v3: distclean-target-libstdc++-v3
8ec98d6c
NN
43069
43070distclean-target-libstdc++-v3:
15b527ca 43071 @: $(MAKE); $(unstage)
8ec98d6c
NN
43072 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
43073 r=`${PWD_COMMAND}`; export r; \
5230d454 43074 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 43075 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c
NN
43076 echo "Doing distclean in $(TARGET_SUBDIR)/libstdc++-v3" ; \
43077 for flag in $(EXTRA_TARGET_FLAGS); do \
43078 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43079 done; \
43080 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
43081 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43082 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43083 "RANLIB=$${RANLIB}" \
bffcbe34 43084 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 43085 distclean) \
8ec98d6c 43086 || exit 1
8ecc6504 43087
a7e609d6 43088@endif target-libstdc++-v3
8ecc6504 43089
8ec98d6c
NN
43090.PHONY: maybe-maintainer-clean-target-libstdc++-v3 maintainer-clean-target-libstdc++-v3
43091maybe-maintainer-clean-target-libstdc++-v3:
a7e609d6
PB
43092@if target-libstdc++-v3
43093maybe-maintainer-clean-target-libstdc++-v3: maintainer-clean-target-libstdc++-v3
70ffc148 43094
8ec98d6c 43095maintainer-clean-target-libstdc++-v3:
15b527ca 43096 @: $(MAKE); $(unstage)
8ec98d6c
NN
43097 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
43098 r=`${PWD_COMMAND}`; export r; \
5230d454 43099 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 43100 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c
NN
43101 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libstdc++-v3" ; \
43102 for flag in $(EXTRA_TARGET_FLAGS); do \
43103 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43104 done; \
43105 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
43106 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43107 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43108 "RANLIB=$${RANLIB}" \
bffcbe34 43109 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 43110 maintainer-clean) \
8ec98d6c 43111 || exit 1
8ecc6504 43112
a7e609d6 43113@endif target-libstdc++-v3
8ecc6504 43114
8ec98d6c 43115
8ec98d6c 43116
f0fdfd34
PB
43117
43118
43119.PHONY: configure-target-libmudflap maybe-configure-target-libmudflap
43120maybe-configure-target-libmudflap:
e1e5148c
CD
43121@if gcc-bootstrap
43122configure-target-libmudflap: stage_current
43123@endif gcc-bootstrap
f0fdfd34
PB
43124@if target-libmudflap
43125maybe-configure-target-libmudflap: configure-target-libmudflap
ec92c4d6 43126configure-target-libmudflap:
15b527ca
PB
43127 @: $(MAKE); $(unstage)
43128 @r=`${PWD_COMMAND}`; export r; \
43129 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43130 echo "Checking multilib configuration for libmudflap..."; \
43131 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmudflap ; \
43132 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmudflap/multilib.tmp 2> /dev/null ; \
43133 if test -r $(TARGET_SUBDIR)/libmudflap/multilib.out; then \
43134 if cmp -s $(TARGET_SUBDIR)/libmudflap/multilib.tmp $(TARGET_SUBDIR)/libmudflap/multilib.out; then \
43135 rm -f $(TARGET_SUBDIR)/libmudflap/multilib.tmp; \
43136 else \
43137 rm -f $(TARGET_SUBDIR)/libmudflap/Makefile; \
43138 mv $(TARGET_SUBDIR)/libmudflap/multilib.tmp $(TARGET_SUBDIR)/libmudflap/multilib.out; \
43139 fi; \
43140 else \
43141 mv $(TARGET_SUBDIR)/libmudflap/multilib.tmp $(TARGET_SUBDIR)/libmudflap/multilib.out; \
ec92c4d6
PB
43142 fi; \
43143 test ! -f $(TARGET_SUBDIR)/libmudflap/Makefile || exit 0; \
cb2333e8 43144 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmudflap ; \
a675b75a 43145 $(NORMAL_TARGET_EXPORTS) \
cb2333e8
DD
43146 echo Configuring in $(TARGET_SUBDIR)/libmudflap; \
43147 cd "$(TARGET_SUBDIR)/libmudflap" || exit 1; \
94f860c0 43148 case $(srcdir) in \
7fc2ca22
PB
43149 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
43150 *) topdir=`echo $(TARGET_SUBDIR)/libmudflap/ | \
43151 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 43152 esac; \
7fc2ca22
PB
43153 srcdiroption="--srcdir=$${topdir}/libmudflap"; \
43154 libsrcdir="$$s/libmudflap"; \
8ec98d6c
NN
43155 rm -f no-such-file || : ; \
43156 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
43157 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
43158 --target=${target_alias} $${srcdiroption} \
94f860c0 43159 || exit 1
a7e609d6 43160@endif target-libmudflap
94f860c0 43161
f0fdfd34
PB
43162
43163
a8a96878
PB
43164
43165
cb2333e8
DD
43166.PHONY: all-target-libmudflap maybe-all-target-libmudflap
43167maybe-all-target-libmudflap:
e1e5148c
CD
43168@if gcc-bootstrap
43169all-target-libmudflap: stage_current
43170@endif gcc-bootstrap
a7e609d6 43171@if target-libmudflap
6a19fd82 43172TARGET-target-libmudflap=all
a7e609d6 43173maybe-all-target-libmudflap: all-target-libmudflap
cb2333e8 43174all-target-libmudflap: configure-target-libmudflap
15b527ca 43175 @: $(MAKE); $(unstage)
5230d454
L
43176 @r=`${PWD_COMMAND}`; export r; \
43177 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 43178 $(NORMAL_TARGET_EXPORTS) \
cb2333e8 43179 (cd $(TARGET_SUBDIR)/libmudflap && \
6532abb6
PB
43180 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
43181 $(TARGET-target-libmudflap))
a7e609d6 43182@endif target-libmudflap
8ecc6504 43183
f0fdfd34
PB
43184
43185
a8a96878
PB
43186
43187
cb2333e8
DD
43188.PHONY: check-target-libmudflap maybe-check-target-libmudflap
43189maybe-check-target-libmudflap:
a7e609d6
PB
43190@if target-libmudflap
43191maybe-check-target-libmudflap: check-target-libmudflap
70ffc148 43192
cb2333e8 43193check-target-libmudflap:
15b527ca 43194 @: $(MAKE); $(unstage)
cb2333e8
DD
43195 @r=`${PWD_COMMAND}`; export r; \
43196 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 43197 $(NORMAL_TARGET_EXPORTS) \
cb2333e8 43198 (cd $(TARGET_SUBDIR)/libmudflap && \
63673a5b 43199 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
cb2333e8 43200
a7e609d6 43201@endif target-libmudflap
cb2333e8
DD
43202
43203.PHONY: install-target-libmudflap maybe-install-target-libmudflap
43204maybe-install-target-libmudflap:
a7e609d6
PB
43205@if target-libmudflap
43206maybe-install-target-libmudflap: install-target-libmudflap
cb2333e8
DD
43207
43208install-target-libmudflap: installdirs
15b527ca 43209 @: $(MAKE); $(unstage)
cb2333e8
DD
43210 @r=`${PWD_COMMAND}`; export r; \
43211 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 43212 $(NORMAL_TARGET_EXPORTS) \
cb2333e8 43213 (cd $(TARGET_SUBDIR)/libmudflap && \
63673a5b 43214 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
cb2333e8 43215
a7e609d6 43216@endif target-libmudflap
cb2333e8 43217
39bbbb69 43218# Other targets (info, dvi, pdf, etc.)
cb2333e8
DD
43219
43220.PHONY: maybe-info-target-libmudflap info-target-libmudflap
43221maybe-info-target-libmudflap:
a7e609d6
PB
43222@if target-libmudflap
43223maybe-info-target-libmudflap: info-target-libmudflap
cb2333e8
DD
43224
43225info-target-libmudflap: \
43226 configure-target-libmudflap
15b527ca 43227 @: $(MAKE); $(unstage)
cb2333e8
DD
43228 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
43229 r=`${PWD_COMMAND}`; export r; \
43230 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 43231 $(NORMAL_TARGET_EXPORTS) \
cb2333e8
DD
43232 echo "Doing info in $(TARGET_SUBDIR)/libmudflap" ; \
43233 for flag in $(EXTRA_TARGET_FLAGS); do \
43234 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43235 done; \
43236 (cd $(TARGET_SUBDIR)/libmudflap && \
43237 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43238 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43239 "RANLIB=$${RANLIB}" \
bffcbe34 43240 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 43241 info) \
cb2333e8
DD
43242 || exit 1
43243
a7e609d6 43244@endif target-libmudflap
cb2333e8
DD
43245
43246.PHONY: maybe-dvi-target-libmudflap dvi-target-libmudflap
43247maybe-dvi-target-libmudflap:
a7e609d6
PB
43248@if target-libmudflap
43249maybe-dvi-target-libmudflap: dvi-target-libmudflap
cb2333e8
DD
43250
43251dvi-target-libmudflap: \
43252 configure-target-libmudflap
15b527ca 43253 @: $(MAKE); $(unstage)
cb2333e8
DD
43254 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
43255 r=`${PWD_COMMAND}`; export r; \
43256 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 43257 $(NORMAL_TARGET_EXPORTS) \
cb2333e8
DD
43258 echo "Doing dvi in $(TARGET_SUBDIR)/libmudflap" ; \
43259 for flag in $(EXTRA_TARGET_FLAGS); do \
43260 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43261 done; \
43262 (cd $(TARGET_SUBDIR)/libmudflap && \
43263 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43264 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43265 "RANLIB=$${RANLIB}" \
bffcbe34 43266 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 43267 dvi) \
cb2333e8
DD
43268 || exit 1
43269
a7e609d6 43270@endif target-libmudflap
cb2333e8 43271
39bbbb69
DD
43272.PHONY: maybe-pdf-target-libmudflap pdf-target-libmudflap
43273maybe-pdf-target-libmudflap:
43274@if target-libmudflap
43275maybe-pdf-target-libmudflap: pdf-target-libmudflap
43276
43277pdf-target-libmudflap: \
43278 configure-target-libmudflap
43279 @: $(MAKE); $(unstage)
43280 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
43281 r=`${PWD_COMMAND}`; export r; \
43282 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43283 $(NORMAL_TARGET_EXPORTS) \
43284 echo "Doing pdf in $(TARGET_SUBDIR)/libmudflap" ; \
43285 for flag in $(EXTRA_TARGET_FLAGS); do \
43286 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43287 done; \
43288 (cd $(TARGET_SUBDIR)/libmudflap && \
43289 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43290 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43291 "RANLIB=$${RANLIB}" \
bffcbe34 43292 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
43293 pdf) \
43294 || exit 1
43295
43296@endif target-libmudflap
43297
b6fb961f
MS
43298.PHONY: maybe-html-target-libmudflap html-target-libmudflap
43299maybe-html-target-libmudflap:
43300@if target-libmudflap
43301maybe-html-target-libmudflap: html-target-libmudflap
43302
43303html-target-libmudflap: \
43304 configure-target-libmudflap
15b527ca 43305 @: $(MAKE); $(unstage)
b6fb961f
MS
43306 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
43307 r=`${PWD_COMMAND}`; export r; \
43308 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
43309 $(NORMAL_TARGET_EXPORTS) \
43310 echo "Doing html in $(TARGET_SUBDIR)/libmudflap" ; \
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)/libmudflap && \
43315 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43316 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43317 "RANLIB=$${RANLIB}" \
bffcbe34 43318 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
43319 html) \
43320 || exit 1
43321
43322@endif target-libmudflap
43323
cb2333e8
DD
43324.PHONY: maybe-TAGS-target-libmudflap TAGS-target-libmudflap
43325maybe-TAGS-target-libmudflap:
a7e609d6
PB
43326@if target-libmudflap
43327maybe-TAGS-target-libmudflap: TAGS-target-libmudflap
cb2333e8
DD
43328
43329TAGS-target-libmudflap: \
43330 configure-target-libmudflap
15b527ca 43331 @: $(MAKE); $(unstage)
cb2333e8
DD
43332 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
43333 r=`${PWD_COMMAND}`; export r; \
43334 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 43335 $(NORMAL_TARGET_EXPORTS) \
cb2333e8
DD
43336 echo "Doing TAGS in $(TARGET_SUBDIR)/libmudflap" ; \
43337 for flag in $(EXTRA_TARGET_FLAGS); do \
43338 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43339 done; \
43340 (cd $(TARGET_SUBDIR)/libmudflap && \
43341 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43342 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43343 "RANLIB=$${RANLIB}" \
bffcbe34 43344 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 43345 TAGS) \
cb2333e8
DD
43346 || exit 1
43347
a7e609d6 43348@endif target-libmudflap
cb2333e8
DD
43349
43350.PHONY: maybe-install-info-target-libmudflap install-info-target-libmudflap
43351maybe-install-info-target-libmudflap:
a7e609d6
PB
43352@if target-libmudflap
43353maybe-install-info-target-libmudflap: install-info-target-libmudflap
cb2333e8
DD
43354
43355install-info-target-libmudflap: \
43356 configure-target-libmudflap \
43357 info-target-libmudflap
15b527ca 43358 @: $(MAKE); $(unstage)
cb2333e8
DD
43359 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
43360 r=`${PWD_COMMAND}`; export r; \
43361 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 43362 $(NORMAL_TARGET_EXPORTS) \
cb2333e8
DD
43363 echo "Doing install-info in $(TARGET_SUBDIR)/libmudflap" ; \
43364 for flag in $(EXTRA_TARGET_FLAGS); do \
43365 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43366 done; \
43367 (cd $(TARGET_SUBDIR)/libmudflap && \
43368 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43369 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43370 "RANLIB=$${RANLIB}" \
bffcbe34 43371 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 43372 install-info) \
cb2333e8
DD
43373 || exit 1
43374
a7e609d6 43375@endif target-libmudflap
cb2333e8 43376
d4954b6d
DD
43377.PHONY: maybe-install-pdf-target-libmudflap install-pdf-target-libmudflap
43378maybe-install-pdf-target-libmudflap:
43379@if target-libmudflap
43380maybe-install-pdf-target-libmudflap: install-pdf-target-libmudflap
43381
43382install-pdf-target-libmudflap: \
43383 configure-target-libmudflap \
43384 pdf-target-libmudflap
43385 @: $(MAKE); $(unstage)
43386 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
43387 r=`${PWD_COMMAND}`; export r; \
43388 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43389 $(NORMAL_TARGET_EXPORTS) \
43390 echo "Doing install-pdf in $(TARGET_SUBDIR)/libmudflap" ; \
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)/libmudflap && \
43395 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43396 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43397 "RANLIB=$${RANLIB}" \
bffcbe34 43398 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
43399 install-pdf) \
43400 || exit 1
43401
43402@endif target-libmudflap
43403
83c9add4
CD
43404.PHONY: maybe-install-html-target-libmudflap install-html-target-libmudflap
43405maybe-install-html-target-libmudflap:
43406@if target-libmudflap
43407maybe-install-html-target-libmudflap: install-html-target-libmudflap
43408
43409install-html-target-libmudflap: \
43410 configure-target-libmudflap \
43411 html-target-libmudflap
43412 @: $(MAKE); $(unstage)
43413 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
43414 r=`${PWD_COMMAND}`; export r; \
43415 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43416 $(NORMAL_TARGET_EXPORTS) \
43417 echo "Doing install-html in $(TARGET_SUBDIR)/libmudflap" ; \
43418 for flag in $(EXTRA_TARGET_FLAGS); do \
43419 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43420 done; \
43421 (cd $(TARGET_SUBDIR)/libmudflap && \
43422 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43423 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43424 "RANLIB=$${RANLIB}" \
bffcbe34 43425 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
43426 install-html) \
43427 || exit 1
43428
43429@endif target-libmudflap
43430
cb2333e8
DD
43431.PHONY: maybe-installcheck-target-libmudflap installcheck-target-libmudflap
43432maybe-installcheck-target-libmudflap:
a7e609d6
PB
43433@if target-libmudflap
43434maybe-installcheck-target-libmudflap: installcheck-target-libmudflap
cb2333e8
DD
43435
43436installcheck-target-libmudflap: \
43437 configure-target-libmudflap
15b527ca 43438 @: $(MAKE); $(unstage)
cb2333e8
DD
43439 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
43440 r=`${PWD_COMMAND}`; export r; \
43441 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 43442 $(NORMAL_TARGET_EXPORTS) \
cb2333e8
DD
43443 echo "Doing installcheck in $(TARGET_SUBDIR)/libmudflap" ; \
43444 for flag in $(EXTRA_TARGET_FLAGS); do \
43445 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43446 done; \
43447 (cd $(TARGET_SUBDIR)/libmudflap && \
43448 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43449 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43450 "RANLIB=$${RANLIB}" \
bffcbe34 43451 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 43452 installcheck) \
cb2333e8
DD
43453 || exit 1
43454
a7e609d6 43455@endif target-libmudflap
cb2333e8
DD
43456
43457.PHONY: maybe-mostlyclean-target-libmudflap mostlyclean-target-libmudflap
43458maybe-mostlyclean-target-libmudflap:
a7e609d6
PB
43459@if target-libmudflap
43460maybe-mostlyclean-target-libmudflap: mostlyclean-target-libmudflap
cb2333e8
DD
43461
43462mostlyclean-target-libmudflap:
15b527ca 43463 @: $(MAKE); $(unstage)
cb2333e8
DD
43464 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
43465 r=`${PWD_COMMAND}`; export r; \
43466 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 43467 $(NORMAL_TARGET_EXPORTS) \
cb2333e8
DD
43468 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libmudflap" ; \
43469 for flag in $(EXTRA_TARGET_FLAGS); do \
43470 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43471 done; \
43472 (cd $(TARGET_SUBDIR)/libmudflap && \
43473 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43474 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43475 "RANLIB=$${RANLIB}" \
bffcbe34 43476 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 43477 mostlyclean) \
cb2333e8
DD
43478 || exit 1
43479
a7e609d6 43480@endif target-libmudflap
cb2333e8
DD
43481
43482.PHONY: maybe-clean-target-libmudflap clean-target-libmudflap
43483maybe-clean-target-libmudflap:
a7e609d6
PB
43484@if target-libmudflap
43485maybe-clean-target-libmudflap: clean-target-libmudflap
cb2333e8
DD
43486
43487clean-target-libmudflap:
15b527ca 43488 @: $(MAKE); $(unstage)
cb2333e8
DD
43489 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
43490 r=`${PWD_COMMAND}`; export r; \
43491 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 43492 $(NORMAL_TARGET_EXPORTS) \
cb2333e8
DD
43493 echo "Doing clean in $(TARGET_SUBDIR)/libmudflap" ; \
43494 for flag in $(EXTRA_TARGET_FLAGS); do \
43495 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43496 done; \
43497 (cd $(TARGET_SUBDIR)/libmudflap && \
43498 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43499 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43500 "RANLIB=$${RANLIB}" \
bffcbe34 43501 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 43502 clean) \
cb2333e8
DD
43503 || exit 1
43504
a7e609d6 43505@endif target-libmudflap
cb2333e8
DD
43506
43507.PHONY: maybe-distclean-target-libmudflap distclean-target-libmudflap
43508maybe-distclean-target-libmudflap:
a7e609d6
PB
43509@if target-libmudflap
43510maybe-distclean-target-libmudflap: distclean-target-libmudflap
cb2333e8
DD
43511
43512distclean-target-libmudflap:
15b527ca 43513 @: $(MAKE); $(unstage)
cb2333e8
DD
43514 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
43515 r=`${PWD_COMMAND}`; export r; \
43516 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 43517 $(NORMAL_TARGET_EXPORTS) \
cb2333e8
DD
43518 echo "Doing distclean in $(TARGET_SUBDIR)/libmudflap" ; \
43519 for flag in $(EXTRA_TARGET_FLAGS); do \
43520 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43521 done; \
43522 (cd $(TARGET_SUBDIR)/libmudflap && \
43523 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43524 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43525 "RANLIB=$${RANLIB}" \
bffcbe34 43526 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 43527 distclean) \
cb2333e8
DD
43528 || exit 1
43529
a7e609d6 43530@endif target-libmudflap
cb2333e8
DD
43531
43532.PHONY: maybe-maintainer-clean-target-libmudflap maintainer-clean-target-libmudflap
43533maybe-maintainer-clean-target-libmudflap:
a7e609d6
PB
43534@if target-libmudflap
43535maybe-maintainer-clean-target-libmudflap: maintainer-clean-target-libmudflap
cb2333e8
DD
43536
43537maintainer-clean-target-libmudflap:
15b527ca 43538 @: $(MAKE); $(unstage)
cb2333e8
DD
43539 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
43540 r=`${PWD_COMMAND}`; export r; \
43541 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 43542 $(NORMAL_TARGET_EXPORTS) \
cb2333e8
DD
43543 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libmudflap" ; \
43544 for flag in $(EXTRA_TARGET_FLAGS); do \
43545 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43546 done; \
43547 (cd $(TARGET_SUBDIR)/libmudflap && \
43548 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43549 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43550 "RANLIB=$${RANLIB}" \
bffcbe34 43551 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 43552 maintainer-clean) \
cb2333e8
DD
43553 || exit 1
43554
a7e609d6 43555@endif target-libmudflap
cb2333e8
DD
43556
43557
cb2333e8 43558
4c3e061c
PB
43559
43560
43561.PHONY: configure-target-libssp maybe-configure-target-libssp
43562maybe-configure-target-libssp:
e1e5148c
CD
43563@if gcc-bootstrap
43564configure-target-libssp: stage_current
43565@endif gcc-bootstrap
4c3e061c
PB
43566@if target-libssp
43567maybe-configure-target-libssp: configure-target-libssp
ec92c4d6 43568configure-target-libssp:
15b527ca
PB
43569 @: $(MAKE); $(unstage)
43570 @r=`${PWD_COMMAND}`; export r; \
43571 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43572 echo "Checking multilib configuration for libssp..."; \
43573 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libssp ; \
43574 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libssp/multilib.tmp 2> /dev/null ; \
43575 if test -r $(TARGET_SUBDIR)/libssp/multilib.out; then \
43576 if cmp -s $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; then \
43577 rm -f $(TARGET_SUBDIR)/libssp/multilib.tmp; \
43578 else \
43579 rm -f $(TARGET_SUBDIR)/libssp/Makefile; \
43580 mv $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; \
43581 fi; \
43582 else \
43583 mv $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; \
ec92c4d6
PB
43584 fi; \
43585 test ! -f $(TARGET_SUBDIR)/libssp/Makefile || exit 0; \
4c3e061c 43586 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libssp ; \
4c3e061c
PB
43587 $(NORMAL_TARGET_EXPORTS) \
43588 echo Configuring in $(TARGET_SUBDIR)/libssp; \
43589 cd "$(TARGET_SUBDIR)/libssp" || exit 1; \
43590 case $(srcdir) in \
43591 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
43592 *) topdir=`echo $(TARGET_SUBDIR)/libssp/ | \
43593 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
43594 esac; \
43595 srcdiroption="--srcdir=$${topdir}/libssp"; \
43596 libsrcdir="$$s/libssp"; \
43597 rm -f no-such-file || : ; \
43598 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
43599 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
43600 --target=${target_alias} $${srcdiroption} \
4c3e061c
PB
43601 || exit 1
43602@endif target-libssp
43603
43604
43605
43606
43607
43608.PHONY: all-target-libssp maybe-all-target-libssp
43609maybe-all-target-libssp:
e1e5148c
CD
43610@if gcc-bootstrap
43611all-target-libssp: stage_current
43612@endif gcc-bootstrap
4c3e061c
PB
43613@if target-libssp
43614TARGET-target-libssp=all
43615maybe-all-target-libssp: all-target-libssp
43616all-target-libssp: configure-target-libssp
15b527ca 43617 @: $(MAKE); $(unstage)
4c3e061c
PB
43618 @r=`${PWD_COMMAND}`; export r; \
43619 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43620 $(NORMAL_TARGET_EXPORTS) \
43621 (cd $(TARGET_SUBDIR)/libssp && \
6532abb6
PB
43622 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
43623 $(TARGET-target-libssp))
4c3e061c
PB
43624@endif target-libssp
43625
43626
43627
43628
43629
43630.PHONY: check-target-libssp maybe-check-target-libssp
43631maybe-check-target-libssp:
43632@if target-libssp
43633maybe-check-target-libssp: check-target-libssp
43634
43635check-target-libssp:
15b527ca 43636 @: $(MAKE); $(unstage)
4c3e061c
PB
43637 @r=`${PWD_COMMAND}`; export r; \
43638 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43639 $(NORMAL_TARGET_EXPORTS) \
43640 (cd $(TARGET_SUBDIR)/libssp && \
43641 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
43642
43643@endif target-libssp
43644
43645.PHONY: install-target-libssp maybe-install-target-libssp
43646maybe-install-target-libssp:
43647@if target-libssp
43648maybe-install-target-libssp: install-target-libssp
43649
43650install-target-libssp: installdirs
15b527ca 43651 @: $(MAKE); $(unstage)
4c3e061c
PB
43652 @r=`${PWD_COMMAND}`; export r; \
43653 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43654 $(NORMAL_TARGET_EXPORTS) \
43655 (cd $(TARGET_SUBDIR)/libssp && \
43656 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
43657
43658@endif target-libssp
43659
39bbbb69 43660# Other targets (info, dvi, pdf, etc.)
4c3e061c
PB
43661
43662.PHONY: maybe-info-target-libssp info-target-libssp
43663maybe-info-target-libssp:
43664@if target-libssp
43665maybe-info-target-libssp: info-target-libssp
43666
43667info-target-libssp: \
43668 configure-target-libssp
15b527ca 43669 @: $(MAKE); $(unstage)
4c3e061c
PB
43670 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
43671 r=`${PWD_COMMAND}`; export r; \
43672 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43673 $(NORMAL_TARGET_EXPORTS) \
43674 echo "Doing info in $(TARGET_SUBDIR)/libssp" ; \
43675 for flag in $(EXTRA_TARGET_FLAGS); do \
43676 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43677 done; \
43678 (cd $(TARGET_SUBDIR)/libssp && \
43679 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43680 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43681 "RANLIB=$${RANLIB}" \
bffcbe34 43682 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4c3e061c
PB
43683 info) \
43684 || exit 1
43685
43686@endif target-libssp
43687
43688.PHONY: maybe-dvi-target-libssp dvi-target-libssp
43689maybe-dvi-target-libssp:
43690@if target-libssp
43691maybe-dvi-target-libssp: dvi-target-libssp
43692
43693dvi-target-libssp: \
43694 configure-target-libssp
15b527ca 43695 @: $(MAKE); $(unstage)
4c3e061c
PB
43696 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
43697 r=`${PWD_COMMAND}`; export r; \
43698 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43699 $(NORMAL_TARGET_EXPORTS) \
43700 echo "Doing dvi in $(TARGET_SUBDIR)/libssp" ; \
43701 for flag in $(EXTRA_TARGET_FLAGS); do \
43702 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43703 done; \
43704 (cd $(TARGET_SUBDIR)/libssp && \
43705 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43706 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43707 "RANLIB=$${RANLIB}" \
bffcbe34 43708 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4c3e061c
PB
43709 dvi) \
43710 || exit 1
43711
43712@endif target-libssp
43713
39bbbb69
DD
43714.PHONY: maybe-pdf-target-libssp pdf-target-libssp
43715maybe-pdf-target-libssp:
43716@if target-libssp
43717maybe-pdf-target-libssp: pdf-target-libssp
43718
43719pdf-target-libssp: \
43720 configure-target-libssp
43721 @: $(MAKE); $(unstage)
43722 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
43723 r=`${PWD_COMMAND}`; export r; \
43724 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43725 $(NORMAL_TARGET_EXPORTS) \
43726 echo "Doing pdf in $(TARGET_SUBDIR)/libssp" ; \
43727 for flag in $(EXTRA_TARGET_FLAGS); do \
43728 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43729 done; \
43730 (cd $(TARGET_SUBDIR)/libssp && \
43731 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43732 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43733 "RANLIB=$${RANLIB}" \
bffcbe34 43734 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
43735 pdf) \
43736 || exit 1
43737
43738@endif target-libssp
43739
4c3e061c
PB
43740.PHONY: maybe-html-target-libssp html-target-libssp
43741maybe-html-target-libssp:
43742@if target-libssp
43743maybe-html-target-libssp: html-target-libssp
43744
43745html-target-libssp: \
43746 configure-target-libssp
15b527ca 43747 @: $(MAKE); $(unstage)
4c3e061c
PB
43748 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
43749 r=`${PWD_COMMAND}`; export r; \
43750 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43751 $(NORMAL_TARGET_EXPORTS) \
43752 echo "Doing html in $(TARGET_SUBDIR)/libssp" ; \
43753 for flag in $(EXTRA_TARGET_FLAGS); do \
43754 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43755 done; \
43756 (cd $(TARGET_SUBDIR)/libssp && \
43757 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43758 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43759 "RANLIB=$${RANLIB}" \
bffcbe34 43760 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4c3e061c
PB
43761 html) \
43762 || exit 1
43763
43764@endif target-libssp
43765
43766.PHONY: maybe-TAGS-target-libssp TAGS-target-libssp
43767maybe-TAGS-target-libssp:
43768@if target-libssp
43769maybe-TAGS-target-libssp: TAGS-target-libssp
43770
43771TAGS-target-libssp: \
43772 configure-target-libssp
15b527ca 43773 @: $(MAKE); $(unstage)
4c3e061c
PB
43774 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
43775 r=`${PWD_COMMAND}`; export r; \
43776 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43777 $(NORMAL_TARGET_EXPORTS) \
43778 echo "Doing TAGS in $(TARGET_SUBDIR)/libssp" ; \
43779 for flag in $(EXTRA_TARGET_FLAGS); do \
43780 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43781 done; \
43782 (cd $(TARGET_SUBDIR)/libssp && \
43783 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43784 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43785 "RANLIB=$${RANLIB}" \
bffcbe34 43786 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4c3e061c
PB
43787 TAGS) \
43788 || exit 1
43789
43790@endif target-libssp
43791
43792.PHONY: maybe-install-info-target-libssp install-info-target-libssp
43793maybe-install-info-target-libssp:
43794@if target-libssp
43795maybe-install-info-target-libssp: install-info-target-libssp
43796
43797install-info-target-libssp: \
43798 configure-target-libssp \
43799 info-target-libssp
15b527ca 43800 @: $(MAKE); $(unstage)
4c3e061c
PB
43801 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
43802 r=`${PWD_COMMAND}`; export r; \
43803 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43804 $(NORMAL_TARGET_EXPORTS) \
43805 echo "Doing install-info in $(TARGET_SUBDIR)/libssp" ; \
43806 for flag in $(EXTRA_TARGET_FLAGS); do \
43807 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43808 done; \
43809 (cd $(TARGET_SUBDIR)/libssp && \
43810 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43811 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43812 "RANLIB=$${RANLIB}" \
bffcbe34 43813 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4c3e061c
PB
43814 install-info) \
43815 || exit 1
43816
43817@endif target-libssp
43818
d4954b6d
DD
43819.PHONY: maybe-install-pdf-target-libssp install-pdf-target-libssp
43820maybe-install-pdf-target-libssp:
43821@if target-libssp
43822maybe-install-pdf-target-libssp: install-pdf-target-libssp
43823
43824install-pdf-target-libssp: \
43825 configure-target-libssp \
43826 pdf-target-libssp
43827 @: $(MAKE); $(unstage)
43828 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
43829 r=`${PWD_COMMAND}`; export r; \
43830 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43831 $(NORMAL_TARGET_EXPORTS) \
43832 echo "Doing install-pdf in $(TARGET_SUBDIR)/libssp" ; \
43833 for flag in $(EXTRA_TARGET_FLAGS); do \
43834 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43835 done; \
43836 (cd $(TARGET_SUBDIR)/libssp && \
43837 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43838 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43839 "RANLIB=$${RANLIB}" \
bffcbe34 43840 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
43841 install-pdf) \
43842 || exit 1
43843
43844@endif target-libssp
43845
83c9add4
CD
43846.PHONY: maybe-install-html-target-libssp install-html-target-libssp
43847maybe-install-html-target-libssp:
43848@if target-libssp
43849maybe-install-html-target-libssp: install-html-target-libssp
43850
43851install-html-target-libssp: \
43852 configure-target-libssp \
43853 html-target-libssp
43854 @: $(MAKE); $(unstage)
43855 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
43856 r=`${PWD_COMMAND}`; export r; \
43857 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43858 $(NORMAL_TARGET_EXPORTS) \
43859 echo "Doing install-html in $(TARGET_SUBDIR)/libssp" ; \
43860 for flag in $(EXTRA_TARGET_FLAGS); do \
43861 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43862 done; \
43863 (cd $(TARGET_SUBDIR)/libssp && \
43864 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43865 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43866 "RANLIB=$${RANLIB}" \
bffcbe34 43867 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
43868 install-html) \
43869 || exit 1
43870
43871@endif target-libssp
43872
4c3e061c
PB
43873.PHONY: maybe-installcheck-target-libssp installcheck-target-libssp
43874maybe-installcheck-target-libssp:
43875@if target-libssp
43876maybe-installcheck-target-libssp: installcheck-target-libssp
43877
43878installcheck-target-libssp: \
43879 configure-target-libssp
15b527ca 43880 @: $(MAKE); $(unstage)
4c3e061c
PB
43881 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
43882 r=`${PWD_COMMAND}`; export r; \
43883 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43884 $(NORMAL_TARGET_EXPORTS) \
43885 echo "Doing installcheck in $(TARGET_SUBDIR)/libssp" ; \
43886 for flag in $(EXTRA_TARGET_FLAGS); do \
43887 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43888 done; \
43889 (cd $(TARGET_SUBDIR)/libssp && \
43890 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43891 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43892 "RANLIB=$${RANLIB}" \
bffcbe34 43893 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4c3e061c
PB
43894 installcheck) \
43895 || exit 1
43896
43897@endif target-libssp
43898
43899.PHONY: maybe-mostlyclean-target-libssp mostlyclean-target-libssp
43900maybe-mostlyclean-target-libssp:
43901@if target-libssp
43902maybe-mostlyclean-target-libssp: mostlyclean-target-libssp
43903
43904mostlyclean-target-libssp:
15b527ca 43905 @: $(MAKE); $(unstage)
4c3e061c
PB
43906 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
43907 r=`${PWD_COMMAND}`; export r; \
43908 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43909 $(NORMAL_TARGET_EXPORTS) \
43910 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libssp" ; \
43911 for flag in $(EXTRA_TARGET_FLAGS); do \
43912 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43913 done; \
43914 (cd $(TARGET_SUBDIR)/libssp && \
43915 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43916 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43917 "RANLIB=$${RANLIB}" \
bffcbe34 43918 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4c3e061c
PB
43919 mostlyclean) \
43920 || exit 1
43921
43922@endif target-libssp
43923
43924.PHONY: maybe-clean-target-libssp clean-target-libssp
43925maybe-clean-target-libssp:
43926@if target-libssp
43927maybe-clean-target-libssp: clean-target-libssp
43928
43929clean-target-libssp:
15b527ca 43930 @: $(MAKE); $(unstage)
4c3e061c
PB
43931 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
43932 r=`${PWD_COMMAND}`; export r; \
43933 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43934 $(NORMAL_TARGET_EXPORTS) \
43935 echo "Doing clean in $(TARGET_SUBDIR)/libssp" ; \
43936 for flag in $(EXTRA_TARGET_FLAGS); do \
43937 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43938 done; \
43939 (cd $(TARGET_SUBDIR)/libssp && \
43940 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43941 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43942 "RANLIB=$${RANLIB}" \
bffcbe34 43943 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4c3e061c
PB
43944 clean) \
43945 || exit 1
43946
43947@endif target-libssp
43948
43949.PHONY: maybe-distclean-target-libssp distclean-target-libssp
43950maybe-distclean-target-libssp:
43951@if target-libssp
43952maybe-distclean-target-libssp: distclean-target-libssp
43953
43954distclean-target-libssp:
15b527ca 43955 @: $(MAKE); $(unstage)
4c3e061c
PB
43956 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
43957 r=`${PWD_COMMAND}`; export r; \
43958 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43959 $(NORMAL_TARGET_EXPORTS) \
43960 echo "Doing distclean in $(TARGET_SUBDIR)/libssp" ; \
43961 for flag in $(EXTRA_TARGET_FLAGS); do \
43962 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43963 done; \
43964 (cd $(TARGET_SUBDIR)/libssp && \
43965 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43966 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43967 "RANLIB=$${RANLIB}" \
bffcbe34 43968 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4c3e061c
PB
43969 distclean) \
43970 || exit 1
43971
43972@endif target-libssp
43973
43974.PHONY: maybe-maintainer-clean-target-libssp maintainer-clean-target-libssp
43975maybe-maintainer-clean-target-libssp:
43976@if target-libssp
43977maybe-maintainer-clean-target-libssp: maintainer-clean-target-libssp
43978
43979maintainer-clean-target-libssp:
15b527ca 43980 @: $(MAKE); $(unstage)
4c3e061c
PB
43981 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
43982 r=`${PWD_COMMAND}`; export r; \
43983 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43984 $(NORMAL_TARGET_EXPORTS) \
43985 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libssp" ; \
43986 for flag in $(EXTRA_TARGET_FLAGS); do \
43987 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43988 done; \
43989 (cd $(TARGET_SUBDIR)/libssp && \
43990 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43991 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43992 "RANLIB=$${RANLIB}" \
bffcbe34 43993 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4c3e061c
PB
43994 maintainer-clean) \
43995 || exit 1
43996
43997@endif target-libssp
43998
43999
44000
f0fdfd34 44001
f3fd76d4 44002
f0fdfd34
PB
44003.PHONY: configure-target-newlib maybe-configure-target-newlib
44004maybe-configure-target-newlib:
e1e5148c
CD
44005@if gcc-bootstrap
44006configure-target-newlib: stage_current
44007@endif gcc-bootstrap
f0fdfd34
PB
44008@if target-newlib
44009maybe-configure-target-newlib: configure-target-newlib
ec92c4d6 44010configure-target-newlib:
15b527ca
PB
44011 @: $(MAKE); $(unstage)
44012 @r=`${PWD_COMMAND}`; export r; \
44013 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44014 echo "Checking multilib configuration for newlib..."; \
44015 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/newlib ; \
44016 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/newlib/multilib.tmp 2> /dev/null ; \
44017 if test -r $(TARGET_SUBDIR)/newlib/multilib.out; then \
44018 if cmp -s $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; then \
44019 rm -f $(TARGET_SUBDIR)/newlib/multilib.tmp; \
44020 else \
44021 rm -f $(TARGET_SUBDIR)/newlib/Makefile; \
44022 mv $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; \
44023 fi; \
44024 else \
44025 mv $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; \
ec92c4d6
PB
44026 fi; \
44027 test ! -f $(TARGET_SUBDIR)/newlib/Makefile || exit 0; \
cb2333e8 44028 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/newlib ; \
a675b75a 44029 $(NORMAL_TARGET_EXPORTS) \
cb2333e8
DD
44030 echo Configuring in $(TARGET_SUBDIR)/newlib; \
44031 cd "$(TARGET_SUBDIR)/newlib" || exit 1; \
44032 case $(srcdir) in \
7fc2ca22
PB
44033 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
44034 *) topdir=`echo $(TARGET_SUBDIR)/newlib/ | \
44035 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
cb2333e8 44036 esac; \
7fc2ca22
PB
44037 srcdiroption="--srcdir=$${topdir}/newlib"; \
44038 libsrcdir="$$s/newlib"; \
cb2333e8
DD
44039 rm -f no-such-file || : ; \
44040 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
44041 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
44042 --target=${target_alias} $${srcdiroption} \
cb2333e8 44043 || exit 1
a7e609d6 44044@endif target-newlib
cb2333e8 44045
f0fdfd34
PB
44046
44047
a8a96878
PB
44048
44049
cb2333e8
DD
44050.PHONY: all-target-newlib maybe-all-target-newlib
44051maybe-all-target-newlib:
e1e5148c
CD
44052@if gcc-bootstrap
44053all-target-newlib: stage_current
44054@endif gcc-bootstrap
a7e609d6 44055@if target-newlib
6a19fd82 44056TARGET-target-newlib=all
a7e609d6 44057maybe-all-target-newlib: all-target-newlib
cb2333e8 44058all-target-newlib: configure-target-newlib
15b527ca 44059 @: $(MAKE); $(unstage)
cb2333e8
DD
44060 @r=`${PWD_COMMAND}`; export r; \
44061 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 44062 $(NORMAL_TARGET_EXPORTS) \
cb2333e8 44063 (cd $(TARGET_SUBDIR)/newlib && \
6532abb6
PB
44064 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
44065 $(TARGET-target-newlib))
a7e609d6 44066@endif target-newlib
cb2333e8 44067
f0fdfd34
PB
44068
44069
a8a96878
PB
44070
44071
cb2333e8
DD
44072.PHONY: check-target-newlib maybe-check-target-newlib
44073maybe-check-target-newlib:
a7e609d6
PB
44074@if target-newlib
44075maybe-check-target-newlib: check-target-newlib
cb2333e8
DD
44076
44077check-target-newlib:
15b527ca 44078 @: $(MAKE); $(unstage)
5230d454
L
44079 @r=`${PWD_COMMAND}`; export r; \
44080 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 44081 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 44082 (cd $(TARGET_SUBDIR)/newlib && \
63673a5b 44083 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
8ecc6504 44084
a7e609d6 44085@endif target-newlib
8ecc6504 44086
8ec98d6c
NN
44087.PHONY: install-target-newlib maybe-install-target-newlib
44088maybe-install-target-newlib:
a7e609d6
PB
44089@if target-newlib
44090maybe-install-target-newlib: install-target-newlib
94f860c0 44091
8ec98d6c 44092install-target-newlib: installdirs
15b527ca 44093 @: $(MAKE); $(unstage)
5230d454
L
44094 @r=`${PWD_COMMAND}`; export r; \
44095 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 44096 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 44097 (cd $(TARGET_SUBDIR)/newlib && \
63673a5b 44098 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
8ecc6504 44099
a7e609d6 44100@endif target-newlib
8ecc6504 44101
39bbbb69 44102# Other targets (info, dvi, pdf, etc.)
8ecc6504 44103
8ec98d6c
NN
44104.PHONY: maybe-info-target-newlib info-target-newlib
44105maybe-info-target-newlib:
a7e609d6
PB
44106@if target-newlib
44107maybe-info-target-newlib: info-target-newlib
8ecc6504 44108
8ec98d6c
NN
44109info-target-newlib: \
44110 configure-target-newlib
15b527ca 44111 @: $(MAKE); $(unstage)
8ec98d6c
NN
44112 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
44113 r=`${PWD_COMMAND}`; export r; \
44114 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 44115 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
44116 echo "Doing info in $(TARGET_SUBDIR)/newlib" ; \
44117 for flag in $(EXTRA_TARGET_FLAGS); do \
44118 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44119 done; \
44120 (cd $(TARGET_SUBDIR)/newlib && \
44121 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44122 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44123 "RANLIB=$${RANLIB}" \
bffcbe34 44124 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 44125 info) \
8ec98d6c 44126 || exit 1
70ffc148 44127
a7e609d6 44128@endif target-newlib
8ecc6504 44129
8ec98d6c
NN
44130.PHONY: maybe-dvi-target-newlib dvi-target-newlib
44131maybe-dvi-target-newlib:
a7e609d6
PB
44132@if target-newlib
44133maybe-dvi-target-newlib: dvi-target-newlib
8ecc6504 44134
8ec98d6c
NN
44135dvi-target-newlib: \
44136 configure-target-newlib
15b527ca 44137 @: $(MAKE); $(unstage)
8ec98d6c 44138 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
5230d454
L
44139 r=`${PWD_COMMAND}`; export r; \
44140 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 44141 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
44142 echo "Doing dvi in $(TARGET_SUBDIR)/newlib" ; \
44143 for flag in $(EXTRA_TARGET_FLAGS); do \
44144 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44145 done; \
44146 (cd $(TARGET_SUBDIR)/newlib && \
44147 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44148 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44149 "RANLIB=$${RANLIB}" \
bffcbe34 44150 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 44151 dvi) \
94f860c0
NN
44152 || exit 1
44153
a7e609d6 44154@endif target-newlib
8ecc6504 44155
39bbbb69
DD
44156.PHONY: maybe-pdf-target-newlib pdf-target-newlib
44157maybe-pdf-target-newlib:
44158@if target-newlib
44159maybe-pdf-target-newlib: pdf-target-newlib
44160
44161pdf-target-newlib: \
44162 configure-target-newlib
44163 @: $(MAKE); $(unstage)
44164 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
44165 r=`${PWD_COMMAND}`; export r; \
44166 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44167 $(NORMAL_TARGET_EXPORTS) \
44168 echo "Doing pdf in $(TARGET_SUBDIR)/newlib" ; \
44169 for flag in $(EXTRA_TARGET_FLAGS); do \
44170 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44171 done; \
44172 (cd $(TARGET_SUBDIR)/newlib && \
44173 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44174 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44175 "RANLIB=$${RANLIB}" \
bffcbe34 44176 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
44177 pdf) \
44178 || exit 1
44179
44180@endif target-newlib
44181
b6fb961f
MS
44182.PHONY: maybe-html-target-newlib html-target-newlib
44183maybe-html-target-newlib:
44184@if target-newlib
44185maybe-html-target-newlib: html-target-newlib
44186
44187html-target-newlib: \
44188 configure-target-newlib
15b527ca 44189 @: $(MAKE); $(unstage)
b6fb961f
MS
44190 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
44191 r=`${PWD_COMMAND}`; export r; \
44192 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
44193 $(NORMAL_TARGET_EXPORTS) \
44194 echo "Doing html in $(TARGET_SUBDIR)/newlib" ; \
44195 for flag in $(EXTRA_TARGET_FLAGS); do \
44196 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44197 done; \
44198 (cd $(TARGET_SUBDIR)/newlib && \
44199 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44200 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44201 "RANLIB=$${RANLIB}" \
bffcbe34 44202 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
44203 html) \
44204 || exit 1
44205
44206@endif target-newlib
44207
8ec98d6c
NN
44208.PHONY: maybe-TAGS-target-newlib TAGS-target-newlib
44209maybe-TAGS-target-newlib:
a7e609d6
PB
44210@if target-newlib
44211maybe-TAGS-target-newlib: TAGS-target-newlib
8ecc6504 44212
8ec98d6c
NN
44213TAGS-target-newlib: \
44214 configure-target-newlib
15b527ca 44215 @: $(MAKE); $(unstage)
8ec98d6c
NN
44216 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
44217 r=`${PWD_COMMAND}`; export r; \
5230d454 44218 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 44219 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
44220 echo "Doing TAGS in $(TARGET_SUBDIR)/newlib" ; \
44221 for flag in $(EXTRA_TARGET_FLAGS); do \
44222 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44223 done; \
44224 (cd $(TARGET_SUBDIR)/newlib && \
44225 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44226 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44227 "RANLIB=$${RANLIB}" \
bffcbe34 44228 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 44229 TAGS) \
8ec98d6c 44230 || exit 1
8ecc6504 44231
a7e609d6 44232@endif target-newlib
8ecc6504 44233
8ec98d6c
NN
44234.PHONY: maybe-install-info-target-newlib install-info-target-newlib
44235maybe-install-info-target-newlib:
a7e609d6
PB
44236@if target-newlib
44237maybe-install-info-target-newlib: install-info-target-newlib
70ffc148 44238
8ec98d6c
NN
44239install-info-target-newlib: \
44240 configure-target-newlib \
44241 info-target-newlib
15b527ca 44242 @: $(MAKE); $(unstage)
8ec98d6c
NN
44243 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
44244 r=`${PWD_COMMAND}`; export r; \
5230d454 44245 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 44246 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
44247 echo "Doing install-info in $(TARGET_SUBDIR)/newlib" ; \
44248 for flag in $(EXTRA_TARGET_FLAGS); do \
44249 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44250 done; \
44251 (cd $(TARGET_SUBDIR)/newlib && \
44252 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44253 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44254 "RANLIB=$${RANLIB}" \
bffcbe34 44255 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 44256 install-info) \
8ec98d6c 44257 || exit 1
8ecc6504 44258
a7e609d6 44259@endif target-newlib
8ecc6504 44260
d4954b6d
DD
44261.PHONY: maybe-install-pdf-target-newlib install-pdf-target-newlib
44262maybe-install-pdf-target-newlib:
44263@if target-newlib
44264maybe-install-pdf-target-newlib: install-pdf-target-newlib
44265
44266install-pdf-target-newlib: \
44267 configure-target-newlib \
44268 pdf-target-newlib
44269 @: $(MAKE); $(unstage)
44270 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
44271 r=`${PWD_COMMAND}`; export r; \
44272 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44273 $(NORMAL_TARGET_EXPORTS) \
44274 echo "Doing install-pdf in $(TARGET_SUBDIR)/newlib" ; \
44275 for flag in $(EXTRA_TARGET_FLAGS); do \
44276 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44277 done; \
44278 (cd $(TARGET_SUBDIR)/newlib && \
44279 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44280 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44281 "RANLIB=$${RANLIB}" \
bffcbe34 44282 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
44283 install-pdf) \
44284 || exit 1
44285
44286@endif target-newlib
44287
83c9add4
CD
44288.PHONY: maybe-install-html-target-newlib install-html-target-newlib
44289maybe-install-html-target-newlib:
44290@if target-newlib
44291maybe-install-html-target-newlib: install-html-target-newlib
44292
44293install-html-target-newlib: \
44294 configure-target-newlib \
44295 html-target-newlib
44296 @: $(MAKE); $(unstage)
44297 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
44298 r=`${PWD_COMMAND}`; export r; \
44299 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44300 $(NORMAL_TARGET_EXPORTS) \
44301 echo "Doing install-html in $(TARGET_SUBDIR)/newlib" ; \
44302 for flag in $(EXTRA_TARGET_FLAGS); do \
44303 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44304 done; \
44305 (cd $(TARGET_SUBDIR)/newlib && \
44306 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44307 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44308 "RANLIB=$${RANLIB}" \
bffcbe34 44309 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
44310 install-html) \
44311 || exit 1
44312
44313@endif target-newlib
44314
8ec98d6c
NN
44315.PHONY: maybe-installcheck-target-newlib installcheck-target-newlib
44316maybe-installcheck-target-newlib:
a7e609d6
PB
44317@if target-newlib
44318maybe-installcheck-target-newlib: installcheck-target-newlib
8ec98d6c
NN
44319
44320installcheck-target-newlib: \
44321 configure-target-newlib
15b527ca 44322 @: $(MAKE); $(unstage)
8ec98d6c 44323 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
5230d454
L
44324 r=`${PWD_COMMAND}`; export r; \
44325 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 44326 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
44327 echo "Doing installcheck in $(TARGET_SUBDIR)/newlib" ; \
44328 for flag in $(EXTRA_TARGET_FLAGS); do \
44329 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44330 done; \
44331 (cd $(TARGET_SUBDIR)/newlib && \
44332 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44333 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44334 "RANLIB=$${RANLIB}" \
bffcbe34 44335 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 44336 installcheck) \
94f860c0
NN
44337 || exit 1
44338
a7e609d6 44339@endif target-newlib
8ecc6504 44340
8ec98d6c
NN
44341.PHONY: maybe-mostlyclean-target-newlib mostlyclean-target-newlib
44342maybe-mostlyclean-target-newlib:
a7e609d6
PB
44343@if target-newlib
44344maybe-mostlyclean-target-newlib: mostlyclean-target-newlib
8ecc6504 44345
8ec98d6c 44346mostlyclean-target-newlib:
15b527ca 44347 @: $(MAKE); $(unstage)
8ec98d6c
NN
44348 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
44349 r=`${PWD_COMMAND}`; export r; \
5230d454 44350 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 44351 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
44352 echo "Doing mostlyclean in $(TARGET_SUBDIR)/newlib" ; \
44353 for flag in $(EXTRA_TARGET_FLAGS); do \
44354 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44355 done; \
44356 (cd $(TARGET_SUBDIR)/newlib && \
44357 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44358 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44359 "RANLIB=$${RANLIB}" \
bffcbe34 44360 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 44361 mostlyclean) \
8ec98d6c 44362 || exit 1
8ecc6504 44363
a7e609d6 44364@endif target-newlib
8ecc6504 44365
8ec98d6c
NN
44366.PHONY: maybe-clean-target-newlib clean-target-newlib
44367maybe-clean-target-newlib:
a7e609d6
PB
44368@if target-newlib
44369maybe-clean-target-newlib: clean-target-newlib
70ffc148 44370
8ec98d6c 44371clean-target-newlib:
15b527ca 44372 @: $(MAKE); $(unstage)
8ec98d6c
NN
44373 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
44374 r=`${PWD_COMMAND}`; export r; \
5230d454 44375 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 44376 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
44377 echo "Doing clean in $(TARGET_SUBDIR)/newlib" ; \
44378 for flag in $(EXTRA_TARGET_FLAGS); do \
44379 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44380 done; \
44381 (cd $(TARGET_SUBDIR)/newlib && \
44382 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44383 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44384 "RANLIB=$${RANLIB}" \
bffcbe34 44385 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 44386 clean) \
8ec98d6c 44387 || exit 1
8ecc6504 44388
a7e609d6 44389@endif target-newlib
8ecc6504 44390
8ec98d6c
NN
44391.PHONY: maybe-distclean-target-newlib distclean-target-newlib
44392maybe-distclean-target-newlib:
a7e609d6
PB
44393@if target-newlib
44394maybe-distclean-target-newlib: distclean-target-newlib
8ec98d6c
NN
44395
44396distclean-target-newlib:
15b527ca 44397 @: $(MAKE); $(unstage)
8ec98d6c 44398 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
5230d454
L
44399 r=`${PWD_COMMAND}`; export r; \
44400 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 44401 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
44402 echo "Doing distclean in $(TARGET_SUBDIR)/newlib" ; \
44403 for flag in $(EXTRA_TARGET_FLAGS); do \
44404 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44405 done; \
44406 (cd $(TARGET_SUBDIR)/newlib && \
44407 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44408 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44409 "RANLIB=$${RANLIB}" \
bffcbe34 44410 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 44411 distclean) \
94f860c0
NN
44412 || exit 1
44413
a7e609d6 44414@endif target-newlib
8ecc6504 44415
8ec98d6c
NN
44416.PHONY: maybe-maintainer-clean-target-newlib maintainer-clean-target-newlib
44417maybe-maintainer-clean-target-newlib:
a7e609d6
PB
44418@if target-newlib
44419maybe-maintainer-clean-target-newlib: maintainer-clean-target-newlib
8ecc6504 44420
8ec98d6c 44421maintainer-clean-target-newlib:
15b527ca 44422 @: $(MAKE); $(unstage)
8ec98d6c
NN
44423 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
44424 r=`${PWD_COMMAND}`; export r; \
5230d454 44425 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 44426 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
44427 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/newlib" ; \
44428 for flag in $(EXTRA_TARGET_FLAGS); do \
44429 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44430 done; \
44431 (cd $(TARGET_SUBDIR)/newlib && \
44432 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44433 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44434 "RANLIB=$${RANLIB}" \
bffcbe34 44435 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 44436 maintainer-clean) \
8ec98d6c 44437 || exit 1
8ecc6504 44438
a7e609d6 44439@endif target-newlib
8ecc6504 44440
70ffc148 44441
cb2333e8 44442
f0fdfd34 44443
cb2333e8 44444
1f316156
DJ
44445.PHONY: configure-target-libgcc maybe-configure-target-libgcc
44446maybe-configure-target-libgcc:
44447@if gcc-bootstrap
44448configure-target-libgcc: stage_current
44449@endif gcc-bootstrap
44450@if target-libgcc
44451maybe-configure-target-libgcc: configure-target-libgcc
44452configure-target-libgcc:
44453 @r=`${PWD_COMMAND}`; export r; \
44454 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44455 echo "Checking multilib configuration for libgcc..."; \
44456 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc ; \
44457 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null ; \
44458 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
44459 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
44460 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
44461 else \
44462 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
44463 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
44464 fi; \
44465 else \
44466 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
44467 fi; \
44468 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
44469 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc ; \
44470 $(NORMAL_TARGET_EXPORTS) \
44471 echo Configuring in $(TARGET_SUBDIR)/libgcc; \
44472 cd "$(TARGET_SUBDIR)/libgcc" || exit 1; \
44473 case $(srcdir) in \
44474 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
44475 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
44476 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
44477 esac; \
44478 srcdiroption="--srcdir=$${topdir}/libgcc"; \
44479 libsrcdir="$$s/libgcc"; \
44480 rm -f no-such-file || : ; \
44481 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
44482 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
44483 --target=${target_alias} $${srcdiroption} \
1f316156
DJ
44484 || exit 1
44485@endif target-libgcc
44486
44487
44488
44489.PHONY: configure-stage1-target-libgcc maybe-configure-stage1-target-libgcc
44490maybe-configure-stage1-target-libgcc:
44491@if target-libgcc-bootstrap
44492maybe-configure-stage1-target-libgcc: configure-stage1-target-libgcc
44493configure-stage1-target-libgcc:
44494 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
44495 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
44496 @r=`${PWD_COMMAND}`; export r; \
44497 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44498 echo "Checking multilib configuration for libgcc..."; \
44499 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null ; \
44500 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
44501 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
44502 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
44503 else \
44504 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
44505 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
44506 fi; \
44507 else \
44508 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
44509 fi; \
44510 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
6532abb6
PB
44511 $(NORMAL_TARGET_EXPORTS) \
44512 CFLAGS="$(STAGE1_LIBCFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET) $(DEBUG_PREFIX_CFLAGS_FOR_TARGET)"; export CFLAGS; \
44513 CXXFLAGS="$(STAGE1_LIBCFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET) $(DEBUG_PREFIX_CFLAGS_FOR_TARGET)"; export CXXFLAGS; \
1f316156
DJ
44514 echo Configuring stage 1 in $(TARGET_SUBDIR)/libgcc ; \
44515 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc ; \
44516 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
44517 case $(srcdir) in \
44518 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
44519 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
44520 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
44521 esac; \
44522 srcdiroption="--srcdir=$${topdir}/libgcc"; \
44523 libsrcdir="$$s/libgcc"; \
44524 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
44525 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
44526 --target=${target_alias} $${srcdiroption} \
1f316156
DJ
44527 \
44528 --disable-intermodule $(STAGE1_CHECKING) --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
44529@endif target-libgcc-bootstrap
44530
44531.PHONY: configure-stage2-target-libgcc maybe-configure-stage2-target-libgcc
44532maybe-configure-stage2-target-libgcc:
44533@if target-libgcc-bootstrap
44534maybe-configure-stage2-target-libgcc: configure-stage2-target-libgcc
44535configure-stage2-target-libgcc:
44536 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
44537 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
44538 @r=`${PWD_COMMAND}`; export r; \
44539 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44540 echo "Checking multilib configuration for libgcc..."; \
44541 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null ; \
44542 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
44543 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
44544 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
44545 else \
44546 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
44547 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
44548 fi; \
44549 else \
44550 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
44551 fi; \
44552 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
44553 $(NORMAL_TARGET_EXPORTS) \
6532abb6
PB
44554 \
44555 CFLAGS="$(STAGE2_LIBCFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET) $(DEBUG_PREFIX_CFLAGS_FOR_TARGET)"; export CFLAGS; \
44556 CXXFLAGS="$(STAGE2_LIBCFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET) $(DEBUG_PREFIX_CFLAGS_FOR_TARGET)"; export CXXFLAGS; \
1f316156
DJ
44557 echo Configuring stage 2 in $(TARGET_SUBDIR)/libgcc ; \
44558 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc ; \
44559 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
44560 case $(srcdir) in \
44561 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
44562 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
44563 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
44564 esac; \
44565 srcdiroption="--srcdir=$${topdir}/libgcc"; \
44566 libsrcdir="$$s/libgcc"; \
44567 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
44568 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
44569 --target=${target_alias} $${srcdiroption} \
1f316156
DJ
44570 --with-build-libsubdir=$(HOST_SUBDIR) \
44571 @stage2_werror_flag@
44572@endif target-libgcc-bootstrap
44573
2b41ef78
AO
44574.PHONY: configure-stageb2g0-target-libgcc maybe-configure-stageb2g0-target-libgcc
44575maybe-configure-stageb2g0-target-libgcc:
44576@if target-libgcc-bootstrap
44577maybe-configure-stageb2g0-target-libgcc: configure-stageb2g0-target-libgcc
44578configure-stageb2g0-target-libgcc:
44579 @[ $(current_stage) = stageb2g0 ] || $(MAKE) stageb2g0-start
44580 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
44581 @r=`${PWD_COMMAND}`; export r; \
44582 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44583 echo "Checking multilib configuration for libgcc..."; \
44584 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null ; \
44585 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
44586 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
44587 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
44588 else \
44589 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
44590 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
44591 fi; \
44592 else \
44593 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
44594 fi; \
44595 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
44596 $(NORMAL_TARGET_EXPORTS) \
6532abb6
PB
44597 \
44598 CFLAGS="$(STAGE2_LIBCFLAGS) -g0 $(SYSROOT_CFLAGS_FOR_TARGET) $(DEBUG_PREFIX_CFLAGS_FOR_TARGET)"; export CFLAGS; \
44599 CXXFLAGS="$(STAGE2_LIBCFLAGS) -g0 $(SYSROOT_CFLAGS_FOR_TARGET) $(DEBUG_PREFIX_CFLAGS_FOR_TARGET)"; export CXXFLAGS; \
2b41ef78
AO
44600 echo Configuring stage b2g0 in $(TARGET_SUBDIR)/libgcc ; \
44601 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc ; \
44602 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
44603 case $(srcdir) in \
44604 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
44605 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
44606 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
44607 esac; \
44608 srcdiroption="--srcdir=$${topdir}/libgcc"; \
44609 libsrcdir="$$s/libgcc"; \
44610 $(SHELL) $${libsrcdir}/configure \
44611 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
44612 --target=${target_alias} $${srcdiroption} \
44613 --with-build-libsubdir=$(HOST_SUBDIR) \
44614 @stage2_werror_flag@
44615@endif target-libgcc-bootstrap
44616
1f316156
DJ
44617.PHONY: configure-stage3-target-libgcc maybe-configure-stage3-target-libgcc
44618maybe-configure-stage3-target-libgcc:
44619@if target-libgcc-bootstrap
44620maybe-configure-stage3-target-libgcc: configure-stage3-target-libgcc
44621configure-stage3-target-libgcc:
44622 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
44623 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
44624 @r=`${PWD_COMMAND}`; export r; \
44625 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44626 echo "Checking multilib configuration for libgcc..."; \
44627 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null ; \
44628 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
44629 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
44630 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
44631 else \
44632 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
44633 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
44634 fi; \
44635 else \
44636 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
44637 fi; \
44638 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
44639 $(NORMAL_TARGET_EXPORTS) \
6532abb6
PB
44640 \
44641 CFLAGS="$(STAGE3_LIBCFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET) $(DEBUG_PREFIX_CFLAGS_FOR_TARGET)"; export CFLAGS; \
44642 CXXFLAGS="$(STAGE3_LIBCFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET) $(DEBUG_PREFIX_CFLAGS_FOR_TARGET)"; export CXXFLAGS; \
1f316156
DJ
44643 echo Configuring stage 3 in $(TARGET_SUBDIR)/libgcc ; \
44644 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc ; \
44645 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
44646 case $(srcdir) in \
44647 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
44648 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
44649 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
44650 esac; \
44651 srcdiroption="--srcdir=$${topdir}/libgcc"; \
44652 libsrcdir="$$s/libgcc"; \
44653 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
44654 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
44655 --target=${target_alias} $${srcdiroption} \
1f316156
DJ
44656 --with-build-libsubdir=$(HOST_SUBDIR) \
44657 @stage2_werror_flag@
44658@endif target-libgcc-bootstrap
44659
2b41ef78
AO
44660.PHONY: configure-stageb3g2-target-libgcc maybe-configure-stageb3g2-target-libgcc
44661maybe-configure-stageb3g2-target-libgcc:
44662@if target-libgcc-bootstrap
44663maybe-configure-stageb3g2-target-libgcc: configure-stageb3g2-target-libgcc
44664configure-stageb3g2-target-libgcc:
44665 @[ $(current_stage) = stageb3g2 ] || $(MAKE) stageb3g2-start
44666 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
44667 @r=`${PWD_COMMAND}`; export r; \
44668 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44669 echo "Checking multilib configuration for libgcc..."; \
44670 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null ; \
44671 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
44672 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
44673 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
44674 else \
44675 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
44676 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
44677 fi; \
44678 else \
44679 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
44680 fi; \
44681 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
44682 $(NORMAL_TARGET_EXPORTS) \
6532abb6
PB
44683 \
44684 CFLAGS="$(STAGE3_LIBCFLAGS) -g2 $(SYSROOT_CFLAGS_FOR_TARGET) $(DEBUG_PREFIX_CFLAGS_FOR_TARGET)"; export CFLAGS; \
44685 CXXFLAGS="$(STAGE3_LIBCFLAGS) -g2 $(SYSROOT_CFLAGS_FOR_TARGET) $(DEBUG_PREFIX_CFLAGS_FOR_TARGET)"; export CXXFLAGS; \
2b41ef78
AO
44686 echo Configuring stage b3g2 in $(TARGET_SUBDIR)/libgcc ; \
44687 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc ; \
44688 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
44689 case $(srcdir) in \
44690 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
44691 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
44692 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
44693 esac; \
44694 srcdiroption="--srcdir=$${topdir}/libgcc"; \
44695 libsrcdir="$$s/libgcc"; \
44696 $(SHELL) $${libsrcdir}/configure \
44697 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
44698 --target=${target_alias} $${srcdiroption} \
44699 --with-build-libsubdir=$(HOST_SUBDIR) \
44700 @stage2_werror_flag@
44701@endif target-libgcc-bootstrap
44702
1f316156
DJ
44703.PHONY: configure-stage4-target-libgcc maybe-configure-stage4-target-libgcc
44704maybe-configure-stage4-target-libgcc:
44705@if target-libgcc-bootstrap
44706maybe-configure-stage4-target-libgcc: configure-stage4-target-libgcc
44707configure-stage4-target-libgcc:
44708 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
44709 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
44710 @r=`${PWD_COMMAND}`; export r; \
44711 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44712 echo "Checking multilib configuration for libgcc..."; \
44713 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null ; \
44714 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
44715 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
44716 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
44717 else \
44718 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
44719 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
44720 fi; \
44721 else \
44722 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
44723 fi; \
44724 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
44725 $(NORMAL_TARGET_EXPORTS) \
6532abb6
PB
44726 \
44727 CFLAGS="$(STAGE4_CFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET) $(DEBUG_PREFIX_CFLAGS_FOR_TARGET)"; export CFLAGS; \
44728 CXXFLAGS="$(STAGE4_CFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET) $(DEBUG_PREFIX_CFLAGS_FOR_TARGET)"; export CXXFLAGS; \
1f316156
DJ
44729 echo Configuring stage 4 in $(TARGET_SUBDIR)/libgcc ; \
44730 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc ; \
44731 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
44732 case $(srcdir) in \
44733 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
44734 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
44735 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
44736 esac; \
44737 srcdiroption="--srcdir=$${topdir}/libgcc"; \
44738 libsrcdir="$$s/libgcc"; \
44739 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
44740 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
44741 --target=${target_alias} $${srcdiroption} \
1f316156
DJ
44742 --with-build-libsubdir=$(HOST_SUBDIR) \
44743 @stage2_werror_flag@
44744@endif target-libgcc-bootstrap
44745
44746.PHONY: configure-stageprofile-target-libgcc maybe-configure-stageprofile-target-libgcc
44747maybe-configure-stageprofile-target-libgcc:
44748@if target-libgcc-bootstrap
44749maybe-configure-stageprofile-target-libgcc: configure-stageprofile-target-libgcc
44750configure-stageprofile-target-libgcc:
44751 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
44752 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
44753 @r=`${PWD_COMMAND}`; export r; \
44754 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44755 echo "Checking multilib configuration for libgcc..."; \
44756 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null ; \
44757 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
44758 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
44759 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
44760 else \
44761 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
44762 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
44763 fi; \
44764 else \
44765 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
44766 fi; \
44767 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
44768 $(NORMAL_TARGET_EXPORTS) \
6532abb6 44769 \
455b4f90
PB
44770 CFLAGS="$(STAGE2_LIBCFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET) $(DEBUG_PREFIX_CFLAGS_FOR_TARGET)"; export CFLAGS; \
44771 CXXFLAGS="$(STAGE2_LIBCFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET) $(DEBUG_PREFIX_CFLAGS_FOR_TARGET)"; export CXXFLAGS; \
1f316156
DJ
44772 echo Configuring stage profile in $(TARGET_SUBDIR)/libgcc ; \
44773 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc ; \
44774 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
44775 case $(srcdir) in \
44776 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
44777 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
44778 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
44779 esac; \
44780 srcdiroption="--srcdir=$${topdir}/libgcc"; \
44781 libsrcdir="$$s/libgcc"; \
44782 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
44783 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
44784 --target=${target_alias} $${srcdiroption} \
1f316156
DJ
44785 --with-build-libsubdir=$(HOST_SUBDIR) \
44786 @stage2_werror_flag@
44787@endif target-libgcc-bootstrap
44788
44789.PHONY: configure-stagefeedback-target-libgcc maybe-configure-stagefeedback-target-libgcc
44790maybe-configure-stagefeedback-target-libgcc:
44791@if target-libgcc-bootstrap
44792maybe-configure-stagefeedback-target-libgcc: configure-stagefeedback-target-libgcc
44793configure-stagefeedback-target-libgcc:
44794 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
44795 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
44796 @r=`${PWD_COMMAND}`; export r; \
44797 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44798 echo "Checking multilib configuration for libgcc..."; \
44799 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null ; \
44800 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
44801 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
44802 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
44803 else \
44804 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
44805 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
44806 fi; \
44807 else \
44808 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
44809 fi; \
44810 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
44811 $(NORMAL_TARGET_EXPORTS) \
6532abb6
PB
44812 \
44813 CFLAGS="$(STAGE3_LIBCFLAGS) -fprofile-use $(SYSROOT_CFLAGS_FOR_TARGET) $(DEBUG_PREFIX_CFLAGS_FOR_TARGET)"; export CFLAGS; \
44814 CXXFLAGS="$(STAGE3_LIBCFLAGS) -fprofile-use $(SYSROOT_CFLAGS_FOR_TARGET) $(DEBUG_PREFIX_CFLAGS_FOR_TARGET)"; export CXXFLAGS; \
1f316156
DJ
44815 echo Configuring stage feedback in $(TARGET_SUBDIR)/libgcc ; \
44816 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc ; \
44817 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
44818 case $(srcdir) in \
44819 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
44820 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
44821 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
44822 esac; \
44823 srcdiroption="--srcdir=$${topdir}/libgcc"; \
44824 libsrcdir="$$s/libgcc"; \
44825 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
44826 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
44827 --target=${target_alias} $${srcdiroption} \
1f316156
DJ
44828 --with-build-libsubdir=$(HOST_SUBDIR) \
44829 @stage2_werror_flag@
44830@endif target-libgcc-bootstrap
44831
44832
44833
44834
44835
44836.PHONY: all-target-libgcc maybe-all-target-libgcc
44837maybe-all-target-libgcc:
44838@if gcc-bootstrap
44839all-target-libgcc: stage_current
44840@endif gcc-bootstrap
44841@if target-libgcc
44842TARGET-target-libgcc=all
44843maybe-all-target-libgcc: all-target-libgcc
44844all-target-libgcc: configure-target-libgcc
44845 @r=`${PWD_COMMAND}`; export r; \
44846 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44847 $(NORMAL_TARGET_EXPORTS) \
44848 (cd $(TARGET_SUBDIR)/libgcc && \
6532abb6
PB
44849 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
44850 $(TARGET-target-libgcc))
1f316156
DJ
44851@endif target-libgcc
44852
44853
44854
44855.PHONY: all-stage1-target-libgcc maybe-all-stage1-target-libgcc
44856.PHONY: clean-stage1-target-libgcc maybe-clean-stage1-target-libgcc
44857maybe-all-stage1-target-libgcc:
44858maybe-clean-stage1-target-libgcc:
44859@if target-libgcc-bootstrap
44860maybe-all-stage1-target-libgcc: all-stage1-target-libgcc
44861all-stage1: all-stage1-target-libgcc
44862TARGET-stage1-target-libgcc = $(TARGET-target-libgcc)
44863all-stage1-target-libgcc: configure-stage1-target-libgcc
44864 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
44865 @r=`${PWD_COMMAND}`; export r; \
44866 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44867 $(NORMAL_TARGET_EXPORTS) \
44868 cd $(TARGET_SUBDIR)/libgcc && \
6532abb6
PB
44869 $(MAKE) $(BASE_FLAGS_TO_PASS) \
44870 CFLAGS="$(STAGE1_CFLAGS)" CXXFLAGS="$(STAGE1_CFLAGS)" \
44871 LIBCFLAGS="$(STAGE1_LIBCFLAGS)" \
44872 CFLAGS_FOR_TARGET="$(STAGE1_LIBCFLAGS)" \
44873 CXXFLAGS_FOR_TARGET="$(STAGE1_LIBCFLAGS)" $(EXTRA_TARGET_FLAGS) \
1f316156
DJ
44874 $(TARGET-stage1-target-libgcc)
44875
44876maybe-clean-stage1-target-libgcc: clean-stage1-target-libgcc
44877clean-stage1: clean-stage1-target-libgcc
44878clean-stage1-target-libgcc:
44879 @if [ $(current_stage) = stage1 ]; then \
44880 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
44881 else \
44882 [ -f $(TARGET_SUBDIR)/stage1-libgcc/Makefile ] || exit 0; \
44883 $(MAKE) stage1-start; \
44884 fi; \
44885 cd $(TARGET_SUBDIR)/libgcc && \
6532abb6 44886 $(MAKE) $(EXTRA_TARGET_FLAGS) \
2ba09444 44887 clean
1f316156
DJ
44888@endif target-libgcc-bootstrap
44889
44890
44891.PHONY: all-stage2-target-libgcc maybe-all-stage2-target-libgcc
44892.PHONY: clean-stage2-target-libgcc maybe-clean-stage2-target-libgcc
44893maybe-all-stage2-target-libgcc:
44894maybe-clean-stage2-target-libgcc:
44895@if target-libgcc-bootstrap
44896maybe-all-stage2-target-libgcc: all-stage2-target-libgcc
44897all-stage2: all-stage2-target-libgcc
44898TARGET-stage2-target-libgcc = $(TARGET-target-libgcc)
44899all-stage2-target-libgcc: configure-stage2-target-libgcc
44900 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
44901 @r=`${PWD_COMMAND}`; export r; \
44902 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44903 $(NORMAL_TARGET_EXPORTS) \
44904 \
44905 cd $(TARGET_SUBDIR)/libgcc && \
6532abb6
PB
44906 $(MAKE) $(BASE_FLAGS_TO_PASS) \
44907 CFLAGS="$(STAGE2_CFLAGS)" CXXFLAGS="$(STAGE2_CFLAGS)" \
44908 LIBCFLAGS="$(STAGE2_LIBCFLAGS)" \
44909 CFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)" \
44910 CXXFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)" $(EXTRA_TARGET_FLAGS) \
1f316156
DJ
44911 $(TARGET-stage2-target-libgcc)
44912
44913maybe-clean-stage2-target-libgcc: clean-stage2-target-libgcc
44914clean-stage2: clean-stage2-target-libgcc
44915clean-stage2-target-libgcc:
44916 @if [ $(current_stage) = stage2 ]; then \
44917 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
44918 else \
44919 [ -f $(TARGET_SUBDIR)/stage2-libgcc/Makefile ] || exit 0; \
44920 $(MAKE) stage2-start; \
44921 fi; \
44922 cd $(TARGET_SUBDIR)/libgcc && \
6532abb6 44923 $(MAKE) $(EXTRA_TARGET_FLAGS) \
1f316156 44924 \
2ba09444 44925 clean
1f316156
DJ
44926@endif target-libgcc-bootstrap
44927
44928
2b41ef78
AO
44929.PHONY: all-stageb2g0-target-libgcc maybe-all-stageb2g0-target-libgcc
44930.PHONY: clean-stageb2g0-target-libgcc maybe-clean-stageb2g0-target-libgcc
44931maybe-all-stageb2g0-target-libgcc:
44932maybe-clean-stageb2g0-target-libgcc:
44933@if target-libgcc-bootstrap
44934maybe-all-stageb2g0-target-libgcc: all-stageb2g0-target-libgcc
44935all-stageb2g0: all-stageb2g0-target-libgcc
44936TARGET-stageb2g0-target-libgcc = $(TARGET-target-libgcc)
44937all-stageb2g0-target-libgcc: configure-stageb2g0-target-libgcc
44938 @[ $(current_stage) = stageb2g0 ] || $(MAKE) stageb2g0-start
44939 @r=`${PWD_COMMAND}`; export r; \
44940 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44941 $(NORMAL_TARGET_EXPORTS) \
44942 \
44943 cd $(TARGET_SUBDIR)/libgcc && \
6532abb6
PB
44944 $(MAKE) $(BASE_FLAGS_TO_PASS) \
44945 CFLAGS="$(STAGE2_CFLAGS) -g0" CXXFLAGS="$(STAGE2_CFLAGS) -g0" \
44946 LIBCFLAGS="$(STAGE2_LIBCFLAGS) -g0" \
44947 CFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS) -g0" \
44948 CXXFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS) -g0" $(EXTRA_TARGET_FLAGS) \
2b41ef78
AO
44949 $(TARGET-stageb2g0-target-libgcc)
44950
44951maybe-clean-stageb2g0-target-libgcc: clean-stageb2g0-target-libgcc
44952clean-stageb2g0: clean-stageb2g0-target-libgcc
44953clean-stageb2g0-target-libgcc:
44954 @if [ $(current_stage) = stageb2g0 ]; then \
44955 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
44956 else \
44957 [ -f $(TARGET_SUBDIR)/stageb2g0-libgcc/Makefile ] || exit 0; \
44958 $(MAKE) stageb2g0-start; \
44959 fi; \
44960 cd $(TARGET_SUBDIR)/libgcc && \
6532abb6 44961 $(MAKE) $(EXTRA_TARGET_FLAGS) \
2b41ef78
AO
44962 \
44963 clean
44964@endif target-libgcc-bootstrap
44965
44966
1f316156
DJ
44967.PHONY: all-stage3-target-libgcc maybe-all-stage3-target-libgcc
44968.PHONY: clean-stage3-target-libgcc maybe-clean-stage3-target-libgcc
44969maybe-all-stage3-target-libgcc:
44970maybe-clean-stage3-target-libgcc:
44971@if target-libgcc-bootstrap
44972maybe-all-stage3-target-libgcc: all-stage3-target-libgcc
44973all-stage3: all-stage3-target-libgcc
44974TARGET-stage3-target-libgcc = $(TARGET-target-libgcc)
44975all-stage3-target-libgcc: configure-stage3-target-libgcc
44976 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
44977 @r=`${PWD_COMMAND}`; export r; \
44978 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44979 $(NORMAL_TARGET_EXPORTS) \
44980 \
44981 cd $(TARGET_SUBDIR)/libgcc && \
6532abb6
PB
44982 $(MAKE) $(BASE_FLAGS_TO_PASS) \
44983 CFLAGS="$(STAGE3_CFLAGS)" CXXFLAGS="$(STAGE3_CFLAGS)" \
44984 LIBCFLAGS="$(STAGE3_LIBCFLAGS)" \
44985 CFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS)" \
44986 CXXFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS)" $(EXTRA_TARGET_FLAGS) \
1f316156
DJ
44987 $(TARGET-stage3-target-libgcc)
44988
44989maybe-clean-stage3-target-libgcc: clean-stage3-target-libgcc
44990clean-stage3: clean-stage3-target-libgcc
44991clean-stage3-target-libgcc:
44992 @if [ $(current_stage) = stage3 ]; then \
44993 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
44994 else \
44995 [ -f $(TARGET_SUBDIR)/stage3-libgcc/Makefile ] || exit 0; \
44996 $(MAKE) stage3-start; \
44997 fi; \
44998 cd $(TARGET_SUBDIR)/libgcc && \
6532abb6 44999 $(MAKE) $(EXTRA_TARGET_FLAGS) \
1f316156 45000 \
2ba09444 45001 clean
1f316156
DJ
45002@endif target-libgcc-bootstrap
45003
45004
2b41ef78
AO
45005.PHONY: all-stageb3g2-target-libgcc maybe-all-stageb3g2-target-libgcc
45006.PHONY: clean-stageb3g2-target-libgcc maybe-clean-stageb3g2-target-libgcc
45007maybe-all-stageb3g2-target-libgcc:
45008maybe-clean-stageb3g2-target-libgcc:
45009@if target-libgcc-bootstrap
45010maybe-all-stageb3g2-target-libgcc: all-stageb3g2-target-libgcc
45011all-stageb3g2: all-stageb3g2-target-libgcc
45012TARGET-stageb3g2-target-libgcc = $(TARGET-target-libgcc)
45013all-stageb3g2-target-libgcc: configure-stageb3g2-target-libgcc
45014 @[ $(current_stage) = stageb3g2 ] || $(MAKE) stageb3g2-start
45015 @r=`${PWD_COMMAND}`; export r; \
45016 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45017 $(NORMAL_TARGET_EXPORTS) \
45018 \
45019 cd $(TARGET_SUBDIR)/libgcc && \
6532abb6
PB
45020 $(MAKE) $(BASE_FLAGS_TO_PASS) \
45021 CFLAGS="$(STAGE3_CFLAGS) -g2" CXXFLAGS="$(STAGE3_CFLAGS) -g2" \
45022 LIBCFLAGS="$(STAGE3_LIBCFLAGS) -g2" \
45023 CFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS) -g2" \
45024 CXXFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS) -g2" $(EXTRA_TARGET_FLAGS) \
2b41ef78
AO
45025 $(TARGET-stageb3g2-target-libgcc)
45026
45027maybe-clean-stageb3g2-target-libgcc: clean-stageb3g2-target-libgcc
45028clean-stageb3g2: clean-stageb3g2-target-libgcc
45029clean-stageb3g2-target-libgcc:
45030 @if [ $(current_stage) = stageb3g2 ]; then \
45031 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
45032 else \
45033 [ -f $(TARGET_SUBDIR)/stageb3g2-libgcc/Makefile ] || exit 0; \
45034 $(MAKE) stageb3g2-start; \
45035 fi; \
45036 cd $(TARGET_SUBDIR)/libgcc && \
6532abb6 45037 $(MAKE) $(EXTRA_TARGET_FLAGS) \
2b41ef78
AO
45038 \
45039 clean
45040@endif target-libgcc-bootstrap
45041
45042
1f316156
DJ
45043.PHONY: all-stage4-target-libgcc maybe-all-stage4-target-libgcc
45044.PHONY: clean-stage4-target-libgcc maybe-clean-stage4-target-libgcc
45045maybe-all-stage4-target-libgcc:
45046maybe-clean-stage4-target-libgcc:
45047@if target-libgcc-bootstrap
45048maybe-all-stage4-target-libgcc: all-stage4-target-libgcc
45049all-stage4: all-stage4-target-libgcc
45050TARGET-stage4-target-libgcc = $(TARGET-target-libgcc)
45051all-stage4-target-libgcc: configure-stage4-target-libgcc
45052 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
45053 @r=`${PWD_COMMAND}`; export r; \
45054 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45055 $(NORMAL_TARGET_EXPORTS) \
45056 \
45057 cd $(TARGET_SUBDIR)/libgcc && \
6532abb6
PB
45058 $(MAKE) $(BASE_FLAGS_TO_PASS) \
45059 CFLAGS="$(STAGE4_CFLAGS)" CXXFLAGS="$(STAGE4_CFLAGS)" \
45060 LIBCFLAGS="$(STAGE4_CFLAGS)" \
45061 CFLAGS_FOR_TARGET="$(STAGE4_CFLAGS)" \
45062 CXXFLAGS_FOR_TARGET="$(STAGE4_CFLAGS)" $(EXTRA_TARGET_FLAGS) \
1f316156
DJ
45063 $(TARGET-stage4-target-libgcc)
45064
45065maybe-clean-stage4-target-libgcc: clean-stage4-target-libgcc
45066clean-stage4: clean-stage4-target-libgcc
45067clean-stage4-target-libgcc:
45068 @if [ $(current_stage) = stage4 ]; then \
45069 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
45070 else \
45071 [ -f $(TARGET_SUBDIR)/stage4-libgcc/Makefile ] || exit 0; \
45072 $(MAKE) stage4-start; \
45073 fi; \
45074 cd $(TARGET_SUBDIR)/libgcc && \
6532abb6 45075 $(MAKE) $(EXTRA_TARGET_FLAGS) \
1f316156 45076 \
2ba09444 45077 clean
1f316156
DJ
45078@endif target-libgcc-bootstrap
45079
45080
45081.PHONY: all-stageprofile-target-libgcc maybe-all-stageprofile-target-libgcc
45082.PHONY: clean-stageprofile-target-libgcc maybe-clean-stageprofile-target-libgcc
45083maybe-all-stageprofile-target-libgcc:
45084maybe-clean-stageprofile-target-libgcc:
45085@if target-libgcc-bootstrap
45086maybe-all-stageprofile-target-libgcc: all-stageprofile-target-libgcc
45087all-stageprofile: all-stageprofile-target-libgcc
45088TARGET-stageprofile-target-libgcc = $(TARGET-target-libgcc)
45089all-stageprofile-target-libgcc: configure-stageprofile-target-libgcc
45090 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
45091 @r=`${PWD_COMMAND}`; export r; \
45092 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45093 $(NORMAL_TARGET_EXPORTS) \
45094 \
45095 cd $(TARGET_SUBDIR)/libgcc && \
6532abb6
PB
45096 $(MAKE) $(BASE_FLAGS_TO_PASS) \
45097 CFLAGS="$(STAGE2_CFLAGS) -fprofile-generate" CXXFLAGS="$(STAGE2_CFLAGS) -fprofile-generate" \
455b4f90
PB
45098 LIBCFLAGS="$(STAGE2_LIBCFLAGS)" \
45099 CFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)" \
45100 CXXFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)" $(EXTRA_TARGET_FLAGS) \
1f316156
DJ
45101 $(TARGET-stageprofile-target-libgcc)
45102
45103maybe-clean-stageprofile-target-libgcc: clean-stageprofile-target-libgcc
45104clean-stageprofile: clean-stageprofile-target-libgcc
45105clean-stageprofile-target-libgcc:
45106 @if [ $(current_stage) = stageprofile ]; then \
45107 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
45108 else \
45109 [ -f $(TARGET_SUBDIR)/stageprofile-libgcc/Makefile ] || exit 0; \
45110 $(MAKE) stageprofile-start; \
45111 fi; \
45112 cd $(TARGET_SUBDIR)/libgcc && \
6532abb6 45113 $(MAKE) $(EXTRA_TARGET_FLAGS) \
1f316156 45114 \
2ba09444 45115 clean
1f316156
DJ
45116@endif target-libgcc-bootstrap
45117
45118
45119.PHONY: all-stagefeedback-target-libgcc maybe-all-stagefeedback-target-libgcc
45120.PHONY: clean-stagefeedback-target-libgcc maybe-clean-stagefeedback-target-libgcc
45121maybe-all-stagefeedback-target-libgcc:
45122maybe-clean-stagefeedback-target-libgcc:
45123@if target-libgcc-bootstrap
45124maybe-all-stagefeedback-target-libgcc: all-stagefeedback-target-libgcc
45125all-stagefeedback: all-stagefeedback-target-libgcc
45126TARGET-stagefeedback-target-libgcc = $(TARGET-target-libgcc)
45127all-stagefeedback-target-libgcc: configure-stagefeedback-target-libgcc
45128 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
45129 @r=`${PWD_COMMAND}`; export r; \
45130 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45131 $(NORMAL_TARGET_EXPORTS) \
45132 \
45133 cd $(TARGET_SUBDIR)/libgcc && \
6532abb6
PB
45134 $(MAKE) $(BASE_FLAGS_TO_PASS) \
45135 CFLAGS="$(STAGE3_CFLAGS) -fprofile-use" CXXFLAGS="$(STAGE3_CFLAGS) -fprofile-use" \
45136 LIBCFLAGS="$(STAGE3_LIBCFLAGS) -fprofile-use" \
45137 CFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS) -fprofile-use" \
45138 CXXFLAGS_FOR_TARGET="$(STAGE3_LIBCFLAGS) -fprofile-use" $(EXTRA_TARGET_FLAGS) \
1f316156
DJ
45139 $(TARGET-stagefeedback-target-libgcc)
45140
45141maybe-clean-stagefeedback-target-libgcc: clean-stagefeedback-target-libgcc
45142clean-stagefeedback: clean-stagefeedback-target-libgcc
45143clean-stagefeedback-target-libgcc:
45144 @if [ $(current_stage) = stagefeedback ]; then \
45145 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
45146 else \
45147 [ -f $(TARGET_SUBDIR)/stagefeedback-libgcc/Makefile ] || exit 0; \
45148 $(MAKE) stagefeedback-start; \
45149 fi; \
45150 cd $(TARGET_SUBDIR)/libgcc && \
6532abb6 45151 $(MAKE) $(EXTRA_TARGET_FLAGS) \
1f316156 45152 \
2ba09444 45153 clean
1f316156
DJ
45154@endif target-libgcc-bootstrap
45155
45156
45157
45158
45159
45160
45161.PHONY: check-target-libgcc maybe-check-target-libgcc
45162maybe-check-target-libgcc:
45163@if target-libgcc
45164maybe-check-target-libgcc: check-target-libgcc
45165
45166# Dummy target for uncheckable module.
45167check-target-libgcc:
45168
45169@endif target-libgcc
45170
45171.PHONY: install-target-libgcc maybe-install-target-libgcc
45172maybe-install-target-libgcc:
45173@if target-libgcc
45174maybe-install-target-libgcc: install-target-libgcc
45175
45176install-target-libgcc: installdirs
45177 @: $(MAKE); $(unstage)
45178 @r=`${PWD_COMMAND}`; export r; \
45179 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45180 $(NORMAL_TARGET_EXPORTS) \
45181 (cd $(TARGET_SUBDIR)/libgcc && \
45182 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
45183
45184@endif target-libgcc
45185
45186# Other targets (info, dvi, pdf, etc.)
45187
45188.PHONY: maybe-info-target-libgcc info-target-libgcc
45189maybe-info-target-libgcc:
45190@if target-libgcc
45191maybe-info-target-libgcc: info-target-libgcc
45192
45193info-target-libgcc: \
45194 configure-target-libgcc
45195 @: $(MAKE); $(unstage)
45196 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
45197 r=`${PWD_COMMAND}`; export r; \
45198 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45199 $(NORMAL_TARGET_EXPORTS) \
45200 echo "Doing info in $(TARGET_SUBDIR)/libgcc" ; \
45201 for flag in $(EXTRA_TARGET_FLAGS); do \
45202 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45203 done; \
45204 (cd $(TARGET_SUBDIR)/libgcc && \
45205 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45206 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45207 "RANLIB=$${RANLIB}" \
bffcbe34 45208 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
1f316156
DJ
45209 info) \
45210 || exit 1
45211
45212@endif target-libgcc
45213
45214.PHONY: maybe-dvi-target-libgcc dvi-target-libgcc
45215maybe-dvi-target-libgcc:
45216@if target-libgcc
45217maybe-dvi-target-libgcc: dvi-target-libgcc
45218
45219dvi-target-libgcc: \
45220 configure-target-libgcc
45221 @: $(MAKE); $(unstage)
45222 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
45223 r=`${PWD_COMMAND}`; export r; \
45224 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45225 $(NORMAL_TARGET_EXPORTS) \
45226 echo "Doing dvi in $(TARGET_SUBDIR)/libgcc" ; \
45227 for flag in $(EXTRA_TARGET_FLAGS); do \
45228 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45229 done; \
45230 (cd $(TARGET_SUBDIR)/libgcc && \
45231 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45232 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45233 "RANLIB=$${RANLIB}" \
bffcbe34 45234 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
1f316156
DJ
45235 dvi) \
45236 || exit 1
45237
45238@endif target-libgcc
45239
45240.PHONY: maybe-pdf-target-libgcc pdf-target-libgcc
45241maybe-pdf-target-libgcc:
45242@if target-libgcc
45243maybe-pdf-target-libgcc: pdf-target-libgcc
45244
45245pdf-target-libgcc: \
45246 configure-target-libgcc
45247 @: $(MAKE); $(unstage)
45248 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
45249 r=`${PWD_COMMAND}`; export r; \
45250 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45251 $(NORMAL_TARGET_EXPORTS) \
45252 echo "Doing pdf in $(TARGET_SUBDIR)/libgcc" ; \
45253 for flag in $(EXTRA_TARGET_FLAGS); do \
45254 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45255 done; \
45256 (cd $(TARGET_SUBDIR)/libgcc && \
45257 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45258 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45259 "RANLIB=$${RANLIB}" \
bffcbe34 45260 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
1f316156
DJ
45261 pdf) \
45262 || exit 1
45263
45264@endif target-libgcc
45265
45266.PHONY: maybe-html-target-libgcc html-target-libgcc
45267maybe-html-target-libgcc:
45268@if target-libgcc
45269maybe-html-target-libgcc: html-target-libgcc
45270
45271html-target-libgcc: \
45272 configure-target-libgcc
45273 @: $(MAKE); $(unstage)
45274 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
45275 r=`${PWD_COMMAND}`; export r; \
45276 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45277 $(NORMAL_TARGET_EXPORTS) \
45278 echo "Doing html in $(TARGET_SUBDIR)/libgcc" ; \
45279 for flag in $(EXTRA_TARGET_FLAGS); do \
45280 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45281 done; \
45282 (cd $(TARGET_SUBDIR)/libgcc && \
45283 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45284 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45285 "RANLIB=$${RANLIB}" \
bffcbe34 45286 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
1f316156
DJ
45287 html) \
45288 || exit 1
45289
45290@endif target-libgcc
45291
45292.PHONY: maybe-TAGS-target-libgcc TAGS-target-libgcc
45293maybe-TAGS-target-libgcc:
45294@if target-libgcc
45295maybe-TAGS-target-libgcc: TAGS-target-libgcc
45296
45297TAGS-target-libgcc: \
45298 configure-target-libgcc
45299 @: $(MAKE); $(unstage)
45300 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
45301 r=`${PWD_COMMAND}`; export r; \
45302 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45303 $(NORMAL_TARGET_EXPORTS) \
45304 echo "Doing TAGS in $(TARGET_SUBDIR)/libgcc" ; \
45305 for flag in $(EXTRA_TARGET_FLAGS); do \
45306 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45307 done; \
45308 (cd $(TARGET_SUBDIR)/libgcc && \
45309 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45310 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45311 "RANLIB=$${RANLIB}" \
bffcbe34 45312 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
1f316156
DJ
45313 TAGS) \
45314 || exit 1
45315
45316@endif target-libgcc
45317
45318.PHONY: maybe-install-info-target-libgcc install-info-target-libgcc
45319maybe-install-info-target-libgcc:
45320@if target-libgcc
45321maybe-install-info-target-libgcc: install-info-target-libgcc
45322
45323install-info-target-libgcc: \
45324 configure-target-libgcc \
45325 info-target-libgcc
45326 @: $(MAKE); $(unstage)
45327 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
45328 r=`${PWD_COMMAND}`; export r; \
45329 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45330 $(NORMAL_TARGET_EXPORTS) \
45331 echo "Doing install-info in $(TARGET_SUBDIR)/libgcc" ; \
45332 for flag in $(EXTRA_TARGET_FLAGS); do \
45333 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45334 done; \
45335 (cd $(TARGET_SUBDIR)/libgcc && \
45336 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45337 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45338 "RANLIB=$${RANLIB}" \
bffcbe34 45339 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
1f316156
DJ
45340 install-info) \
45341 || exit 1
45342
45343@endif target-libgcc
45344
d4954b6d
DD
45345.PHONY: maybe-install-pdf-target-libgcc install-pdf-target-libgcc
45346maybe-install-pdf-target-libgcc:
45347@if target-libgcc
45348maybe-install-pdf-target-libgcc: install-pdf-target-libgcc
45349
45350install-pdf-target-libgcc: \
45351 configure-target-libgcc \
45352 pdf-target-libgcc
45353 @: $(MAKE); $(unstage)
45354 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
45355 r=`${PWD_COMMAND}`; export r; \
45356 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45357 $(NORMAL_TARGET_EXPORTS) \
45358 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgcc" ; \
45359 for flag in $(EXTRA_TARGET_FLAGS); do \
45360 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45361 done; \
45362 (cd $(TARGET_SUBDIR)/libgcc && \
45363 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45364 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45365 "RANLIB=$${RANLIB}" \
bffcbe34 45366 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
45367 install-pdf) \
45368 || exit 1
45369
45370@endif target-libgcc
45371
1f316156
DJ
45372.PHONY: maybe-install-html-target-libgcc install-html-target-libgcc
45373maybe-install-html-target-libgcc:
45374@if target-libgcc
45375maybe-install-html-target-libgcc: install-html-target-libgcc
45376
45377install-html-target-libgcc: \
45378 configure-target-libgcc \
45379 html-target-libgcc
45380 @: $(MAKE); $(unstage)
45381 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
45382 r=`${PWD_COMMAND}`; export r; \
45383 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45384 $(NORMAL_TARGET_EXPORTS) \
45385 echo "Doing install-html in $(TARGET_SUBDIR)/libgcc" ; \
45386 for flag in $(EXTRA_TARGET_FLAGS); do \
45387 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45388 done; \
45389 (cd $(TARGET_SUBDIR)/libgcc && \
45390 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45391 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45392 "RANLIB=$${RANLIB}" \
bffcbe34 45393 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
1f316156
DJ
45394 install-html) \
45395 || exit 1
45396
45397@endif target-libgcc
45398
45399.PHONY: maybe-installcheck-target-libgcc installcheck-target-libgcc
45400maybe-installcheck-target-libgcc:
45401@if target-libgcc
45402maybe-installcheck-target-libgcc: installcheck-target-libgcc
45403
45404installcheck-target-libgcc: \
45405 configure-target-libgcc
45406 @: $(MAKE); $(unstage)
45407 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
45408 r=`${PWD_COMMAND}`; export r; \
45409 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45410 $(NORMAL_TARGET_EXPORTS) \
45411 echo "Doing installcheck in $(TARGET_SUBDIR)/libgcc" ; \
45412 for flag in $(EXTRA_TARGET_FLAGS); do \
45413 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45414 done; \
45415 (cd $(TARGET_SUBDIR)/libgcc && \
45416 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45417 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45418 "RANLIB=$${RANLIB}" \
bffcbe34 45419 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
1f316156
DJ
45420 installcheck) \
45421 || exit 1
45422
45423@endif target-libgcc
45424
45425.PHONY: maybe-mostlyclean-target-libgcc mostlyclean-target-libgcc
45426maybe-mostlyclean-target-libgcc:
45427@if target-libgcc
45428maybe-mostlyclean-target-libgcc: mostlyclean-target-libgcc
45429
45430mostlyclean-target-libgcc:
45431 @: $(MAKE); $(unstage)
45432 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
45433 r=`${PWD_COMMAND}`; export r; \
45434 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45435 $(NORMAL_TARGET_EXPORTS) \
45436 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgcc" ; \
45437 for flag in $(EXTRA_TARGET_FLAGS); do \
45438 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45439 done; \
45440 (cd $(TARGET_SUBDIR)/libgcc && \
45441 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45442 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45443 "RANLIB=$${RANLIB}" \
bffcbe34 45444 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
1f316156
DJ
45445 mostlyclean) \
45446 || exit 1
45447
45448@endif target-libgcc
45449
45450.PHONY: maybe-clean-target-libgcc clean-target-libgcc
45451maybe-clean-target-libgcc:
45452@if target-libgcc
45453maybe-clean-target-libgcc: clean-target-libgcc
45454
45455clean-target-libgcc:
45456 @: $(MAKE); $(unstage)
45457 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
45458 r=`${PWD_COMMAND}`; export r; \
45459 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45460 $(NORMAL_TARGET_EXPORTS) \
45461 echo "Doing clean in $(TARGET_SUBDIR)/libgcc" ; \
45462 for flag in $(EXTRA_TARGET_FLAGS); do \
45463 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45464 done; \
45465 (cd $(TARGET_SUBDIR)/libgcc && \
45466 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45467 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45468 "RANLIB=$${RANLIB}" \
bffcbe34 45469 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
1f316156
DJ
45470 clean) \
45471 || exit 1
45472
45473@endif target-libgcc
45474
45475.PHONY: maybe-distclean-target-libgcc distclean-target-libgcc
45476maybe-distclean-target-libgcc:
45477@if target-libgcc
45478maybe-distclean-target-libgcc: distclean-target-libgcc
45479
45480distclean-target-libgcc:
45481 @: $(MAKE); $(unstage)
45482 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
45483 r=`${PWD_COMMAND}`; export r; \
45484 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45485 $(NORMAL_TARGET_EXPORTS) \
45486 echo "Doing distclean in $(TARGET_SUBDIR)/libgcc" ; \
45487 for flag in $(EXTRA_TARGET_FLAGS); do \
45488 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45489 done; \
45490 (cd $(TARGET_SUBDIR)/libgcc && \
45491 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45492 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45493 "RANLIB=$${RANLIB}" \
bffcbe34 45494 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
1f316156
DJ
45495 distclean) \
45496 || exit 1
45497
45498@endif target-libgcc
45499
45500.PHONY: maybe-maintainer-clean-target-libgcc maintainer-clean-target-libgcc
45501maybe-maintainer-clean-target-libgcc:
45502@if target-libgcc
45503maybe-maintainer-clean-target-libgcc: maintainer-clean-target-libgcc
45504
45505maintainer-clean-target-libgcc:
45506 @: $(MAKE); $(unstage)
45507 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
45508 r=`${PWD_COMMAND}`; export r; \
45509 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45510 $(NORMAL_TARGET_EXPORTS) \
45511 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgcc" ; \
45512 for flag in $(EXTRA_TARGET_FLAGS); do \
45513 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45514 done; \
45515 (cd $(TARGET_SUBDIR)/libgcc && \
45516 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45517 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45518 "RANLIB=$${RANLIB}" \
bffcbe34 45519 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
1f316156
DJ
45520 maintainer-clean) \
45521 || exit 1
45522
45523@endif target-libgcc
45524
45525
45526
45527
45528
f0fdfd34
PB
45529.PHONY: configure-target-libgfortran maybe-configure-target-libgfortran
45530maybe-configure-target-libgfortran:
e1e5148c
CD
45531@if gcc-bootstrap
45532configure-target-libgfortran: stage_current
45533@endif gcc-bootstrap
f0fdfd34
PB
45534@if target-libgfortran
45535maybe-configure-target-libgfortran: configure-target-libgfortran
ec92c4d6 45536configure-target-libgfortran:
15b527ca
PB
45537 @: $(MAKE); $(unstage)
45538 @r=`${PWD_COMMAND}`; export r; \
45539 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45540 echo "Checking multilib configuration for libgfortran..."; \
45541 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgfortran ; \
45542 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgfortran/multilib.tmp 2> /dev/null ; \
45543 if test -r $(TARGET_SUBDIR)/libgfortran/multilib.out; then \
45544 if cmp -s $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; then \
45545 rm -f $(TARGET_SUBDIR)/libgfortran/multilib.tmp; \
45546 else \
45547 rm -f $(TARGET_SUBDIR)/libgfortran/Makefile; \
45548 mv $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; \
45549 fi; \
45550 else \
45551 mv $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; \
ec92c4d6
PB
45552 fi; \
45553 test ! -f $(TARGET_SUBDIR)/libgfortran/Makefile || exit 0; \
cb2333e8 45554 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgfortran ; \
a675b75a 45555 $(NORMAL_TARGET_EXPORTS) \
cb2333e8
DD
45556 echo Configuring in $(TARGET_SUBDIR)/libgfortran; \
45557 cd "$(TARGET_SUBDIR)/libgfortran" || exit 1; \
45558 case $(srcdir) in \
7fc2ca22
PB
45559 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45560 *) topdir=`echo $(TARGET_SUBDIR)/libgfortran/ | \
45561 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
cb2333e8 45562 esac; \
7fc2ca22
PB
45563 srcdiroption="--srcdir=$${topdir}/libgfortran"; \
45564 libsrcdir="$$s/libgfortran"; \
cb2333e8
DD
45565 rm -f no-such-file || : ; \
45566 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
45567 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
45568 --target=${target_alias} $${srcdiroption} \
cb2333e8 45569 || exit 1
a7e609d6 45570@endif target-libgfortran
cb2333e8 45571
f0fdfd34
PB
45572
45573
a8a96878
PB
45574
45575
cb2333e8
DD
45576.PHONY: all-target-libgfortran maybe-all-target-libgfortran
45577maybe-all-target-libgfortran:
e1e5148c
CD
45578@if gcc-bootstrap
45579all-target-libgfortran: stage_current
45580@endif gcc-bootstrap
a7e609d6 45581@if target-libgfortran
6a19fd82 45582TARGET-target-libgfortran=all
a7e609d6 45583maybe-all-target-libgfortran: all-target-libgfortran
cb2333e8 45584all-target-libgfortran: configure-target-libgfortran
15b527ca 45585 @: $(MAKE); $(unstage)
cb2333e8
DD
45586 @r=`${PWD_COMMAND}`; export r; \
45587 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 45588 $(NORMAL_TARGET_EXPORTS) \
cb2333e8 45589 (cd $(TARGET_SUBDIR)/libgfortran && \
6532abb6
PB
45590 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
45591 $(TARGET-target-libgfortran))
a7e609d6 45592@endif target-libgfortran
cb2333e8 45593
f0fdfd34
PB
45594
45595
a8a96878
PB
45596
45597
cb2333e8
DD
45598.PHONY: check-target-libgfortran maybe-check-target-libgfortran
45599maybe-check-target-libgfortran:
a7e609d6
PB
45600@if target-libgfortran
45601maybe-check-target-libgfortran: check-target-libgfortran
cb2333e8
DD
45602
45603check-target-libgfortran:
15b527ca 45604 @: $(MAKE); $(unstage)
cb2333e8
DD
45605 @r=`${PWD_COMMAND}`; export r; \
45606 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 45607 $(NORMAL_TARGET_EXPORTS) \
cb2333e8 45608 (cd $(TARGET_SUBDIR)/libgfortran && \
63673a5b 45609 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
cb2333e8 45610
a7e609d6 45611@endif target-libgfortran
cb2333e8
DD
45612
45613.PHONY: install-target-libgfortran maybe-install-target-libgfortran
45614maybe-install-target-libgfortran:
a7e609d6
PB
45615@if target-libgfortran
45616maybe-install-target-libgfortran: install-target-libgfortran
cb2333e8
DD
45617
45618install-target-libgfortran: installdirs
15b527ca 45619 @: $(MAKE); $(unstage)
cb2333e8
DD
45620 @r=`${PWD_COMMAND}`; export r; \
45621 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 45622 $(NORMAL_TARGET_EXPORTS) \
cb2333e8 45623 (cd $(TARGET_SUBDIR)/libgfortran && \
63673a5b 45624 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
cb2333e8 45625
a7e609d6 45626@endif target-libgfortran
cb2333e8 45627
39bbbb69 45628# Other targets (info, dvi, pdf, etc.)
cb2333e8
DD
45629
45630.PHONY: maybe-info-target-libgfortran info-target-libgfortran
45631maybe-info-target-libgfortran:
a7e609d6
PB
45632@if target-libgfortran
45633maybe-info-target-libgfortran: info-target-libgfortran
cb2333e8
DD
45634
45635info-target-libgfortran: \
45636 configure-target-libgfortran
15b527ca 45637 @: $(MAKE); $(unstage)
cb2333e8
DD
45638 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
45639 r=`${PWD_COMMAND}`; export r; \
45640 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 45641 $(NORMAL_TARGET_EXPORTS) \
cb2333e8
DD
45642 echo "Doing info in $(TARGET_SUBDIR)/libgfortran" ; \
45643 for flag in $(EXTRA_TARGET_FLAGS); do \
45644 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45645 done; \
45646 (cd $(TARGET_SUBDIR)/libgfortran && \
45647 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45648 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45649 "RANLIB=$${RANLIB}" \
bffcbe34 45650 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 45651 info) \
cb2333e8
DD
45652 || exit 1
45653
a7e609d6 45654@endif target-libgfortran
cb2333e8
DD
45655
45656.PHONY: maybe-dvi-target-libgfortran dvi-target-libgfortran
45657maybe-dvi-target-libgfortran:
a7e609d6
PB
45658@if target-libgfortran
45659maybe-dvi-target-libgfortran: dvi-target-libgfortran
cb2333e8
DD
45660
45661dvi-target-libgfortran: \
45662 configure-target-libgfortran
15b527ca 45663 @: $(MAKE); $(unstage)
cb2333e8
DD
45664 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
45665 r=`${PWD_COMMAND}`; export r; \
45666 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 45667 $(NORMAL_TARGET_EXPORTS) \
cb2333e8
DD
45668 echo "Doing dvi in $(TARGET_SUBDIR)/libgfortran" ; \
45669 for flag in $(EXTRA_TARGET_FLAGS); do \
45670 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45671 done; \
45672 (cd $(TARGET_SUBDIR)/libgfortran && \
45673 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45674 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45675 "RANLIB=$${RANLIB}" \
bffcbe34 45676 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 45677 dvi) \
cb2333e8
DD
45678 || exit 1
45679
a7e609d6 45680@endif target-libgfortran
cb2333e8 45681
39bbbb69
DD
45682.PHONY: maybe-pdf-target-libgfortran pdf-target-libgfortran
45683maybe-pdf-target-libgfortran:
45684@if target-libgfortran
45685maybe-pdf-target-libgfortran: pdf-target-libgfortran
45686
45687pdf-target-libgfortran: \
45688 configure-target-libgfortran
45689 @: $(MAKE); $(unstage)
45690 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
45691 r=`${PWD_COMMAND}`; export r; \
45692 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45693 $(NORMAL_TARGET_EXPORTS) \
45694 echo "Doing pdf in $(TARGET_SUBDIR)/libgfortran" ; \
45695 for flag in $(EXTRA_TARGET_FLAGS); do \
45696 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45697 done; \
45698 (cd $(TARGET_SUBDIR)/libgfortran && \
45699 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45700 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45701 "RANLIB=$${RANLIB}" \
bffcbe34 45702 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
45703 pdf) \
45704 || exit 1
45705
45706@endif target-libgfortran
45707
b6fb961f
MS
45708.PHONY: maybe-html-target-libgfortran html-target-libgfortran
45709maybe-html-target-libgfortran:
45710@if target-libgfortran
45711maybe-html-target-libgfortran: html-target-libgfortran
45712
45713html-target-libgfortran: \
45714 configure-target-libgfortran
15b527ca 45715 @: $(MAKE); $(unstage)
b6fb961f
MS
45716 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
45717 r=`${PWD_COMMAND}`; export r; \
45718 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
45719 $(NORMAL_TARGET_EXPORTS) \
45720 echo "Doing html in $(TARGET_SUBDIR)/libgfortran" ; \
45721 for flag in $(EXTRA_TARGET_FLAGS); do \
45722 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45723 done; \
45724 (cd $(TARGET_SUBDIR)/libgfortran && \
45725 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45726 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45727 "RANLIB=$${RANLIB}" \
bffcbe34 45728 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
45729 html) \
45730 || exit 1
45731
45732@endif target-libgfortran
45733
cb2333e8
DD
45734.PHONY: maybe-TAGS-target-libgfortran TAGS-target-libgfortran
45735maybe-TAGS-target-libgfortran:
a7e609d6
PB
45736@if target-libgfortran
45737maybe-TAGS-target-libgfortran: TAGS-target-libgfortran
cb2333e8
DD
45738
45739TAGS-target-libgfortran: \
45740 configure-target-libgfortran
15b527ca 45741 @: $(MAKE); $(unstage)
cb2333e8
DD
45742 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
45743 r=`${PWD_COMMAND}`; export r; \
45744 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 45745 $(NORMAL_TARGET_EXPORTS) \
cb2333e8
DD
45746 echo "Doing TAGS in $(TARGET_SUBDIR)/libgfortran" ; \
45747 for flag in $(EXTRA_TARGET_FLAGS); do \
45748 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45749 done; \
45750 (cd $(TARGET_SUBDIR)/libgfortran && \
45751 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45752 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45753 "RANLIB=$${RANLIB}" \
bffcbe34 45754 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 45755 TAGS) \
cb2333e8
DD
45756 || exit 1
45757
a7e609d6 45758@endif target-libgfortran
cb2333e8
DD
45759
45760.PHONY: maybe-install-info-target-libgfortran install-info-target-libgfortran
45761maybe-install-info-target-libgfortran:
a7e609d6
PB
45762@if target-libgfortran
45763maybe-install-info-target-libgfortran: install-info-target-libgfortran
cb2333e8
DD
45764
45765install-info-target-libgfortran: \
45766 configure-target-libgfortran \
45767 info-target-libgfortran
15b527ca 45768 @: $(MAKE); $(unstage)
cb2333e8
DD
45769 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
45770 r=`${PWD_COMMAND}`; export r; \
45771 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 45772 $(NORMAL_TARGET_EXPORTS) \
cb2333e8
DD
45773 echo "Doing install-info in $(TARGET_SUBDIR)/libgfortran" ; \
45774 for flag in $(EXTRA_TARGET_FLAGS); do \
45775 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45776 done; \
45777 (cd $(TARGET_SUBDIR)/libgfortran && \
45778 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45779 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45780 "RANLIB=$${RANLIB}" \
bffcbe34 45781 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 45782 install-info) \
cb2333e8
DD
45783 || exit 1
45784
a7e609d6 45785@endif target-libgfortran
cb2333e8 45786
d4954b6d
DD
45787.PHONY: maybe-install-pdf-target-libgfortran install-pdf-target-libgfortran
45788maybe-install-pdf-target-libgfortran:
45789@if target-libgfortran
45790maybe-install-pdf-target-libgfortran: install-pdf-target-libgfortran
45791
45792install-pdf-target-libgfortran: \
45793 configure-target-libgfortran \
45794 pdf-target-libgfortran
45795 @: $(MAKE); $(unstage)
45796 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
45797 r=`${PWD_COMMAND}`; export r; \
45798 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45799 $(NORMAL_TARGET_EXPORTS) \
45800 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgfortran" ; \
45801 for flag in $(EXTRA_TARGET_FLAGS); do \
45802 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45803 done; \
45804 (cd $(TARGET_SUBDIR)/libgfortran && \
45805 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45806 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45807 "RANLIB=$${RANLIB}" \
bffcbe34 45808 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
45809 install-pdf) \
45810 || exit 1
45811
45812@endif target-libgfortran
45813
83c9add4
CD
45814.PHONY: maybe-install-html-target-libgfortran install-html-target-libgfortran
45815maybe-install-html-target-libgfortran:
45816@if target-libgfortran
45817maybe-install-html-target-libgfortran: install-html-target-libgfortran
45818
45819install-html-target-libgfortran: \
45820 configure-target-libgfortran \
45821 html-target-libgfortran
45822 @: $(MAKE); $(unstage)
45823 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
45824 r=`${PWD_COMMAND}`; export r; \
45825 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45826 $(NORMAL_TARGET_EXPORTS) \
45827 echo "Doing install-html in $(TARGET_SUBDIR)/libgfortran" ; \
45828 for flag in $(EXTRA_TARGET_FLAGS); do \
45829 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45830 done; \
45831 (cd $(TARGET_SUBDIR)/libgfortran && \
45832 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45833 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45834 "RANLIB=$${RANLIB}" \
bffcbe34 45835 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
45836 install-html) \
45837 || exit 1
45838
45839@endif target-libgfortran
45840
cb2333e8
DD
45841.PHONY: maybe-installcheck-target-libgfortran installcheck-target-libgfortran
45842maybe-installcheck-target-libgfortran:
a7e609d6
PB
45843@if target-libgfortran
45844maybe-installcheck-target-libgfortran: installcheck-target-libgfortran
cb2333e8
DD
45845
45846installcheck-target-libgfortran: \
45847 configure-target-libgfortran
15b527ca 45848 @: $(MAKE); $(unstage)
cb2333e8
DD
45849 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
45850 r=`${PWD_COMMAND}`; export r; \
45851 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 45852 $(NORMAL_TARGET_EXPORTS) \
cb2333e8
DD
45853 echo "Doing installcheck in $(TARGET_SUBDIR)/libgfortran" ; \
45854 for flag in $(EXTRA_TARGET_FLAGS); do \
45855 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45856 done; \
45857 (cd $(TARGET_SUBDIR)/libgfortran && \
45858 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45859 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45860 "RANLIB=$${RANLIB}" \
bffcbe34 45861 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 45862 installcheck) \
cb2333e8
DD
45863 || exit 1
45864
a7e609d6 45865@endif target-libgfortran
cb2333e8
DD
45866
45867.PHONY: maybe-mostlyclean-target-libgfortran mostlyclean-target-libgfortran
45868maybe-mostlyclean-target-libgfortran:
a7e609d6
PB
45869@if target-libgfortran
45870maybe-mostlyclean-target-libgfortran: mostlyclean-target-libgfortran
cb2333e8
DD
45871
45872mostlyclean-target-libgfortran:
15b527ca 45873 @: $(MAKE); $(unstage)
cb2333e8
DD
45874 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
45875 r=`${PWD_COMMAND}`; export r; \
45876 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 45877 $(NORMAL_TARGET_EXPORTS) \
cb2333e8
DD
45878 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgfortran" ; \
45879 for flag in $(EXTRA_TARGET_FLAGS); do \
45880 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45881 done; \
45882 (cd $(TARGET_SUBDIR)/libgfortran && \
45883 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45884 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45885 "RANLIB=$${RANLIB}" \
bffcbe34 45886 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 45887 mostlyclean) \
cb2333e8
DD
45888 || exit 1
45889
a7e609d6 45890@endif target-libgfortran
cb2333e8
DD
45891
45892.PHONY: maybe-clean-target-libgfortran clean-target-libgfortran
45893maybe-clean-target-libgfortran:
a7e609d6
PB
45894@if target-libgfortran
45895maybe-clean-target-libgfortran: clean-target-libgfortran
cb2333e8
DD
45896
45897clean-target-libgfortran:
15b527ca 45898 @: $(MAKE); $(unstage)
cb2333e8
DD
45899 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
45900 r=`${PWD_COMMAND}`; export r; \
45901 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 45902 $(NORMAL_TARGET_EXPORTS) \
cb2333e8
DD
45903 echo "Doing clean in $(TARGET_SUBDIR)/libgfortran" ; \
45904 for flag in $(EXTRA_TARGET_FLAGS); do \
45905 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45906 done; \
45907 (cd $(TARGET_SUBDIR)/libgfortran && \
45908 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45909 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45910 "RANLIB=$${RANLIB}" \
bffcbe34 45911 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 45912 clean) \
cb2333e8
DD
45913 || exit 1
45914
a7e609d6 45915@endif target-libgfortran
cb2333e8
DD
45916
45917.PHONY: maybe-distclean-target-libgfortran distclean-target-libgfortran
45918maybe-distclean-target-libgfortran:
a7e609d6
PB
45919@if target-libgfortran
45920maybe-distclean-target-libgfortran: distclean-target-libgfortran
cb2333e8
DD
45921
45922distclean-target-libgfortran:
15b527ca 45923 @: $(MAKE); $(unstage)
cb2333e8
DD
45924 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
45925 r=`${PWD_COMMAND}`; export r; \
45926 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 45927 $(NORMAL_TARGET_EXPORTS) \
cb2333e8
DD
45928 echo "Doing distclean in $(TARGET_SUBDIR)/libgfortran" ; \
45929 for flag in $(EXTRA_TARGET_FLAGS); do \
45930 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45931 done; \
45932 (cd $(TARGET_SUBDIR)/libgfortran && \
45933 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45934 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45935 "RANLIB=$${RANLIB}" \
bffcbe34 45936 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 45937 distclean) \
cb2333e8
DD
45938 || exit 1
45939
a7e609d6 45940@endif target-libgfortran
cb2333e8
DD
45941
45942.PHONY: maybe-maintainer-clean-target-libgfortran maintainer-clean-target-libgfortran
45943maybe-maintainer-clean-target-libgfortran:
a7e609d6
PB
45944@if target-libgfortran
45945maybe-maintainer-clean-target-libgfortran: maintainer-clean-target-libgfortran
cb2333e8
DD
45946
45947maintainer-clean-target-libgfortran:
15b527ca 45948 @: $(MAKE); $(unstage)
cb2333e8
DD
45949 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
45950 r=`${PWD_COMMAND}`; export r; \
45951 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 45952 $(NORMAL_TARGET_EXPORTS) \
cb2333e8
DD
45953 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgfortran" ; \
45954 for flag in $(EXTRA_TARGET_FLAGS); do \
45955 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45956 done; \
45957 (cd $(TARGET_SUBDIR)/libgfortran && \
45958 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45959 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45960 "RANLIB=$${RANLIB}" \
bffcbe34 45961 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 45962 maintainer-clean) \
cb2333e8
DD
45963 || exit 1
45964
a7e609d6 45965@endif target-libgfortran
cb2333e8
DD
45966
45967
8ecc6504 45968
f0fdfd34 45969
f3fd76d4 45970
f0fdfd34
PB
45971.PHONY: configure-target-libobjc maybe-configure-target-libobjc
45972maybe-configure-target-libobjc:
e1e5148c
CD
45973@if gcc-bootstrap
45974configure-target-libobjc: stage_current
45975@endif gcc-bootstrap
f0fdfd34
PB
45976@if target-libobjc
45977maybe-configure-target-libobjc: configure-target-libobjc
ec92c4d6 45978configure-target-libobjc:
15b527ca
PB
45979 @: $(MAKE); $(unstage)
45980 @r=`${PWD_COMMAND}`; export r; \
45981 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45982 echo "Checking multilib configuration for libobjc..."; \
45983 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libobjc ; \
45984 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libobjc/multilib.tmp 2> /dev/null ; \
45985 if test -r $(TARGET_SUBDIR)/libobjc/multilib.out; then \
45986 if cmp -s $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; then \
45987 rm -f $(TARGET_SUBDIR)/libobjc/multilib.tmp; \
45988 else \
45989 rm -f $(TARGET_SUBDIR)/libobjc/Makefile; \
45990 mv $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; \
45991 fi; \
45992 else \
45993 mv $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; \
ec92c4d6
PB
45994 fi; \
45995 test ! -f $(TARGET_SUBDIR)/libobjc/Makefile || exit 0; \
8ec98d6c 45996 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libobjc ; \
a675b75a 45997 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
45998 echo Configuring in $(TARGET_SUBDIR)/libobjc; \
45999 cd "$(TARGET_SUBDIR)/libobjc" || exit 1; \
94f860c0 46000 case $(srcdir) in \
7fc2ca22
PB
46001 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
46002 *) topdir=`echo $(TARGET_SUBDIR)/libobjc/ | \
46003 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 46004 esac; \
7fc2ca22
PB
46005 srcdiroption="--srcdir=$${topdir}/libobjc"; \
46006 libsrcdir="$$s/libobjc"; \
8ec98d6c
NN
46007 rm -f no-such-file || : ; \
46008 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
46009 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
46010 --target=${target_alias} $${srcdiroption} \
94f860c0 46011 || exit 1
a7e609d6 46012@endif target-libobjc
94f860c0 46013
f0fdfd34
PB
46014
46015
a8a96878
PB
46016
46017
8ec98d6c
NN
46018.PHONY: all-target-libobjc maybe-all-target-libobjc
46019maybe-all-target-libobjc:
e1e5148c
CD
46020@if gcc-bootstrap
46021all-target-libobjc: stage_current
46022@endif gcc-bootstrap
a7e609d6 46023@if target-libobjc
6a19fd82 46024TARGET-target-libobjc=all
a7e609d6 46025maybe-all-target-libobjc: all-target-libobjc
8ec98d6c 46026all-target-libobjc: configure-target-libobjc
15b527ca 46027 @: $(MAKE); $(unstage)
5230d454
L
46028 @r=`${PWD_COMMAND}`; export r; \
46029 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 46030 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 46031 (cd $(TARGET_SUBDIR)/libobjc && \
6532abb6
PB
46032 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
46033 $(TARGET-target-libobjc))
a7e609d6 46034@endif target-libobjc
8ecc6504 46035
f0fdfd34
PB
46036
46037
a8a96878
PB
46038
46039
8ec98d6c
NN
46040.PHONY: check-target-libobjc maybe-check-target-libobjc
46041maybe-check-target-libobjc:
a7e609d6
PB
46042@if target-libobjc
46043maybe-check-target-libobjc: check-target-libobjc
8ecc6504 46044
8ec98d6c 46045check-target-libobjc:
15b527ca 46046 @: $(MAKE); $(unstage)
5230d454
L
46047 @r=`${PWD_COMMAND}`; export r; \
46048 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 46049 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 46050 (cd $(TARGET_SUBDIR)/libobjc && \
63673a5b 46051 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
8ecc6504 46052
a7e609d6 46053@endif target-libobjc
8ecc6504 46054
8ec98d6c
NN
46055.PHONY: install-target-libobjc maybe-install-target-libobjc
46056maybe-install-target-libobjc:
a7e609d6
PB
46057@if target-libobjc
46058maybe-install-target-libobjc: install-target-libobjc
94f860c0 46059
8ec98d6c 46060install-target-libobjc: installdirs
15b527ca 46061 @: $(MAKE); $(unstage)
5230d454
L
46062 @r=`${PWD_COMMAND}`; export r; \
46063 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 46064 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 46065 (cd $(TARGET_SUBDIR)/libobjc && \
63673a5b 46066 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
8ecc6504 46067
a7e609d6 46068@endif target-libobjc
8ecc6504 46069
39bbbb69 46070# Other targets (info, dvi, pdf, etc.)
8ec98d6c
NN
46071
46072.PHONY: maybe-info-target-libobjc info-target-libobjc
46073maybe-info-target-libobjc:
a7e609d6
PB
46074@if target-libobjc
46075maybe-info-target-libobjc: info-target-libobjc
8ec98d6c
NN
46076
46077info-target-libobjc: \
46078 configure-target-libobjc
15b527ca 46079 @: $(MAKE); $(unstage)
8ec98d6c
NN
46080 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
46081 r=`${PWD_COMMAND}`; export r; \
5230d454 46082 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 46083 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
46084 echo "Doing info in $(TARGET_SUBDIR)/libobjc" ; \
46085 for flag in $(EXTRA_TARGET_FLAGS); do \
46086 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46087 done; \
46088 (cd $(TARGET_SUBDIR)/libobjc && \
46089 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46090 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46091 "RANLIB=$${RANLIB}" \
bffcbe34 46092 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 46093 info) \
8ec98d6c 46094 || exit 1
8ecc6504 46095
a7e609d6 46096@endif target-libobjc
8ecc6504 46097
8ec98d6c
NN
46098.PHONY: maybe-dvi-target-libobjc dvi-target-libobjc
46099maybe-dvi-target-libobjc:
a7e609d6
PB
46100@if target-libobjc
46101maybe-dvi-target-libobjc: dvi-target-libobjc
70ffc148 46102
8ec98d6c
NN
46103dvi-target-libobjc: \
46104 configure-target-libobjc
15b527ca 46105 @: $(MAKE); $(unstage)
8ec98d6c
NN
46106 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
46107 r=`${PWD_COMMAND}`; export r; \
5230d454 46108 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 46109 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
46110 echo "Doing dvi in $(TARGET_SUBDIR)/libobjc" ; \
46111 for flag in $(EXTRA_TARGET_FLAGS); do \
46112 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46113 done; \
46114 (cd $(TARGET_SUBDIR)/libobjc && \
46115 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46116 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46117 "RANLIB=$${RANLIB}" \
bffcbe34 46118 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 46119 dvi) \
8ec98d6c 46120 || exit 1
8ecc6504 46121
a7e609d6 46122@endif target-libobjc
8ecc6504 46123
39bbbb69
DD
46124.PHONY: maybe-pdf-target-libobjc pdf-target-libobjc
46125maybe-pdf-target-libobjc:
46126@if target-libobjc
46127maybe-pdf-target-libobjc: pdf-target-libobjc
46128
46129pdf-target-libobjc: \
46130 configure-target-libobjc
46131 @: $(MAKE); $(unstage)
46132 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
46133 r=`${PWD_COMMAND}`; export r; \
46134 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46135 $(NORMAL_TARGET_EXPORTS) \
46136 echo "Doing pdf in $(TARGET_SUBDIR)/libobjc" ; \
46137 for flag in $(EXTRA_TARGET_FLAGS); do \
46138 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46139 done; \
46140 (cd $(TARGET_SUBDIR)/libobjc && \
46141 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46142 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46143 "RANLIB=$${RANLIB}" \
bffcbe34 46144 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
46145 pdf) \
46146 || exit 1
46147
46148@endif target-libobjc
46149
b6fb961f
MS
46150.PHONY: maybe-html-target-libobjc html-target-libobjc
46151maybe-html-target-libobjc:
46152@if target-libobjc
46153maybe-html-target-libobjc: html-target-libobjc
46154
46155html-target-libobjc: \
46156 configure-target-libobjc
15b527ca 46157 @: $(MAKE); $(unstage)
b6fb961f
MS
46158 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
46159 r=`${PWD_COMMAND}`; export r; \
46160 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
46161 $(NORMAL_TARGET_EXPORTS) \
46162 echo "Doing html in $(TARGET_SUBDIR)/libobjc" ; \
46163 for flag in $(EXTRA_TARGET_FLAGS); do \
46164 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46165 done; \
46166 (cd $(TARGET_SUBDIR)/libobjc && \
46167 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46168 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46169 "RANLIB=$${RANLIB}" \
bffcbe34 46170 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
46171 html) \
46172 || exit 1
46173
46174@endif target-libobjc
46175
8ec98d6c
NN
46176.PHONY: maybe-TAGS-target-libobjc TAGS-target-libobjc
46177maybe-TAGS-target-libobjc:
a7e609d6
PB
46178@if target-libobjc
46179maybe-TAGS-target-libobjc: TAGS-target-libobjc
8ec98d6c
NN
46180
46181TAGS-target-libobjc: \
46182 configure-target-libobjc
15b527ca 46183 @: $(MAKE); $(unstage)
8ec98d6c 46184 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
5230d454
L
46185 r=`${PWD_COMMAND}`; export r; \
46186 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 46187 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
46188 echo "Doing TAGS in $(TARGET_SUBDIR)/libobjc" ; \
46189 for flag in $(EXTRA_TARGET_FLAGS); do \
46190 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46191 done; \
46192 (cd $(TARGET_SUBDIR)/libobjc && \
46193 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46194 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46195 "RANLIB=$${RANLIB}" \
bffcbe34 46196 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 46197 TAGS) \
94f860c0
NN
46198 || exit 1
46199
a7e609d6 46200@endif target-libobjc
8ec98d6c
NN
46201
46202.PHONY: maybe-install-info-target-libobjc install-info-target-libobjc
46203maybe-install-info-target-libobjc:
a7e609d6
PB
46204@if target-libobjc
46205maybe-install-info-target-libobjc: install-info-target-libobjc
8ec98d6c
NN
46206
46207install-info-target-libobjc: \
46208 configure-target-libobjc \
46209 info-target-libobjc
15b527ca 46210 @: $(MAKE); $(unstage)
8ec98d6c
NN
46211 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
46212 r=`${PWD_COMMAND}`; export r; \
5230d454 46213 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 46214 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
46215 echo "Doing install-info in $(TARGET_SUBDIR)/libobjc" ; \
46216 for flag in $(EXTRA_TARGET_FLAGS); do \
46217 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46218 done; \
46219 (cd $(TARGET_SUBDIR)/libobjc && \
46220 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46221 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46222 "RANLIB=$${RANLIB}" \
bffcbe34 46223 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 46224 install-info) \
8ec98d6c 46225 || exit 1
8ecc6504 46226
a7e609d6 46227@endif target-libobjc
8ecc6504 46228
d4954b6d
DD
46229.PHONY: maybe-install-pdf-target-libobjc install-pdf-target-libobjc
46230maybe-install-pdf-target-libobjc:
46231@if target-libobjc
46232maybe-install-pdf-target-libobjc: install-pdf-target-libobjc
46233
46234install-pdf-target-libobjc: \
46235 configure-target-libobjc \
46236 pdf-target-libobjc
46237 @: $(MAKE); $(unstage)
46238 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
46239 r=`${PWD_COMMAND}`; export r; \
46240 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46241 $(NORMAL_TARGET_EXPORTS) \
46242 echo "Doing install-pdf in $(TARGET_SUBDIR)/libobjc" ; \
46243 for flag in $(EXTRA_TARGET_FLAGS); do \
46244 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46245 done; \
46246 (cd $(TARGET_SUBDIR)/libobjc && \
46247 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46248 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46249 "RANLIB=$${RANLIB}" \
bffcbe34 46250 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
46251 install-pdf) \
46252 || exit 1
46253
46254@endif target-libobjc
46255
83c9add4
CD
46256.PHONY: maybe-install-html-target-libobjc install-html-target-libobjc
46257maybe-install-html-target-libobjc:
46258@if target-libobjc
46259maybe-install-html-target-libobjc: install-html-target-libobjc
46260
46261install-html-target-libobjc: \
46262 configure-target-libobjc \
46263 html-target-libobjc
46264 @: $(MAKE); $(unstage)
46265 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
46266 r=`${PWD_COMMAND}`; export r; \
46267 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46268 $(NORMAL_TARGET_EXPORTS) \
46269 echo "Doing install-html in $(TARGET_SUBDIR)/libobjc" ; \
46270 for flag in $(EXTRA_TARGET_FLAGS); do \
46271 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46272 done; \
46273 (cd $(TARGET_SUBDIR)/libobjc && \
46274 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46275 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46276 "RANLIB=$${RANLIB}" \
bffcbe34 46277 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
46278 install-html) \
46279 || exit 1
46280
46281@endif target-libobjc
46282
8ec98d6c
NN
46283.PHONY: maybe-installcheck-target-libobjc installcheck-target-libobjc
46284maybe-installcheck-target-libobjc:
a7e609d6
PB
46285@if target-libobjc
46286maybe-installcheck-target-libobjc: installcheck-target-libobjc
8ec98d6c
NN
46287
46288installcheck-target-libobjc: \
46289 configure-target-libobjc
15b527ca 46290 @: $(MAKE); $(unstage)
8ec98d6c
NN
46291 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
46292 r=`${PWD_COMMAND}`; export r; \
5230d454 46293 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 46294 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
46295 echo "Doing installcheck in $(TARGET_SUBDIR)/libobjc" ; \
46296 for flag in $(EXTRA_TARGET_FLAGS); do \
46297 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46298 done; \
46299 (cd $(TARGET_SUBDIR)/libobjc && \
46300 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46301 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46302 "RANLIB=$${RANLIB}" \
bffcbe34 46303 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 46304 installcheck) \
8ec98d6c 46305 || exit 1
8ecc6504 46306
a7e609d6 46307@endif target-libobjc
8ecc6504 46308
8ec98d6c
NN
46309.PHONY: maybe-mostlyclean-target-libobjc mostlyclean-target-libobjc
46310maybe-mostlyclean-target-libobjc:
a7e609d6
PB
46311@if target-libobjc
46312maybe-mostlyclean-target-libobjc: mostlyclean-target-libobjc
70ffc148 46313
8ec98d6c 46314mostlyclean-target-libobjc:
15b527ca 46315 @: $(MAKE); $(unstage)
8ec98d6c
NN
46316 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
46317 r=`${PWD_COMMAND}`; export r; \
5230d454 46318 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 46319 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
46320 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libobjc" ; \
46321 for flag in $(EXTRA_TARGET_FLAGS); do \
46322 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46323 done; \
46324 (cd $(TARGET_SUBDIR)/libobjc && \
46325 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46326 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46327 "RANLIB=$${RANLIB}" \
bffcbe34 46328 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 46329 mostlyclean) \
8ec98d6c 46330 || exit 1
8ecc6504 46331
a7e609d6 46332@endif target-libobjc
8ecc6504 46333
8ec98d6c
NN
46334.PHONY: maybe-clean-target-libobjc clean-target-libobjc
46335maybe-clean-target-libobjc:
a7e609d6
PB
46336@if target-libobjc
46337maybe-clean-target-libobjc: clean-target-libobjc
8ec98d6c
NN
46338
46339clean-target-libobjc:
15b527ca 46340 @: $(MAKE); $(unstage)
8ec98d6c 46341 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
5230d454
L
46342 r=`${PWD_COMMAND}`; export r; \
46343 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 46344 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
46345 echo "Doing clean in $(TARGET_SUBDIR)/libobjc" ; \
46346 for flag in $(EXTRA_TARGET_FLAGS); do \
46347 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46348 done; \
46349 (cd $(TARGET_SUBDIR)/libobjc && \
46350 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46351 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46352 "RANLIB=$${RANLIB}" \
bffcbe34 46353 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 46354 clean) \
94f860c0
NN
46355 || exit 1
46356
a7e609d6 46357@endif target-libobjc
8ecc6504 46358
8ec98d6c
NN
46359.PHONY: maybe-distclean-target-libobjc distclean-target-libobjc
46360maybe-distclean-target-libobjc:
a7e609d6
PB
46361@if target-libobjc
46362maybe-distclean-target-libobjc: distclean-target-libobjc
8ecc6504 46363
8ec98d6c 46364distclean-target-libobjc:
15b527ca 46365 @: $(MAKE); $(unstage)
8ec98d6c
NN
46366 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
46367 r=`${PWD_COMMAND}`; export r; \
5230d454 46368 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 46369 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
46370 echo "Doing distclean in $(TARGET_SUBDIR)/libobjc" ; \
46371 for flag in $(EXTRA_TARGET_FLAGS); do \
46372 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46373 done; \
46374 (cd $(TARGET_SUBDIR)/libobjc && \
46375 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46376 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46377 "RANLIB=$${RANLIB}" \
bffcbe34 46378 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 46379 distclean) \
8ec98d6c 46380 || exit 1
8ecc6504 46381
a7e609d6 46382@endif target-libobjc
8ecc6504 46383
8ec98d6c
NN
46384.PHONY: maybe-maintainer-clean-target-libobjc maintainer-clean-target-libobjc
46385maybe-maintainer-clean-target-libobjc:
a7e609d6
PB
46386@if target-libobjc
46387maybe-maintainer-clean-target-libobjc: maintainer-clean-target-libobjc
70ffc148 46388
8ec98d6c 46389maintainer-clean-target-libobjc:
15b527ca 46390 @: $(MAKE); $(unstage)
8ec98d6c
NN
46391 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
46392 r=`${PWD_COMMAND}`; export r; \
5230d454 46393 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 46394 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
46395 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libobjc" ; \
46396 for flag in $(EXTRA_TARGET_FLAGS); do \
46397 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46398 done; \
46399 (cd $(TARGET_SUBDIR)/libobjc && \
46400 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46401 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46402 "RANLIB=$${RANLIB}" \
bffcbe34 46403 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 46404 maintainer-clean) \
8ec98d6c 46405 || exit 1
8ecc6504 46406
a7e609d6 46407@endif target-libobjc
8ecc6504 46408
8ec98d6c 46409
8ec98d6c 46410
f0fdfd34 46411
f3fd76d4 46412
f0fdfd34
PB
46413.PHONY: configure-target-libtermcap maybe-configure-target-libtermcap
46414maybe-configure-target-libtermcap:
e1e5148c
CD
46415@if gcc-bootstrap
46416configure-target-libtermcap: stage_current
46417@endif gcc-bootstrap
f0fdfd34
PB
46418@if target-libtermcap
46419maybe-configure-target-libtermcap: configure-target-libtermcap
ec92c4d6 46420configure-target-libtermcap:
15b527ca
PB
46421 @: $(MAKE); $(unstage)
46422 @r=`${PWD_COMMAND}`; export r; \
46423 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46424 echo "Checking multilib configuration for libtermcap..."; \
46425 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libtermcap ; \
46426 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libtermcap/multilib.tmp 2> /dev/null ; \
46427 if test -r $(TARGET_SUBDIR)/libtermcap/multilib.out; then \
46428 if cmp -s $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; then \
46429 rm -f $(TARGET_SUBDIR)/libtermcap/multilib.tmp; \
46430 else \
46431 rm -f $(TARGET_SUBDIR)/libtermcap/Makefile; \
46432 mv $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; \
46433 fi; \
46434 else \
46435 mv $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; \
ec92c4d6
PB
46436 fi; \
46437 test ! -f $(TARGET_SUBDIR)/libtermcap/Makefile || exit 0; \
8ec98d6c 46438 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libtermcap ; \
a675b75a 46439 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
46440 echo Configuring in $(TARGET_SUBDIR)/libtermcap; \
46441 cd "$(TARGET_SUBDIR)/libtermcap" || exit 1; \
94f860c0 46442 case $(srcdir) in \
7fc2ca22
PB
46443 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
46444 *) topdir=`echo $(TARGET_SUBDIR)/libtermcap/ | \
46445 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 46446 esac; \
7fc2ca22
PB
46447 srcdiroption="--srcdir=$${topdir}/libtermcap"; \
46448 libsrcdir="$$s/libtermcap"; \
8ec98d6c
NN
46449 rm -f no-such-file || : ; \
46450 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
46451 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
46452 --target=${target_alias} $${srcdiroption} \
94f860c0 46453 || exit 1
a7e609d6 46454@endif target-libtermcap
94f860c0 46455
f0fdfd34
PB
46456
46457
a8a96878
PB
46458
46459
8ec98d6c
NN
46460.PHONY: all-target-libtermcap maybe-all-target-libtermcap
46461maybe-all-target-libtermcap:
e1e5148c
CD
46462@if gcc-bootstrap
46463all-target-libtermcap: stage_current
46464@endif gcc-bootstrap
a7e609d6 46465@if target-libtermcap
6a19fd82 46466TARGET-target-libtermcap=all
a7e609d6 46467maybe-all-target-libtermcap: all-target-libtermcap
8ec98d6c 46468all-target-libtermcap: configure-target-libtermcap
15b527ca 46469 @: $(MAKE); $(unstage)
5230d454
L
46470 @r=`${PWD_COMMAND}`; export r; \
46471 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 46472 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 46473 (cd $(TARGET_SUBDIR)/libtermcap && \
6532abb6
PB
46474 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
46475 $(TARGET-target-libtermcap))
a7e609d6 46476@endif target-libtermcap
8ecc6504 46477
f0fdfd34
PB
46478
46479
a8a96878
PB
46480
46481
8ec98d6c
NN
46482.PHONY: check-target-libtermcap maybe-check-target-libtermcap
46483maybe-check-target-libtermcap:
a7e609d6
PB
46484@if target-libtermcap
46485maybe-check-target-libtermcap: check-target-libtermcap
8ecc6504 46486
8ec98d6c
NN
46487# Dummy target for uncheckable module.
46488check-target-libtermcap:
46489
a7e609d6 46490@endif target-libtermcap
8ec98d6c
NN
46491
46492.PHONY: install-target-libtermcap maybe-install-target-libtermcap
46493maybe-install-target-libtermcap:
a7e609d6
PB
46494@if target-libtermcap
46495maybe-install-target-libtermcap: install-target-libtermcap
8ec98d6c
NN
46496
46497install-target-libtermcap: installdirs
15b527ca 46498 @: $(MAKE); $(unstage)
5230d454
L
46499 @r=`${PWD_COMMAND}`; export r; \
46500 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 46501 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 46502 (cd $(TARGET_SUBDIR)/libtermcap && \
63673a5b 46503 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
8ecc6504 46504
a7e609d6 46505@endif target-libtermcap
8ecc6504 46506
39bbbb69 46507# Other targets (info, dvi, pdf, etc.)
70ffc148 46508
8ec98d6c
NN
46509.PHONY: maybe-info-target-libtermcap info-target-libtermcap
46510maybe-info-target-libtermcap:
a7e609d6 46511@if target-libtermcap
b6fb961f
MS
46512maybe-info-target-libtermcap: info-target-libtermcap
46513
46514info-target-libtermcap: \
46515 configure-target-libtermcap
15b527ca 46516 @: $(MAKE); $(unstage)
b6fb961f
MS
46517 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
46518 r=`${PWD_COMMAND}`; export r; \
46519 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
46520 $(NORMAL_TARGET_EXPORTS) \
46521 echo "Doing info in $(TARGET_SUBDIR)/libtermcap" ; \
46522 for flag in $(EXTRA_TARGET_FLAGS); do \
46523 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46524 done; \
46525 (cd $(TARGET_SUBDIR)/libtermcap && \
46526 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46527 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46528 "RANLIB=$${RANLIB}" \
bffcbe34 46529 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
46530 info) \
46531 || exit 1
46532
46533@endif target-libtermcap
46534
46535.PHONY: maybe-dvi-target-libtermcap dvi-target-libtermcap
46536maybe-dvi-target-libtermcap:
46537@if target-libtermcap
46538maybe-dvi-target-libtermcap: dvi-target-libtermcap
8ec98d6c 46539
b6fb961f 46540dvi-target-libtermcap: \
8ec98d6c 46541 configure-target-libtermcap
15b527ca 46542 @: $(MAKE); $(unstage)
8ec98d6c
NN
46543 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
46544 r=`${PWD_COMMAND}`; export r; \
5230d454 46545 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 46546 $(NORMAL_TARGET_EXPORTS) \
b6fb961f 46547 echo "Doing dvi in $(TARGET_SUBDIR)/libtermcap" ; \
8ec98d6c
NN
46548 for flag in $(EXTRA_TARGET_FLAGS); do \
46549 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46550 done; \
46551 (cd $(TARGET_SUBDIR)/libtermcap && \
46552 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46553 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46554 "RANLIB=$${RANLIB}" \
bffcbe34 46555 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f 46556 dvi) \
8ec98d6c 46557 || exit 1
8ecc6504 46558
a7e609d6 46559@endif target-libtermcap
8ecc6504 46560
39bbbb69
DD
46561.PHONY: maybe-pdf-target-libtermcap pdf-target-libtermcap
46562maybe-pdf-target-libtermcap:
46563@if target-libtermcap
46564maybe-pdf-target-libtermcap: pdf-target-libtermcap
46565
46566pdf-target-libtermcap: \
46567 configure-target-libtermcap
46568 @: $(MAKE); $(unstage)
46569 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
46570 r=`${PWD_COMMAND}`; export r; \
46571 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46572 $(NORMAL_TARGET_EXPORTS) \
46573 echo "Doing pdf in $(TARGET_SUBDIR)/libtermcap" ; \
46574 for flag in $(EXTRA_TARGET_FLAGS); do \
46575 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46576 done; \
46577 (cd $(TARGET_SUBDIR)/libtermcap && \
46578 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46579 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46580 "RANLIB=$${RANLIB}" \
bffcbe34 46581 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
46582 pdf) \
46583 || exit 1
46584
46585@endif target-libtermcap
46586
b6fb961f
MS
46587.PHONY: maybe-html-target-libtermcap html-target-libtermcap
46588maybe-html-target-libtermcap:
a7e609d6 46589@if target-libtermcap
b6fb961f 46590maybe-html-target-libtermcap: html-target-libtermcap
8ec98d6c 46591
b6fb961f 46592html-target-libtermcap: \
8ec98d6c 46593 configure-target-libtermcap
15b527ca 46594 @: $(MAKE); $(unstage)
8ec98d6c 46595 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
5230d454
L
46596 r=`${PWD_COMMAND}`; export r; \
46597 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 46598 $(NORMAL_TARGET_EXPORTS) \
b6fb961f 46599 echo "Doing html in $(TARGET_SUBDIR)/libtermcap" ; \
8ec98d6c
NN
46600 for flag in $(EXTRA_TARGET_FLAGS); do \
46601 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46602 done; \
46603 (cd $(TARGET_SUBDIR)/libtermcap && \
46604 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46605 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46606 "RANLIB=$${RANLIB}" \
bffcbe34 46607 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f 46608 html) \
94f860c0
NN
46609 || exit 1
46610
a7e609d6 46611@endif target-libtermcap
8ec98d6c
NN
46612
46613.PHONY: maybe-TAGS-target-libtermcap TAGS-target-libtermcap
46614maybe-TAGS-target-libtermcap:
a7e609d6
PB
46615@if target-libtermcap
46616maybe-TAGS-target-libtermcap: TAGS-target-libtermcap
8ec98d6c
NN
46617
46618TAGS-target-libtermcap: \
46619 configure-target-libtermcap
15b527ca 46620 @: $(MAKE); $(unstage)
8ec98d6c
NN
46621 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
46622 r=`${PWD_COMMAND}`; export r; \
5230d454 46623 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 46624 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
46625 echo "Doing TAGS in $(TARGET_SUBDIR)/libtermcap" ; \
46626 for flag in $(EXTRA_TARGET_FLAGS); do \
46627 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46628 done; \
46629 (cd $(TARGET_SUBDIR)/libtermcap && \
46630 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46631 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46632 "RANLIB=$${RANLIB}" \
bffcbe34 46633 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 46634 TAGS) \
8ec98d6c 46635 || exit 1
8ecc6504 46636
a7e609d6 46637@endif target-libtermcap
8ecc6504 46638
8ec98d6c
NN
46639.PHONY: maybe-install-info-target-libtermcap install-info-target-libtermcap
46640maybe-install-info-target-libtermcap:
a7e609d6
PB
46641@if target-libtermcap
46642maybe-install-info-target-libtermcap: install-info-target-libtermcap
8ecc6504 46643
8ec98d6c
NN
46644install-info-target-libtermcap: \
46645 configure-target-libtermcap \
46646 info-target-libtermcap
15b527ca 46647 @: $(MAKE); $(unstage)
8ec98d6c
NN
46648 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
46649 r=`${PWD_COMMAND}`; export r; \
46650 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 46651 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
46652 echo "Doing install-info in $(TARGET_SUBDIR)/libtermcap" ; \
46653 for flag in $(EXTRA_TARGET_FLAGS); do \
46654 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46655 done; \
46656 (cd $(TARGET_SUBDIR)/libtermcap && \
46657 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46658 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46659 "RANLIB=$${RANLIB}" \
bffcbe34 46660 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 46661 install-info) \
8ec98d6c 46662 || exit 1
8ecc6504 46663
a7e609d6 46664@endif target-libtermcap
70ffc148 46665
d4954b6d
DD
46666.PHONY: maybe-install-pdf-target-libtermcap install-pdf-target-libtermcap
46667maybe-install-pdf-target-libtermcap:
46668@if target-libtermcap
46669maybe-install-pdf-target-libtermcap: install-pdf-target-libtermcap
46670
46671install-pdf-target-libtermcap: \
46672 configure-target-libtermcap \
46673 pdf-target-libtermcap
46674 @: $(MAKE); $(unstage)
46675 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
46676 r=`${PWD_COMMAND}`; export r; \
46677 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46678 $(NORMAL_TARGET_EXPORTS) \
46679 echo "Doing install-pdf in $(TARGET_SUBDIR)/libtermcap" ; \
46680 for flag in $(EXTRA_TARGET_FLAGS); do \
46681 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46682 done; \
46683 (cd $(TARGET_SUBDIR)/libtermcap && \
46684 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46685 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46686 "RANLIB=$${RANLIB}" \
bffcbe34 46687 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
46688 install-pdf) \
46689 || exit 1
46690
46691@endif target-libtermcap
46692
83c9add4
CD
46693.PHONY: maybe-install-html-target-libtermcap install-html-target-libtermcap
46694maybe-install-html-target-libtermcap:
46695@if target-libtermcap
46696maybe-install-html-target-libtermcap: install-html-target-libtermcap
46697
46698install-html-target-libtermcap: \
46699 configure-target-libtermcap \
46700 html-target-libtermcap
46701 @: $(MAKE); $(unstage)
46702 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
46703 r=`${PWD_COMMAND}`; export r; \
46704 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46705 $(NORMAL_TARGET_EXPORTS) \
46706 echo "Doing install-html in $(TARGET_SUBDIR)/libtermcap" ; \
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)/libtermcap && \
46711 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46712 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46713 "RANLIB=$${RANLIB}" \
bffcbe34 46714 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
46715 install-html) \
46716 || exit 1
46717
46718@endif target-libtermcap
46719
8ec98d6c
NN
46720.PHONY: maybe-installcheck-target-libtermcap installcheck-target-libtermcap
46721maybe-installcheck-target-libtermcap:
a7e609d6
PB
46722@if target-libtermcap
46723maybe-installcheck-target-libtermcap: installcheck-target-libtermcap
8ec98d6c
NN
46724
46725installcheck-target-libtermcap: \
46726 configure-target-libtermcap
15b527ca 46727 @: $(MAKE); $(unstage)
8ec98d6c
NN
46728 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
46729 r=`${PWD_COMMAND}`; export r; \
5230d454 46730 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 46731 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
46732 echo "Doing installcheck in $(TARGET_SUBDIR)/libtermcap" ; \
46733 for flag in $(EXTRA_TARGET_FLAGS); do \
46734 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46735 done; \
46736 (cd $(TARGET_SUBDIR)/libtermcap && \
46737 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46738 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46739 "RANLIB=$${RANLIB}" \
bffcbe34 46740 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 46741 installcheck) \
8ec98d6c 46742 || exit 1
8ecc6504 46743
a7e609d6 46744@endif target-libtermcap
8ecc6504 46745
8ec98d6c
NN
46746.PHONY: maybe-mostlyclean-target-libtermcap mostlyclean-target-libtermcap
46747maybe-mostlyclean-target-libtermcap:
a7e609d6
PB
46748@if target-libtermcap
46749maybe-mostlyclean-target-libtermcap: mostlyclean-target-libtermcap
8ec98d6c
NN
46750
46751# libtermcap doesn't support mostlyclean.
46752mostlyclean-target-libtermcap:
46753
a7e609d6 46754@endif target-libtermcap
8ec98d6c
NN
46755
46756.PHONY: maybe-clean-target-libtermcap clean-target-libtermcap
46757maybe-clean-target-libtermcap:
a7e609d6
PB
46758@if target-libtermcap
46759maybe-clean-target-libtermcap: clean-target-libtermcap
8ec98d6c
NN
46760
46761# libtermcap doesn't support clean.
46762clean-target-libtermcap:
46763
a7e609d6 46764@endif target-libtermcap
8ec98d6c
NN
46765
46766.PHONY: maybe-distclean-target-libtermcap distclean-target-libtermcap
46767maybe-distclean-target-libtermcap:
a7e609d6
PB
46768@if target-libtermcap
46769maybe-distclean-target-libtermcap: distclean-target-libtermcap
8ec98d6c
NN
46770
46771# libtermcap doesn't support distclean.
46772distclean-target-libtermcap:
46773
a7e609d6 46774@endif target-libtermcap
8ec98d6c
NN
46775
46776.PHONY: maybe-maintainer-clean-target-libtermcap maintainer-clean-target-libtermcap
46777maybe-maintainer-clean-target-libtermcap:
a7e609d6
PB
46778@if target-libtermcap
46779maybe-maintainer-clean-target-libtermcap: maintainer-clean-target-libtermcap
8ec98d6c
NN
46780
46781# libtermcap doesn't support maintainer-clean.
46782maintainer-clean-target-libtermcap:
46783
a7e609d6 46784@endif target-libtermcap
8ec98d6c
NN
46785
46786
8ec98d6c 46787
8ec98d6c 46788
f0fdfd34
PB
46789
46790.PHONY: configure-target-winsup maybe-configure-target-winsup
46791maybe-configure-target-winsup:
e1e5148c
CD
46792@if gcc-bootstrap
46793configure-target-winsup: stage_current
46794@endif gcc-bootstrap
f0fdfd34
PB
46795@if target-winsup
46796maybe-configure-target-winsup: configure-target-winsup
ec92c4d6 46797configure-target-winsup:
15b527ca
PB
46798 @: $(MAKE); $(unstage)
46799 @r=`${PWD_COMMAND}`; export r; \
46800 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46801 echo "Checking multilib configuration for winsup..."; \
46802 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/winsup ; \
46803 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/winsup/multilib.tmp 2> /dev/null ; \
46804 if test -r $(TARGET_SUBDIR)/winsup/multilib.out; then \
46805 if cmp -s $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; then \
46806 rm -f $(TARGET_SUBDIR)/winsup/multilib.tmp; \
46807 else \
46808 rm -f $(TARGET_SUBDIR)/winsup/Makefile; \
46809 mv $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; \
46810 fi; \
46811 else \
46812 mv $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; \
ec92c4d6
PB
46813 fi; \
46814 test ! -f $(TARGET_SUBDIR)/winsup/Makefile || exit 0; \
8ec98d6c 46815 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/winsup ; \
a675b75a 46816 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
46817 echo Configuring in $(TARGET_SUBDIR)/winsup; \
46818 cd "$(TARGET_SUBDIR)/winsup" || exit 1; \
94f860c0 46819 case $(srcdir) in \
7fc2ca22
PB
46820 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
46821 *) topdir=`echo $(TARGET_SUBDIR)/winsup/ | \
46822 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 46823 esac; \
7fc2ca22
PB
46824 srcdiroption="--srcdir=$${topdir}/winsup"; \
46825 libsrcdir="$$s/winsup"; \
8ec98d6c
NN
46826 rm -f no-such-file || : ; \
46827 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
46828 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
46829 --target=${target_alias} $${srcdiroption} \
94f860c0 46830 || exit 1
a7e609d6 46831@endif target-winsup
94f860c0 46832
f0fdfd34
PB
46833
46834
a8a96878
PB
46835
46836
8ec98d6c
NN
46837.PHONY: all-target-winsup maybe-all-target-winsup
46838maybe-all-target-winsup:
e1e5148c
CD
46839@if gcc-bootstrap
46840all-target-winsup: stage_current
46841@endif gcc-bootstrap
a7e609d6 46842@if target-winsup
6a19fd82 46843TARGET-target-winsup=all
a7e609d6 46844maybe-all-target-winsup: all-target-winsup
8ec98d6c 46845all-target-winsup: configure-target-winsup
15b527ca 46846 @: $(MAKE); $(unstage)
5230d454
L
46847 @r=`${PWD_COMMAND}`; export r; \
46848 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 46849 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 46850 (cd $(TARGET_SUBDIR)/winsup && \
6532abb6
PB
46851 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
46852 $(TARGET-target-winsup))
a7e609d6 46853@endif target-winsup
8ecc6504 46854
f0fdfd34
PB
46855
46856
a8a96878
PB
46857
46858
8ec98d6c
NN
46859.PHONY: check-target-winsup maybe-check-target-winsup
46860maybe-check-target-winsup:
a7e609d6
PB
46861@if target-winsup
46862maybe-check-target-winsup: check-target-winsup
8ecc6504 46863
8ec98d6c 46864check-target-winsup:
15b527ca 46865 @: $(MAKE); $(unstage)
8ec98d6c
NN
46866 @r=`${PWD_COMMAND}`; export r; \
46867 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 46868 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 46869 (cd $(TARGET_SUBDIR)/winsup && \
63673a5b 46870 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
8ecc6504 46871
a7e609d6 46872@endif target-winsup
8ecc6504 46873
8ec98d6c
NN
46874.PHONY: install-target-winsup maybe-install-target-winsup
46875maybe-install-target-winsup:
a7e609d6
PB
46876@if target-winsup
46877maybe-install-target-winsup: install-target-winsup
70ffc148 46878
8ec98d6c 46879install-target-winsup: installdirs
15b527ca 46880 @: $(MAKE); $(unstage)
8ec98d6c
NN
46881 @r=`${PWD_COMMAND}`; export r; \
46882 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 46883 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 46884 (cd $(TARGET_SUBDIR)/winsup && \
63673a5b 46885 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
8ecc6504 46886
a7e609d6 46887@endif target-winsup
8ecc6504 46888
39bbbb69 46889# Other targets (info, dvi, pdf, etc.)
8ec98d6c
NN
46890
46891.PHONY: maybe-info-target-winsup info-target-winsup
46892maybe-info-target-winsup:
a7e609d6
PB
46893@if target-winsup
46894maybe-info-target-winsup: info-target-winsup
8ec98d6c
NN
46895
46896info-target-winsup: \
46897 configure-target-winsup
15b527ca 46898 @: $(MAKE); $(unstage)
8ec98d6c 46899 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
5230d454
L
46900 r=`${PWD_COMMAND}`; export r; \
46901 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 46902 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
46903 echo "Doing info in $(TARGET_SUBDIR)/winsup" ; \
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)/winsup && \
46908 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46909 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46910 "RANLIB=$${RANLIB}" \
bffcbe34 46911 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 46912 info) \
94f860c0
NN
46913 || exit 1
46914
a7e609d6 46915@endif target-winsup
8ecc6504 46916
8ec98d6c
NN
46917.PHONY: maybe-dvi-target-winsup dvi-target-winsup
46918maybe-dvi-target-winsup:
a7e609d6
PB
46919@if target-winsup
46920maybe-dvi-target-winsup: dvi-target-winsup
8ecc6504 46921
8ec98d6c
NN
46922dvi-target-winsup: \
46923 configure-target-winsup
15b527ca 46924 @: $(MAKE); $(unstage)
8ec98d6c
NN
46925 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
46926 r=`${PWD_COMMAND}`; export r; \
5230d454 46927 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 46928 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
46929 echo "Doing dvi in $(TARGET_SUBDIR)/winsup" ; \
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)/winsup && \
46934 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46935 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46936 "RANLIB=$${RANLIB}" \
bffcbe34 46937 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 46938 dvi) \
8ec98d6c 46939 || exit 1
8ecc6504 46940
a7e609d6 46941@endif target-winsup
8ecc6504 46942
39bbbb69
DD
46943.PHONY: maybe-pdf-target-winsup pdf-target-winsup
46944maybe-pdf-target-winsup:
46945@if target-winsup
46946maybe-pdf-target-winsup: pdf-target-winsup
46947
46948pdf-target-winsup: \
46949 configure-target-winsup
46950 @: $(MAKE); $(unstage)
46951 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
46952 r=`${PWD_COMMAND}`; export r; \
46953 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46954 $(NORMAL_TARGET_EXPORTS) \
46955 echo "Doing pdf in $(TARGET_SUBDIR)/winsup" ; \
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)/winsup && \
46960 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46961 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46962 "RANLIB=$${RANLIB}" \
bffcbe34 46963 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
46964 pdf) \
46965 || exit 1
46966
46967@endif target-winsup
46968
b6fb961f
MS
46969.PHONY: maybe-html-target-winsup html-target-winsup
46970maybe-html-target-winsup:
46971@if target-winsup
46972maybe-html-target-winsup: html-target-winsup
46973
46974html-target-winsup: \
46975 configure-target-winsup
15b527ca 46976 @: $(MAKE); $(unstage)
b6fb961f
MS
46977 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
46978 r=`${PWD_COMMAND}`; export r; \
46979 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
46980 $(NORMAL_TARGET_EXPORTS) \
46981 echo "Doing html in $(TARGET_SUBDIR)/winsup" ; \
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)/winsup && \
46986 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46987 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46988 "RANLIB=$${RANLIB}" \
bffcbe34 46989 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
46990 html) \
46991 || exit 1
46992
46993@endif target-winsup
46994
8ec98d6c
NN
46995.PHONY: maybe-TAGS-target-winsup TAGS-target-winsup
46996maybe-TAGS-target-winsup:
a7e609d6
PB
46997@if target-winsup
46998maybe-TAGS-target-winsup: TAGS-target-winsup
70ffc148 46999
8ec98d6c
NN
47000TAGS-target-winsup: \
47001 configure-target-winsup
15b527ca 47002 @: $(MAKE); $(unstage)
8ec98d6c
NN
47003 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
47004 r=`${PWD_COMMAND}`; export r; \
5230d454 47005 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 47006 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
47007 echo "Doing TAGS in $(TARGET_SUBDIR)/winsup" ; \
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)/winsup && \
47012 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47013 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47014 "RANLIB=$${RANLIB}" \
bffcbe34 47015 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 47016 TAGS) \
8ec98d6c 47017 || exit 1
8ecc6504 47018
a7e609d6 47019@endif target-winsup
8ecc6504 47020
8ec98d6c
NN
47021.PHONY: maybe-install-info-target-winsup install-info-target-winsup
47022maybe-install-info-target-winsup:
a7e609d6
PB
47023@if target-winsup
47024maybe-install-info-target-winsup: install-info-target-winsup
8ec98d6c
NN
47025
47026install-info-target-winsup: \
47027 configure-target-winsup \
47028 info-target-winsup
15b527ca 47029 @: $(MAKE); $(unstage)
8ec98d6c 47030 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
5230d454
L
47031 r=`${PWD_COMMAND}`; export r; \
47032 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 47033 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
47034 echo "Doing install-info in $(TARGET_SUBDIR)/winsup" ; \
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)/winsup && \
47039 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47040 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47041 "RANLIB=$${RANLIB}" \
bffcbe34 47042 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 47043 install-info) \
94f860c0
NN
47044 || exit 1
47045
a7e609d6 47046@endif target-winsup
8ec98d6c 47047
d4954b6d
DD
47048.PHONY: maybe-install-pdf-target-winsup install-pdf-target-winsup
47049maybe-install-pdf-target-winsup:
47050@if target-winsup
47051maybe-install-pdf-target-winsup: install-pdf-target-winsup
47052
47053install-pdf-target-winsup: \
47054 configure-target-winsup \
47055 pdf-target-winsup
47056 @: $(MAKE); $(unstage)
47057 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
47058 r=`${PWD_COMMAND}`; export r; \
47059 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47060 $(NORMAL_TARGET_EXPORTS) \
47061 echo "Doing install-pdf in $(TARGET_SUBDIR)/winsup" ; \
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)/winsup && \
47066 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47067 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47068 "RANLIB=$${RANLIB}" \
bffcbe34 47069 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
47070 install-pdf) \
47071 || exit 1
47072
47073@endif target-winsup
47074
83c9add4
CD
47075.PHONY: maybe-install-html-target-winsup install-html-target-winsup
47076maybe-install-html-target-winsup:
47077@if target-winsup
47078maybe-install-html-target-winsup: install-html-target-winsup
47079
47080install-html-target-winsup: \
47081 configure-target-winsup \
47082 html-target-winsup
47083 @: $(MAKE); $(unstage)
47084 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
47085 r=`${PWD_COMMAND}`; export r; \
47086 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47087 $(NORMAL_TARGET_EXPORTS) \
47088 echo "Doing install-html in $(TARGET_SUBDIR)/winsup" ; \
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)/winsup && \
47093 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47094 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47095 "RANLIB=$${RANLIB}" \
bffcbe34 47096 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
47097 install-html) \
47098 || exit 1
47099
47100@endif target-winsup
47101
8ec98d6c
NN
47102.PHONY: maybe-installcheck-target-winsup installcheck-target-winsup
47103maybe-installcheck-target-winsup:
a7e609d6
PB
47104@if target-winsup
47105maybe-installcheck-target-winsup: installcheck-target-winsup
8ec98d6c
NN
47106
47107installcheck-target-winsup: \
47108 configure-target-winsup
15b527ca 47109 @: $(MAKE); $(unstage)
8ec98d6c
NN
47110 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
47111 r=`${PWD_COMMAND}`; export r; \
5230d454 47112 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 47113 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
47114 echo "Doing installcheck in $(TARGET_SUBDIR)/winsup" ; \
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)/winsup && \
47119 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47120 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47121 "RANLIB=$${RANLIB}" \
bffcbe34 47122 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 47123 installcheck) \
8ec98d6c 47124 || exit 1
8ecc6504 47125
a7e609d6 47126@endif target-winsup
8ecc6504 47127
8ec98d6c
NN
47128.PHONY: maybe-mostlyclean-target-winsup mostlyclean-target-winsup
47129maybe-mostlyclean-target-winsup:
a7e609d6
PB
47130@if target-winsup
47131maybe-mostlyclean-target-winsup: mostlyclean-target-winsup
8ec98d6c
NN
47132
47133mostlyclean-target-winsup:
15b527ca 47134 @: $(MAKE); $(unstage)
8ec98d6c
NN
47135 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
47136 r=`${PWD_COMMAND}`; export r; \
5230d454 47137 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 47138 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
47139 echo "Doing mostlyclean in $(TARGET_SUBDIR)/winsup" ; \
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)/winsup && \
47144 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47145 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47146 "RANLIB=$${RANLIB}" \
bffcbe34 47147 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 47148 mostlyclean) \
8ec98d6c 47149 || exit 1
8ecc6504 47150
a7e609d6 47151@endif target-winsup
8ecc6504 47152
8ec98d6c
NN
47153.PHONY: maybe-clean-target-winsup clean-target-winsup
47154maybe-clean-target-winsup:
a7e609d6
PB
47155@if target-winsup
47156maybe-clean-target-winsup: clean-target-winsup
70ffc148 47157
8ec98d6c 47158clean-target-winsup:
15b527ca 47159 @: $(MAKE); $(unstage)
8ec98d6c
NN
47160 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
47161 r=`${PWD_COMMAND}`; export r; \
5230d454 47162 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 47163 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
47164 echo "Doing clean in $(TARGET_SUBDIR)/winsup" ; \
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)/winsup && \
47169 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47170 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47171 "RANLIB=$${RANLIB}" \
bffcbe34 47172 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 47173 clean) \
8ec98d6c 47174 || exit 1
8ecc6504 47175
a7e609d6 47176@endif target-winsup
8ecc6504 47177
8ec98d6c
NN
47178.PHONY: maybe-distclean-target-winsup distclean-target-winsup
47179maybe-distclean-target-winsup:
a7e609d6
PB
47180@if target-winsup
47181maybe-distclean-target-winsup: distclean-target-winsup
8ec98d6c
NN
47182
47183distclean-target-winsup:
15b527ca 47184 @: $(MAKE); $(unstage)
8ec98d6c 47185 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
5230d454
L
47186 r=`${PWD_COMMAND}`; export r; \
47187 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 47188 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
47189 echo "Doing distclean in $(TARGET_SUBDIR)/winsup" ; \
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)/winsup && \
47194 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47195 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47196 "RANLIB=$${RANLIB}" \
bffcbe34 47197 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 47198 distclean) \
94f860c0
NN
47199 || exit 1
47200
a7e609d6 47201@endif target-winsup
8ecc6504 47202
8ec98d6c
NN
47203.PHONY: maybe-maintainer-clean-target-winsup maintainer-clean-target-winsup
47204maybe-maintainer-clean-target-winsup:
a7e609d6
PB
47205@if target-winsup
47206maybe-maintainer-clean-target-winsup: maintainer-clean-target-winsup
8ecc6504 47207
8ec98d6c 47208maintainer-clean-target-winsup:
15b527ca 47209 @: $(MAKE); $(unstage)
8ec98d6c
NN
47210 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
47211 r=`${PWD_COMMAND}`; export r; \
5230d454 47212 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 47213 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
47214 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/winsup" ; \
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)/winsup && \
47219 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47220 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47221 "RANLIB=$${RANLIB}" \
bffcbe34 47222 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 47223 maintainer-clean) \
8ec98d6c 47224 || exit 1
8ecc6504 47225
a7e609d6 47226@endif target-winsup
8ecc6504 47227
70ffc148 47228
8ecc6504 47229
f3fd76d4 47230
f0fdfd34
PB
47231
47232.PHONY: configure-target-libgloss maybe-configure-target-libgloss
47233maybe-configure-target-libgloss:
e1e5148c
CD
47234@if gcc-bootstrap
47235configure-target-libgloss: stage_current
47236@endif gcc-bootstrap
f0fdfd34
PB
47237@if target-libgloss
47238maybe-configure-target-libgloss: configure-target-libgloss
ec92c4d6 47239configure-target-libgloss:
15b527ca
PB
47240 @: $(MAKE); $(unstage)
47241 @r=`${PWD_COMMAND}`; export r; \
47242 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47243 echo "Checking multilib configuration for libgloss..."; \
47244 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgloss ; \
47245 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgloss/multilib.tmp 2> /dev/null ; \
47246 if test -r $(TARGET_SUBDIR)/libgloss/multilib.out; then \
47247 if cmp -s $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; then \
47248 rm -f $(TARGET_SUBDIR)/libgloss/multilib.tmp; \
47249 else \
47250 rm -f $(TARGET_SUBDIR)/libgloss/Makefile; \
47251 mv $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; \
47252 fi; \
47253 else \
47254 mv $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; \
ec92c4d6
PB
47255 fi; \
47256 test ! -f $(TARGET_SUBDIR)/libgloss/Makefile || exit 0; \
8ec98d6c 47257 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgloss ; \
a675b75a 47258 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
47259 echo Configuring in $(TARGET_SUBDIR)/libgloss; \
47260 cd "$(TARGET_SUBDIR)/libgloss" || exit 1; \
94f860c0 47261 case $(srcdir) in \
7fc2ca22
PB
47262 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
47263 *) topdir=`echo $(TARGET_SUBDIR)/libgloss/ | \
47264 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 47265 esac; \
7fc2ca22
PB
47266 srcdiroption="--srcdir=$${topdir}/libgloss"; \
47267 libsrcdir="$$s/libgloss"; \
8ec98d6c
NN
47268 rm -f no-such-file || : ; \
47269 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
47270 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
47271 --target=${target_alias} $${srcdiroption} \
94f860c0 47272 || exit 1
a7e609d6 47273@endif target-libgloss
94f860c0 47274
f0fdfd34
PB
47275
47276
a8a96878
PB
47277
47278
8ec98d6c
NN
47279.PHONY: all-target-libgloss maybe-all-target-libgloss
47280maybe-all-target-libgloss:
e1e5148c
CD
47281@if gcc-bootstrap
47282all-target-libgloss: stage_current
47283@endif gcc-bootstrap
a7e609d6 47284@if target-libgloss
6a19fd82 47285TARGET-target-libgloss=all
a7e609d6 47286maybe-all-target-libgloss: all-target-libgloss
8ec98d6c 47287all-target-libgloss: configure-target-libgloss
15b527ca 47288 @: $(MAKE); $(unstage)
5230d454
L
47289 @r=`${PWD_COMMAND}`; export r; \
47290 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 47291 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 47292 (cd $(TARGET_SUBDIR)/libgloss && \
6532abb6
PB
47293 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
47294 $(TARGET-target-libgloss))
a7e609d6 47295@endif target-libgloss
d6ebd419 47296
f0fdfd34
PB
47297
47298
a8a96878
PB
47299
47300
8ec98d6c
NN
47301.PHONY: check-target-libgloss maybe-check-target-libgloss
47302maybe-check-target-libgloss:
a7e609d6
PB
47303@if target-libgloss
47304maybe-check-target-libgloss: check-target-libgloss
d6ebd419 47305
8ec98d6c
NN
47306# Dummy target for uncheckable module.
47307check-target-libgloss:
d6ebd419 47308
a7e609d6 47309@endif target-libgloss
d6ebd419 47310
8ec98d6c
NN
47311.PHONY: install-target-libgloss maybe-install-target-libgloss
47312maybe-install-target-libgloss:
a7e609d6
PB
47313@if target-libgloss
47314maybe-install-target-libgloss: install-target-libgloss
70ffc148 47315
8ec98d6c 47316install-target-libgloss: installdirs
15b527ca 47317 @: $(MAKE); $(unstage)
5230d454
L
47318 @r=`${PWD_COMMAND}`; export r; \
47319 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 47320 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 47321 (cd $(TARGET_SUBDIR)/libgloss && \
63673a5b 47322 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
d6ebd419 47323
a7e609d6 47324@endif target-libgloss
8ecc6504 47325
39bbbb69 47326# Other targets (info, dvi, pdf, etc.)
8ec98d6c
NN
47327
47328.PHONY: maybe-info-target-libgloss info-target-libgloss
47329maybe-info-target-libgloss:
a7e609d6
PB
47330@if target-libgloss
47331maybe-info-target-libgloss: info-target-libgloss
8ec98d6c
NN
47332
47333info-target-libgloss: \
47334 configure-target-libgloss
15b527ca 47335 @: $(MAKE); $(unstage)
8ec98d6c 47336 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
5230d454
L
47337 r=`${PWD_COMMAND}`; export r; \
47338 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 47339 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
47340 echo "Doing info in $(TARGET_SUBDIR)/libgloss" ; \
47341 for flag in $(EXTRA_TARGET_FLAGS); do \
47342 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47343 done; \
47344 (cd $(TARGET_SUBDIR)/libgloss && \
47345 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47346 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47347 "RANLIB=$${RANLIB}" \
bffcbe34 47348 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 47349 info) \
b93e1111
MC
47350 || exit 1
47351
a7e609d6 47352@endif target-libgloss
b93e1111 47353
8ec98d6c
NN
47354.PHONY: maybe-dvi-target-libgloss dvi-target-libgloss
47355maybe-dvi-target-libgloss:
a7e609d6
PB
47356@if target-libgloss
47357maybe-dvi-target-libgloss: dvi-target-libgloss
b93e1111 47358
8ec98d6c
NN
47359dvi-target-libgloss: \
47360 configure-target-libgloss
15b527ca 47361 @: $(MAKE); $(unstage)
8ec98d6c
NN
47362 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
47363 r=`${PWD_COMMAND}`; export r; \
5230d454 47364 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 47365 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
47366 echo "Doing dvi in $(TARGET_SUBDIR)/libgloss" ; \
47367 for flag in $(EXTRA_TARGET_FLAGS); do \
47368 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47369 done; \
47370 (cd $(TARGET_SUBDIR)/libgloss && \
47371 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47372 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47373 "RANLIB=$${RANLIB}" \
bffcbe34 47374 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 47375 dvi) \
8ec98d6c 47376 || exit 1
b93e1111 47377
a7e609d6 47378@endif target-libgloss
b93e1111 47379
39bbbb69
DD
47380.PHONY: maybe-pdf-target-libgloss pdf-target-libgloss
47381maybe-pdf-target-libgloss:
47382@if target-libgloss
47383maybe-pdf-target-libgloss: pdf-target-libgloss
47384
47385pdf-target-libgloss: \
47386 configure-target-libgloss
47387 @: $(MAKE); $(unstage)
47388 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
47389 r=`${PWD_COMMAND}`; export r; \
47390 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47391 $(NORMAL_TARGET_EXPORTS) \
47392 echo "Doing pdf in $(TARGET_SUBDIR)/libgloss" ; \
47393 for flag in $(EXTRA_TARGET_FLAGS); do \
47394 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47395 done; \
47396 (cd $(TARGET_SUBDIR)/libgloss && \
47397 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47398 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47399 "RANLIB=$${RANLIB}" \
bffcbe34 47400 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
47401 pdf) \
47402 || exit 1
47403
47404@endif target-libgloss
47405
b6fb961f
MS
47406.PHONY: maybe-html-target-libgloss html-target-libgloss
47407maybe-html-target-libgloss:
47408@if target-libgloss
47409maybe-html-target-libgloss: html-target-libgloss
47410
47411html-target-libgloss: \
47412 configure-target-libgloss
15b527ca 47413 @: $(MAKE); $(unstage)
b6fb961f
MS
47414 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
47415 r=`${PWD_COMMAND}`; export r; \
47416 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
47417 $(NORMAL_TARGET_EXPORTS) \
47418 echo "Doing html in $(TARGET_SUBDIR)/libgloss" ; \
47419 for flag in $(EXTRA_TARGET_FLAGS); do \
47420 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47421 done; \
47422 (cd $(TARGET_SUBDIR)/libgloss && \
47423 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47424 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47425 "RANLIB=$${RANLIB}" \
bffcbe34 47426 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
47427 html) \
47428 || exit 1
47429
47430@endif target-libgloss
47431
8ec98d6c
NN
47432.PHONY: maybe-TAGS-target-libgloss TAGS-target-libgloss
47433maybe-TAGS-target-libgloss:
a7e609d6
PB
47434@if target-libgloss
47435maybe-TAGS-target-libgloss: TAGS-target-libgloss
70ffc148 47436
8ec98d6c
NN
47437TAGS-target-libgloss: \
47438 configure-target-libgloss
15b527ca 47439 @: $(MAKE); $(unstage)
8ec98d6c
NN
47440 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
47441 r=`${PWD_COMMAND}`; export r; \
5230d454 47442 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 47443 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
47444 echo "Doing TAGS in $(TARGET_SUBDIR)/libgloss" ; \
47445 for flag in $(EXTRA_TARGET_FLAGS); do \
47446 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47447 done; \
47448 (cd $(TARGET_SUBDIR)/libgloss && \
47449 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47450 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47451 "RANLIB=$${RANLIB}" \
bffcbe34 47452 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 47453 TAGS) \
8ec98d6c 47454 || exit 1
b93e1111 47455
a7e609d6 47456@endif target-libgloss
b93e1111 47457
8ec98d6c
NN
47458.PHONY: maybe-install-info-target-libgloss install-info-target-libgloss
47459maybe-install-info-target-libgloss:
a7e609d6
PB
47460@if target-libgloss
47461maybe-install-info-target-libgloss: install-info-target-libgloss
8ec98d6c
NN
47462
47463install-info-target-libgloss: \
47464 configure-target-libgloss \
47465 info-target-libgloss
15b527ca 47466 @: $(MAKE); $(unstage)
8ec98d6c 47467 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
5230d454
L
47468 r=`${PWD_COMMAND}`; export r; \
47469 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 47470 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
47471 echo "Doing install-info in $(TARGET_SUBDIR)/libgloss" ; \
47472 for flag in $(EXTRA_TARGET_FLAGS); do \
47473 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47474 done; \
47475 (cd $(TARGET_SUBDIR)/libgloss && \
47476 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47477 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47478 "RANLIB=$${RANLIB}" \
bffcbe34 47479 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 47480 install-info) \
94f860c0
NN
47481 || exit 1
47482
a7e609d6 47483@endif target-libgloss
d6ebd419 47484
d4954b6d
DD
47485.PHONY: maybe-install-pdf-target-libgloss install-pdf-target-libgloss
47486maybe-install-pdf-target-libgloss:
47487@if target-libgloss
47488maybe-install-pdf-target-libgloss: install-pdf-target-libgloss
47489
47490install-pdf-target-libgloss: \
47491 configure-target-libgloss \
47492 pdf-target-libgloss
47493 @: $(MAKE); $(unstage)
47494 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
47495 r=`${PWD_COMMAND}`; export r; \
47496 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47497 $(NORMAL_TARGET_EXPORTS) \
47498 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgloss" ; \
47499 for flag in $(EXTRA_TARGET_FLAGS); do \
47500 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47501 done; \
47502 (cd $(TARGET_SUBDIR)/libgloss && \
47503 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47504 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47505 "RANLIB=$${RANLIB}" \
bffcbe34 47506 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
47507 install-pdf) \
47508 || exit 1
47509
47510@endif target-libgloss
47511
83c9add4
CD
47512.PHONY: maybe-install-html-target-libgloss install-html-target-libgloss
47513maybe-install-html-target-libgloss:
47514@if target-libgloss
47515maybe-install-html-target-libgloss: install-html-target-libgloss
47516
47517install-html-target-libgloss: \
47518 configure-target-libgloss \
47519 html-target-libgloss
47520 @: $(MAKE); $(unstage)
47521 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
47522 r=`${PWD_COMMAND}`; export r; \
47523 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47524 $(NORMAL_TARGET_EXPORTS) \
47525 echo "Doing install-html in $(TARGET_SUBDIR)/libgloss" ; \
47526 for flag in $(EXTRA_TARGET_FLAGS); do \
47527 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47528 done; \
47529 (cd $(TARGET_SUBDIR)/libgloss && \
47530 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47531 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47532 "RANLIB=$${RANLIB}" \
bffcbe34 47533 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
47534 install-html) \
47535 || exit 1
47536
47537@endif target-libgloss
47538
8ec98d6c
NN
47539.PHONY: maybe-installcheck-target-libgloss installcheck-target-libgloss
47540maybe-installcheck-target-libgloss:
a7e609d6
PB
47541@if target-libgloss
47542maybe-installcheck-target-libgloss: installcheck-target-libgloss
d6ebd419 47543
8ec98d6c
NN
47544installcheck-target-libgloss: \
47545 configure-target-libgloss
15b527ca 47546 @: $(MAKE); $(unstage)
8ec98d6c
NN
47547 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
47548 r=`${PWD_COMMAND}`; export r; \
47549 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 47550 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
47551 echo "Doing installcheck in $(TARGET_SUBDIR)/libgloss" ; \
47552 for flag in $(EXTRA_TARGET_FLAGS); do \
47553 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47554 done; \
47555 (cd $(TARGET_SUBDIR)/libgloss && \
47556 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47557 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47558 "RANLIB=$${RANLIB}" \
bffcbe34 47559 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 47560 installcheck) \
8ec98d6c 47561 || exit 1
8ecc6504 47562
a7e609d6 47563@endif target-libgloss
8ecc6504 47564
8ec98d6c
NN
47565.PHONY: maybe-mostlyclean-target-libgloss mostlyclean-target-libgloss
47566maybe-mostlyclean-target-libgloss:
a7e609d6
PB
47567@if target-libgloss
47568maybe-mostlyclean-target-libgloss: mostlyclean-target-libgloss
70ffc148 47569
8ec98d6c 47570mostlyclean-target-libgloss:
15b527ca 47571 @: $(MAKE); $(unstage)
8ec98d6c
NN
47572 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
47573 r=`${PWD_COMMAND}`; export r; \
5230d454 47574 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 47575 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
47576 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgloss" ; \
47577 for flag in $(EXTRA_TARGET_FLAGS); do \
47578 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47579 done; \
47580 (cd $(TARGET_SUBDIR)/libgloss && \
47581 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47582 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47583 "RANLIB=$${RANLIB}" \
bffcbe34 47584 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 47585 mostlyclean) \
8ec98d6c 47586 || exit 1
d6ebd419 47587
a7e609d6 47588@endif target-libgloss
8ecc6504 47589
8ec98d6c
NN
47590.PHONY: maybe-clean-target-libgloss clean-target-libgloss
47591maybe-clean-target-libgloss:
a7e609d6
PB
47592@if target-libgloss
47593maybe-clean-target-libgloss: clean-target-libgloss
8ec98d6c
NN
47594
47595clean-target-libgloss:
15b527ca 47596 @: $(MAKE); $(unstage)
8ec98d6c 47597 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
5230d454
L
47598 r=`${PWD_COMMAND}`; export r; \
47599 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 47600 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
47601 echo "Doing clean in $(TARGET_SUBDIR)/libgloss" ; \
47602 for flag in $(EXTRA_TARGET_FLAGS); do \
47603 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47604 done; \
47605 (cd $(TARGET_SUBDIR)/libgloss && \
47606 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47607 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47608 "RANLIB=$${RANLIB}" \
bffcbe34 47609 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 47610 clean) \
94f860c0
NN
47611 || exit 1
47612
a7e609d6 47613@endif target-libgloss
d6ebd419 47614
8ec98d6c
NN
47615.PHONY: maybe-distclean-target-libgloss distclean-target-libgloss
47616maybe-distclean-target-libgloss:
a7e609d6
PB
47617@if target-libgloss
47618maybe-distclean-target-libgloss: distclean-target-libgloss
8ecc6504 47619
8ec98d6c 47620distclean-target-libgloss:
15b527ca 47621 @: $(MAKE); $(unstage)
8ec98d6c
NN
47622 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
47623 r=`${PWD_COMMAND}`; export r; \
47624 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 47625 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
47626 echo "Doing distclean in $(TARGET_SUBDIR)/libgloss" ; \
47627 for flag in $(EXTRA_TARGET_FLAGS); do \
47628 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47629 done; \
47630 (cd $(TARGET_SUBDIR)/libgloss && \
47631 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47632 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47633 "RANLIB=$${RANLIB}" \
bffcbe34 47634 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 47635 distclean) \
8ec98d6c 47636 || exit 1
8ecc6504 47637
a7e609d6 47638@endif target-libgloss
8ecc6504 47639
8ec98d6c
NN
47640.PHONY: maybe-maintainer-clean-target-libgloss maintainer-clean-target-libgloss
47641maybe-maintainer-clean-target-libgloss:
a7e609d6
PB
47642@if target-libgloss
47643maybe-maintainer-clean-target-libgloss: maintainer-clean-target-libgloss
70ffc148 47644
8ec98d6c 47645maintainer-clean-target-libgloss:
15b527ca 47646 @: $(MAKE); $(unstage)
8ec98d6c
NN
47647 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
47648 r=`${PWD_COMMAND}`; export r; \
5230d454 47649 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 47650 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
47651 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgloss" ; \
47652 for flag in $(EXTRA_TARGET_FLAGS); do \
47653 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47654 done; \
47655 (cd $(TARGET_SUBDIR)/libgloss && \
47656 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47657 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47658 "RANLIB=$${RANLIB}" \
bffcbe34 47659 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 47660 maintainer-clean) \
8ec98d6c 47661 || exit 1
8ecc6504 47662
a7e609d6 47663@endif target-libgloss
8ecc6504 47664
d6ebd419 47665
43bdb69a 47666
f3fd76d4 47667
f0fdfd34
PB
47668
47669.PHONY: configure-target-libiberty maybe-configure-target-libiberty
47670maybe-configure-target-libiberty:
e1e5148c
CD
47671@if gcc-bootstrap
47672configure-target-libiberty: stage_current
47673@endif gcc-bootstrap
f0fdfd34
PB
47674@if target-libiberty
47675maybe-configure-target-libiberty: configure-target-libiberty
ec92c4d6 47676configure-target-libiberty:
15b527ca
PB
47677 @: $(MAKE); $(unstage)
47678 @r=`${PWD_COMMAND}`; export r; \
47679 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47680 echo "Checking multilib configuration for libiberty..."; \
47681 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libiberty ; \
47682 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libiberty/multilib.tmp 2> /dev/null ; \
47683 if test -r $(TARGET_SUBDIR)/libiberty/multilib.out; then \
47684 if cmp -s $(TARGET_SUBDIR)/libiberty/multilib.tmp $(TARGET_SUBDIR)/libiberty/multilib.out; then \
47685 rm -f $(TARGET_SUBDIR)/libiberty/multilib.tmp; \
47686 else \
47687 rm -f $(TARGET_SUBDIR)/libiberty/Makefile; \
47688 mv $(TARGET_SUBDIR)/libiberty/multilib.tmp $(TARGET_SUBDIR)/libiberty/multilib.out; \
47689 fi; \
47690 else \
47691 mv $(TARGET_SUBDIR)/libiberty/multilib.tmp $(TARGET_SUBDIR)/libiberty/multilib.out; \
ec92c4d6
PB
47692 fi; \
47693 test ! -f $(TARGET_SUBDIR)/libiberty/Makefile || exit 0; \
8ec98d6c 47694 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libiberty ; \
a675b75a 47695 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
47696 echo Configuring in $(TARGET_SUBDIR)/libiberty; \
47697 cd "$(TARGET_SUBDIR)/libiberty" || exit 1; \
2245eb63 47698 case $(srcdir) in \
7fc2ca22
PB
47699 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
47700 *) topdir=`echo $(TARGET_SUBDIR)/libiberty/ | \
47701 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2245eb63 47702 esac; \
7fc2ca22
PB
47703 srcdiroption="--srcdir=$${topdir}/libiberty"; \
47704 libsrcdir="$$s/libiberty"; \
2245eb63
NN
47705 rm -f no-such-file || : ; \
47706 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
47707 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
47708 --target=${target_alias} $${srcdiroption} \
2245eb63 47709 || exit 1
a7e609d6 47710@endif target-libiberty
d6ebd419 47711
f0fdfd34
PB
47712
47713
a8a96878
PB
47714
47715
8ec98d6c
NN
47716.PHONY: all-target-libiberty maybe-all-target-libiberty
47717maybe-all-target-libiberty:
e1e5148c
CD
47718@if gcc-bootstrap
47719all-target-libiberty: stage_current
47720@endif gcc-bootstrap
a7e609d6 47721@if target-libiberty
6a19fd82 47722TARGET-target-libiberty=all
a7e609d6 47723maybe-all-target-libiberty: all-target-libiberty
8ec98d6c 47724all-target-libiberty: configure-target-libiberty
15b527ca 47725 @: $(MAKE); $(unstage)
5230d454
L
47726 @r=`${PWD_COMMAND}`; export r; \
47727 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 47728 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 47729 (cd $(TARGET_SUBDIR)/libiberty && \
6532abb6
PB
47730 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
47731 $(TARGET-target-libiberty))
a7e609d6 47732@endif target-libiberty
d6ebd419 47733
f0fdfd34
PB
47734
47735
a8a96878
PB
47736
47737
8ec98d6c
NN
47738.PHONY: check-target-libiberty maybe-check-target-libiberty
47739maybe-check-target-libiberty:
a7e609d6
PB
47740@if target-libiberty
47741maybe-check-target-libiberty: check-target-libiberty
70ffc148 47742
8ec98d6c 47743check-target-libiberty:
15b527ca 47744 @: $(MAKE); $(unstage)
5230d454
L
47745 @r=`${PWD_COMMAND}`; export r; \
47746 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 47747 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 47748 (cd $(TARGET_SUBDIR)/libiberty && \
63673a5b 47749 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
c5e4bb70 47750
a7e609d6 47751@endif target-libiberty
d6ebd419 47752
8ec98d6c
NN
47753.PHONY: install-target-libiberty maybe-install-target-libiberty
47754maybe-install-target-libiberty:
a7e609d6
PB
47755@if target-libiberty
47756maybe-install-target-libiberty: install-target-libiberty
8ec98d6c
NN
47757
47758install-target-libiberty: installdirs
15b527ca 47759 @: $(MAKE); $(unstage)
8ec98d6c
NN
47760 @r=`${PWD_COMMAND}`; export r; \
47761 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 47762 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 47763 (cd $(TARGET_SUBDIR)/libiberty && \
63673a5b 47764 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
8ec98d6c 47765
a7e609d6 47766@endif target-libiberty
8ec98d6c 47767
39bbbb69 47768# Other targets (info, dvi, pdf, etc.)
8ec98d6c
NN
47769
47770.PHONY: maybe-info-target-libiberty info-target-libiberty
47771maybe-info-target-libiberty:
a7e609d6
PB
47772@if target-libiberty
47773maybe-info-target-libiberty: info-target-libiberty
8ec98d6c
NN
47774
47775info-target-libiberty: \
47776 configure-target-libiberty
15b527ca 47777 @: $(MAKE); $(unstage)
8ec98d6c
NN
47778 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
47779 r=`${PWD_COMMAND}`; export r; \
47780 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 47781 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
47782 echo "Doing info in $(TARGET_SUBDIR)/libiberty" ; \
47783 for flag in $(EXTRA_TARGET_FLAGS); do \
47784 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47785 done; \
47786 (cd $(TARGET_SUBDIR)/libiberty && \
47787 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47788 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47789 "RANLIB=$${RANLIB}" \
bffcbe34 47790 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 47791 info) \
8ec98d6c
NN
47792 || exit 1
47793
a7e609d6 47794@endif target-libiberty
8ec98d6c
NN
47795
47796.PHONY: maybe-dvi-target-libiberty dvi-target-libiberty
47797maybe-dvi-target-libiberty:
a7e609d6
PB
47798@if target-libiberty
47799maybe-dvi-target-libiberty: dvi-target-libiberty
8ec98d6c
NN
47800
47801dvi-target-libiberty: \
47802 configure-target-libiberty
15b527ca 47803 @: $(MAKE); $(unstage)
8ec98d6c
NN
47804 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
47805 r=`${PWD_COMMAND}`; export r; \
47806 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 47807 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
47808 echo "Doing dvi in $(TARGET_SUBDIR)/libiberty" ; \
47809 for flag in $(EXTRA_TARGET_FLAGS); do \
47810 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47811 done; \
47812 (cd $(TARGET_SUBDIR)/libiberty && \
47813 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47814 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47815 "RANLIB=$${RANLIB}" \
bffcbe34 47816 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 47817 dvi) \
8ec98d6c
NN
47818 || exit 1
47819
a7e609d6 47820@endif target-libiberty
8ec98d6c 47821
39bbbb69
DD
47822.PHONY: maybe-pdf-target-libiberty pdf-target-libiberty
47823maybe-pdf-target-libiberty:
47824@if target-libiberty
47825maybe-pdf-target-libiberty: pdf-target-libiberty
47826
47827pdf-target-libiberty: \
47828 configure-target-libiberty
47829 @: $(MAKE); $(unstage)
47830 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
47831 r=`${PWD_COMMAND}`; export r; \
47832 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47833 $(NORMAL_TARGET_EXPORTS) \
47834 echo "Doing pdf in $(TARGET_SUBDIR)/libiberty" ; \
47835 for flag in $(EXTRA_TARGET_FLAGS); do \
47836 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47837 done; \
47838 (cd $(TARGET_SUBDIR)/libiberty && \
47839 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47840 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47841 "RANLIB=$${RANLIB}" \
bffcbe34 47842 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
47843 pdf) \
47844 || exit 1
47845
47846@endif target-libiberty
47847
b6fb961f
MS
47848.PHONY: maybe-html-target-libiberty html-target-libiberty
47849maybe-html-target-libiberty:
47850@if target-libiberty
47851maybe-html-target-libiberty: html-target-libiberty
47852
47853html-target-libiberty: \
47854 configure-target-libiberty
15b527ca 47855 @: $(MAKE); $(unstage)
b6fb961f
MS
47856 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
47857 r=`${PWD_COMMAND}`; export r; \
47858 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
47859 $(NORMAL_TARGET_EXPORTS) \
47860 echo "Doing html in $(TARGET_SUBDIR)/libiberty" ; \
47861 for flag in $(EXTRA_TARGET_FLAGS); do \
47862 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47863 done; \
47864 (cd $(TARGET_SUBDIR)/libiberty && \
47865 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47866 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47867 "RANLIB=$${RANLIB}" \
bffcbe34 47868 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
47869 html) \
47870 || exit 1
47871
47872@endif target-libiberty
47873
8ec98d6c
NN
47874.PHONY: maybe-TAGS-target-libiberty TAGS-target-libiberty
47875maybe-TAGS-target-libiberty:
a7e609d6
PB
47876@if target-libiberty
47877maybe-TAGS-target-libiberty: TAGS-target-libiberty
8ec98d6c
NN
47878
47879TAGS-target-libiberty: \
47880 configure-target-libiberty
15b527ca 47881 @: $(MAKE); $(unstage)
8ec98d6c
NN
47882 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
47883 r=`${PWD_COMMAND}`; export r; \
47884 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 47885 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
47886 echo "Doing TAGS in $(TARGET_SUBDIR)/libiberty" ; \
47887 for flag in $(EXTRA_TARGET_FLAGS); do \
47888 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47889 done; \
47890 (cd $(TARGET_SUBDIR)/libiberty && \
47891 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47892 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47893 "RANLIB=$${RANLIB}" \
bffcbe34 47894 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 47895 TAGS) \
8ec98d6c
NN
47896 || exit 1
47897
a7e609d6 47898@endif target-libiberty
8ec98d6c
NN
47899
47900.PHONY: maybe-install-info-target-libiberty install-info-target-libiberty
47901maybe-install-info-target-libiberty:
a7e609d6
PB
47902@if target-libiberty
47903maybe-install-info-target-libiberty: install-info-target-libiberty
8ec98d6c
NN
47904
47905install-info-target-libiberty: \
47906 configure-target-libiberty \
47907 info-target-libiberty
15b527ca 47908 @: $(MAKE); $(unstage)
8ec98d6c
NN
47909 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
47910 r=`${PWD_COMMAND}`; export r; \
47911 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 47912 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
47913 echo "Doing install-info in $(TARGET_SUBDIR)/libiberty" ; \
47914 for flag in $(EXTRA_TARGET_FLAGS); do \
47915 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47916 done; \
47917 (cd $(TARGET_SUBDIR)/libiberty && \
47918 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47919 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47920 "RANLIB=$${RANLIB}" \
bffcbe34 47921 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 47922 install-info) \
8ec98d6c
NN
47923 || exit 1
47924
a7e609d6 47925@endif target-libiberty
8ec98d6c 47926
d4954b6d
DD
47927.PHONY: maybe-install-pdf-target-libiberty install-pdf-target-libiberty
47928maybe-install-pdf-target-libiberty:
47929@if target-libiberty
47930maybe-install-pdf-target-libiberty: install-pdf-target-libiberty
47931
47932install-pdf-target-libiberty: \
47933 configure-target-libiberty \
47934 pdf-target-libiberty
47935 @: $(MAKE); $(unstage)
47936 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
47937 r=`${PWD_COMMAND}`; export r; \
47938 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47939 $(NORMAL_TARGET_EXPORTS) \
47940 echo "Doing install-pdf in $(TARGET_SUBDIR)/libiberty" ; \
47941 for flag in $(EXTRA_TARGET_FLAGS); do \
47942 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47943 done; \
47944 (cd $(TARGET_SUBDIR)/libiberty && \
47945 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47946 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47947 "RANLIB=$${RANLIB}" \
bffcbe34 47948 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
47949 install-pdf) \
47950 || exit 1
47951
47952@endif target-libiberty
47953
83c9add4
CD
47954.PHONY: maybe-install-html-target-libiberty install-html-target-libiberty
47955maybe-install-html-target-libiberty:
47956@if target-libiberty
47957maybe-install-html-target-libiberty: install-html-target-libiberty
47958
47959install-html-target-libiberty: \
47960 configure-target-libiberty \
47961 html-target-libiberty
47962 @: $(MAKE); $(unstage)
47963 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
47964 r=`${PWD_COMMAND}`; export r; \
47965 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47966 $(NORMAL_TARGET_EXPORTS) \
47967 echo "Doing install-html in $(TARGET_SUBDIR)/libiberty" ; \
47968 for flag in $(EXTRA_TARGET_FLAGS); do \
47969 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47970 done; \
47971 (cd $(TARGET_SUBDIR)/libiberty && \
47972 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47973 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47974 "RANLIB=$${RANLIB}" \
bffcbe34 47975 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
47976 install-html) \
47977 || exit 1
47978
47979@endif target-libiberty
47980
8ec98d6c
NN
47981.PHONY: maybe-installcheck-target-libiberty installcheck-target-libiberty
47982maybe-installcheck-target-libiberty:
a7e609d6
PB
47983@if target-libiberty
47984maybe-installcheck-target-libiberty: installcheck-target-libiberty
8ec98d6c
NN
47985
47986installcheck-target-libiberty: \
47987 configure-target-libiberty
15b527ca 47988 @: $(MAKE); $(unstage)
8ec98d6c
NN
47989 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
47990 r=`${PWD_COMMAND}`; export r; \
47991 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 47992 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
47993 echo "Doing installcheck in $(TARGET_SUBDIR)/libiberty" ; \
47994 for flag in $(EXTRA_TARGET_FLAGS); do \
47995 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47996 done; \
47997 (cd $(TARGET_SUBDIR)/libiberty && \
47998 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47999 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48000 "RANLIB=$${RANLIB}" \
bffcbe34 48001 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 48002 installcheck) \
8ec98d6c
NN
48003 || exit 1
48004
a7e609d6 48005@endif target-libiberty
8ec98d6c
NN
48006
48007.PHONY: maybe-mostlyclean-target-libiberty mostlyclean-target-libiberty
48008maybe-mostlyclean-target-libiberty:
a7e609d6
PB
48009@if target-libiberty
48010maybe-mostlyclean-target-libiberty: mostlyclean-target-libiberty
8ec98d6c
NN
48011
48012mostlyclean-target-libiberty:
15b527ca 48013 @: $(MAKE); $(unstage)
8ec98d6c
NN
48014 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
48015 r=`${PWD_COMMAND}`; export r; \
48016 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 48017 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
48018 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libiberty" ; \
48019 for flag in $(EXTRA_TARGET_FLAGS); do \
48020 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48021 done; \
48022 (cd $(TARGET_SUBDIR)/libiberty && \
48023 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48024 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48025 "RANLIB=$${RANLIB}" \
bffcbe34 48026 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 48027 mostlyclean) \
8ec98d6c
NN
48028 || exit 1
48029
a7e609d6 48030@endif target-libiberty
8ec98d6c
NN
48031
48032.PHONY: maybe-clean-target-libiberty clean-target-libiberty
48033maybe-clean-target-libiberty:
a7e609d6
PB
48034@if target-libiberty
48035maybe-clean-target-libiberty: clean-target-libiberty
8ec98d6c
NN
48036
48037clean-target-libiberty:
15b527ca 48038 @: $(MAKE); $(unstage)
8ec98d6c
NN
48039 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
48040 r=`${PWD_COMMAND}`; export r; \
48041 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 48042 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
48043 echo "Doing clean in $(TARGET_SUBDIR)/libiberty" ; \
48044 for flag in $(EXTRA_TARGET_FLAGS); do \
48045 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48046 done; \
48047 (cd $(TARGET_SUBDIR)/libiberty && \
48048 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48049 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48050 "RANLIB=$${RANLIB}" \
bffcbe34 48051 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 48052 clean) \
8ec98d6c
NN
48053 || exit 1
48054
a7e609d6 48055@endif target-libiberty
8ec98d6c
NN
48056
48057.PHONY: maybe-distclean-target-libiberty distclean-target-libiberty
48058maybe-distclean-target-libiberty:
a7e609d6
PB
48059@if target-libiberty
48060maybe-distclean-target-libiberty: distclean-target-libiberty
8ec98d6c
NN
48061
48062distclean-target-libiberty:
15b527ca 48063 @: $(MAKE); $(unstage)
8ec98d6c
NN
48064 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
48065 r=`${PWD_COMMAND}`; export r; \
48066 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 48067 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
48068 echo "Doing distclean in $(TARGET_SUBDIR)/libiberty" ; \
48069 for flag in $(EXTRA_TARGET_FLAGS); do \
48070 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48071 done; \
48072 (cd $(TARGET_SUBDIR)/libiberty && \
48073 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48074 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48075 "RANLIB=$${RANLIB}" \
bffcbe34 48076 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 48077 distclean) \
8ec98d6c
NN
48078 || exit 1
48079
a7e609d6 48080@endif target-libiberty
8ec98d6c
NN
48081
48082.PHONY: maybe-maintainer-clean-target-libiberty maintainer-clean-target-libiberty
48083maybe-maintainer-clean-target-libiberty:
a7e609d6
PB
48084@if target-libiberty
48085maybe-maintainer-clean-target-libiberty: maintainer-clean-target-libiberty
8ec98d6c
NN
48086
48087maintainer-clean-target-libiberty:
15b527ca 48088 @: $(MAKE); $(unstage)
8ec98d6c
NN
48089 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
48090 r=`${PWD_COMMAND}`; export r; \
48091 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 48092 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
48093 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libiberty" ; \
48094 for flag in $(EXTRA_TARGET_FLAGS); do \
48095 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48096 done; \
48097 (cd $(TARGET_SUBDIR)/libiberty && \
48098 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48099 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48100 "RANLIB=$${RANLIB}" \
bffcbe34 48101 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 48102 maintainer-clean) \
8ec98d6c 48103 || exit 1
70ffc148 48104
a7e609d6 48105@endif target-libiberty
d6ebd419
NN
48106
48107
43bdb69a 48108
f3fd76d4 48109
f0fdfd34
PB
48110
48111.PHONY: configure-target-gperf maybe-configure-target-gperf
48112maybe-configure-target-gperf:
e1e5148c
CD
48113@if gcc-bootstrap
48114configure-target-gperf: stage_current
48115@endif gcc-bootstrap
f0fdfd34
PB
48116@if target-gperf
48117maybe-configure-target-gperf: configure-target-gperf
ec92c4d6 48118configure-target-gperf:
15b527ca
PB
48119 @: $(MAKE); $(unstage)
48120 @r=`${PWD_COMMAND}`; export r; \
48121 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48122 echo "Checking multilib configuration for gperf..."; \
48123 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/gperf ; \
48124 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/gperf/multilib.tmp 2> /dev/null ; \
48125 if test -r $(TARGET_SUBDIR)/gperf/multilib.out; then \
48126 if cmp -s $(TARGET_SUBDIR)/gperf/multilib.tmp $(TARGET_SUBDIR)/gperf/multilib.out; then \
48127 rm -f $(TARGET_SUBDIR)/gperf/multilib.tmp; \
48128 else \
48129 rm -f $(TARGET_SUBDIR)/gperf/Makefile; \
48130 mv $(TARGET_SUBDIR)/gperf/multilib.tmp $(TARGET_SUBDIR)/gperf/multilib.out; \
48131 fi; \
48132 else \
48133 mv $(TARGET_SUBDIR)/gperf/multilib.tmp $(TARGET_SUBDIR)/gperf/multilib.out; \
ec92c4d6
PB
48134 fi; \
48135 test ! -f $(TARGET_SUBDIR)/gperf/Makefile || exit 0; \
8ec98d6c 48136 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/gperf ; \
a675b75a 48137 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
48138 echo Configuring in $(TARGET_SUBDIR)/gperf; \
48139 cd "$(TARGET_SUBDIR)/gperf" || exit 1; \
2245eb63 48140 case $(srcdir) in \
7fc2ca22
PB
48141 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
48142 *) topdir=`echo $(TARGET_SUBDIR)/gperf/ | \
48143 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2245eb63 48144 esac; \
7fc2ca22
PB
48145 srcdiroption="--srcdir=$${topdir}/gperf"; \
48146 libsrcdir="$$s/gperf"; \
2245eb63
NN
48147 rm -f no-such-file || : ; \
48148 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
48149 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
48150 --target=${target_alias} $${srcdiroption} \
2245eb63 48151 || exit 1
a7e609d6 48152@endif target-gperf
d6ebd419 48153
f0fdfd34
PB
48154
48155
a8a96878
PB
48156
48157
8ec98d6c
NN
48158.PHONY: all-target-gperf maybe-all-target-gperf
48159maybe-all-target-gperf:
e1e5148c
CD
48160@if gcc-bootstrap
48161all-target-gperf: stage_current
48162@endif gcc-bootstrap
a7e609d6 48163@if target-gperf
6a19fd82 48164TARGET-target-gperf=all
a7e609d6 48165maybe-all-target-gperf: all-target-gperf
8ec98d6c 48166all-target-gperf: configure-target-gperf
15b527ca 48167 @: $(MAKE); $(unstage)
5230d454
L
48168 @r=`${PWD_COMMAND}`; export r; \
48169 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 48170 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 48171 (cd $(TARGET_SUBDIR)/gperf && \
6532abb6
PB
48172 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
48173 $(TARGET-target-gperf))
a7e609d6 48174@endif target-gperf
d6ebd419 48175
f0fdfd34
PB
48176
48177
a8a96878
PB
48178
48179
8ec98d6c
NN
48180.PHONY: check-target-gperf maybe-check-target-gperf
48181maybe-check-target-gperf:
a7e609d6
PB
48182@if target-gperf
48183maybe-check-target-gperf: check-target-gperf
70ffc148 48184
8ec98d6c 48185check-target-gperf:
15b527ca 48186 @: $(MAKE); $(unstage)
5230d454
L
48187 @r=`${PWD_COMMAND}`; export r; \
48188 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 48189 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 48190 (cd $(TARGET_SUBDIR)/gperf && \
63673a5b 48191 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
c5e4bb70 48192
a7e609d6 48193@endif target-gperf
d6ebd419 48194
8ec98d6c
NN
48195.PHONY: install-target-gperf maybe-install-target-gperf
48196maybe-install-target-gperf:
a7e609d6
PB
48197@if target-gperf
48198maybe-install-target-gperf: install-target-gperf
8ec98d6c
NN
48199
48200install-target-gperf: installdirs
15b527ca 48201 @: $(MAKE); $(unstage)
8ec98d6c
NN
48202 @r=`${PWD_COMMAND}`; export r; \
48203 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 48204 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 48205 (cd $(TARGET_SUBDIR)/gperf && \
63673a5b 48206 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
8ec98d6c 48207
a7e609d6 48208@endif target-gperf
8ec98d6c 48209
39bbbb69 48210# Other targets (info, dvi, pdf, etc.)
8ec98d6c
NN
48211
48212.PHONY: maybe-info-target-gperf info-target-gperf
48213maybe-info-target-gperf:
a7e609d6
PB
48214@if target-gperf
48215maybe-info-target-gperf: info-target-gperf
8ec98d6c
NN
48216
48217info-target-gperf: \
48218 configure-target-gperf
15b527ca 48219 @: $(MAKE); $(unstage)
8ec98d6c
NN
48220 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
48221 r=`${PWD_COMMAND}`; export r; \
48222 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 48223 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
48224 echo "Doing info in $(TARGET_SUBDIR)/gperf" ; \
48225 for flag in $(EXTRA_TARGET_FLAGS); do \
48226 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48227 done; \
48228 (cd $(TARGET_SUBDIR)/gperf && \
48229 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48230 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48231 "RANLIB=$${RANLIB}" \
bffcbe34 48232 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 48233 info) \
8ec98d6c
NN
48234 || exit 1
48235
a7e609d6 48236@endif target-gperf
8ec98d6c
NN
48237
48238.PHONY: maybe-dvi-target-gperf dvi-target-gperf
48239maybe-dvi-target-gperf:
a7e609d6
PB
48240@if target-gperf
48241maybe-dvi-target-gperf: dvi-target-gperf
8ec98d6c
NN
48242
48243dvi-target-gperf: \
48244 configure-target-gperf
15b527ca 48245 @: $(MAKE); $(unstage)
8ec98d6c
NN
48246 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
48247 r=`${PWD_COMMAND}`; export r; \
48248 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 48249 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
48250 echo "Doing dvi in $(TARGET_SUBDIR)/gperf" ; \
48251 for flag in $(EXTRA_TARGET_FLAGS); do \
48252 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48253 done; \
48254 (cd $(TARGET_SUBDIR)/gperf && \
48255 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48256 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48257 "RANLIB=$${RANLIB}" \
bffcbe34 48258 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 48259 dvi) \
8ec98d6c
NN
48260 || exit 1
48261
a7e609d6 48262@endif target-gperf
8ec98d6c 48263
39bbbb69
DD
48264.PHONY: maybe-pdf-target-gperf pdf-target-gperf
48265maybe-pdf-target-gperf:
48266@if target-gperf
48267maybe-pdf-target-gperf: pdf-target-gperf
48268
48269pdf-target-gperf: \
48270 configure-target-gperf
48271 @: $(MAKE); $(unstage)
48272 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
48273 r=`${PWD_COMMAND}`; export r; \
48274 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48275 $(NORMAL_TARGET_EXPORTS) \
48276 echo "Doing pdf in $(TARGET_SUBDIR)/gperf" ; \
48277 for flag in $(EXTRA_TARGET_FLAGS); do \
48278 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48279 done; \
48280 (cd $(TARGET_SUBDIR)/gperf && \
48281 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48282 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48283 "RANLIB=$${RANLIB}" \
bffcbe34 48284 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
48285 pdf) \
48286 || exit 1
48287
48288@endif target-gperf
48289
b6fb961f
MS
48290.PHONY: maybe-html-target-gperf html-target-gperf
48291maybe-html-target-gperf:
48292@if target-gperf
48293maybe-html-target-gperf: html-target-gperf
48294
48295html-target-gperf: \
48296 configure-target-gperf
15b527ca 48297 @: $(MAKE); $(unstage)
b6fb961f
MS
48298 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
48299 r=`${PWD_COMMAND}`; export r; \
48300 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
48301 $(NORMAL_TARGET_EXPORTS) \
48302 echo "Doing html in $(TARGET_SUBDIR)/gperf" ; \
48303 for flag in $(EXTRA_TARGET_FLAGS); do \
48304 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48305 done; \
48306 (cd $(TARGET_SUBDIR)/gperf && \
48307 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48308 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48309 "RANLIB=$${RANLIB}" \
bffcbe34 48310 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
48311 html) \
48312 || exit 1
48313
48314@endif target-gperf
48315
8ec98d6c
NN
48316.PHONY: maybe-TAGS-target-gperf TAGS-target-gperf
48317maybe-TAGS-target-gperf:
a7e609d6
PB
48318@if target-gperf
48319maybe-TAGS-target-gperf: TAGS-target-gperf
8ec98d6c
NN
48320
48321TAGS-target-gperf: \
48322 configure-target-gperf
15b527ca 48323 @: $(MAKE); $(unstage)
8ec98d6c
NN
48324 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
48325 r=`${PWD_COMMAND}`; export r; \
48326 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 48327 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
48328 echo "Doing TAGS in $(TARGET_SUBDIR)/gperf" ; \
48329 for flag in $(EXTRA_TARGET_FLAGS); do \
48330 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48331 done; \
48332 (cd $(TARGET_SUBDIR)/gperf && \
48333 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48334 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48335 "RANLIB=$${RANLIB}" \
bffcbe34 48336 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 48337 TAGS) \
8ec98d6c
NN
48338 || exit 1
48339
a7e609d6 48340@endif target-gperf
8ec98d6c
NN
48341
48342.PHONY: maybe-install-info-target-gperf install-info-target-gperf
48343maybe-install-info-target-gperf:
a7e609d6
PB
48344@if target-gperf
48345maybe-install-info-target-gperf: install-info-target-gperf
8ec98d6c
NN
48346
48347install-info-target-gperf: \
48348 configure-target-gperf \
48349 info-target-gperf
15b527ca 48350 @: $(MAKE); $(unstage)
8ec98d6c
NN
48351 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
48352 r=`${PWD_COMMAND}`; export r; \
48353 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 48354 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
48355 echo "Doing install-info in $(TARGET_SUBDIR)/gperf" ; \
48356 for flag in $(EXTRA_TARGET_FLAGS); do \
48357 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48358 done; \
48359 (cd $(TARGET_SUBDIR)/gperf && \
48360 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48361 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48362 "RANLIB=$${RANLIB}" \
bffcbe34 48363 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 48364 install-info) \
8ec98d6c
NN
48365 || exit 1
48366
a7e609d6 48367@endif target-gperf
8ec98d6c 48368
d4954b6d
DD
48369.PHONY: maybe-install-pdf-target-gperf install-pdf-target-gperf
48370maybe-install-pdf-target-gperf:
48371@if target-gperf
48372maybe-install-pdf-target-gperf: install-pdf-target-gperf
48373
48374install-pdf-target-gperf: \
48375 configure-target-gperf \
48376 pdf-target-gperf
48377 @: $(MAKE); $(unstage)
48378 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
48379 r=`${PWD_COMMAND}`; export r; \
48380 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48381 $(NORMAL_TARGET_EXPORTS) \
48382 echo "Doing install-pdf in $(TARGET_SUBDIR)/gperf" ; \
48383 for flag in $(EXTRA_TARGET_FLAGS); do \
48384 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48385 done; \
48386 (cd $(TARGET_SUBDIR)/gperf && \
48387 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48388 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48389 "RANLIB=$${RANLIB}" \
bffcbe34 48390 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
48391 install-pdf) \
48392 || exit 1
48393
48394@endif target-gperf
48395
83c9add4
CD
48396.PHONY: maybe-install-html-target-gperf install-html-target-gperf
48397maybe-install-html-target-gperf:
48398@if target-gperf
48399maybe-install-html-target-gperf: install-html-target-gperf
48400
48401install-html-target-gperf: \
48402 configure-target-gperf \
48403 html-target-gperf
48404 @: $(MAKE); $(unstage)
48405 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
48406 r=`${PWD_COMMAND}`; export r; \
48407 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48408 $(NORMAL_TARGET_EXPORTS) \
48409 echo "Doing install-html in $(TARGET_SUBDIR)/gperf" ; \
48410 for flag in $(EXTRA_TARGET_FLAGS); do \
48411 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48412 done; \
48413 (cd $(TARGET_SUBDIR)/gperf && \
48414 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48415 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48416 "RANLIB=$${RANLIB}" \
bffcbe34 48417 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
48418 install-html) \
48419 || exit 1
48420
48421@endif target-gperf
48422
8ec98d6c
NN
48423.PHONY: maybe-installcheck-target-gperf installcheck-target-gperf
48424maybe-installcheck-target-gperf:
a7e609d6
PB
48425@if target-gperf
48426maybe-installcheck-target-gperf: installcheck-target-gperf
8ec98d6c
NN
48427
48428installcheck-target-gperf: \
48429 configure-target-gperf
15b527ca 48430 @: $(MAKE); $(unstage)
8ec98d6c
NN
48431 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
48432 r=`${PWD_COMMAND}`; export r; \
48433 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 48434 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
48435 echo "Doing installcheck in $(TARGET_SUBDIR)/gperf" ; \
48436 for flag in $(EXTRA_TARGET_FLAGS); do \
48437 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48438 done; \
48439 (cd $(TARGET_SUBDIR)/gperf && \
48440 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48441 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48442 "RANLIB=$${RANLIB}" \
bffcbe34 48443 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 48444 installcheck) \
8ec98d6c
NN
48445 || exit 1
48446
a7e609d6 48447@endif target-gperf
8ec98d6c
NN
48448
48449.PHONY: maybe-mostlyclean-target-gperf mostlyclean-target-gperf
48450maybe-mostlyclean-target-gperf:
a7e609d6
PB
48451@if target-gperf
48452maybe-mostlyclean-target-gperf: mostlyclean-target-gperf
8ec98d6c
NN
48453
48454mostlyclean-target-gperf:
15b527ca 48455 @: $(MAKE); $(unstage)
8ec98d6c
NN
48456 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
48457 r=`${PWD_COMMAND}`; export r; \
48458 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 48459 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
48460 echo "Doing mostlyclean in $(TARGET_SUBDIR)/gperf" ; \
48461 for flag in $(EXTRA_TARGET_FLAGS); do \
48462 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48463 done; \
48464 (cd $(TARGET_SUBDIR)/gperf && \
48465 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48466 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48467 "RANLIB=$${RANLIB}" \
bffcbe34 48468 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 48469 mostlyclean) \
8ec98d6c
NN
48470 || exit 1
48471
a7e609d6 48472@endif target-gperf
8ec98d6c
NN
48473
48474.PHONY: maybe-clean-target-gperf clean-target-gperf
48475maybe-clean-target-gperf:
a7e609d6
PB
48476@if target-gperf
48477maybe-clean-target-gperf: clean-target-gperf
8ec98d6c
NN
48478
48479clean-target-gperf:
15b527ca 48480 @: $(MAKE); $(unstage)
8ec98d6c
NN
48481 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
48482 r=`${PWD_COMMAND}`; export r; \
48483 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 48484 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
48485 echo "Doing clean in $(TARGET_SUBDIR)/gperf" ; \
48486 for flag in $(EXTRA_TARGET_FLAGS); do \
48487 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48488 done; \
48489 (cd $(TARGET_SUBDIR)/gperf && \
48490 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48491 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48492 "RANLIB=$${RANLIB}" \
bffcbe34 48493 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 48494 clean) \
8ec98d6c
NN
48495 || exit 1
48496
a7e609d6 48497@endif target-gperf
8ec98d6c
NN
48498
48499.PHONY: maybe-distclean-target-gperf distclean-target-gperf
48500maybe-distclean-target-gperf:
a7e609d6
PB
48501@if target-gperf
48502maybe-distclean-target-gperf: distclean-target-gperf
8ec98d6c
NN
48503
48504distclean-target-gperf:
15b527ca 48505 @: $(MAKE); $(unstage)
8ec98d6c
NN
48506 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
48507 r=`${PWD_COMMAND}`; export r; \
48508 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 48509 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
48510 echo "Doing distclean in $(TARGET_SUBDIR)/gperf" ; \
48511 for flag in $(EXTRA_TARGET_FLAGS); do \
48512 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48513 done; \
48514 (cd $(TARGET_SUBDIR)/gperf && \
48515 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48516 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48517 "RANLIB=$${RANLIB}" \
bffcbe34 48518 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 48519 distclean) \
8ec98d6c
NN
48520 || exit 1
48521
a7e609d6 48522@endif target-gperf
8ec98d6c
NN
48523
48524.PHONY: maybe-maintainer-clean-target-gperf maintainer-clean-target-gperf
48525maybe-maintainer-clean-target-gperf:
a7e609d6
PB
48526@if target-gperf
48527maybe-maintainer-clean-target-gperf: maintainer-clean-target-gperf
8ec98d6c
NN
48528
48529maintainer-clean-target-gperf:
15b527ca 48530 @: $(MAKE); $(unstage)
8ec98d6c
NN
48531 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
48532 r=`${PWD_COMMAND}`; export r; \
48533 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 48534 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
48535 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/gperf" ; \
48536 for flag in $(EXTRA_TARGET_FLAGS); do \
48537 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48538 done; \
48539 (cd $(TARGET_SUBDIR)/gperf && \
48540 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48541 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48542 "RANLIB=$${RANLIB}" \
bffcbe34 48543 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 48544 maintainer-clean) \
8ec98d6c 48545 || exit 1
70ffc148 48546
a7e609d6 48547@endif target-gperf
d6ebd419
NN
48548
48549
43bdb69a 48550
f0fdfd34
PB
48551
48552
48553.PHONY: configure-target-examples maybe-configure-target-examples
48554maybe-configure-target-examples:
e1e5148c
CD
48555@if gcc-bootstrap
48556configure-target-examples: stage_current
48557@endif gcc-bootstrap
f0fdfd34
PB
48558@if target-examples
48559maybe-configure-target-examples: configure-target-examples
ec92c4d6 48560configure-target-examples:
15b527ca
PB
48561 @: $(MAKE); $(unstage)
48562 @r=`${PWD_COMMAND}`; export r; \
48563 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48564 echo "Checking multilib configuration for examples..."; \
48565 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/examples ; \
48566 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/examples/multilib.tmp 2> /dev/null ; \
48567 if test -r $(TARGET_SUBDIR)/examples/multilib.out; then \
48568 if cmp -s $(TARGET_SUBDIR)/examples/multilib.tmp $(TARGET_SUBDIR)/examples/multilib.out; then \
48569 rm -f $(TARGET_SUBDIR)/examples/multilib.tmp; \
48570 else \
48571 rm -f $(TARGET_SUBDIR)/examples/Makefile; \
48572 mv $(TARGET_SUBDIR)/examples/multilib.tmp $(TARGET_SUBDIR)/examples/multilib.out; \
48573 fi; \
48574 else \
48575 mv $(TARGET_SUBDIR)/examples/multilib.tmp $(TARGET_SUBDIR)/examples/multilib.out; \
ec92c4d6
PB
48576 fi; \
48577 test ! -f $(TARGET_SUBDIR)/examples/Makefile || exit 0; \
8ec98d6c 48578 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/examples ; \
a675b75a 48579 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
48580 echo Configuring in $(TARGET_SUBDIR)/examples; \
48581 cd "$(TARGET_SUBDIR)/examples" || exit 1; \
2245eb63 48582 case $(srcdir) in \
7fc2ca22
PB
48583 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
48584 *) topdir=`echo $(TARGET_SUBDIR)/examples/ | \
48585 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2245eb63 48586 esac; \
7fc2ca22
PB
48587 srcdiroption="--srcdir=$${topdir}/examples"; \
48588 libsrcdir="$$s/examples"; \
2245eb63
NN
48589 rm -f no-such-file || : ; \
48590 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
48591 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
48592 --target=${target_alias} $${srcdiroption} \
2245eb63 48593 || exit 1
a7e609d6 48594@endif target-examples
d6ebd419 48595
f0fdfd34
PB
48596
48597
a8a96878
PB
48598
48599
8ec98d6c
NN
48600.PHONY: all-target-examples maybe-all-target-examples
48601maybe-all-target-examples:
e1e5148c
CD
48602@if gcc-bootstrap
48603all-target-examples: stage_current
48604@endif gcc-bootstrap
a7e609d6 48605@if target-examples
6a19fd82 48606TARGET-target-examples=all
a7e609d6 48607maybe-all-target-examples: all-target-examples
8ec98d6c 48608all-target-examples: configure-target-examples
15b527ca 48609 @: $(MAKE); $(unstage)
5230d454
L
48610 @r=`${PWD_COMMAND}`; export r; \
48611 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 48612 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 48613 (cd $(TARGET_SUBDIR)/examples && \
6532abb6
PB
48614 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
48615 $(TARGET-target-examples))
a7e609d6 48616@endif target-examples
d6ebd419 48617
f0fdfd34
PB
48618
48619
a8a96878
PB
48620
48621
8ec98d6c
NN
48622.PHONY: check-target-examples maybe-check-target-examples
48623maybe-check-target-examples:
a7e609d6
PB
48624@if target-examples
48625maybe-check-target-examples: check-target-examples
70ffc148 48626
8ec98d6c
NN
48627# Dummy target for uncheckable module.
48628check-target-examples:
48629
a7e609d6 48630@endif target-examples
8ec98d6c
NN
48631
48632.PHONY: install-target-examples maybe-install-target-examples
48633maybe-install-target-examples:
a7e609d6
PB
48634@if target-examples
48635maybe-install-target-examples: install-target-examples
8ec98d6c
NN
48636
48637# Dummy target for uninstallable.
48638install-target-examples:
48639
a7e609d6 48640@endif target-examples
8ec98d6c 48641
39bbbb69 48642# Other targets (info, dvi, pdf, etc.)
8ec98d6c
NN
48643
48644.PHONY: maybe-info-target-examples info-target-examples
48645maybe-info-target-examples:
a7e609d6
PB
48646@if target-examples
48647maybe-info-target-examples: info-target-examples
8ec98d6c
NN
48648
48649info-target-examples: \
48650 configure-target-examples
15b527ca 48651 @: $(MAKE); $(unstage)
8ec98d6c
NN
48652 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
48653 r=`${PWD_COMMAND}`; export r; \
5230d454 48654 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 48655 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
48656 echo "Doing info in $(TARGET_SUBDIR)/examples" ; \
48657 for flag in $(EXTRA_TARGET_FLAGS); do \
48658 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48659 done; \
48660 (cd $(TARGET_SUBDIR)/examples && \
48661 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48662 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48663 "RANLIB=$${RANLIB}" \
bffcbe34 48664 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 48665 info) \
8ec98d6c 48666 || exit 1
c5e4bb70 48667
a7e609d6 48668@endif target-examples
d6ebd419 48669
8ec98d6c
NN
48670.PHONY: maybe-dvi-target-examples dvi-target-examples
48671maybe-dvi-target-examples:
a7e609d6
PB
48672@if target-examples
48673maybe-dvi-target-examples: dvi-target-examples
70ffc148 48674
8ec98d6c
NN
48675dvi-target-examples: \
48676 configure-target-examples
15b527ca 48677 @: $(MAKE); $(unstage)
8ec98d6c
NN
48678 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
48679 r=`${PWD_COMMAND}`; export r; \
5230d454 48680 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 48681 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
48682 echo "Doing dvi in $(TARGET_SUBDIR)/examples" ; \
48683 for flag in $(EXTRA_TARGET_FLAGS); do \
48684 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48685 done; \
48686 (cd $(TARGET_SUBDIR)/examples && \
48687 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48688 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48689 "RANLIB=$${RANLIB}" \
bffcbe34 48690 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 48691 dvi) \
8ec98d6c
NN
48692 || exit 1
48693
a7e609d6 48694@endif target-examples
8ec98d6c 48695
39bbbb69
DD
48696.PHONY: maybe-pdf-target-examples pdf-target-examples
48697maybe-pdf-target-examples:
48698@if target-examples
48699maybe-pdf-target-examples: pdf-target-examples
48700
48701pdf-target-examples: \
48702 configure-target-examples
48703 @: $(MAKE); $(unstage)
48704 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
48705 r=`${PWD_COMMAND}`; export r; \
48706 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48707 $(NORMAL_TARGET_EXPORTS) \
48708 echo "Doing pdf in $(TARGET_SUBDIR)/examples" ; \
48709 for flag in $(EXTRA_TARGET_FLAGS); do \
48710 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48711 done; \
48712 (cd $(TARGET_SUBDIR)/examples && \
48713 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48714 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48715 "RANLIB=$${RANLIB}" \
bffcbe34 48716 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
48717 pdf) \
48718 || exit 1
48719
48720@endif target-examples
48721
b6fb961f
MS
48722.PHONY: maybe-html-target-examples html-target-examples
48723maybe-html-target-examples:
48724@if target-examples
48725maybe-html-target-examples: html-target-examples
48726
48727html-target-examples: \
48728 configure-target-examples
15b527ca 48729 @: $(MAKE); $(unstage)
b6fb961f
MS
48730 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
48731 r=`${PWD_COMMAND}`; export r; \
48732 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
48733 $(NORMAL_TARGET_EXPORTS) \
48734 echo "Doing html in $(TARGET_SUBDIR)/examples" ; \
48735 for flag in $(EXTRA_TARGET_FLAGS); do \
48736 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48737 done; \
48738 (cd $(TARGET_SUBDIR)/examples && \
48739 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48740 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48741 "RANLIB=$${RANLIB}" \
bffcbe34 48742 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
48743 html) \
48744 || exit 1
48745
48746@endif target-examples
48747
8ec98d6c
NN
48748.PHONY: maybe-TAGS-target-examples TAGS-target-examples
48749maybe-TAGS-target-examples:
a7e609d6
PB
48750@if target-examples
48751maybe-TAGS-target-examples: TAGS-target-examples
8ec98d6c
NN
48752
48753TAGS-target-examples: \
48754 configure-target-examples
15b527ca 48755 @: $(MAKE); $(unstage)
8ec98d6c
NN
48756 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
48757 r=`${PWD_COMMAND}`; export r; \
48758 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 48759 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
48760 echo "Doing TAGS in $(TARGET_SUBDIR)/examples" ; \
48761 for flag in $(EXTRA_TARGET_FLAGS); do \
48762 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48763 done; \
48764 (cd $(TARGET_SUBDIR)/examples && \
48765 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48766 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48767 "RANLIB=$${RANLIB}" \
bffcbe34 48768 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 48769 TAGS) \
8ec98d6c
NN
48770 || exit 1
48771
a7e609d6 48772@endif target-examples
8ec98d6c
NN
48773
48774.PHONY: maybe-install-info-target-examples install-info-target-examples
48775maybe-install-info-target-examples:
a7e609d6
PB
48776@if target-examples
48777maybe-install-info-target-examples: install-info-target-examples
8ec98d6c
NN
48778
48779install-info-target-examples: \
48780 configure-target-examples \
48781 info-target-examples
15b527ca 48782 @: $(MAKE); $(unstage)
8ec98d6c
NN
48783 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
48784 r=`${PWD_COMMAND}`; export r; \
48785 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 48786 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
48787 echo "Doing install-info in $(TARGET_SUBDIR)/examples" ; \
48788 for flag in $(EXTRA_TARGET_FLAGS); do \
48789 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48790 done; \
48791 (cd $(TARGET_SUBDIR)/examples && \
48792 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48793 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48794 "RANLIB=$${RANLIB}" \
bffcbe34 48795 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 48796 install-info) \
8ec98d6c
NN
48797 || exit 1
48798
a7e609d6 48799@endif target-examples
8ec98d6c 48800
d4954b6d
DD
48801.PHONY: maybe-install-pdf-target-examples install-pdf-target-examples
48802maybe-install-pdf-target-examples:
48803@if target-examples
48804maybe-install-pdf-target-examples: install-pdf-target-examples
48805
48806install-pdf-target-examples: \
48807 configure-target-examples \
48808 pdf-target-examples
48809 @: $(MAKE); $(unstage)
48810 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
48811 r=`${PWD_COMMAND}`; export r; \
48812 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48813 $(NORMAL_TARGET_EXPORTS) \
48814 echo "Doing install-pdf in $(TARGET_SUBDIR)/examples" ; \
48815 for flag in $(EXTRA_TARGET_FLAGS); do \
48816 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48817 done; \
48818 (cd $(TARGET_SUBDIR)/examples && \
48819 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48820 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48821 "RANLIB=$${RANLIB}" \
bffcbe34 48822 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
48823 install-pdf) \
48824 || exit 1
48825
48826@endif target-examples
48827
83c9add4
CD
48828.PHONY: maybe-install-html-target-examples install-html-target-examples
48829maybe-install-html-target-examples:
48830@if target-examples
48831maybe-install-html-target-examples: install-html-target-examples
48832
48833install-html-target-examples: \
48834 configure-target-examples \
48835 html-target-examples
48836 @: $(MAKE); $(unstage)
48837 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
48838 r=`${PWD_COMMAND}`; export r; \
48839 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48840 $(NORMAL_TARGET_EXPORTS) \
48841 echo "Doing install-html in $(TARGET_SUBDIR)/examples" ; \
48842 for flag in $(EXTRA_TARGET_FLAGS); do \
48843 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48844 done; \
48845 (cd $(TARGET_SUBDIR)/examples && \
48846 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48847 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48848 "RANLIB=$${RANLIB}" \
bffcbe34 48849 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
48850 install-html) \
48851 || exit 1
48852
48853@endif target-examples
48854
8ec98d6c
NN
48855.PHONY: maybe-installcheck-target-examples installcheck-target-examples
48856maybe-installcheck-target-examples:
a7e609d6
PB
48857@if target-examples
48858maybe-installcheck-target-examples: installcheck-target-examples
8ec98d6c
NN
48859
48860installcheck-target-examples: \
48861 configure-target-examples
15b527ca 48862 @: $(MAKE); $(unstage)
8ec98d6c
NN
48863 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
48864 r=`${PWD_COMMAND}`; export r; \
48865 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 48866 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
48867 echo "Doing installcheck in $(TARGET_SUBDIR)/examples" ; \
48868 for flag in $(EXTRA_TARGET_FLAGS); do \
48869 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48870 done; \
48871 (cd $(TARGET_SUBDIR)/examples && \
48872 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48873 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48874 "RANLIB=$${RANLIB}" \
bffcbe34 48875 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 48876 installcheck) \
8ec98d6c
NN
48877 || exit 1
48878
a7e609d6 48879@endif target-examples
8ec98d6c
NN
48880
48881.PHONY: maybe-mostlyclean-target-examples mostlyclean-target-examples
48882maybe-mostlyclean-target-examples:
a7e609d6
PB
48883@if target-examples
48884maybe-mostlyclean-target-examples: mostlyclean-target-examples
8ec98d6c
NN
48885
48886mostlyclean-target-examples:
15b527ca 48887 @: $(MAKE); $(unstage)
8ec98d6c
NN
48888 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
48889 r=`${PWD_COMMAND}`; export r; \
48890 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 48891 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
48892 echo "Doing mostlyclean in $(TARGET_SUBDIR)/examples" ; \
48893 for flag in $(EXTRA_TARGET_FLAGS); do \
48894 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48895 done; \
48896 (cd $(TARGET_SUBDIR)/examples && \
48897 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48898 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48899 "RANLIB=$${RANLIB}" \
bffcbe34 48900 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 48901 mostlyclean) \
8ec98d6c
NN
48902 || exit 1
48903
a7e609d6 48904@endif target-examples
8ec98d6c
NN
48905
48906.PHONY: maybe-clean-target-examples clean-target-examples
48907maybe-clean-target-examples:
a7e609d6
PB
48908@if target-examples
48909maybe-clean-target-examples: clean-target-examples
8ec98d6c
NN
48910
48911clean-target-examples:
15b527ca 48912 @: $(MAKE); $(unstage)
8ec98d6c
NN
48913 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
48914 r=`${PWD_COMMAND}`; export r; \
48915 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 48916 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
48917 echo "Doing clean in $(TARGET_SUBDIR)/examples" ; \
48918 for flag in $(EXTRA_TARGET_FLAGS); do \
48919 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48920 done; \
48921 (cd $(TARGET_SUBDIR)/examples && \
48922 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48923 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48924 "RANLIB=$${RANLIB}" \
bffcbe34 48925 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 48926 clean) \
8ec98d6c
NN
48927 || exit 1
48928
a7e609d6 48929@endif target-examples
8ec98d6c
NN
48930
48931.PHONY: maybe-distclean-target-examples distclean-target-examples
48932maybe-distclean-target-examples:
a7e609d6
PB
48933@if target-examples
48934maybe-distclean-target-examples: distclean-target-examples
8ec98d6c
NN
48935
48936distclean-target-examples:
15b527ca 48937 @: $(MAKE); $(unstage)
8ec98d6c
NN
48938 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
48939 r=`${PWD_COMMAND}`; export r; \
48940 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 48941 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
48942 echo "Doing distclean in $(TARGET_SUBDIR)/examples" ; \
48943 for flag in $(EXTRA_TARGET_FLAGS); do \
48944 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48945 done; \
48946 (cd $(TARGET_SUBDIR)/examples && \
48947 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48948 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48949 "RANLIB=$${RANLIB}" \
bffcbe34 48950 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 48951 distclean) \
8ec98d6c
NN
48952 || exit 1
48953
a7e609d6 48954@endif target-examples
8ec98d6c
NN
48955
48956.PHONY: maybe-maintainer-clean-target-examples maintainer-clean-target-examples
48957maybe-maintainer-clean-target-examples:
a7e609d6
PB
48958@if target-examples
48959maybe-maintainer-clean-target-examples: maintainer-clean-target-examples
8ec98d6c
NN
48960
48961maintainer-clean-target-examples:
15b527ca 48962 @: $(MAKE); $(unstage)
8ec98d6c
NN
48963 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
48964 r=`${PWD_COMMAND}`; export r; \
48965 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 48966 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
48967 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/examples" ; \
48968 for flag in $(EXTRA_TARGET_FLAGS); do \
48969 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48970 done; \
48971 (cd $(TARGET_SUBDIR)/examples && \
48972 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48973 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48974 "RANLIB=$${RANLIB}" \
bffcbe34 48975 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 48976 maintainer-clean) \
8ec98d6c
NN
48977 || exit 1
48978
a7e609d6 48979@endif target-examples
d6ebd419
NN
48980
48981
43bdb69a 48982
f0fdfd34 48983
f3fd76d4 48984
f0fdfd34
PB
48985.PHONY: configure-target-libffi maybe-configure-target-libffi
48986maybe-configure-target-libffi:
e1e5148c
CD
48987@if gcc-bootstrap
48988configure-target-libffi: stage_current
48989@endif gcc-bootstrap
f0fdfd34
PB
48990@if target-libffi
48991maybe-configure-target-libffi: configure-target-libffi
ec92c4d6 48992configure-target-libffi:
15b527ca
PB
48993 @: $(MAKE); $(unstage)
48994 @r=`${PWD_COMMAND}`; export r; \
48995 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48996 echo "Checking multilib configuration for libffi..."; \
48997 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libffi ; \
48998 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libffi/multilib.tmp 2> /dev/null ; \
48999 if test -r $(TARGET_SUBDIR)/libffi/multilib.out; then \
49000 if cmp -s $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; then \
49001 rm -f $(TARGET_SUBDIR)/libffi/multilib.tmp; \
49002 else \
49003 rm -f $(TARGET_SUBDIR)/libffi/Makefile; \
49004 mv $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; \
49005 fi; \
49006 else \
49007 mv $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; \
ec92c4d6
PB
49008 fi; \
49009 test ! -f $(TARGET_SUBDIR)/libffi/Makefile || exit 0; \
8ec98d6c 49010 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libffi ; \
a675b75a 49011 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
49012 echo Configuring in $(TARGET_SUBDIR)/libffi; \
49013 cd "$(TARGET_SUBDIR)/libffi" || exit 1; \
2245eb63 49014 case $(srcdir) in \
7fc2ca22
PB
49015 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
49016 *) topdir=`echo $(TARGET_SUBDIR)/libffi/ | \
49017 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2245eb63 49018 esac; \
7fc2ca22
PB
49019 srcdiroption="--srcdir=$${topdir}/libffi"; \
49020 libsrcdir="$$s/libffi"; \
2245eb63
NN
49021 rm -f no-such-file || : ; \
49022 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
49023 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
49024 --target=${target_alias} $${srcdiroption} \
2245eb63 49025 || exit 1
a7e609d6 49026@endif target-libffi
d6ebd419 49027
f0fdfd34
PB
49028
49029
a8a96878
PB
49030
49031
8ec98d6c
NN
49032.PHONY: all-target-libffi maybe-all-target-libffi
49033maybe-all-target-libffi:
e1e5148c
CD
49034@if gcc-bootstrap
49035all-target-libffi: stage_current
49036@endif gcc-bootstrap
a7e609d6 49037@if target-libffi
6a19fd82 49038TARGET-target-libffi=all
a7e609d6 49039maybe-all-target-libffi: all-target-libffi
8ec98d6c 49040all-target-libffi: configure-target-libffi
15b527ca 49041 @: $(MAKE); $(unstage)
5230d454
L
49042 @r=`${PWD_COMMAND}`; export r; \
49043 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 49044 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 49045 (cd $(TARGET_SUBDIR)/libffi && \
6532abb6
PB
49046 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
49047 $(TARGET-target-libffi))
a7e609d6 49048@endif target-libffi
d6ebd419 49049
f0fdfd34
PB
49050
49051
a8a96878
PB
49052
49053
8ec98d6c
NN
49054.PHONY: check-target-libffi maybe-check-target-libffi
49055maybe-check-target-libffi:
a7e609d6
PB
49056@if target-libffi
49057maybe-check-target-libffi: check-target-libffi
70ffc148 49058
8ec98d6c 49059check-target-libffi:
15b527ca 49060 @: $(MAKE); $(unstage)
5230d454
L
49061 @r=`${PWD_COMMAND}`; export r; \
49062 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 49063 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 49064 (cd $(TARGET_SUBDIR)/libffi && \
63673a5b 49065 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
c5e4bb70 49066
a7e609d6 49067@endif target-libffi
d6ebd419 49068
8ec98d6c
NN
49069.PHONY: install-target-libffi maybe-install-target-libffi
49070maybe-install-target-libffi:
a7e609d6
PB
49071@if target-libffi
49072maybe-install-target-libffi: install-target-libffi
70ffc148 49073
8ec98d6c 49074install-target-libffi: installdirs
15b527ca 49075 @: $(MAKE); $(unstage)
5230d454
L
49076 @r=`${PWD_COMMAND}`; export r; \
49077 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 49078 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 49079 (cd $(TARGET_SUBDIR)/libffi && \
63673a5b 49080 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
d6ebd419 49081
a7e609d6 49082@endif target-libffi
d6ebd419 49083
39bbbb69 49084# Other targets (info, dvi, pdf, etc.)
8ec98d6c
NN
49085
49086.PHONY: maybe-info-target-libffi info-target-libffi
49087maybe-info-target-libffi:
a7e609d6
PB
49088@if target-libffi
49089maybe-info-target-libffi: info-target-libffi
8ec98d6c
NN
49090
49091info-target-libffi: \
49092 configure-target-libffi
15b527ca 49093 @: $(MAKE); $(unstage)
8ec98d6c
NN
49094 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
49095 r=`${PWD_COMMAND}`; export r; \
49096 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 49097 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
49098 echo "Doing info in $(TARGET_SUBDIR)/libffi" ; \
49099 for flag in $(EXTRA_TARGET_FLAGS); do \
49100 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49101 done; \
49102 (cd $(TARGET_SUBDIR)/libffi && \
49103 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49104 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49105 "RANLIB=$${RANLIB}" \
bffcbe34 49106 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 49107 info) \
8ec98d6c
NN
49108 || exit 1
49109
a7e609d6 49110@endif target-libffi
8ec98d6c
NN
49111
49112.PHONY: maybe-dvi-target-libffi dvi-target-libffi
49113maybe-dvi-target-libffi:
a7e609d6
PB
49114@if target-libffi
49115maybe-dvi-target-libffi: dvi-target-libffi
8ec98d6c
NN
49116
49117dvi-target-libffi: \
49118 configure-target-libffi
15b527ca 49119 @: $(MAKE); $(unstage)
8ec98d6c
NN
49120 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
49121 r=`${PWD_COMMAND}`; export r; \
49122 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 49123 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
49124 echo "Doing dvi in $(TARGET_SUBDIR)/libffi" ; \
49125 for flag in $(EXTRA_TARGET_FLAGS); do \
49126 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49127 done; \
49128 (cd $(TARGET_SUBDIR)/libffi && \
49129 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49130 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49131 "RANLIB=$${RANLIB}" \
bffcbe34 49132 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 49133 dvi) \
8ec98d6c
NN
49134 || exit 1
49135
a7e609d6 49136@endif target-libffi
8ec98d6c 49137
39bbbb69
DD
49138.PHONY: maybe-pdf-target-libffi pdf-target-libffi
49139maybe-pdf-target-libffi:
49140@if target-libffi
49141maybe-pdf-target-libffi: pdf-target-libffi
49142
49143pdf-target-libffi: \
49144 configure-target-libffi
49145 @: $(MAKE); $(unstage)
49146 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
49147 r=`${PWD_COMMAND}`; export r; \
49148 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49149 $(NORMAL_TARGET_EXPORTS) \
49150 echo "Doing pdf in $(TARGET_SUBDIR)/libffi" ; \
49151 for flag in $(EXTRA_TARGET_FLAGS); do \
49152 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49153 done; \
49154 (cd $(TARGET_SUBDIR)/libffi && \
49155 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49156 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49157 "RANLIB=$${RANLIB}" \
bffcbe34 49158 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
49159 pdf) \
49160 || exit 1
49161
49162@endif target-libffi
49163
b6fb961f
MS
49164.PHONY: maybe-html-target-libffi html-target-libffi
49165maybe-html-target-libffi:
49166@if target-libffi
49167maybe-html-target-libffi: html-target-libffi
49168
49169html-target-libffi: \
49170 configure-target-libffi
15b527ca 49171 @: $(MAKE); $(unstage)
b6fb961f
MS
49172 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
49173 r=`${PWD_COMMAND}`; export r; \
49174 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
49175 $(NORMAL_TARGET_EXPORTS) \
49176 echo "Doing html in $(TARGET_SUBDIR)/libffi" ; \
49177 for flag in $(EXTRA_TARGET_FLAGS); do \
49178 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49179 done; \
49180 (cd $(TARGET_SUBDIR)/libffi && \
49181 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49182 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49183 "RANLIB=$${RANLIB}" \
bffcbe34 49184 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
49185 html) \
49186 || exit 1
49187
49188@endif target-libffi
49189
8ec98d6c
NN
49190.PHONY: maybe-TAGS-target-libffi TAGS-target-libffi
49191maybe-TAGS-target-libffi:
a7e609d6
PB
49192@if target-libffi
49193maybe-TAGS-target-libffi: TAGS-target-libffi
8ec98d6c
NN
49194
49195TAGS-target-libffi: \
49196 configure-target-libffi
15b527ca 49197 @: $(MAKE); $(unstage)
8ec98d6c
NN
49198 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
49199 r=`${PWD_COMMAND}`; export r; \
49200 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 49201 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
49202 echo "Doing TAGS in $(TARGET_SUBDIR)/libffi" ; \
49203 for flag in $(EXTRA_TARGET_FLAGS); do \
49204 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49205 done; \
49206 (cd $(TARGET_SUBDIR)/libffi && \
49207 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49208 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49209 "RANLIB=$${RANLIB}" \
bffcbe34 49210 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 49211 TAGS) \
8ec98d6c
NN
49212 || exit 1
49213
a7e609d6 49214@endif target-libffi
8ec98d6c
NN
49215
49216.PHONY: maybe-install-info-target-libffi install-info-target-libffi
49217maybe-install-info-target-libffi:
a7e609d6
PB
49218@if target-libffi
49219maybe-install-info-target-libffi: install-info-target-libffi
8ec98d6c
NN
49220
49221install-info-target-libffi: \
49222 configure-target-libffi \
49223 info-target-libffi
15b527ca 49224 @: $(MAKE); $(unstage)
8ec98d6c
NN
49225 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
49226 r=`${PWD_COMMAND}`; export r; \
49227 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 49228 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
49229 echo "Doing install-info in $(TARGET_SUBDIR)/libffi" ; \
49230 for flag in $(EXTRA_TARGET_FLAGS); do \
49231 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49232 done; \
49233 (cd $(TARGET_SUBDIR)/libffi && \
49234 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49235 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49236 "RANLIB=$${RANLIB}" \
bffcbe34 49237 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 49238 install-info) \
8ec98d6c
NN
49239 || exit 1
49240
a7e609d6 49241@endif target-libffi
8ec98d6c 49242
d4954b6d
DD
49243.PHONY: maybe-install-pdf-target-libffi install-pdf-target-libffi
49244maybe-install-pdf-target-libffi:
49245@if target-libffi
49246maybe-install-pdf-target-libffi: install-pdf-target-libffi
49247
49248install-pdf-target-libffi: \
49249 configure-target-libffi \
49250 pdf-target-libffi
49251 @: $(MAKE); $(unstage)
49252 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
49253 r=`${PWD_COMMAND}`; export r; \
49254 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49255 $(NORMAL_TARGET_EXPORTS) \
49256 echo "Doing install-pdf in $(TARGET_SUBDIR)/libffi" ; \
49257 for flag in $(EXTRA_TARGET_FLAGS); do \
49258 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49259 done; \
49260 (cd $(TARGET_SUBDIR)/libffi && \
49261 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49262 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49263 "RANLIB=$${RANLIB}" \
bffcbe34 49264 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
49265 install-pdf) \
49266 || exit 1
49267
49268@endif target-libffi
49269
83c9add4
CD
49270.PHONY: maybe-install-html-target-libffi install-html-target-libffi
49271maybe-install-html-target-libffi:
49272@if target-libffi
49273maybe-install-html-target-libffi: install-html-target-libffi
49274
49275install-html-target-libffi: \
49276 configure-target-libffi \
49277 html-target-libffi
49278 @: $(MAKE); $(unstage)
49279 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
49280 r=`${PWD_COMMAND}`; export r; \
49281 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49282 $(NORMAL_TARGET_EXPORTS) \
49283 echo "Doing install-html in $(TARGET_SUBDIR)/libffi" ; \
49284 for flag in $(EXTRA_TARGET_FLAGS); do \
49285 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49286 done; \
49287 (cd $(TARGET_SUBDIR)/libffi && \
49288 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49289 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49290 "RANLIB=$${RANLIB}" \
bffcbe34 49291 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
49292 install-html) \
49293 || exit 1
49294
49295@endif target-libffi
49296
8ec98d6c
NN
49297.PHONY: maybe-installcheck-target-libffi installcheck-target-libffi
49298maybe-installcheck-target-libffi:
a7e609d6
PB
49299@if target-libffi
49300maybe-installcheck-target-libffi: installcheck-target-libffi
8ec98d6c
NN
49301
49302installcheck-target-libffi: \
49303 configure-target-libffi
15b527ca 49304 @: $(MAKE); $(unstage)
8ec98d6c
NN
49305 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
49306 r=`${PWD_COMMAND}`; export r; \
49307 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 49308 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
49309 echo "Doing installcheck in $(TARGET_SUBDIR)/libffi" ; \
49310 for flag in $(EXTRA_TARGET_FLAGS); do \
49311 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49312 done; \
49313 (cd $(TARGET_SUBDIR)/libffi && \
49314 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49315 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49316 "RANLIB=$${RANLIB}" \
bffcbe34 49317 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 49318 installcheck) \
8ec98d6c
NN
49319 || exit 1
49320
a7e609d6 49321@endif target-libffi
8ec98d6c
NN
49322
49323.PHONY: maybe-mostlyclean-target-libffi mostlyclean-target-libffi
49324maybe-mostlyclean-target-libffi:
a7e609d6
PB
49325@if target-libffi
49326maybe-mostlyclean-target-libffi: mostlyclean-target-libffi
8ec98d6c
NN
49327
49328mostlyclean-target-libffi:
15b527ca 49329 @: $(MAKE); $(unstage)
8ec98d6c
NN
49330 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
49331 r=`${PWD_COMMAND}`; export r; \
49332 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 49333 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
49334 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libffi" ; \
49335 for flag in $(EXTRA_TARGET_FLAGS); do \
49336 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49337 done; \
49338 (cd $(TARGET_SUBDIR)/libffi && \
49339 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49340 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49341 "RANLIB=$${RANLIB}" \
bffcbe34 49342 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 49343 mostlyclean) \
8ec98d6c
NN
49344 || exit 1
49345
a7e609d6 49346@endif target-libffi
8ec98d6c
NN
49347
49348.PHONY: maybe-clean-target-libffi clean-target-libffi
49349maybe-clean-target-libffi:
a7e609d6
PB
49350@if target-libffi
49351maybe-clean-target-libffi: clean-target-libffi
8ec98d6c
NN
49352
49353clean-target-libffi:
15b527ca 49354 @: $(MAKE); $(unstage)
8ec98d6c
NN
49355 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
49356 r=`${PWD_COMMAND}`; export r; \
49357 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 49358 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
49359 echo "Doing clean in $(TARGET_SUBDIR)/libffi" ; \
49360 for flag in $(EXTRA_TARGET_FLAGS); do \
49361 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49362 done; \
49363 (cd $(TARGET_SUBDIR)/libffi && \
49364 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49365 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49366 "RANLIB=$${RANLIB}" \
bffcbe34 49367 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 49368 clean) \
8ec98d6c
NN
49369 || exit 1
49370
a7e609d6 49371@endif target-libffi
8ec98d6c
NN
49372
49373.PHONY: maybe-distclean-target-libffi distclean-target-libffi
49374maybe-distclean-target-libffi:
a7e609d6
PB
49375@if target-libffi
49376maybe-distclean-target-libffi: distclean-target-libffi
8ec98d6c
NN
49377
49378distclean-target-libffi:
15b527ca 49379 @: $(MAKE); $(unstage)
8ec98d6c
NN
49380 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
49381 r=`${PWD_COMMAND}`; export r; \
49382 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 49383 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
49384 echo "Doing distclean in $(TARGET_SUBDIR)/libffi" ; \
49385 for flag in $(EXTRA_TARGET_FLAGS); do \
49386 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49387 done; \
49388 (cd $(TARGET_SUBDIR)/libffi && \
49389 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49390 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49391 "RANLIB=$${RANLIB}" \
bffcbe34 49392 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 49393 distclean) \
8ec98d6c
NN
49394 || exit 1
49395
a7e609d6 49396@endif target-libffi
8ec98d6c
NN
49397
49398.PHONY: maybe-maintainer-clean-target-libffi maintainer-clean-target-libffi
49399maybe-maintainer-clean-target-libffi:
a7e609d6
PB
49400@if target-libffi
49401maybe-maintainer-clean-target-libffi: maintainer-clean-target-libffi
8ec98d6c
NN
49402
49403maintainer-clean-target-libffi:
15b527ca 49404 @: $(MAKE); $(unstage)
8ec98d6c
NN
49405 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
49406 r=`${PWD_COMMAND}`; export r; \
49407 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 49408 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
49409 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libffi" ; \
49410 for flag in $(EXTRA_TARGET_FLAGS); do \
49411 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49412 done; \
49413 (cd $(TARGET_SUBDIR)/libffi && \
49414 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49415 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49416 "RANLIB=$${RANLIB}" \
bffcbe34 49417 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 49418 maintainer-clean) \
8ec98d6c
NN
49419 || exit 1
49420
a7e609d6 49421@endif target-libffi
8ec98d6c
NN
49422
49423
43bdb69a 49424
f0fdfd34 49425
43bdb69a 49426
f0fdfd34
PB
49427.PHONY: configure-target-libjava maybe-configure-target-libjava
49428maybe-configure-target-libjava:
e1e5148c
CD
49429@if gcc-bootstrap
49430configure-target-libjava: stage_current
49431@endif gcc-bootstrap
f0fdfd34
PB
49432@if target-libjava
49433maybe-configure-target-libjava: configure-target-libjava
ec92c4d6 49434configure-target-libjava:
15b527ca
PB
49435 @: $(MAKE); $(unstage)
49436 @r=`${PWD_COMMAND}`; export r; \
49437 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49438 echo "Checking multilib configuration for libjava..."; \
49439 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libjava ; \
49440 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libjava/multilib.tmp 2> /dev/null ; \
49441 if test -r $(TARGET_SUBDIR)/libjava/multilib.out; then \
49442 if cmp -s $(TARGET_SUBDIR)/libjava/multilib.tmp $(TARGET_SUBDIR)/libjava/multilib.out; then \
49443 rm -f $(TARGET_SUBDIR)/libjava/multilib.tmp; \
49444 else \
49445 rm -f $(TARGET_SUBDIR)/libjava/Makefile; \
49446 mv $(TARGET_SUBDIR)/libjava/multilib.tmp $(TARGET_SUBDIR)/libjava/multilib.out; \
49447 fi; \
49448 else \
49449 mv $(TARGET_SUBDIR)/libjava/multilib.tmp $(TARGET_SUBDIR)/libjava/multilib.out; \
ec92c4d6
PB
49450 fi; \
49451 test ! -f $(TARGET_SUBDIR)/libjava/Makefile || exit 0; \
8ec98d6c 49452 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libjava ; \
a675b75a 49453 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c
NN
49454 echo Configuring in $(TARGET_SUBDIR)/libjava; \
49455 cd "$(TARGET_SUBDIR)/libjava" || exit 1; \
2245eb63 49456 case $(srcdir) in \
7fc2ca22
PB
49457 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
49458 *) topdir=`echo $(TARGET_SUBDIR)/libjava/ | \
49459 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2245eb63 49460 esac; \
7fc2ca22
PB
49461 srcdiroption="--srcdir=$${topdir}/libjava"; \
49462 libsrcdir="$$s/libjava"; \
2245eb63
NN
49463 rm -f no-such-file || : ; \
49464 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
49465 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
49466 --target=${target_alias} $${srcdiroption} \
2245eb63 49467 || exit 1
a7e609d6 49468@endif target-libjava
d6ebd419 49469
f0fdfd34
PB
49470
49471
a8a96878
PB
49472
49473
8ec98d6c
NN
49474.PHONY: all-target-libjava maybe-all-target-libjava
49475maybe-all-target-libjava:
e1e5148c
CD
49476@if gcc-bootstrap
49477all-target-libjava: stage_current
49478@endif gcc-bootstrap
a7e609d6 49479@if target-libjava
6a19fd82 49480TARGET-target-libjava=all
a7e609d6 49481maybe-all-target-libjava: all-target-libjava
8ec98d6c 49482all-target-libjava: configure-target-libjava
15b527ca 49483 @: $(MAKE); $(unstage)
5230d454
L
49484 @r=`${PWD_COMMAND}`; export r; \
49485 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 49486 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c 49487 (cd $(TARGET_SUBDIR)/libjava && \
6532abb6
PB
49488 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
49489 $(TARGET-target-libjava))
a7e609d6 49490@endif target-libjava
d6ebd419 49491
f0fdfd34
PB
49492
49493
a8a96878
PB
49494
49495
8ec98d6c
NN
49496.PHONY: check-target-libjava maybe-check-target-libjava
49497maybe-check-target-libjava:
a7e609d6
PB
49498@if target-libjava
49499maybe-check-target-libjava: check-target-libjava
70ffc148 49500
8ec98d6c 49501check-target-libjava:
15b527ca 49502 @: $(MAKE); $(unstage)
8ec98d6c
NN
49503 @r=`${PWD_COMMAND}`; export r; \
49504 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 49505 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c 49506 (cd $(TARGET_SUBDIR)/libjava && \
63673a5b 49507 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
8ecc6504 49508
a7e609d6 49509@endif target-libjava
c5e4bb70 49510
8ec98d6c
NN
49511.PHONY: install-target-libjava maybe-install-target-libjava
49512maybe-install-target-libjava:
a7e609d6
PB
49513@if target-libjava
49514maybe-install-target-libjava: install-target-libjava
70ffc148 49515
8ec98d6c 49516install-target-libjava: installdirs
15b527ca 49517 @: $(MAKE); $(unstage)
5230d454
L
49518 @r=`${PWD_COMMAND}`; export r; \
49519 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 49520 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c 49521 (cd $(TARGET_SUBDIR)/libjava && \
63673a5b 49522 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
d6ebd419 49523
a7e609d6 49524@endif target-libjava
d6ebd419 49525
39bbbb69 49526# Other targets (info, dvi, pdf, etc.)
43bdb69a 49527
8ec98d6c
NN
49528.PHONY: maybe-info-target-libjava info-target-libjava
49529maybe-info-target-libjava:
a7e609d6
PB
49530@if target-libjava
49531maybe-info-target-libjava: info-target-libjava
43bdb69a 49532
8ec98d6c
NN
49533info-target-libjava: \
49534 configure-target-libjava
15b527ca 49535 @: $(MAKE); $(unstage)
8ec98d6c 49536 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
5230d454
L
49537 r=`${PWD_COMMAND}`; export r; \
49538 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 49539 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c
NN
49540 echo "Doing info in $(TARGET_SUBDIR)/libjava" ; \
49541 for flag in $(EXTRA_TARGET_FLAGS); do \
49542 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49543 done; \
49544 (cd $(TARGET_SUBDIR)/libjava && \
49545 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49546 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49547 "RANLIB=$${RANLIB}" \
bffcbe34 49548 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 49549 info) \
2245eb63 49550 || exit 1
d6ebd419 49551
a7e609d6 49552@endif target-libjava
8ec98d6c
NN
49553
49554.PHONY: maybe-dvi-target-libjava dvi-target-libjava
49555maybe-dvi-target-libjava:
a7e609d6
PB
49556@if target-libjava
49557maybe-dvi-target-libjava: dvi-target-libjava
8ec98d6c
NN
49558
49559dvi-target-libjava: \
49560 configure-target-libjava
15b527ca 49561 @: $(MAKE); $(unstage)
8ec98d6c
NN
49562 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
49563 r=`${PWD_COMMAND}`; export r; \
5230d454 49564 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 49565 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c
NN
49566 echo "Doing dvi in $(TARGET_SUBDIR)/libjava" ; \
49567 for flag in $(EXTRA_TARGET_FLAGS); do \
49568 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49569 done; \
49570 (cd $(TARGET_SUBDIR)/libjava && \
49571 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49572 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49573 "RANLIB=$${RANLIB}" \
bffcbe34 49574 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 49575 dvi) \
8ec98d6c 49576 || exit 1
d6ebd419 49577
a7e609d6 49578@endif target-libjava
70ffc148 49579
39bbbb69
DD
49580.PHONY: maybe-pdf-target-libjava pdf-target-libjava
49581maybe-pdf-target-libjava:
49582@if target-libjava
49583maybe-pdf-target-libjava: pdf-target-libjava
49584
49585pdf-target-libjava: \
49586 configure-target-libjava
49587 @: $(MAKE); $(unstage)
49588 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
49589 r=`${PWD_COMMAND}`; export r; \
49590 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49591 $(RAW_CXX_TARGET_EXPORTS) \
49592 echo "Doing pdf in $(TARGET_SUBDIR)/libjava" ; \
49593 for flag in $(EXTRA_TARGET_FLAGS); do \
49594 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49595 done; \
49596 (cd $(TARGET_SUBDIR)/libjava && \
49597 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49598 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49599 "RANLIB=$${RANLIB}" \
bffcbe34 49600 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
49601 pdf) \
49602 || exit 1
49603
49604@endif target-libjava
49605
b6fb961f
MS
49606.PHONY: maybe-html-target-libjava html-target-libjava
49607maybe-html-target-libjava:
49608@if target-libjava
49609maybe-html-target-libjava: html-target-libjava
49610
49611html-target-libjava: \
49612 configure-target-libjava
15b527ca 49613 @: $(MAKE); $(unstage)
b6fb961f
MS
49614 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
49615 r=`${PWD_COMMAND}`; export r; \
49616 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
49617 $(RAW_CXX_TARGET_EXPORTS) \
49618 echo "Doing html in $(TARGET_SUBDIR)/libjava" ; \
49619 for flag in $(EXTRA_TARGET_FLAGS); do \
49620 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49621 done; \
49622 (cd $(TARGET_SUBDIR)/libjava && \
49623 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49624 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49625 "RANLIB=$${RANLIB}" \
bffcbe34 49626 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
49627 html) \
49628 || exit 1
49629
49630@endif target-libjava
49631
8ec98d6c
NN
49632.PHONY: maybe-TAGS-target-libjava TAGS-target-libjava
49633maybe-TAGS-target-libjava:
a7e609d6
PB
49634@if target-libjava
49635maybe-TAGS-target-libjava: TAGS-target-libjava
8ec98d6c
NN
49636
49637TAGS-target-libjava: \
49638 configure-target-libjava
15b527ca 49639 @: $(MAKE); $(unstage)
8ec98d6c
NN
49640 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
49641 r=`${PWD_COMMAND}`; export r; \
5230d454 49642 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 49643 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c
NN
49644 echo "Doing TAGS in $(TARGET_SUBDIR)/libjava" ; \
49645 for flag in $(EXTRA_TARGET_FLAGS); do \
49646 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49647 done; \
49648 (cd $(TARGET_SUBDIR)/libjava && \
49649 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49650 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49651 "RANLIB=$${RANLIB}" \
bffcbe34 49652 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 49653 TAGS) \
8ec98d6c 49654 || exit 1
d6ebd419 49655
a7e609d6 49656@endif target-libjava
c5e4bb70 49657
8ec98d6c
NN
49658.PHONY: maybe-install-info-target-libjava install-info-target-libjava
49659maybe-install-info-target-libjava:
a7e609d6
PB
49660@if target-libjava
49661maybe-install-info-target-libjava: install-info-target-libjava
70ffc148 49662
8ec98d6c
NN
49663install-info-target-libjava: \
49664 configure-target-libjava \
49665 info-target-libjava
15b527ca 49666 @: $(MAKE); $(unstage)
8ec98d6c
NN
49667 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
49668 r=`${PWD_COMMAND}`; export r; \
5230d454 49669 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 49670 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c
NN
49671 echo "Doing install-info in $(TARGET_SUBDIR)/libjava" ; \
49672 for flag in $(EXTRA_TARGET_FLAGS); do \
49673 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49674 done; \
49675 (cd $(TARGET_SUBDIR)/libjava && \
49676 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49677 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49678 "RANLIB=$${RANLIB}" \
bffcbe34 49679 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 49680 install-info) \
8ec98d6c 49681 || exit 1
d6ebd419 49682
a7e609d6 49683@endif target-libjava
d6ebd419 49684
d4954b6d
DD
49685.PHONY: maybe-install-pdf-target-libjava install-pdf-target-libjava
49686maybe-install-pdf-target-libjava:
49687@if target-libjava
49688maybe-install-pdf-target-libjava: install-pdf-target-libjava
49689
49690install-pdf-target-libjava: \
49691 configure-target-libjava \
49692 pdf-target-libjava
49693 @: $(MAKE); $(unstage)
49694 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
49695 r=`${PWD_COMMAND}`; export r; \
49696 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49697 $(RAW_CXX_TARGET_EXPORTS) \
49698 echo "Doing install-pdf in $(TARGET_SUBDIR)/libjava" ; \
49699 for flag in $(EXTRA_TARGET_FLAGS); do \
49700 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49701 done; \
49702 (cd $(TARGET_SUBDIR)/libjava && \
49703 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49704 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49705 "RANLIB=$${RANLIB}" \
bffcbe34 49706 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
49707 install-pdf) \
49708 || exit 1
49709
49710@endif target-libjava
49711
83c9add4
CD
49712.PHONY: maybe-install-html-target-libjava install-html-target-libjava
49713maybe-install-html-target-libjava:
49714@if target-libjava
49715maybe-install-html-target-libjava: install-html-target-libjava
49716
49717install-html-target-libjava: \
49718 configure-target-libjava \
49719 html-target-libjava
49720 @: $(MAKE); $(unstage)
49721 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
49722 r=`${PWD_COMMAND}`; export r; \
49723 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49724 $(RAW_CXX_TARGET_EXPORTS) \
49725 echo "Doing install-html in $(TARGET_SUBDIR)/libjava" ; \
49726 for flag in $(EXTRA_TARGET_FLAGS); do \
49727 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49728 done; \
49729 (cd $(TARGET_SUBDIR)/libjava && \
49730 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49731 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49732 "RANLIB=$${RANLIB}" \
bffcbe34 49733 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
49734 install-html) \
49735 || exit 1
49736
49737@endif target-libjava
49738
8ec98d6c
NN
49739.PHONY: maybe-installcheck-target-libjava installcheck-target-libjava
49740maybe-installcheck-target-libjava:
a7e609d6
PB
49741@if target-libjava
49742maybe-installcheck-target-libjava: installcheck-target-libjava
43bdb69a 49743
8ec98d6c
NN
49744installcheck-target-libjava: \
49745 configure-target-libjava
15b527ca 49746 @: $(MAKE); $(unstage)
8ec98d6c
NN
49747 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
49748 r=`${PWD_COMMAND}`; export r; \
49749 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 49750 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c
NN
49751 echo "Doing installcheck in $(TARGET_SUBDIR)/libjava" ; \
49752 for flag in $(EXTRA_TARGET_FLAGS); do \
49753 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49754 done; \
49755 (cd $(TARGET_SUBDIR)/libjava && \
49756 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49757 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49758 "RANLIB=$${RANLIB}" \
bffcbe34 49759 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 49760 installcheck) \
8ec98d6c 49761 || exit 1
43bdb69a 49762
a7e609d6 49763@endif target-libjava
8ec98d6c
NN
49764
49765.PHONY: maybe-mostlyclean-target-libjava mostlyclean-target-libjava
49766maybe-mostlyclean-target-libjava:
a7e609d6
PB
49767@if target-libjava
49768maybe-mostlyclean-target-libjava: mostlyclean-target-libjava
8ec98d6c
NN
49769
49770mostlyclean-target-libjava:
15b527ca 49771 @: $(MAKE); $(unstage)
8ec98d6c
NN
49772 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
49773 r=`${PWD_COMMAND}`; export r; \
49774 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 49775 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c
NN
49776 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libjava" ; \
49777 for flag in $(EXTRA_TARGET_FLAGS); do \
49778 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49779 done; \
49780 (cd $(TARGET_SUBDIR)/libjava && \
49781 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49782 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49783 "RANLIB=$${RANLIB}" \
bffcbe34 49784 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 49785 mostlyclean) \
8ec98d6c
NN
49786 || exit 1
49787
a7e609d6 49788@endif target-libjava
8ec98d6c
NN
49789
49790.PHONY: maybe-clean-target-libjava clean-target-libjava
49791maybe-clean-target-libjava:
a7e609d6
PB
49792@if target-libjava
49793maybe-clean-target-libjava: clean-target-libjava
8ec98d6c
NN
49794
49795clean-target-libjava:
15b527ca 49796 @: $(MAKE); $(unstage)
8ec98d6c 49797 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
5230d454
L
49798 r=`${PWD_COMMAND}`; export r; \
49799 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 49800 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c
NN
49801 echo "Doing clean in $(TARGET_SUBDIR)/libjava" ; \
49802 for flag in $(EXTRA_TARGET_FLAGS); do \
49803 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49804 done; \
49805 (cd $(TARGET_SUBDIR)/libjava && \
49806 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49807 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49808 "RANLIB=$${RANLIB}" \
bffcbe34 49809 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 49810 clean) \
2245eb63 49811 || exit 1
d6ebd419 49812
a7e609d6 49813@endif target-libjava
d6ebd419 49814
8ec98d6c
NN
49815.PHONY: maybe-distclean-target-libjava distclean-target-libjava
49816maybe-distclean-target-libjava:
a7e609d6
PB
49817@if target-libjava
49818maybe-distclean-target-libjava: distclean-target-libjava
70ffc148 49819
8ec98d6c 49820distclean-target-libjava:
15b527ca 49821 @: $(MAKE); $(unstage)
8ec98d6c
NN
49822 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
49823 r=`${PWD_COMMAND}`; export r; \
49824 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 49825 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c
NN
49826 echo "Doing distclean in $(TARGET_SUBDIR)/libjava" ; \
49827 for flag in $(EXTRA_TARGET_FLAGS); do \
49828 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49829 done; \
49830 (cd $(TARGET_SUBDIR)/libjava && \
49831 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49832 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49833 "RANLIB=$${RANLIB}" \
bffcbe34 49834 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 49835 distclean) \
8ec98d6c 49836 || exit 1
8ecc6504 49837
a7e609d6 49838@endif target-libjava
c5e4bb70 49839
8ec98d6c
NN
49840.PHONY: maybe-maintainer-clean-target-libjava maintainer-clean-target-libjava
49841maybe-maintainer-clean-target-libjava:
a7e609d6
PB
49842@if target-libjava
49843maybe-maintainer-clean-target-libjava: maintainer-clean-target-libjava
70ffc148 49844
8ec98d6c 49845maintainer-clean-target-libjava:
15b527ca 49846 @: $(MAKE); $(unstage)
8ec98d6c
NN
49847 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
49848 r=`${PWD_COMMAND}`; export r; \
5230d454 49849 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 49850 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c
NN
49851 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libjava" ; \
49852 for flag in $(EXTRA_TARGET_FLAGS); do \
49853 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49854 done; \
49855 (cd $(TARGET_SUBDIR)/libjava && \
49856 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49857 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49858 "RANLIB=$${RANLIB}" \
bffcbe34 49859 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 49860 maintainer-clean) \
8ec98d6c 49861 || exit 1
d6ebd419 49862
a7e609d6 49863@endif target-libjava
d6ebd419 49864
8ec98d6c 49865
43bdb69a 49866
f0fdfd34 49867
f3fd76d4 49868
f0fdfd34
PB
49869.PHONY: configure-target-zlib maybe-configure-target-zlib
49870maybe-configure-target-zlib:
e1e5148c
CD
49871@if gcc-bootstrap
49872configure-target-zlib: stage_current
49873@endif gcc-bootstrap
f0fdfd34
PB
49874@if target-zlib
49875maybe-configure-target-zlib: configure-target-zlib
ec92c4d6 49876configure-target-zlib:
15b527ca
PB
49877 @: $(MAKE); $(unstage)
49878 @r=`${PWD_COMMAND}`; export r; \
49879 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49880 echo "Checking multilib configuration for zlib..."; \
49881 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/zlib ; \
49882 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/zlib/multilib.tmp 2> /dev/null ; \
49883 if test -r $(TARGET_SUBDIR)/zlib/multilib.out; then \
49884 if cmp -s $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; then \
49885 rm -f $(TARGET_SUBDIR)/zlib/multilib.tmp; \
49886 else \
49887 rm -f $(TARGET_SUBDIR)/zlib/Makefile; \
49888 mv $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; \
49889 fi; \
49890 else \
49891 mv $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; \
ec92c4d6
PB
49892 fi; \
49893 test ! -f $(TARGET_SUBDIR)/zlib/Makefile || exit 0; \
8ec98d6c 49894 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/zlib ; \
a675b75a 49895 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
49896 echo Configuring in $(TARGET_SUBDIR)/zlib; \
49897 cd "$(TARGET_SUBDIR)/zlib" || exit 1; \
2245eb63 49898 case $(srcdir) in \
7fc2ca22
PB
49899 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
49900 *) topdir=`echo $(TARGET_SUBDIR)/zlib/ | \
49901 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2245eb63 49902 esac; \
7fc2ca22
PB
49903 srcdiroption="--srcdir=$${topdir}/zlib"; \
49904 libsrcdir="$$s/zlib"; \
2245eb63
NN
49905 rm -f no-such-file || : ; \
49906 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
49907 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
49908 --target=${target_alias} $${srcdiroption} \
2245eb63 49909 || exit 1
a7e609d6 49910@endif target-zlib
d6ebd419 49911
f0fdfd34
PB
49912
49913
a8a96878
PB
49914
49915
8ec98d6c
NN
49916.PHONY: all-target-zlib maybe-all-target-zlib
49917maybe-all-target-zlib:
e1e5148c
CD
49918@if gcc-bootstrap
49919all-target-zlib: stage_current
49920@endif gcc-bootstrap
a7e609d6 49921@if target-zlib
6a19fd82 49922TARGET-target-zlib=all
a7e609d6 49923maybe-all-target-zlib: all-target-zlib
8ec98d6c 49924all-target-zlib: configure-target-zlib
15b527ca 49925 @: $(MAKE); $(unstage)
5230d454
L
49926 @r=`${PWD_COMMAND}`; export r; \
49927 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 49928 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 49929 (cd $(TARGET_SUBDIR)/zlib && \
6532abb6
PB
49930 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
49931 $(TARGET-target-zlib))
a7e609d6 49932@endif target-zlib
d6ebd419 49933
f0fdfd34
PB
49934
49935
a8a96878
PB
49936
49937
8ec98d6c
NN
49938.PHONY: check-target-zlib maybe-check-target-zlib
49939maybe-check-target-zlib:
a7e609d6
PB
49940@if target-zlib
49941maybe-check-target-zlib: check-target-zlib
70ffc148 49942
8ec98d6c 49943check-target-zlib:
15b527ca 49944 @: $(MAKE); $(unstage)
5230d454
L
49945 @r=`${PWD_COMMAND}`; export r; \
49946 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 49947 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 49948 (cd $(TARGET_SUBDIR)/zlib && \
63673a5b 49949 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
d6ebd419 49950
a7e609d6 49951@endif target-zlib
c5e4bb70 49952
8ec98d6c
NN
49953.PHONY: install-target-zlib maybe-install-target-zlib
49954maybe-install-target-zlib:
a7e609d6
PB
49955@if target-zlib
49956maybe-install-target-zlib: install-target-zlib
70ffc148 49957
8ec98d6c 49958install-target-zlib: installdirs
15b527ca 49959 @: $(MAKE); $(unstage)
5230d454
L
49960 @r=`${PWD_COMMAND}`; export r; \
49961 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 49962 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 49963 (cd $(TARGET_SUBDIR)/zlib && \
63673a5b 49964 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
d6ebd419 49965
a7e609d6 49966@endif target-zlib
d6ebd419 49967
39bbbb69 49968# Other targets (info, dvi, pdf, etc.)
43bdb69a 49969
8ec98d6c
NN
49970.PHONY: maybe-info-target-zlib info-target-zlib
49971maybe-info-target-zlib:
a7e609d6
PB
49972@if target-zlib
49973maybe-info-target-zlib: info-target-zlib
43bdb69a 49974
8ec98d6c
NN
49975info-target-zlib: \
49976 configure-target-zlib
15b527ca 49977 @: $(MAKE); $(unstage)
8ec98d6c 49978 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
5230d454
L
49979 r=`${PWD_COMMAND}`; export r; \
49980 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 49981 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
49982 echo "Doing info in $(TARGET_SUBDIR)/zlib" ; \
49983 for flag in $(EXTRA_TARGET_FLAGS); do \
49984 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49985 done; \
49986 (cd $(TARGET_SUBDIR)/zlib && \
49987 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49988 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49989 "RANLIB=$${RANLIB}" \
bffcbe34 49990 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 49991 info) \
2245eb63 49992 || exit 1
d6ebd419 49993
a7e609d6 49994@endif target-zlib
d6ebd419 49995
8ec98d6c
NN
49996.PHONY: maybe-dvi-target-zlib dvi-target-zlib
49997maybe-dvi-target-zlib:
a7e609d6
PB
49998@if target-zlib
49999maybe-dvi-target-zlib: dvi-target-zlib
70ffc148 50000
8ec98d6c
NN
50001dvi-target-zlib: \
50002 configure-target-zlib
15b527ca 50003 @: $(MAKE); $(unstage)
8ec98d6c
NN
50004 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
50005 r=`${PWD_COMMAND}`; export r; \
5230d454 50006 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 50007 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
50008 echo "Doing dvi in $(TARGET_SUBDIR)/zlib" ; \
50009 for flag in $(EXTRA_TARGET_FLAGS); do \
50010 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50011 done; \
50012 (cd $(TARGET_SUBDIR)/zlib && \
50013 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50014 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50015 "RANLIB=$${RANLIB}" \
bffcbe34 50016 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 50017 dvi) \
8ec98d6c 50018 || exit 1
d6ebd419 50019
a7e609d6 50020@endif target-zlib
c5e4bb70 50021
39bbbb69
DD
50022.PHONY: maybe-pdf-target-zlib pdf-target-zlib
50023maybe-pdf-target-zlib:
50024@if target-zlib
50025maybe-pdf-target-zlib: pdf-target-zlib
50026
50027pdf-target-zlib: \
50028 configure-target-zlib
50029 @: $(MAKE); $(unstage)
50030 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
50031 r=`${PWD_COMMAND}`; export r; \
50032 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
50033 $(NORMAL_TARGET_EXPORTS) \
50034 echo "Doing pdf in $(TARGET_SUBDIR)/zlib" ; \
50035 for flag in $(EXTRA_TARGET_FLAGS); do \
50036 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50037 done; \
50038 (cd $(TARGET_SUBDIR)/zlib && \
50039 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50040 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50041 "RANLIB=$${RANLIB}" \
bffcbe34 50042 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
50043 pdf) \
50044 || exit 1
50045
50046@endif target-zlib
50047
b6fb961f
MS
50048.PHONY: maybe-html-target-zlib html-target-zlib
50049maybe-html-target-zlib:
50050@if target-zlib
50051maybe-html-target-zlib: html-target-zlib
50052
50053html-target-zlib: \
50054 configure-target-zlib
15b527ca 50055 @: $(MAKE); $(unstage)
b6fb961f
MS
50056 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
50057 r=`${PWD_COMMAND}`; export r; \
50058 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
50059 $(NORMAL_TARGET_EXPORTS) \
50060 echo "Doing html in $(TARGET_SUBDIR)/zlib" ; \
50061 for flag in $(EXTRA_TARGET_FLAGS); do \
50062 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50063 done; \
50064 (cd $(TARGET_SUBDIR)/zlib && \
50065 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50066 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50067 "RANLIB=$${RANLIB}" \
bffcbe34 50068 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
50069 html) \
50070 || exit 1
50071
50072@endif target-zlib
50073
8ec98d6c
NN
50074.PHONY: maybe-TAGS-target-zlib TAGS-target-zlib
50075maybe-TAGS-target-zlib:
a7e609d6
PB
50076@if target-zlib
50077maybe-TAGS-target-zlib: TAGS-target-zlib
70ffc148 50078
8ec98d6c
NN
50079TAGS-target-zlib: \
50080 configure-target-zlib
15b527ca 50081 @: $(MAKE); $(unstage)
8ec98d6c
NN
50082 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
50083 r=`${PWD_COMMAND}`; export r; \
5230d454 50084 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 50085 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
50086 echo "Doing TAGS in $(TARGET_SUBDIR)/zlib" ; \
50087 for flag in $(EXTRA_TARGET_FLAGS); do \
50088 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50089 done; \
50090 (cd $(TARGET_SUBDIR)/zlib && \
50091 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50092 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50093 "RANLIB=$${RANLIB}" \
bffcbe34 50094 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 50095 TAGS) \
8ec98d6c 50096 || exit 1
d6ebd419 50097
a7e609d6 50098@endif target-zlib
43bdb69a 50099
8ec98d6c
NN
50100.PHONY: maybe-install-info-target-zlib install-info-target-zlib
50101maybe-install-info-target-zlib:
a7e609d6
PB
50102@if target-zlib
50103maybe-install-info-target-zlib: install-info-target-zlib
43bdb69a 50104
8ec98d6c
NN
50105install-info-target-zlib: \
50106 configure-target-zlib \
50107 info-target-zlib
15b527ca 50108 @: $(MAKE); $(unstage)
8ec98d6c 50109 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
5230d454
L
50110 r=`${PWD_COMMAND}`; export r; \
50111 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 50112 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
50113 echo "Doing install-info in $(TARGET_SUBDIR)/zlib" ; \
50114 for flag in $(EXTRA_TARGET_FLAGS); do \
50115 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50116 done; \
50117 (cd $(TARGET_SUBDIR)/zlib && \
50118 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50119 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50120 "RANLIB=$${RANLIB}" \
bffcbe34 50121 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 50122 install-info) \
2245eb63 50123 || exit 1
d6ebd419 50124
a7e609d6 50125@endif target-zlib
70ffc148 50126
d4954b6d
DD
50127.PHONY: maybe-install-pdf-target-zlib install-pdf-target-zlib
50128maybe-install-pdf-target-zlib:
50129@if target-zlib
50130maybe-install-pdf-target-zlib: install-pdf-target-zlib
50131
50132install-pdf-target-zlib: \
50133 configure-target-zlib \
50134 pdf-target-zlib
50135 @: $(MAKE); $(unstage)
50136 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
50137 r=`${PWD_COMMAND}`; export r; \
50138 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
50139 $(NORMAL_TARGET_EXPORTS) \
50140 echo "Doing install-pdf in $(TARGET_SUBDIR)/zlib" ; \
50141 for flag in $(EXTRA_TARGET_FLAGS); do \
50142 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50143 done; \
50144 (cd $(TARGET_SUBDIR)/zlib && \
50145 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50146 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50147 "RANLIB=$${RANLIB}" \
bffcbe34 50148 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
50149 install-pdf) \
50150 || exit 1
50151
50152@endif target-zlib
50153
83c9add4
CD
50154.PHONY: maybe-install-html-target-zlib install-html-target-zlib
50155maybe-install-html-target-zlib:
50156@if target-zlib
50157maybe-install-html-target-zlib: install-html-target-zlib
50158
50159install-html-target-zlib: \
50160 configure-target-zlib \
50161 html-target-zlib
50162 @: $(MAKE); $(unstage)
50163 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
50164 r=`${PWD_COMMAND}`; export r; \
50165 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
50166 $(NORMAL_TARGET_EXPORTS) \
50167 echo "Doing install-html in $(TARGET_SUBDIR)/zlib" ; \
50168 for flag in $(EXTRA_TARGET_FLAGS); do \
50169 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50170 done; \
50171 (cd $(TARGET_SUBDIR)/zlib && \
50172 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50173 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50174 "RANLIB=$${RANLIB}" \
bffcbe34 50175 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
50176 install-html) \
50177 || exit 1
50178
50179@endif target-zlib
50180
8ec98d6c
NN
50181.PHONY: maybe-installcheck-target-zlib installcheck-target-zlib
50182maybe-installcheck-target-zlib:
a7e609d6
PB
50183@if target-zlib
50184maybe-installcheck-target-zlib: installcheck-target-zlib
8ecc6504 50185
8ec98d6c
NN
50186installcheck-target-zlib: \
50187 configure-target-zlib
15b527ca 50188 @: $(MAKE); $(unstage)
8ec98d6c
NN
50189 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
50190 r=`${PWD_COMMAND}`; export r; \
50191 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 50192 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
50193 echo "Doing installcheck in $(TARGET_SUBDIR)/zlib" ; \
50194 for flag in $(EXTRA_TARGET_FLAGS); do \
50195 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50196 done; \
50197 (cd $(TARGET_SUBDIR)/zlib && \
50198 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50199 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50200 "RANLIB=$${RANLIB}" \
bffcbe34 50201 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 50202 installcheck) \
8ec98d6c 50203 || exit 1
d6ebd419 50204
a7e609d6 50205@endif target-zlib
70ffc148 50206
8ec98d6c
NN
50207.PHONY: maybe-mostlyclean-target-zlib mostlyclean-target-zlib
50208maybe-mostlyclean-target-zlib:
a7e609d6
PB
50209@if target-zlib
50210maybe-mostlyclean-target-zlib: mostlyclean-target-zlib
c5e4bb70 50211
8ec98d6c 50212mostlyclean-target-zlib:
15b527ca 50213 @: $(MAKE); $(unstage)
8ec98d6c
NN
50214 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
50215 r=`${PWD_COMMAND}`; export r; \
50216 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 50217 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
50218 echo "Doing mostlyclean in $(TARGET_SUBDIR)/zlib" ; \
50219 for flag in $(EXTRA_TARGET_FLAGS); do \
50220 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50221 done; \
50222 (cd $(TARGET_SUBDIR)/zlib && \
50223 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50224 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50225 "RANLIB=$${RANLIB}" \
bffcbe34 50226 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 50227 mostlyclean) \
8ec98d6c 50228 || exit 1
d6ebd419 50229
a7e609d6 50230@endif target-zlib
43bdb69a 50231
8ec98d6c
NN
50232.PHONY: maybe-clean-target-zlib clean-target-zlib
50233maybe-clean-target-zlib:
a7e609d6
PB
50234@if target-zlib
50235maybe-clean-target-zlib: clean-target-zlib
43bdb69a 50236
8ec98d6c 50237clean-target-zlib:
15b527ca 50238 @: $(MAKE); $(unstage)
8ec98d6c 50239 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
5230d454
L
50240 r=`${PWD_COMMAND}`; export r; \
50241 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 50242 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
50243 echo "Doing clean in $(TARGET_SUBDIR)/zlib" ; \
50244 for flag in $(EXTRA_TARGET_FLAGS); do \
50245 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50246 done; \
50247 (cd $(TARGET_SUBDIR)/zlib && \
50248 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50249 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50250 "RANLIB=$${RANLIB}" \
bffcbe34 50251 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 50252 clean) \
2245eb63 50253 || exit 1
d6ebd419 50254
a7e609d6 50255@endif target-zlib
d6ebd419 50256
8ec98d6c
NN
50257.PHONY: maybe-distclean-target-zlib distclean-target-zlib
50258maybe-distclean-target-zlib:
a7e609d6
PB
50259@if target-zlib
50260maybe-distclean-target-zlib: distclean-target-zlib
70ffc148 50261
8ec98d6c 50262distclean-target-zlib:
15b527ca 50263 @: $(MAKE); $(unstage)
8ec98d6c
NN
50264 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
50265 r=`${PWD_COMMAND}`; export r; \
5230d454 50266 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 50267 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
50268 echo "Doing distclean in $(TARGET_SUBDIR)/zlib" ; \
50269 for flag in $(EXTRA_TARGET_FLAGS); do \
50270 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50271 done; \
50272 (cd $(TARGET_SUBDIR)/zlib && \
50273 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50274 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50275 "RANLIB=$${RANLIB}" \
bffcbe34 50276 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 50277 distclean) \
8ec98d6c 50278 || exit 1
d6ebd419 50279
a7e609d6 50280@endif target-zlib
d6ebd419 50281
8ec98d6c
NN
50282.PHONY: maybe-maintainer-clean-target-zlib maintainer-clean-target-zlib
50283maybe-maintainer-clean-target-zlib:
a7e609d6
PB
50284@if target-zlib
50285maybe-maintainer-clean-target-zlib: maintainer-clean-target-zlib
70ffc148 50286
8ec98d6c 50287maintainer-clean-target-zlib:
15b527ca 50288 @: $(MAKE); $(unstage)
8ec98d6c
NN
50289 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
50290 r=`${PWD_COMMAND}`; export r; \
5230d454 50291 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 50292 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
50293 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/zlib" ; \
50294 for flag in $(EXTRA_TARGET_FLAGS); do \
50295 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50296 done; \
50297 (cd $(TARGET_SUBDIR)/zlib && \
50298 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50299 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50300 "RANLIB=$${RANLIB}" \
bffcbe34 50301 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 50302 maintainer-clean) \
8ec98d6c 50303 || exit 1
d6ebd419 50304
a7e609d6 50305@endif target-zlib
c5e4bb70 50306
8ec98d6c 50307
43bdb69a 50308
f0fdfd34 50309
f3fd76d4 50310
f0fdfd34
PB
50311.PHONY: configure-target-boehm-gc maybe-configure-target-boehm-gc
50312maybe-configure-target-boehm-gc:
e1e5148c
CD
50313@if gcc-bootstrap
50314configure-target-boehm-gc: stage_current
50315@endif gcc-bootstrap
f0fdfd34
PB
50316@if target-boehm-gc
50317maybe-configure-target-boehm-gc: configure-target-boehm-gc
ec92c4d6 50318configure-target-boehm-gc:
15b527ca
PB
50319 @: $(MAKE); $(unstage)
50320 @r=`${PWD_COMMAND}`; export r; \
50321 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
50322 echo "Checking multilib configuration for boehm-gc..."; \
50323 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/boehm-gc ; \
50324 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/boehm-gc/multilib.tmp 2> /dev/null ; \
50325 if test -r $(TARGET_SUBDIR)/boehm-gc/multilib.out; then \
50326 if cmp -s $(TARGET_SUBDIR)/boehm-gc/multilib.tmp $(TARGET_SUBDIR)/boehm-gc/multilib.out; then \
50327 rm -f $(TARGET_SUBDIR)/boehm-gc/multilib.tmp; \
50328 else \
50329 rm -f $(TARGET_SUBDIR)/boehm-gc/Makefile; \
50330 mv $(TARGET_SUBDIR)/boehm-gc/multilib.tmp $(TARGET_SUBDIR)/boehm-gc/multilib.out; \
50331 fi; \
50332 else \
50333 mv $(TARGET_SUBDIR)/boehm-gc/multilib.tmp $(TARGET_SUBDIR)/boehm-gc/multilib.out; \
ec92c4d6
PB
50334 fi; \
50335 test ! -f $(TARGET_SUBDIR)/boehm-gc/Makefile || exit 0; \
8ec98d6c 50336 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/boehm-gc ; \
a675b75a 50337 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
50338 echo Configuring in $(TARGET_SUBDIR)/boehm-gc; \
50339 cd "$(TARGET_SUBDIR)/boehm-gc" || exit 1; \
2245eb63 50340 case $(srcdir) in \
7fc2ca22
PB
50341 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
50342 *) topdir=`echo $(TARGET_SUBDIR)/boehm-gc/ | \
50343 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2245eb63 50344 esac; \
7fc2ca22
PB
50345 srcdiroption="--srcdir=$${topdir}/boehm-gc"; \
50346 libsrcdir="$$s/boehm-gc"; \
2245eb63
NN
50347 rm -f no-such-file || : ; \
50348 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
50349 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
50350 --target=${target_alias} $${srcdiroption} \
2245eb63 50351 || exit 1
a7e609d6 50352@endif target-boehm-gc
d6ebd419 50353
f0fdfd34
PB
50354
50355
a8a96878
PB
50356
50357
8ec98d6c
NN
50358.PHONY: all-target-boehm-gc maybe-all-target-boehm-gc
50359maybe-all-target-boehm-gc:
e1e5148c
CD
50360@if gcc-bootstrap
50361all-target-boehm-gc: stage_current
50362@endif gcc-bootstrap
a7e609d6 50363@if target-boehm-gc
6a19fd82 50364TARGET-target-boehm-gc=all
a7e609d6 50365maybe-all-target-boehm-gc: all-target-boehm-gc
8ec98d6c 50366all-target-boehm-gc: configure-target-boehm-gc
15b527ca 50367 @: $(MAKE); $(unstage)
5230d454
L
50368 @r=`${PWD_COMMAND}`; export r; \
50369 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 50370 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 50371 (cd $(TARGET_SUBDIR)/boehm-gc && \
6532abb6
PB
50372 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
50373 $(TARGET-target-boehm-gc))
a7e609d6 50374@endif target-boehm-gc
d6ebd419 50375
f0fdfd34
PB
50376
50377
a8a96878
PB
50378
50379
8ec98d6c
NN
50380.PHONY: check-target-boehm-gc maybe-check-target-boehm-gc
50381maybe-check-target-boehm-gc:
a7e609d6
PB
50382@if target-boehm-gc
50383maybe-check-target-boehm-gc: check-target-boehm-gc
70ffc148 50384
8ec98d6c 50385check-target-boehm-gc:
15b527ca 50386 @: $(MAKE); $(unstage)
5230d454
L
50387 @r=`${PWD_COMMAND}`; export r; \
50388 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 50389 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 50390 (cd $(TARGET_SUBDIR)/boehm-gc && \
63673a5b 50391 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
d6ebd419 50392
a7e609d6 50393@endif target-boehm-gc
c5e4bb70 50394
8ec98d6c
NN
50395.PHONY: install-target-boehm-gc maybe-install-target-boehm-gc
50396maybe-install-target-boehm-gc:
a7e609d6
PB
50397@if target-boehm-gc
50398maybe-install-target-boehm-gc: install-target-boehm-gc
70ffc148 50399
8ec98d6c 50400install-target-boehm-gc: installdirs
15b527ca 50401 @: $(MAKE); $(unstage)
5230d454
L
50402 @r=`${PWD_COMMAND}`; export r; \
50403 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 50404 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 50405 (cd $(TARGET_SUBDIR)/boehm-gc && \
63673a5b 50406 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
d6ebd419 50407
a7e609d6 50408@endif target-boehm-gc
d6ebd419 50409
39bbbb69 50410# Other targets (info, dvi, pdf, etc.)
8ec98d6c
NN
50411
50412.PHONY: maybe-info-target-boehm-gc info-target-boehm-gc
50413maybe-info-target-boehm-gc:
a7e609d6
PB
50414@if target-boehm-gc
50415maybe-info-target-boehm-gc: info-target-boehm-gc
8ec98d6c
NN
50416
50417info-target-boehm-gc: \
50418 configure-target-boehm-gc
15b527ca 50419 @: $(MAKE); $(unstage)
8ec98d6c
NN
50420 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
50421 r=`${PWD_COMMAND}`; export r; \
50422 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 50423 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
50424 echo "Doing info in $(TARGET_SUBDIR)/boehm-gc" ; \
50425 for flag in $(EXTRA_TARGET_FLAGS); do \
50426 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50427 done; \
50428 (cd $(TARGET_SUBDIR)/boehm-gc && \
50429 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50430 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50431 "RANLIB=$${RANLIB}" \
bffcbe34 50432 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 50433 info) \
8ec98d6c
NN
50434 || exit 1
50435
a7e609d6 50436@endif target-boehm-gc
8ec98d6c
NN
50437
50438.PHONY: maybe-dvi-target-boehm-gc dvi-target-boehm-gc
50439maybe-dvi-target-boehm-gc:
a7e609d6
PB
50440@if target-boehm-gc
50441maybe-dvi-target-boehm-gc: dvi-target-boehm-gc
8ec98d6c
NN
50442
50443dvi-target-boehm-gc: \
50444 configure-target-boehm-gc
15b527ca 50445 @: $(MAKE); $(unstage)
8ec98d6c
NN
50446 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
50447 r=`${PWD_COMMAND}`; export r; \
50448 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 50449 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
50450 echo "Doing dvi in $(TARGET_SUBDIR)/boehm-gc" ; \
50451 for flag in $(EXTRA_TARGET_FLAGS); do \
50452 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50453 done; \
50454 (cd $(TARGET_SUBDIR)/boehm-gc && \
50455 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50456 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50457 "RANLIB=$${RANLIB}" \
bffcbe34 50458 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 50459 dvi) \
8ec98d6c
NN
50460 || exit 1
50461
a7e609d6 50462@endif target-boehm-gc
8ec98d6c 50463
39bbbb69
DD
50464.PHONY: maybe-pdf-target-boehm-gc pdf-target-boehm-gc
50465maybe-pdf-target-boehm-gc:
50466@if target-boehm-gc
50467maybe-pdf-target-boehm-gc: pdf-target-boehm-gc
50468
50469pdf-target-boehm-gc: \
50470 configure-target-boehm-gc
50471 @: $(MAKE); $(unstage)
50472 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
50473 r=`${PWD_COMMAND}`; export r; \
50474 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
50475 $(NORMAL_TARGET_EXPORTS) \
50476 echo "Doing pdf in $(TARGET_SUBDIR)/boehm-gc" ; \
50477 for flag in $(EXTRA_TARGET_FLAGS); do \
50478 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50479 done; \
50480 (cd $(TARGET_SUBDIR)/boehm-gc && \
50481 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50482 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50483 "RANLIB=$${RANLIB}" \
bffcbe34 50484 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
50485 pdf) \
50486 || exit 1
50487
50488@endif target-boehm-gc
50489
b6fb961f
MS
50490.PHONY: maybe-html-target-boehm-gc html-target-boehm-gc
50491maybe-html-target-boehm-gc:
50492@if target-boehm-gc
50493maybe-html-target-boehm-gc: html-target-boehm-gc
50494
50495html-target-boehm-gc: \
50496 configure-target-boehm-gc
15b527ca 50497 @: $(MAKE); $(unstage)
b6fb961f
MS
50498 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
50499 r=`${PWD_COMMAND}`; export r; \
50500 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
50501 $(NORMAL_TARGET_EXPORTS) \
50502 echo "Doing html in $(TARGET_SUBDIR)/boehm-gc" ; \
50503 for flag in $(EXTRA_TARGET_FLAGS); do \
50504 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50505 done; \
50506 (cd $(TARGET_SUBDIR)/boehm-gc && \
50507 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50508 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50509 "RANLIB=$${RANLIB}" \
bffcbe34 50510 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
50511 html) \
50512 || exit 1
50513
50514@endif target-boehm-gc
50515
8ec98d6c
NN
50516.PHONY: maybe-TAGS-target-boehm-gc TAGS-target-boehm-gc
50517maybe-TAGS-target-boehm-gc:
a7e609d6
PB
50518@if target-boehm-gc
50519maybe-TAGS-target-boehm-gc: TAGS-target-boehm-gc
8ec98d6c
NN
50520
50521TAGS-target-boehm-gc: \
50522 configure-target-boehm-gc
15b527ca 50523 @: $(MAKE); $(unstage)
8ec98d6c
NN
50524 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
50525 r=`${PWD_COMMAND}`; export r; \
50526 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 50527 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
50528 echo "Doing TAGS in $(TARGET_SUBDIR)/boehm-gc" ; \
50529 for flag in $(EXTRA_TARGET_FLAGS); do \
50530 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50531 done; \
50532 (cd $(TARGET_SUBDIR)/boehm-gc && \
50533 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50534 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50535 "RANLIB=$${RANLIB}" \
bffcbe34 50536 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 50537 TAGS) \
8ec98d6c
NN
50538 || exit 1
50539
a7e609d6 50540@endif target-boehm-gc
8ec98d6c
NN
50541
50542.PHONY: maybe-install-info-target-boehm-gc install-info-target-boehm-gc
50543maybe-install-info-target-boehm-gc:
a7e609d6
PB
50544@if target-boehm-gc
50545maybe-install-info-target-boehm-gc: install-info-target-boehm-gc
8ec98d6c
NN
50546
50547install-info-target-boehm-gc: \
50548 configure-target-boehm-gc \
50549 info-target-boehm-gc
15b527ca 50550 @: $(MAKE); $(unstage)
8ec98d6c
NN
50551 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
50552 r=`${PWD_COMMAND}`; export r; \
50553 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 50554 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
50555 echo "Doing install-info in $(TARGET_SUBDIR)/boehm-gc" ; \
50556 for flag in $(EXTRA_TARGET_FLAGS); do \
50557 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50558 done; \
50559 (cd $(TARGET_SUBDIR)/boehm-gc && \
50560 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50561 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50562 "RANLIB=$${RANLIB}" \
bffcbe34 50563 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 50564 install-info) \
8ec98d6c
NN
50565 || exit 1
50566
a7e609d6 50567@endif target-boehm-gc
8ec98d6c 50568
d4954b6d
DD
50569.PHONY: maybe-install-pdf-target-boehm-gc install-pdf-target-boehm-gc
50570maybe-install-pdf-target-boehm-gc:
50571@if target-boehm-gc
50572maybe-install-pdf-target-boehm-gc: install-pdf-target-boehm-gc
50573
50574install-pdf-target-boehm-gc: \
50575 configure-target-boehm-gc \
50576 pdf-target-boehm-gc
50577 @: $(MAKE); $(unstage)
50578 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
50579 r=`${PWD_COMMAND}`; export r; \
50580 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
50581 $(NORMAL_TARGET_EXPORTS) \
50582 echo "Doing install-pdf in $(TARGET_SUBDIR)/boehm-gc" ; \
50583 for flag in $(EXTRA_TARGET_FLAGS); do \
50584 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50585 done; \
50586 (cd $(TARGET_SUBDIR)/boehm-gc && \
50587 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50588 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50589 "RANLIB=$${RANLIB}" \
bffcbe34 50590 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
50591 install-pdf) \
50592 || exit 1
50593
50594@endif target-boehm-gc
50595
83c9add4
CD
50596.PHONY: maybe-install-html-target-boehm-gc install-html-target-boehm-gc
50597maybe-install-html-target-boehm-gc:
50598@if target-boehm-gc
50599maybe-install-html-target-boehm-gc: install-html-target-boehm-gc
50600
50601install-html-target-boehm-gc: \
50602 configure-target-boehm-gc \
50603 html-target-boehm-gc
50604 @: $(MAKE); $(unstage)
50605 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
50606 r=`${PWD_COMMAND}`; export r; \
50607 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
50608 $(NORMAL_TARGET_EXPORTS) \
50609 echo "Doing install-html in $(TARGET_SUBDIR)/boehm-gc" ; \
50610 for flag in $(EXTRA_TARGET_FLAGS); do \
50611 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50612 done; \
50613 (cd $(TARGET_SUBDIR)/boehm-gc && \
50614 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50615 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50616 "RANLIB=$${RANLIB}" \
bffcbe34 50617 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
50618 install-html) \
50619 || exit 1
50620
50621@endif target-boehm-gc
50622
8ec98d6c
NN
50623.PHONY: maybe-installcheck-target-boehm-gc installcheck-target-boehm-gc
50624maybe-installcheck-target-boehm-gc:
a7e609d6
PB
50625@if target-boehm-gc
50626maybe-installcheck-target-boehm-gc: installcheck-target-boehm-gc
8ec98d6c
NN
50627
50628installcheck-target-boehm-gc: \
50629 configure-target-boehm-gc
15b527ca 50630 @: $(MAKE); $(unstage)
8ec98d6c
NN
50631 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
50632 r=`${PWD_COMMAND}`; export r; \
50633 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 50634 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
50635 echo "Doing installcheck in $(TARGET_SUBDIR)/boehm-gc" ; \
50636 for flag in $(EXTRA_TARGET_FLAGS); do \
50637 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50638 done; \
50639 (cd $(TARGET_SUBDIR)/boehm-gc && \
50640 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50641 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50642 "RANLIB=$${RANLIB}" \
bffcbe34 50643 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 50644 installcheck) \
8ec98d6c
NN
50645 || exit 1
50646
a7e609d6 50647@endif target-boehm-gc
8ec98d6c
NN
50648
50649.PHONY: maybe-mostlyclean-target-boehm-gc mostlyclean-target-boehm-gc
50650maybe-mostlyclean-target-boehm-gc:
a7e609d6
PB
50651@if target-boehm-gc
50652maybe-mostlyclean-target-boehm-gc: mostlyclean-target-boehm-gc
8ec98d6c
NN
50653
50654mostlyclean-target-boehm-gc:
15b527ca 50655 @: $(MAKE); $(unstage)
8ec98d6c
NN
50656 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
50657 r=`${PWD_COMMAND}`; export r; \
50658 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 50659 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
50660 echo "Doing mostlyclean in $(TARGET_SUBDIR)/boehm-gc" ; \
50661 for flag in $(EXTRA_TARGET_FLAGS); do \
50662 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50663 done; \
50664 (cd $(TARGET_SUBDIR)/boehm-gc && \
50665 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50666 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50667 "RANLIB=$${RANLIB}" \
bffcbe34 50668 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 50669 mostlyclean) \
8ec98d6c
NN
50670 || exit 1
50671
a7e609d6 50672@endif target-boehm-gc
8ec98d6c
NN
50673
50674.PHONY: maybe-clean-target-boehm-gc clean-target-boehm-gc
50675maybe-clean-target-boehm-gc:
a7e609d6
PB
50676@if target-boehm-gc
50677maybe-clean-target-boehm-gc: clean-target-boehm-gc
8ec98d6c
NN
50678
50679clean-target-boehm-gc:
15b527ca 50680 @: $(MAKE); $(unstage)
8ec98d6c
NN
50681 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
50682 r=`${PWD_COMMAND}`; export r; \
50683 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 50684 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
50685 echo "Doing clean in $(TARGET_SUBDIR)/boehm-gc" ; \
50686 for flag in $(EXTRA_TARGET_FLAGS); do \
50687 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50688 done; \
50689 (cd $(TARGET_SUBDIR)/boehm-gc && \
50690 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50691 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50692 "RANLIB=$${RANLIB}" \
bffcbe34 50693 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 50694 clean) \
8ec98d6c
NN
50695 || exit 1
50696
a7e609d6 50697@endif target-boehm-gc
8ec98d6c
NN
50698
50699.PHONY: maybe-distclean-target-boehm-gc distclean-target-boehm-gc
50700maybe-distclean-target-boehm-gc:
a7e609d6
PB
50701@if target-boehm-gc
50702maybe-distclean-target-boehm-gc: distclean-target-boehm-gc
8ec98d6c
NN
50703
50704distclean-target-boehm-gc:
15b527ca 50705 @: $(MAKE); $(unstage)
8ec98d6c
NN
50706 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
50707 r=`${PWD_COMMAND}`; export r; \
50708 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 50709 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
50710 echo "Doing distclean in $(TARGET_SUBDIR)/boehm-gc" ; \
50711 for flag in $(EXTRA_TARGET_FLAGS); do \
50712 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50713 done; \
50714 (cd $(TARGET_SUBDIR)/boehm-gc && \
50715 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50716 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50717 "RANLIB=$${RANLIB}" \
bffcbe34 50718 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 50719 distclean) \
8ec98d6c
NN
50720 || exit 1
50721
a7e609d6 50722@endif target-boehm-gc
8ec98d6c
NN
50723
50724.PHONY: maybe-maintainer-clean-target-boehm-gc maintainer-clean-target-boehm-gc
50725maybe-maintainer-clean-target-boehm-gc:
a7e609d6
PB
50726@if target-boehm-gc
50727maybe-maintainer-clean-target-boehm-gc: maintainer-clean-target-boehm-gc
8ec98d6c
NN
50728
50729maintainer-clean-target-boehm-gc:
15b527ca 50730 @: $(MAKE); $(unstage)
8ec98d6c
NN
50731 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
50732 r=`${PWD_COMMAND}`; export r; \
50733 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 50734 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
50735 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/boehm-gc" ; \
50736 for flag in $(EXTRA_TARGET_FLAGS); do \
50737 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50738 done; \
50739 (cd $(TARGET_SUBDIR)/boehm-gc && \
50740 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50741 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50742 "RANLIB=$${RANLIB}" \
bffcbe34 50743 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 50744 maintainer-clean) \
8ec98d6c
NN
50745 || exit 1
50746
a7e609d6 50747@endif target-boehm-gc
8ec98d6c
NN
50748
50749
43bdb69a 50750
43bdb69a 50751
f0fdfd34
PB
50752
50753.PHONY: configure-target-qthreads maybe-configure-target-qthreads
50754maybe-configure-target-qthreads:
e1e5148c
CD
50755@if gcc-bootstrap
50756configure-target-qthreads: stage_current
50757@endif gcc-bootstrap
f0fdfd34
PB
50758@if target-qthreads
50759maybe-configure-target-qthreads: configure-target-qthreads
ec92c4d6 50760configure-target-qthreads:
15b527ca
PB
50761 @: $(MAKE); $(unstage)
50762 @r=`${PWD_COMMAND}`; export r; \
50763 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
50764 echo "Checking multilib configuration for qthreads..."; \
50765 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/qthreads ; \
50766 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/qthreads/multilib.tmp 2> /dev/null ; \
50767 if test -r $(TARGET_SUBDIR)/qthreads/multilib.out; then \
50768 if cmp -s $(TARGET_SUBDIR)/qthreads/multilib.tmp $(TARGET_SUBDIR)/qthreads/multilib.out; then \
50769 rm -f $(TARGET_SUBDIR)/qthreads/multilib.tmp; \
50770 else \
50771 rm -f $(TARGET_SUBDIR)/qthreads/Makefile; \
50772 mv $(TARGET_SUBDIR)/qthreads/multilib.tmp $(TARGET_SUBDIR)/qthreads/multilib.out; \
50773 fi; \
50774 else \
50775 mv $(TARGET_SUBDIR)/qthreads/multilib.tmp $(TARGET_SUBDIR)/qthreads/multilib.out; \
ec92c4d6
PB
50776 fi; \
50777 test ! -f $(TARGET_SUBDIR)/qthreads/Makefile || exit 0; \
8ec98d6c 50778 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/qthreads ; \
a675b75a 50779 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
50780 echo Configuring in $(TARGET_SUBDIR)/qthreads; \
50781 cd "$(TARGET_SUBDIR)/qthreads" || exit 1; \
2245eb63 50782 case $(srcdir) in \
7fc2ca22
PB
50783 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
50784 *) topdir=`echo $(TARGET_SUBDIR)/qthreads/ | \
50785 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2245eb63 50786 esac; \
7fc2ca22
PB
50787 srcdiroption="--srcdir=$${topdir}/qthreads"; \
50788 libsrcdir="$$s/qthreads"; \
2245eb63
NN
50789 rm -f no-such-file || : ; \
50790 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
50791 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
50792 --target=${target_alias} $${srcdiroption} \
2245eb63 50793 || exit 1
a7e609d6 50794@endif target-qthreads
a3acbf46 50795
f0fdfd34
PB
50796
50797
a8a96878
PB
50798
50799
8ec98d6c
NN
50800.PHONY: all-target-qthreads maybe-all-target-qthreads
50801maybe-all-target-qthreads:
e1e5148c
CD
50802@if gcc-bootstrap
50803all-target-qthreads: stage_current
50804@endif gcc-bootstrap
a7e609d6 50805@if target-qthreads
6a19fd82 50806TARGET-target-qthreads=all
a7e609d6 50807maybe-all-target-qthreads: all-target-qthreads
8ec98d6c 50808all-target-qthreads: configure-target-qthreads
15b527ca 50809 @: $(MAKE); $(unstage)
5230d454
L
50810 @r=`${PWD_COMMAND}`; export r; \
50811 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 50812 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 50813 (cd $(TARGET_SUBDIR)/qthreads && \
6532abb6
PB
50814 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
50815 $(TARGET-target-qthreads))
a7e609d6 50816@endif target-qthreads
a3acbf46 50817
f0fdfd34
PB
50818
50819
a8a96878
PB
50820
50821
8ec98d6c
NN
50822.PHONY: check-target-qthreads maybe-check-target-qthreads
50823maybe-check-target-qthreads:
a7e609d6
PB
50824@if target-qthreads
50825maybe-check-target-qthreads: check-target-qthreads
70ffc148 50826
8ec98d6c 50827check-target-qthreads:
15b527ca 50828 @: $(MAKE); $(unstage)
5230d454
L
50829 @r=`${PWD_COMMAND}`; export r; \
50830 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 50831 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 50832 (cd $(TARGET_SUBDIR)/qthreads && \
63673a5b 50833 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
a3acbf46 50834
a7e609d6 50835@endif target-qthreads
c5e4bb70 50836
8ec98d6c
NN
50837.PHONY: install-target-qthreads maybe-install-target-qthreads
50838maybe-install-target-qthreads:
a7e609d6
PB
50839@if target-qthreads
50840maybe-install-target-qthreads: install-target-qthreads
8ec98d6c
NN
50841
50842install-target-qthreads: installdirs
15b527ca 50843 @: $(MAKE); $(unstage)
8ec98d6c
NN
50844 @r=`${PWD_COMMAND}`; export r; \
50845 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 50846 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 50847 (cd $(TARGET_SUBDIR)/qthreads && \
63673a5b 50848 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
8ec98d6c 50849
a7e609d6 50850@endif target-qthreads
8ec98d6c 50851
39bbbb69 50852# Other targets (info, dvi, pdf, etc.)
8ec98d6c
NN
50853
50854.PHONY: maybe-info-target-qthreads info-target-qthreads
50855maybe-info-target-qthreads:
a7e609d6
PB
50856@if target-qthreads
50857maybe-info-target-qthreads: info-target-qthreads
8ec98d6c
NN
50858
50859info-target-qthreads: \
50860 configure-target-qthreads
15b527ca 50861 @: $(MAKE); $(unstage)
8ec98d6c
NN
50862 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
50863 r=`${PWD_COMMAND}`; export r; \
50864 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 50865 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
50866 echo "Doing info in $(TARGET_SUBDIR)/qthreads" ; \
50867 for flag in $(EXTRA_TARGET_FLAGS); do \
50868 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50869 done; \
50870 (cd $(TARGET_SUBDIR)/qthreads && \
50871 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50872 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50873 "RANLIB=$${RANLIB}" \
bffcbe34 50874 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 50875 info) \
8ec98d6c
NN
50876 || exit 1
50877
a7e609d6 50878@endif target-qthreads
8ec98d6c
NN
50879
50880.PHONY: maybe-dvi-target-qthreads dvi-target-qthreads
50881maybe-dvi-target-qthreads:
a7e609d6
PB
50882@if target-qthreads
50883maybe-dvi-target-qthreads: dvi-target-qthreads
8ec98d6c
NN
50884
50885dvi-target-qthreads: \
50886 configure-target-qthreads
15b527ca 50887 @: $(MAKE); $(unstage)
8ec98d6c
NN
50888 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
50889 r=`${PWD_COMMAND}`; export r; \
50890 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 50891 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
50892 echo "Doing dvi in $(TARGET_SUBDIR)/qthreads" ; \
50893 for flag in $(EXTRA_TARGET_FLAGS); do \
50894 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50895 done; \
50896 (cd $(TARGET_SUBDIR)/qthreads && \
50897 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50898 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50899 "RANLIB=$${RANLIB}" \
bffcbe34 50900 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 50901 dvi) \
8ec98d6c
NN
50902 || exit 1
50903
a7e609d6 50904@endif target-qthreads
8ec98d6c 50905
39bbbb69
DD
50906.PHONY: maybe-pdf-target-qthreads pdf-target-qthreads
50907maybe-pdf-target-qthreads:
50908@if target-qthreads
50909maybe-pdf-target-qthreads: pdf-target-qthreads
50910
50911pdf-target-qthreads: \
50912 configure-target-qthreads
50913 @: $(MAKE); $(unstage)
50914 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
50915 r=`${PWD_COMMAND}`; export r; \
50916 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
50917 $(NORMAL_TARGET_EXPORTS) \
50918 echo "Doing pdf in $(TARGET_SUBDIR)/qthreads" ; \
50919 for flag in $(EXTRA_TARGET_FLAGS); do \
50920 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50921 done; \
50922 (cd $(TARGET_SUBDIR)/qthreads && \
50923 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50924 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50925 "RANLIB=$${RANLIB}" \
bffcbe34 50926 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
50927 pdf) \
50928 || exit 1
50929
50930@endif target-qthreads
50931
b6fb961f
MS
50932.PHONY: maybe-html-target-qthreads html-target-qthreads
50933maybe-html-target-qthreads:
50934@if target-qthreads
50935maybe-html-target-qthreads: html-target-qthreads
50936
50937html-target-qthreads: \
50938 configure-target-qthreads
15b527ca 50939 @: $(MAKE); $(unstage)
b6fb961f
MS
50940 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
50941 r=`${PWD_COMMAND}`; export r; \
50942 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
50943 $(NORMAL_TARGET_EXPORTS) \
50944 echo "Doing html in $(TARGET_SUBDIR)/qthreads" ; \
50945 for flag in $(EXTRA_TARGET_FLAGS); do \
50946 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50947 done; \
50948 (cd $(TARGET_SUBDIR)/qthreads && \
50949 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50950 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50951 "RANLIB=$${RANLIB}" \
bffcbe34 50952 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
50953 html) \
50954 || exit 1
50955
50956@endif target-qthreads
50957
8ec98d6c
NN
50958.PHONY: maybe-TAGS-target-qthreads TAGS-target-qthreads
50959maybe-TAGS-target-qthreads:
a7e609d6
PB
50960@if target-qthreads
50961maybe-TAGS-target-qthreads: TAGS-target-qthreads
8ec98d6c
NN
50962
50963TAGS-target-qthreads: \
50964 configure-target-qthreads
15b527ca 50965 @: $(MAKE); $(unstage)
8ec98d6c
NN
50966 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
50967 r=`${PWD_COMMAND}`; export r; \
50968 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 50969 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
50970 echo "Doing TAGS in $(TARGET_SUBDIR)/qthreads" ; \
50971 for flag in $(EXTRA_TARGET_FLAGS); do \
50972 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50973 done; \
50974 (cd $(TARGET_SUBDIR)/qthreads && \
50975 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50976 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50977 "RANLIB=$${RANLIB}" \
bffcbe34 50978 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 50979 TAGS) \
8ec98d6c
NN
50980 || exit 1
50981
a7e609d6 50982@endif target-qthreads
8ec98d6c
NN
50983
50984.PHONY: maybe-install-info-target-qthreads install-info-target-qthreads
50985maybe-install-info-target-qthreads:
a7e609d6
PB
50986@if target-qthreads
50987maybe-install-info-target-qthreads: install-info-target-qthreads
8ec98d6c
NN
50988
50989install-info-target-qthreads: \
50990 configure-target-qthreads \
50991 info-target-qthreads
15b527ca 50992 @: $(MAKE); $(unstage)
8ec98d6c
NN
50993 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
50994 r=`${PWD_COMMAND}`; export r; \
50995 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 50996 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
50997 echo "Doing install-info in $(TARGET_SUBDIR)/qthreads" ; \
50998 for flag in $(EXTRA_TARGET_FLAGS); do \
50999 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51000 done; \
51001 (cd $(TARGET_SUBDIR)/qthreads && \
51002 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51003 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51004 "RANLIB=$${RANLIB}" \
bffcbe34 51005 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 51006 install-info) \
8ec98d6c
NN
51007 || exit 1
51008
a7e609d6 51009@endif target-qthreads
8ec98d6c 51010
d4954b6d
DD
51011.PHONY: maybe-install-pdf-target-qthreads install-pdf-target-qthreads
51012maybe-install-pdf-target-qthreads:
51013@if target-qthreads
51014maybe-install-pdf-target-qthreads: install-pdf-target-qthreads
51015
51016install-pdf-target-qthreads: \
51017 configure-target-qthreads \
51018 pdf-target-qthreads
51019 @: $(MAKE); $(unstage)
51020 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
51021 r=`${PWD_COMMAND}`; export r; \
51022 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
51023 $(NORMAL_TARGET_EXPORTS) \
51024 echo "Doing install-pdf in $(TARGET_SUBDIR)/qthreads" ; \
51025 for flag in $(EXTRA_TARGET_FLAGS); do \
51026 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51027 done; \
51028 (cd $(TARGET_SUBDIR)/qthreads && \
51029 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51030 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51031 "RANLIB=$${RANLIB}" \
bffcbe34 51032 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
51033 install-pdf) \
51034 || exit 1
51035
51036@endif target-qthreads
51037
83c9add4
CD
51038.PHONY: maybe-install-html-target-qthreads install-html-target-qthreads
51039maybe-install-html-target-qthreads:
51040@if target-qthreads
51041maybe-install-html-target-qthreads: install-html-target-qthreads
51042
51043install-html-target-qthreads: \
51044 configure-target-qthreads \
51045 html-target-qthreads
51046 @: $(MAKE); $(unstage)
51047 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
51048 r=`${PWD_COMMAND}`; export r; \
51049 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
51050 $(NORMAL_TARGET_EXPORTS) \
51051 echo "Doing install-html in $(TARGET_SUBDIR)/qthreads" ; \
51052 for flag in $(EXTRA_TARGET_FLAGS); do \
51053 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51054 done; \
51055 (cd $(TARGET_SUBDIR)/qthreads && \
51056 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51057 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51058 "RANLIB=$${RANLIB}" \
bffcbe34 51059 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
51060 install-html) \
51061 || exit 1
51062
51063@endif target-qthreads
51064
8ec98d6c
NN
51065.PHONY: maybe-installcheck-target-qthreads installcheck-target-qthreads
51066maybe-installcheck-target-qthreads:
a7e609d6
PB
51067@if target-qthreads
51068maybe-installcheck-target-qthreads: installcheck-target-qthreads
8ec98d6c
NN
51069
51070installcheck-target-qthreads: \
51071 configure-target-qthreads
15b527ca 51072 @: $(MAKE); $(unstage)
8ec98d6c
NN
51073 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
51074 r=`${PWD_COMMAND}`; export r; \
51075 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 51076 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
51077 echo "Doing installcheck in $(TARGET_SUBDIR)/qthreads" ; \
51078 for flag in $(EXTRA_TARGET_FLAGS); do \
51079 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51080 done; \
51081 (cd $(TARGET_SUBDIR)/qthreads && \
51082 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51083 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51084 "RANLIB=$${RANLIB}" \
bffcbe34 51085 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 51086 installcheck) \
8ec98d6c
NN
51087 || exit 1
51088
a7e609d6 51089@endif target-qthreads
8ec98d6c
NN
51090
51091.PHONY: maybe-mostlyclean-target-qthreads mostlyclean-target-qthreads
51092maybe-mostlyclean-target-qthreads:
a7e609d6
PB
51093@if target-qthreads
51094maybe-mostlyclean-target-qthreads: mostlyclean-target-qthreads
8ec98d6c
NN
51095
51096mostlyclean-target-qthreads:
15b527ca 51097 @: $(MAKE); $(unstage)
8ec98d6c
NN
51098 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
51099 r=`${PWD_COMMAND}`; export r; \
51100 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 51101 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
51102 echo "Doing mostlyclean in $(TARGET_SUBDIR)/qthreads" ; \
51103 for flag in $(EXTRA_TARGET_FLAGS); do \
51104 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51105 done; \
51106 (cd $(TARGET_SUBDIR)/qthreads && \
51107 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51108 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51109 "RANLIB=$${RANLIB}" \
bffcbe34 51110 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 51111 mostlyclean) \
8ec98d6c
NN
51112 || exit 1
51113
a7e609d6 51114@endif target-qthreads
8ec98d6c
NN
51115
51116.PHONY: maybe-clean-target-qthreads clean-target-qthreads
51117maybe-clean-target-qthreads:
a7e609d6
PB
51118@if target-qthreads
51119maybe-clean-target-qthreads: clean-target-qthreads
8ec98d6c
NN
51120
51121clean-target-qthreads:
15b527ca 51122 @: $(MAKE); $(unstage)
8ec98d6c
NN
51123 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
51124 r=`${PWD_COMMAND}`; export r; \
51125 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 51126 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
51127 echo "Doing clean in $(TARGET_SUBDIR)/qthreads" ; \
51128 for flag in $(EXTRA_TARGET_FLAGS); do \
51129 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51130 done; \
51131 (cd $(TARGET_SUBDIR)/qthreads && \
51132 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51133 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51134 "RANLIB=$${RANLIB}" \
bffcbe34 51135 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 51136 clean) \
8ec98d6c
NN
51137 || exit 1
51138
a7e609d6 51139@endif target-qthreads
8ec98d6c
NN
51140
51141.PHONY: maybe-distclean-target-qthreads distclean-target-qthreads
51142maybe-distclean-target-qthreads:
a7e609d6
PB
51143@if target-qthreads
51144maybe-distclean-target-qthreads: distclean-target-qthreads
8ec98d6c
NN
51145
51146distclean-target-qthreads:
15b527ca 51147 @: $(MAKE); $(unstage)
8ec98d6c
NN
51148 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
51149 r=`${PWD_COMMAND}`; export r; \
51150 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 51151 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
51152 echo "Doing distclean in $(TARGET_SUBDIR)/qthreads" ; \
51153 for flag in $(EXTRA_TARGET_FLAGS); do \
51154 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51155 done; \
51156 (cd $(TARGET_SUBDIR)/qthreads && \
51157 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51158 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51159 "RANLIB=$${RANLIB}" \
bffcbe34 51160 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 51161 distclean) \
8ec98d6c
NN
51162 || exit 1
51163
a7e609d6 51164@endif target-qthreads
8ec98d6c
NN
51165
51166.PHONY: maybe-maintainer-clean-target-qthreads maintainer-clean-target-qthreads
51167maybe-maintainer-clean-target-qthreads:
a7e609d6
PB
51168@if target-qthreads
51169maybe-maintainer-clean-target-qthreads: maintainer-clean-target-qthreads
8ec98d6c
NN
51170
51171maintainer-clean-target-qthreads:
15b527ca 51172 @: $(MAKE); $(unstage)
8ec98d6c
NN
51173 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
51174 r=`${PWD_COMMAND}`; export r; \
51175 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 51176 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
51177 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/qthreads" ; \
51178 for flag in $(EXTRA_TARGET_FLAGS); do \
51179 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51180 done; \
51181 (cd $(TARGET_SUBDIR)/qthreads && \
51182 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51183 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51184 "RANLIB=$${RANLIB}" \
bffcbe34 51185 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 51186 maintainer-clean) \
8ec98d6c 51187 || exit 1
70ffc148 51188
a7e609d6 51189@endif target-qthreads
f66d1936 51190
d6ebd419 51191
43bdb69a 51192
f3fd76d4 51193
f0fdfd34
PB
51194
51195.PHONY: configure-target-rda maybe-configure-target-rda
51196maybe-configure-target-rda:
e1e5148c
CD
51197@if gcc-bootstrap
51198configure-target-rda: stage_current
51199@endif gcc-bootstrap
f0fdfd34
PB
51200@if target-rda
51201maybe-configure-target-rda: configure-target-rda
ec92c4d6 51202configure-target-rda:
15b527ca
PB
51203 @: $(MAKE); $(unstage)
51204 @r=`${PWD_COMMAND}`; export r; \
51205 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
51206 echo "Checking multilib configuration for rda..."; \
51207 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/rda ; \
51208 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/rda/multilib.tmp 2> /dev/null ; \
51209 if test -r $(TARGET_SUBDIR)/rda/multilib.out; then \
51210 if cmp -s $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; then \
51211 rm -f $(TARGET_SUBDIR)/rda/multilib.tmp; \
51212 else \
51213 rm -f $(TARGET_SUBDIR)/rda/Makefile; \
51214 mv $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; \
51215 fi; \
51216 else \
51217 mv $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; \
ec92c4d6
PB
51218 fi; \
51219 test ! -f $(TARGET_SUBDIR)/rda/Makefile || exit 0; \
8ec98d6c 51220 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/rda ; \
a675b75a 51221 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
51222 echo Configuring in $(TARGET_SUBDIR)/rda; \
51223 cd "$(TARGET_SUBDIR)/rda" || exit 1; \
2245eb63 51224 case $(srcdir) in \
7fc2ca22
PB
51225 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
51226 *) topdir=`echo $(TARGET_SUBDIR)/rda/ | \
51227 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2245eb63 51228 esac; \
7fc2ca22
PB
51229 srcdiroption="--srcdir=$${topdir}/rda"; \
51230 libsrcdir="$$s/rda"; \
2245eb63
NN
51231 rm -f no-such-file || : ; \
51232 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
51233 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
51234 --target=${target_alias} $${srcdiroption} \
2245eb63 51235 || exit 1
a7e609d6 51236@endif target-rda
f66d1936 51237
f0fdfd34
PB
51238
51239
a8a96878
PB
51240
51241
8ec98d6c
NN
51242.PHONY: all-target-rda maybe-all-target-rda
51243maybe-all-target-rda:
e1e5148c
CD
51244@if gcc-bootstrap
51245all-target-rda: stage_current
51246@endif gcc-bootstrap
a7e609d6 51247@if target-rda
6a19fd82 51248TARGET-target-rda=all
a7e609d6 51249maybe-all-target-rda: all-target-rda
8ec98d6c 51250all-target-rda: configure-target-rda
15b527ca 51251 @: $(MAKE); $(unstage)
5230d454
L
51252 @r=`${PWD_COMMAND}`; export r; \
51253 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 51254 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 51255 (cd $(TARGET_SUBDIR)/rda && \
6532abb6
PB
51256 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
51257 $(TARGET-target-rda))
a7e609d6 51258@endif target-rda
a3acbf46 51259
f0fdfd34
PB
51260
51261
a8a96878
PB
51262
51263
8ec98d6c
NN
51264.PHONY: check-target-rda maybe-check-target-rda
51265maybe-check-target-rda:
a7e609d6
PB
51266@if target-rda
51267maybe-check-target-rda: check-target-rda
70ffc148 51268
8ec98d6c 51269check-target-rda:
15b527ca 51270 @: $(MAKE); $(unstage)
5230d454
L
51271 @r=`${PWD_COMMAND}`; export r; \
51272 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 51273 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 51274 (cd $(TARGET_SUBDIR)/rda && \
63673a5b 51275 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
a3acbf46 51276
a7e609d6 51277@endif target-rda
c5e4bb70 51278
8ec98d6c
NN
51279.PHONY: install-target-rda maybe-install-target-rda
51280maybe-install-target-rda:
a7e609d6
PB
51281@if target-rda
51282maybe-install-target-rda: install-target-rda
70ffc148 51283
8ec98d6c 51284install-target-rda: installdirs
15b527ca 51285 @: $(MAKE); $(unstage)
5230d454
L
51286 @r=`${PWD_COMMAND}`; export r; \
51287 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 51288 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 51289 (cd $(TARGET_SUBDIR)/rda && \
63673a5b 51290 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
d6ebd419 51291
a7e609d6 51292@endif target-rda
d6ebd419 51293
39bbbb69 51294# Other targets (info, dvi, pdf, etc.)
43bdb69a 51295
8ec98d6c
NN
51296.PHONY: maybe-info-target-rda info-target-rda
51297maybe-info-target-rda:
a7e609d6
PB
51298@if target-rda
51299maybe-info-target-rda: info-target-rda
43bdb69a 51300
8ec98d6c
NN
51301info-target-rda: \
51302 configure-target-rda
15b527ca 51303 @: $(MAKE); $(unstage)
8ec98d6c 51304 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
5230d454
L
51305 r=`${PWD_COMMAND}`; export r; \
51306 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 51307 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
51308 echo "Doing info in $(TARGET_SUBDIR)/rda" ; \
51309 for flag in $(EXTRA_TARGET_FLAGS); do \
51310 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51311 done; \
51312 (cd $(TARGET_SUBDIR)/rda && \
51313 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51314 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51315 "RANLIB=$${RANLIB}" \
bffcbe34 51316 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 51317 info) \
2245eb63 51318 || exit 1
a3acbf46 51319
a7e609d6 51320@endif target-rda
8ec98d6c
NN
51321
51322.PHONY: maybe-dvi-target-rda dvi-target-rda
51323maybe-dvi-target-rda:
a7e609d6
PB
51324@if target-rda
51325maybe-dvi-target-rda: dvi-target-rda
8ec98d6c
NN
51326
51327dvi-target-rda: \
51328 configure-target-rda
15b527ca 51329 @: $(MAKE); $(unstage)
8ec98d6c
NN
51330 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
51331 r=`${PWD_COMMAND}`; export r; \
5230d454 51332 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 51333 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
51334 echo "Doing dvi in $(TARGET_SUBDIR)/rda" ; \
51335 for flag in $(EXTRA_TARGET_FLAGS); do \
51336 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51337 done; \
51338 (cd $(TARGET_SUBDIR)/rda && \
51339 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51340 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51341 "RANLIB=$${RANLIB}" \
bffcbe34 51342 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 51343 dvi) \
8ec98d6c 51344 || exit 1
a3acbf46 51345
a7e609d6 51346@endif target-rda
70ffc148 51347
39bbbb69
DD
51348.PHONY: maybe-pdf-target-rda pdf-target-rda
51349maybe-pdf-target-rda:
51350@if target-rda
51351maybe-pdf-target-rda: pdf-target-rda
51352
51353pdf-target-rda: \
51354 configure-target-rda
51355 @: $(MAKE); $(unstage)
51356 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
51357 r=`${PWD_COMMAND}`; export r; \
51358 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
51359 $(NORMAL_TARGET_EXPORTS) \
51360 echo "Doing pdf in $(TARGET_SUBDIR)/rda" ; \
51361 for flag in $(EXTRA_TARGET_FLAGS); do \
51362 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51363 done; \
51364 (cd $(TARGET_SUBDIR)/rda && \
51365 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51366 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51367 "RANLIB=$${RANLIB}" \
bffcbe34 51368 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
51369 pdf) \
51370 || exit 1
51371
51372@endif target-rda
51373
b6fb961f
MS
51374.PHONY: maybe-html-target-rda html-target-rda
51375maybe-html-target-rda:
51376@if target-rda
51377maybe-html-target-rda: html-target-rda
51378
51379html-target-rda: \
51380 configure-target-rda
15b527ca 51381 @: $(MAKE); $(unstage)
b6fb961f
MS
51382 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
51383 r=`${PWD_COMMAND}`; export r; \
51384 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
51385 $(NORMAL_TARGET_EXPORTS) \
51386 echo "Doing html in $(TARGET_SUBDIR)/rda" ; \
51387 for flag in $(EXTRA_TARGET_FLAGS); do \
51388 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51389 done; \
51390 (cd $(TARGET_SUBDIR)/rda && \
51391 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51392 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51393 "RANLIB=$${RANLIB}" \
bffcbe34 51394 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
51395 html) \
51396 || exit 1
51397
51398@endif target-rda
51399
8ec98d6c
NN
51400.PHONY: maybe-TAGS-target-rda TAGS-target-rda
51401maybe-TAGS-target-rda:
a7e609d6
PB
51402@if target-rda
51403maybe-TAGS-target-rda: TAGS-target-rda
8ec98d6c
NN
51404
51405TAGS-target-rda: \
51406 configure-target-rda
15b527ca 51407 @: $(MAKE); $(unstage)
8ec98d6c
NN
51408 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
51409 r=`${PWD_COMMAND}`; export r; \
5230d454 51410 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 51411 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
51412 echo "Doing TAGS in $(TARGET_SUBDIR)/rda" ; \
51413 for flag in $(EXTRA_TARGET_FLAGS); do \
51414 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51415 done; \
51416 (cd $(TARGET_SUBDIR)/rda && \
51417 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51418 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51419 "RANLIB=$${RANLIB}" \
bffcbe34 51420 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 51421 TAGS) \
8ec98d6c 51422 || exit 1
d6ebd419 51423
a7e609d6 51424@endif target-rda
c5e4bb70 51425
8ec98d6c
NN
51426.PHONY: maybe-install-info-target-rda install-info-target-rda
51427maybe-install-info-target-rda:
a7e609d6
PB
51428@if target-rda
51429maybe-install-info-target-rda: install-info-target-rda
70ffc148 51430
8ec98d6c
NN
51431install-info-target-rda: \
51432 configure-target-rda \
51433 info-target-rda
15b527ca 51434 @: $(MAKE); $(unstage)
8ec98d6c
NN
51435 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
51436 r=`${PWD_COMMAND}`; export r; \
5230d454 51437 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 51438 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
51439 echo "Doing install-info in $(TARGET_SUBDIR)/rda" ; \
51440 for flag in $(EXTRA_TARGET_FLAGS); do \
51441 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51442 done; \
51443 (cd $(TARGET_SUBDIR)/rda && \
51444 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51445 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51446 "RANLIB=$${RANLIB}" \
bffcbe34 51447 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 51448 install-info) \
8ec98d6c 51449 || exit 1
a3acbf46 51450
a7e609d6 51451@endif target-rda
d6ebd419 51452
d4954b6d
DD
51453.PHONY: maybe-install-pdf-target-rda install-pdf-target-rda
51454maybe-install-pdf-target-rda:
51455@if target-rda
51456maybe-install-pdf-target-rda: install-pdf-target-rda
51457
51458install-pdf-target-rda: \
51459 configure-target-rda \
51460 pdf-target-rda
51461 @: $(MAKE); $(unstage)
51462 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
51463 r=`${PWD_COMMAND}`; export r; \
51464 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
51465 $(NORMAL_TARGET_EXPORTS) \
51466 echo "Doing install-pdf in $(TARGET_SUBDIR)/rda" ; \
51467 for flag in $(EXTRA_TARGET_FLAGS); do \
51468 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51469 done; \
51470 (cd $(TARGET_SUBDIR)/rda && \
51471 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51472 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51473 "RANLIB=$${RANLIB}" \
bffcbe34 51474 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
51475 install-pdf) \
51476 || exit 1
51477
51478@endif target-rda
51479
83c9add4
CD
51480.PHONY: maybe-install-html-target-rda install-html-target-rda
51481maybe-install-html-target-rda:
51482@if target-rda
51483maybe-install-html-target-rda: install-html-target-rda
51484
51485install-html-target-rda: \
51486 configure-target-rda \
51487 html-target-rda
51488 @: $(MAKE); $(unstage)
51489 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
51490 r=`${PWD_COMMAND}`; export r; \
51491 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
51492 $(NORMAL_TARGET_EXPORTS) \
51493 echo "Doing install-html in $(TARGET_SUBDIR)/rda" ; \
51494 for flag in $(EXTRA_TARGET_FLAGS); do \
51495 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51496 done; \
51497 (cd $(TARGET_SUBDIR)/rda && \
51498 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51499 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51500 "RANLIB=$${RANLIB}" \
bffcbe34 51501 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
51502 install-html) \
51503 || exit 1
51504
51505@endif target-rda
51506
8ec98d6c
NN
51507.PHONY: maybe-installcheck-target-rda installcheck-target-rda
51508maybe-installcheck-target-rda:
a7e609d6
PB
51509@if target-rda
51510maybe-installcheck-target-rda: installcheck-target-rda
43bdb69a 51511
8ec98d6c
NN
51512installcheck-target-rda: \
51513 configure-target-rda
15b527ca 51514 @: $(MAKE); $(unstage)
8ec98d6c
NN
51515 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
51516 r=`${PWD_COMMAND}`; export r; \
51517 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 51518 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
51519 echo "Doing installcheck in $(TARGET_SUBDIR)/rda" ; \
51520 for flag in $(EXTRA_TARGET_FLAGS); do \
51521 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51522 done; \
51523 (cd $(TARGET_SUBDIR)/rda && \
51524 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51525 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51526 "RANLIB=$${RANLIB}" \
bffcbe34 51527 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 51528 installcheck) \
8ec98d6c 51529 || exit 1
43bdb69a 51530
a7e609d6 51531@endif target-rda
8ec98d6c
NN
51532
51533.PHONY: maybe-mostlyclean-target-rda mostlyclean-target-rda
51534maybe-mostlyclean-target-rda:
a7e609d6
PB
51535@if target-rda
51536maybe-mostlyclean-target-rda: mostlyclean-target-rda
8ec98d6c
NN
51537
51538mostlyclean-target-rda:
15b527ca 51539 @: $(MAKE); $(unstage)
8ec98d6c 51540 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
5230d454
L
51541 r=`${PWD_COMMAND}`; export r; \
51542 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 51543 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
51544 echo "Doing mostlyclean in $(TARGET_SUBDIR)/rda" ; \
51545 for flag in $(EXTRA_TARGET_FLAGS); do \
51546 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51547 done; \
51548 (cd $(TARGET_SUBDIR)/rda && \
51549 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51550 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51551 "RANLIB=$${RANLIB}" \
bffcbe34 51552 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 51553 mostlyclean) \
2245eb63 51554 || exit 1
a3acbf46 51555
a7e609d6 51556@endif target-rda
8ec98d6c
NN
51557
51558.PHONY: maybe-clean-target-rda clean-target-rda
51559maybe-clean-target-rda:
a7e609d6
PB
51560@if target-rda
51561maybe-clean-target-rda: clean-target-rda
8ec98d6c
NN
51562
51563clean-target-rda:
15b527ca 51564 @: $(MAKE); $(unstage)
8ec98d6c
NN
51565 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
51566 r=`${PWD_COMMAND}`; export r; \
5230d454 51567 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 51568 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
51569 echo "Doing clean in $(TARGET_SUBDIR)/rda" ; \
51570 for flag in $(EXTRA_TARGET_FLAGS); do \
51571 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51572 done; \
2245eb63 51573 (cd $(TARGET_SUBDIR)/rda && \
8ec98d6c
NN
51574 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51575 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51576 "RANLIB=$${RANLIB}" \
bffcbe34 51577 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 51578 clean) \
8ec98d6c 51579 || exit 1
a3acbf46 51580
a7e609d6 51581@endif target-rda
70ffc148 51582
8ec98d6c
NN
51583.PHONY: maybe-distclean-target-rda distclean-target-rda
51584maybe-distclean-target-rda:
a7e609d6
PB
51585@if target-rda
51586maybe-distclean-target-rda: distclean-target-rda
8ec98d6c
NN
51587
51588distclean-target-rda:
15b527ca 51589 @: $(MAKE); $(unstage)
8ec98d6c
NN
51590 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
51591 r=`${PWD_COMMAND}`; export r; \
5230d454 51592 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 51593 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
51594 echo "Doing distclean in $(TARGET_SUBDIR)/rda" ; \
51595 for flag in $(EXTRA_TARGET_FLAGS); do \
51596 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51597 done; \
2245eb63 51598 (cd $(TARGET_SUBDIR)/rda && \
8ec98d6c
NN
51599 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51600 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51601 "RANLIB=$${RANLIB}" \
bffcbe34 51602 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 51603 distclean) \
8ec98d6c 51604 || exit 1
a3acbf46 51605
a7e609d6 51606@endif target-rda
c5e4bb70 51607
8ec98d6c
NN
51608.PHONY: maybe-maintainer-clean-target-rda maintainer-clean-target-rda
51609maybe-maintainer-clean-target-rda:
a7e609d6
PB
51610@if target-rda
51611maybe-maintainer-clean-target-rda: maintainer-clean-target-rda
70ffc148 51612
8ec98d6c 51613maintainer-clean-target-rda:
15b527ca 51614 @: $(MAKE); $(unstage)
8ec98d6c
NN
51615 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
51616 r=`${PWD_COMMAND}`; export r; \
5230d454 51617 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 51618 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
51619 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/rda" ; \
51620 for flag in $(EXTRA_TARGET_FLAGS); do \
51621 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51622 done; \
2245eb63 51623 (cd $(TARGET_SUBDIR)/rda && \
8ec98d6c
NN
51624 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51625 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51626 "RANLIB=$${RANLIB}" \
bffcbe34 51627 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 51628 maintainer-clean) \
8ec98d6c
NN
51629 || exit 1
51630
a7e609d6 51631@endif target-rda
a3acbf46 51632
d6ebd419 51633
d832a288 51634
f0fdfd34
PB
51635
51636
51637.PHONY: configure-target-libada maybe-configure-target-libada
51638maybe-configure-target-libada:
e1e5148c
CD
51639@if gcc-bootstrap
51640configure-target-libada: stage_current
51641@endif gcc-bootstrap
f0fdfd34
PB
51642@if target-libada
51643maybe-configure-target-libada: configure-target-libada
ec92c4d6 51644configure-target-libada:
15b527ca
PB
51645 @: $(MAKE); $(unstage)
51646 @r=`${PWD_COMMAND}`; export r; \
51647 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
51648 echo "Checking multilib configuration for libada..."; \
51649 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libada ; \
51650 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libada/multilib.tmp 2> /dev/null ; \
51651 if test -r $(TARGET_SUBDIR)/libada/multilib.out; then \
51652 if cmp -s $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; then \
51653 rm -f $(TARGET_SUBDIR)/libada/multilib.tmp; \
51654 else \
51655 rm -f $(TARGET_SUBDIR)/libada/Makefile; \
51656 mv $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; \
51657 fi; \
51658 else \
51659 mv $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; \
ec92c4d6
PB
51660 fi; \
51661 test ! -f $(TARGET_SUBDIR)/libada/Makefile || exit 0; \
d832a288 51662 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libada ; \
a675b75a 51663 $(NORMAL_TARGET_EXPORTS) \
d832a288
DD
51664 echo Configuring in $(TARGET_SUBDIR)/libada; \
51665 cd "$(TARGET_SUBDIR)/libada" || exit 1; \
51666 case $(srcdir) in \
7fc2ca22
PB
51667 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
51668 *) topdir=`echo $(TARGET_SUBDIR)/libada/ | \
51669 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
d832a288 51670 esac; \
7fc2ca22
PB
51671 srcdiroption="--srcdir=$${topdir}/libada"; \
51672 libsrcdir="$$s/libada"; \
d832a288
DD
51673 rm -f no-such-file || : ; \
51674 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
51675 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
51676 --target=${target_alias} $${srcdiroption} \
d832a288 51677 || exit 1
a7e609d6 51678@endif target-libada
d832a288 51679
f0fdfd34
PB
51680
51681
a8a96878
PB
51682
51683
8ec98d6c
NN
51684.PHONY: all-target-libada maybe-all-target-libada
51685maybe-all-target-libada:
e1e5148c
CD
51686@if gcc-bootstrap
51687all-target-libada: stage_current
51688@endif gcc-bootstrap
a7e609d6 51689@if target-libada
6a19fd82 51690TARGET-target-libada=all
a7e609d6 51691maybe-all-target-libada: all-target-libada
8ec98d6c 51692all-target-libada: configure-target-libada
15b527ca 51693 @: $(MAKE); $(unstage)
8ec98d6c
NN
51694 @r=`${PWD_COMMAND}`; export r; \
51695 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 51696 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 51697 (cd $(TARGET_SUBDIR)/libada && \
6532abb6
PB
51698 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
51699 $(TARGET-target-libada))
a7e609d6 51700@endif target-libada
8ec98d6c 51701
f0fdfd34
PB
51702
51703
a8a96878
PB
51704
51705
8ec98d6c
NN
51706.PHONY: check-target-libada maybe-check-target-libada
51707maybe-check-target-libada:
a7e609d6
PB
51708@if target-libada
51709maybe-check-target-libada: check-target-libada
8ec98d6c
NN
51710
51711check-target-libada:
15b527ca 51712 @: $(MAKE); $(unstage)
8ec98d6c
NN
51713 @r=`${PWD_COMMAND}`; export r; \
51714 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 51715 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 51716 (cd $(TARGET_SUBDIR)/libada && \
63673a5b 51717 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
8ec98d6c 51718
a7e609d6 51719@endif target-libada
8ec98d6c
NN
51720
51721.PHONY: install-target-libada maybe-install-target-libada
51722maybe-install-target-libada:
a7e609d6
PB
51723@if target-libada
51724maybe-install-target-libada: install-target-libada
8ec98d6c
NN
51725
51726install-target-libada: installdirs
15b527ca 51727 @: $(MAKE); $(unstage)
8ec98d6c
NN
51728 @r=`${PWD_COMMAND}`; export r; \
51729 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 51730 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 51731 (cd $(TARGET_SUBDIR)/libada && \
63673a5b 51732 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
8ec98d6c 51733
a7e609d6 51734@endif target-libada
8ec98d6c 51735
39bbbb69 51736# Other targets (info, dvi, pdf, etc.)
8ec98d6c
NN
51737
51738.PHONY: maybe-info-target-libada info-target-libada
51739maybe-info-target-libada:
a7e609d6
PB
51740@if target-libada
51741maybe-info-target-libada: info-target-libada
8ec98d6c
NN
51742
51743info-target-libada: \
51744 configure-target-libada
15b527ca 51745 @: $(MAKE); $(unstage)
8ec98d6c
NN
51746 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
51747 r=`${PWD_COMMAND}`; export r; \
51748 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 51749 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
51750 echo "Doing info in $(TARGET_SUBDIR)/libada" ; \
51751 for flag in $(EXTRA_TARGET_FLAGS); do \
51752 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51753 done; \
51754 (cd $(TARGET_SUBDIR)/libada && \
51755 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51756 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51757 "RANLIB=$${RANLIB}" \
bffcbe34 51758 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 51759 info) \
8ec98d6c
NN
51760 || exit 1
51761
a7e609d6 51762@endif target-libada
8ec98d6c
NN
51763
51764.PHONY: maybe-dvi-target-libada dvi-target-libada
51765maybe-dvi-target-libada:
a7e609d6
PB
51766@if target-libada
51767maybe-dvi-target-libada: dvi-target-libada
8ec98d6c
NN
51768
51769dvi-target-libada: \
51770 configure-target-libada
15b527ca 51771 @: $(MAKE); $(unstage)
8ec98d6c
NN
51772 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
51773 r=`${PWD_COMMAND}`; export r; \
51774 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 51775 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
51776 echo "Doing dvi in $(TARGET_SUBDIR)/libada" ; \
51777 for flag in $(EXTRA_TARGET_FLAGS); do \
51778 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51779 done; \
51780 (cd $(TARGET_SUBDIR)/libada && \
51781 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51782 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51783 "RANLIB=$${RANLIB}" \
bffcbe34 51784 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 51785 dvi) \
8ec98d6c
NN
51786 || exit 1
51787
a7e609d6 51788@endif target-libada
8ec98d6c 51789
39bbbb69
DD
51790.PHONY: maybe-pdf-target-libada pdf-target-libada
51791maybe-pdf-target-libada:
51792@if target-libada
51793maybe-pdf-target-libada: pdf-target-libada
51794
51795pdf-target-libada: \
51796 configure-target-libada
51797 @: $(MAKE); $(unstage)
51798 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
51799 r=`${PWD_COMMAND}`; export r; \
51800 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
51801 $(NORMAL_TARGET_EXPORTS) \
51802 echo "Doing pdf in $(TARGET_SUBDIR)/libada" ; \
51803 for flag in $(EXTRA_TARGET_FLAGS); do \
51804 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51805 done; \
51806 (cd $(TARGET_SUBDIR)/libada && \
51807 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51808 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51809 "RANLIB=$${RANLIB}" \
bffcbe34 51810 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
51811 pdf) \
51812 || exit 1
51813
51814@endif target-libada
51815
b6fb961f
MS
51816.PHONY: maybe-html-target-libada html-target-libada
51817maybe-html-target-libada:
51818@if target-libada
51819maybe-html-target-libada: html-target-libada
51820
51821html-target-libada: \
51822 configure-target-libada
15b527ca 51823 @: $(MAKE); $(unstage)
b6fb961f
MS
51824 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
51825 r=`${PWD_COMMAND}`; export r; \
51826 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
51827 $(NORMAL_TARGET_EXPORTS) \
51828 echo "Doing html in $(TARGET_SUBDIR)/libada" ; \
51829 for flag in $(EXTRA_TARGET_FLAGS); do \
51830 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51831 done; \
51832 (cd $(TARGET_SUBDIR)/libada && \
51833 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51834 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51835 "RANLIB=$${RANLIB}" \
bffcbe34 51836 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
51837 html) \
51838 || exit 1
51839
51840@endif target-libada
51841
8ec98d6c
NN
51842.PHONY: maybe-TAGS-target-libada TAGS-target-libada
51843maybe-TAGS-target-libada:
a7e609d6
PB
51844@if target-libada
51845maybe-TAGS-target-libada: TAGS-target-libada
8ec98d6c
NN
51846
51847TAGS-target-libada: \
51848 configure-target-libada
15b527ca 51849 @: $(MAKE); $(unstage)
8ec98d6c
NN
51850 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
51851 r=`${PWD_COMMAND}`; export r; \
51852 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 51853 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
51854 echo "Doing TAGS in $(TARGET_SUBDIR)/libada" ; \
51855 for flag in $(EXTRA_TARGET_FLAGS); do \
51856 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51857 done; \
51858 (cd $(TARGET_SUBDIR)/libada && \
51859 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51860 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51861 "RANLIB=$${RANLIB}" \
bffcbe34 51862 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 51863 TAGS) \
8ec98d6c
NN
51864 || exit 1
51865
a7e609d6 51866@endif target-libada
8ec98d6c
NN
51867
51868.PHONY: maybe-install-info-target-libada install-info-target-libada
51869maybe-install-info-target-libada:
a7e609d6
PB
51870@if target-libada
51871maybe-install-info-target-libada: install-info-target-libada
8ec98d6c
NN
51872
51873install-info-target-libada: \
51874 configure-target-libada \
51875 info-target-libada
15b527ca 51876 @: $(MAKE); $(unstage)
8ec98d6c
NN
51877 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
51878 r=`${PWD_COMMAND}`; export r; \
51879 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 51880 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
51881 echo "Doing install-info in $(TARGET_SUBDIR)/libada" ; \
51882 for flag in $(EXTRA_TARGET_FLAGS); do \
51883 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51884 done; \
51885 (cd $(TARGET_SUBDIR)/libada && \
51886 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51887 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51888 "RANLIB=$${RANLIB}" \
bffcbe34 51889 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 51890 install-info) \
8ec98d6c
NN
51891 || exit 1
51892
a7e609d6 51893@endif target-libada
8ec98d6c 51894
d4954b6d
DD
51895.PHONY: maybe-install-pdf-target-libada install-pdf-target-libada
51896maybe-install-pdf-target-libada:
51897@if target-libada
51898maybe-install-pdf-target-libada: install-pdf-target-libada
51899
51900install-pdf-target-libada: \
51901 configure-target-libada \
51902 pdf-target-libada
51903 @: $(MAKE); $(unstage)
51904 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
51905 r=`${PWD_COMMAND}`; export r; \
51906 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
51907 $(NORMAL_TARGET_EXPORTS) \
51908 echo "Doing install-pdf in $(TARGET_SUBDIR)/libada" ; \
51909 for flag in $(EXTRA_TARGET_FLAGS); do \
51910 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51911 done; \
51912 (cd $(TARGET_SUBDIR)/libada && \
51913 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51914 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51915 "RANLIB=$${RANLIB}" \
bffcbe34 51916 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
51917 install-pdf) \
51918 || exit 1
51919
51920@endif target-libada
51921
83c9add4
CD
51922.PHONY: maybe-install-html-target-libada install-html-target-libada
51923maybe-install-html-target-libada:
51924@if target-libada
51925maybe-install-html-target-libada: install-html-target-libada
51926
51927install-html-target-libada: \
51928 configure-target-libada \
51929 html-target-libada
51930 @: $(MAKE); $(unstage)
51931 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
51932 r=`${PWD_COMMAND}`; export r; \
51933 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
51934 $(NORMAL_TARGET_EXPORTS) \
51935 echo "Doing install-html in $(TARGET_SUBDIR)/libada" ; \
51936 for flag in $(EXTRA_TARGET_FLAGS); do \
51937 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51938 done; \
51939 (cd $(TARGET_SUBDIR)/libada && \
51940 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51941 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51942 "RANLIB=$${RANLIB}" \
bffcbe34 51943 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
51944 install-html) \
51945 || exit 1
51946
51947@endif target-libada
51948
8ec98d6c
NN
51949.PHONY: maybe-installcheck-target-libada installcheck-target-libada
51950maybe-installcheck-target-libada:
a7e609d6
PB
51951@if target-libada
51952maybe-installcheck-target-libada: installcheck-target-libada
8ec98d6c
NN
51953
51954installcheck-target-libada: \
51955 configure-target-libada
15b527ca 51956 @: $(MAKE); $(unstage)
8ec98d6c
NN
51957 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
51958 r=`${PWD_COMMAND}`; export r; \
51959 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 51960 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
51961 echo "Doing installcheck in $(TARGET_SUBDIR)/libada" ; \
51962 for flag in $(EXTRA_TARGET_FLAGS); do \
51963 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51964 done; \
51965 (cd $(TARGET_SUBDIR)/libada && \
51966 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51967 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51968 "RANLIB=$${RANLIB}" \
bffcbe34 51969 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 51970 installcheck) \
8ec98d6c
NN
51971 || exit 1
51972
a7e609d6 51973@endif target-libada
8ec98d6c
NN
51974
51975.PHONY: maybe-mostlyclean-target-libada mostlyclean-target-libada
51976maybe-mostlyclean-target-libada:
a7e609d6
PB
51977@if target-libada
51978maybe-mostlyclean-target-libada: mostlyclean-target-libada
8ec98d6c
NN
51979
51980mostlyclean-target-libada:
15b527ca 51981 @: $(MAKE); $(unstage)
8ec98d6c
NN
51982 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
51983 r=`${PWD_COMMAND}`; export r; \
51984 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 51985 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
51986 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libada" ; \
51987 for flag in $(EXTRA_TARGET_FLAGS); do \
51988 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51989 done; \
51990 (cd $(TARGET_SUBDIR)/libada && \
51991 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51992 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51993 "RANLIB=$${RANLIB}" \
bffcbe34 51994 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 51995 mostlyclean) \
8ec98d6c
NN
51996 || exit 1
51997
a7e609d6 51998@endif target-libada
8ec98d6c
NN
51999
52000.PHONY: maybe-clean-target-libada clean-target-libada
52001maybe-clean-target-libada:
a7e609d6
PB
52002@if target-libada
52003maybe-clean-target-libada: clean-target-libada
8ec98d6c
NN
52004
52005clean-target-libada:
15b527ca 52006 @: $(MAKE); $(unstage)
8ec98d6c
NN
52007 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
52008 r=`${PWD_COMMAND}`; export r; \
52009 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 52010 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
52011 echo "Doing clean in $(TARGET_SUBDIR)/libada" ; \
52012 for flag in $(EXTRA_TARGET_FLAGS); do \
52013 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52014 done; \
52015 (cd $(TARGET_SUBDIR)/libada && \
52016 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52017 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52018 "RANLIB=$${RANLIB}" \
bffcbe34 52019 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 52020 clean) \
8ec98d6c
NN
52021 || exit 1
52022
a7e609d6 52023@endif target-libada
d832a288 52024
8ec98d6c
NN
52025.PHONY: maybe-distclean-target-libada distclean-target-libada
52026maybe-distclean-target-libada:
a7e609d6
PB
52027@if target-libada
52028maybe-distclean-target-libada: distclean-target-libada
d832a288 52029
8ec98d6c 52030distclean-target-libada:
15b527ca 52031 @: $(MAKE); $(unstage)
8ec98d6c
NN
52032 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
52033 r=`${PWD_COMMAND}`; export r; \
d832a288 52034 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 52035 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
52036 echo "Doing distclean in $(TARGET_SUBDIR)/libada" ; \
52037 for flag in $(EXTRA_TARGET_FLAGS); do \
52038 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52039 done; \
d832a288 52040 (cd $(TARGET_SUBDIR)/libada && \
8ec98d6c
NN
52041 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52042 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52043 "RANLIB=$${RANLIB}" \
bffcbe34 52044 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 52045 distclean) \
8ec98d6c 52046 || exit 1
d832a288 52047
a7e609d6 52048@endif target-libada
d832a288 52049
8ec98d6c
NN
52050.PHONY: maybe-maintainer-clean-target-libada maintainer-clean-target-libada
52051maybe-maintainer-clean-target-libada:
a7e609d6
PB
52052@if target-libada
52053maybe-maintainer-clean-target-libada: maintainer-clean-target-libada
d832a288 52054
8ec98d6c 52055maintainer-clean-target-libada:
15b527ca 52056 @: $(MAKE); $(unstage)
8ec98d6c
NN
52057 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
52058 r=`${PWD_COMMAND}`; export r; \
d832a288 52059 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 52060 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
52061 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libada" ; \
52062 for flag in $(EXTRA_TARGET_FLAGS); do \
52063 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52064 done; \
d832a288 52065 (cd $(TARGET_SUBDIR)/libada && \
8ec98d6c
NN
52066 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52067 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52068 "RANLIB=$${RANLIB}" \
bffcbe34 52069 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 52070 maintainer-clean) \
8ec98d6c
NN
52071 || exit 1
52072
a7e609d6 52073@endif target-libada
d832a288
DD
52074
52075
d6ebd419 52076
00bc9d7f
PB
52077
52078
52079.PHONY: configure-target-libgomp maybe-configure-target-libgomp
52080maybe-configure-target-libgomp:
e1e5148c
CD
52081@if gcc-bootstrap
52082configure-target-libgomp: stage_current
52083@endif gcc-bootstrap
00bc9d7f
PB
52084@if target-libgomp
52085maybe-configure-target-libgomp: configure-target-libgomp
ec92c4d6 52086configure-target-libgomp:
00bc9d7f
PB
52087 @: $(MAKE); $(unstage)
52088 @r=`${PWD_COMMAND}`; export r; \
52089 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
52090 echo "Checking multilib configuration for libgomp..."; \
52091 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp ; \
52092 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null ; \
52093 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
52094 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
52095 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
52096 else \
52097 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
52098 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
52099 fi; \
52100 else \
52101 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
ec92c4d6
PB
52102 fi; \
52103 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
00bc9d7f 52104 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp ; \
00bc9d7f
PB
52105 $(NORMAL_TARGET_EXPORTS) \
52106 echo Configuring in $(TARGET_SUBDIR)/libgomp; \
52107 cd "$(TARGET_SUBDIR)/libgomp" || exit 1; \
52108 case $(srcdir) in \
52109 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
52110 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
52111 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
52112 esac; \
52113 srcdiroption="--srcdir=$${topdir}/libgomp"; \
52114 libsrcdir="$$s/libgomp"; \
52115 rm -f no-such-file || : ; \
52116 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
52117 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
52118 --target=${target_alias} $${srcdiroption} \
00bc9d7f
PB
52119 || exit 1
52120@endif target-libgomp
52121
52122
52123
52124
52125
52126.PHONY: all-target-libgomp maybe-all-target-libgomp
52127maybe-all-target-libgomp:
e1e5148c
CD
52128@if gcc-bootstrap
52129all-target-libgomp: stage_current
52130@endif gcc-bootstrap
00bc9d7f
PB
52131@if target-libgomp
52132TARGET-target-libgomp=all
52133maybe-all-target-libgomp: all-target-libgomp
52134all-target-libgomp: configure-target-libgomp
52135 @: $(MAKE); $(unstage)
52136 @r=`${PWD_COMMAND}`; export r; \
52137 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
52138 $(NORMAL_TARGET_EXPORTS) \
52139 (cd $(TARGET_SUBDIR)/libgomp && \
6532abb6
PB
52140 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
52141 $(TARGET-target-libgomp))
00bc9d7f
PB
52142@endif target-libgomp
52143
52144
52145
52146
52147
52148.PHONY: check-target-libgomp maybe-check-target-libgomp
52149maybe-check-target-libgomp:
52150@if target-libgomp
52151maybe-check-target-libgomp: check-target-libgomp
52152
52153check-target-libgomp:
52154 @: $(MAKE); $(unstage)
52155 @r=`${PWD_COMMAND}`; export r; \
52156 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
52157 $(NORMAL_TARGET_EXPORTS) \
52158 (cd $(TARGET_SUBDIR)/libgomp && \
52159 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
52160
52161@endif target-libgomp
52162
52163.PHONY: install-target-libgomp maybe-install-target-libgomp
52164maybe-install-target-libgomp:
52165@if target-libgomp
52166maybe-install-target-libgomp: install-target-libgomp
52167
52168install-target-libgomp: installdirs
52169 @: $(MAKE); $(unstage)
52170 @r=`${PWD_COMMAND}`; export r; \
52171 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
52172 $(NORMAL_TARGET_EXPORTS) \
52173 (cd $(TARGET_SUBDIR)/libgomp && \
52174 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
52175
52176@endif target-libgomp
52177
39bbbb69 52178# Other targets (info, dvi, pdf, etc.)
00bc9d7f
PB
52179
52180.PHONY: maybe-info-target-libgomp info-target-libgomp
52181maybe-info-target-libgomp:
52182@if target-libgomp
52183maybe-info-target-libgomp: info-target-libgomp
52184
52185info-target-libgomp: \
52186 configure-target-libgomp
52187 @: $(MAKE); $(unstage)
52188 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
52189 r=`${PWD_COMMAND}`; export r; \
52190 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
52191 $(NORMAL_TARGET_EXPORTS) \
52192 echo "Doing info in $(TARGET_SUBDIR)/libgomp" ; \
52193 for flag in $(EXTRA_TARGET_FLAGS); do \
52194 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52195 done; \
52196 (cd $(TARGET_SUBDIR)/libgomp && \
52197 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52198 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52199 "RANLIB=$${RANLIB}" \
bffcbe34 52200 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
00bc9d7f
PB
52201 info) \
52202 || exit 1
52203
52204@endif target-libgomp
52205
52206.PHONY: maybe-dvi-target-libgomp dvi-target-libgomp
52207maybe-dvi-target-libgomp:
52208@if target-libgomp
52209maybe-dvi-target-libgomp: dvi-target-libgomp
52210
52211dvi-target-libgomp: \
52212 configure-target-libgomp
52213 @: $(MAKE); $(unstage)
52214 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
52215 r=`${PWD_COMMAND}`; export r; \
52216 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
52217 $(NORMAL_TARGET_EXPORTS) \
52218 echo "Doing dvi in $(TARGET_SUBDIR)/libgomp" ; \
52219 for flag in $(EXTRA_TARGET_FLAGS); do \
52220 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52221 done; \
52222 (cd $(TARGET_SUBDIR)/libgomp && \
52223 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52224 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52225 "RANLIB=$${RANLIB}" \
bffcbe34 52226 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
00bc9d7f
PB
52227 dvi) \
52228 || exit 1
52229
52230@endif target-libgomp
52231
39bbbb69
DD
52232.PHONY: maybe-pdf-target-libgomp pdf-target-libgomp
52233maybe-pdf-target-libgomp:
52234@if target-libgomp
52235maybe-pdf-target-libgomp: pdf-target-libgomp
52236
52237pdf-target-libgomp: \
52238 configure-target-libgomp
52239 @: $(MAKE); $(unstage)
52240 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
52241 r=`${PWD_COMMAND}`; export r; \
52242 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
52243 $(NORMAL_TARGET_EXPORTS) \
52244 echo "Doing pdf in $(TARGET_SUBDIR)/libgomp" ; \
52245 for flag in $(EXTRA_TARGET_FLAGS); do \
52246 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52247 done; \
52248 (cd $(TARGET_SUBDIR)/libgomp && \
52249 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52250 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52251 "RANLIB=$${RANLIB}" \
bffcbe34 52252 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
52253 pdf) \
52254 || exit 1
52255
52256@endif target-libgomp
52257
00bc9d7f
PB
52258.PHONY: maybe-html-target-libgomp html-target-libgomp
52259maybe-html-target-libgomp:
52260@if target-libgomp
52261maybe-html-target-libgomp: html-target-libgomp
52262
52263html-target-libgomp: \
52264 configure-target-libgomp
52265 @: $(MAKE); $(unstage)
52266 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
52267 r=`${PWD_COMMAND}`; export r; \
52268 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
52269 $(NORMAL_TARGET_EXPORTS) \
52270 echo "Doing html in $(TARGET_SUBDIR)/libgomp" ; \
52271 for flag in $(EXTRA_TARGET_FLAGS); do \
52272 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52273 done; \
52274 (cd $(TARGET_SUBDIR)/libgomp && \
52275 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52276 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52277 "RANLIB=$${RANLIB}" \
bffcbe34 52278 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
00bc9d7f
PB
52279 html) \
52280 || exit 1
52281
52282@endif target-libgomp
52283
52284.PHONY: maybe-TAGS-target-libgomp TAGS-target-libgomp
52285maybe-TAGS-target-libgomp:
52286@if target-libgomp
52287maybe-TAGS-target-libgomp: TAGS-target-libgomp
52288
52289TAGS-target-libgomp: \
52290 configure-target-libgomp
52291 @: $(MAKE); $(unstage)
52292 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
52293 r=`${PWD_COMMAND}`; export r; \
52294 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
52295 $(NORMAL_TARGET_EXPORTS) \
52296 echo "Doing TAGS in $(TARGET_SUBDIR)/libgomp" ; \
52297 for flag in $(EXTRA_TARGET_FLAGS); do \
52298 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52299 done; \
52300 (cd $(TARGET_SUBDIR)/libgomp && \
52301 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52302 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52303 "RANLIB=$${RANLIB}" \
bffcbe34 52304 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
00bc9d7f
PB
52305 TAGS) \
52306 || exit 1
52307
52308@endif target-libgomp
52309
52310.PHONY: maybe-install-info-target-libgomp install-info-target-libgomp
52311maybe-install-info-target-libgomp:
52312@if target-libgomp
52313maybe-install-info-target-libgomp: install-info-target-libgomp
52314
52315install-info-target-libgomp: \
52316 configure-target-libgomp \
52317 info-target-libgomp
52318 @: $(MAKE); $(unstage)
52319 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
52320 r=`${PWD_COMMAND}`; export r; \
52321 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
52322 $(NORMAL_TARGET_EXPORTS) \
52323 echo "Doing install-info in $(TARGET_SUBDIR)/libgomp" ; \
52324 for flag in $(EXTRA_TARGET_FLAGS); do \
52325 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52326 done; \
52327 (cd $(TARGET_SUBDIR)/libgomp && \
52328 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52329 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52330 "RANLIB=$${RANLIB}" \
bffcbe34 52331 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
00bc9d7f
PB
52332 install-info) \
52333 || exit 1
52334
52335@endif target-libgomp
52336
d4954b6d
DD
52337.PHONY: maybe-install-pdf-target-libgomp install-pdf-target-libgomp
52338maybe-install-pdf-target-libgomp:
52339@if target-libgomp
52340maybe-install-pdf-target-libgomp: install-pdf-target-libgomp
52341
52342install-pdf-target-libgomp: \
52343 configure-target-libgomp \
52344 pdf-target-libgomp
52345 @: $(MAKE); $(unstage)
52346 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
52347 r=`${PWD_COMMAND}`; export r; \
52348 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
52349 $(NORMAL_TARGET_EXPORTS) \
52350 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgomp" ; \
52351 for flag in $(EXTRA_TARGET_FLAGS); do \
52352 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52353 done; \
52354 (cd $(TARGET_SUBDIR)/libgomp && \
52355 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52356 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52357 "RANLIB=$${RANLIB}" \
bffcbe34 52358 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
52359 install-pdf) \
52360 || exit 1
52361
52362@endif target-libgomp
52363
83c9add4
CD
52364.PHONY: maybe-install-html-target-libgomp install-html-target-libgomp
52365maybe-install-html-target-libgomp:
52366@if target-libgomp
52367maybe-install-html-target-libgomp: install-html-target-libgomp
52368
52369install-html-target-libgomp: \
52370 configure-target-libgomp \
52371 html-target-libgomp
52372 @: $(MAKE); $(unstage)
52373 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
52374 r=`${PWD_COMMAND}`; export r; \
52375 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
52376 $(NORMAL_TARGET_EXPORTS) \
52377 echo "Doing install-html in $(TARGET_SUBDIR)/libgomp" ; \
52378 for flag in $(EXTRA_TARGET_FLAGS); do \
52379 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52380 done; \
52381 (cd $(TARGET_SUBDIR)/libgomp && \
52382 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52383 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52384 "RANLIB=$${RANLIB}" \
bffcbe34 52385 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
52386 install-html) \
52387 || exit 1
52388
52389@endif target-libgomp
52390
00bc9d7f
PB
52391.PHONY: maybe-installcheck-target-libgomp installcheck-target-libgomp
52392maybe-installcheck-target-libgomp:
52393@if target-libgomp
52394maybe-installcheck-target-libgomp: installcheck-target-libgomp
52395
52396installcheck-target-libgomp: \
52397 configure-target-libgomp
52398 @: $(MAKE); $(unstage)
52399 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
52400 r=`${PWD_COMMAND}`; export r; \
52401 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
52402 $(NORMAL_TARGET_EXPORTS) \
52403 echo "Doing installcheck in $(TARGET_SUBDIR)/libgomp" ; \
52404 for flag in $(EXTRA_TARGET_FLAGS); do \
52405 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52406 done; \
52407 (cd $(TARGET_SUBDIR)/libgomp && \
52408 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52409 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52410 "RANLIB=$${RANLIB}" \
bffcbe34 52411 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
00bc9d7f
PB
52412 installcheck) \
52413 || exit 1
52414
52415@endif target-libgomp
52416
52417.PHONY: maybe-mostlyclean-target-libgomp mostlyclean-target-libgomp
52418maybe-mostlyclean-target-libgomp:
52419@if target-libgomp
52420maybe-mostlyclean-target-libgomp: mostlyclean-target-libgomp
52421
52422mostlyclean-target-libgomp:
52423 @: $(MAKE); $(unstage)
52424 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
52425 r=`${PWD_COMMAND}`; export r; \
52426 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
52427 $(NORMAL_TARGET_EXPORTS) \
52428 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgomp" ; \
52429 for flag in $(EXTRA_TARGET_FLAGS); do \
52430 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52431 done; \
52432 (cd $(TARGET_SUBDIR)/libgomp && \
52433 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52434 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52435 "RANLIB=$${RANLIB}" \
bffcbe34 52436 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
00bc9d7f
PB
52437 mostlyclean) \
52438 || exit 1
52439
52440@endif target-libgomp
52441
52442.PHONY: maybe-clean-target-libgomp clean-target-libgomp
52443maybe-clean-target-libgomp:
52444@if target-libgomp
52445maybe-clean-target-libgomp: clean-target-libgomp
52446
52447clean-target-libgomp:
52448 @: $(MAKE); $(unstage)
52449 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
52450 r=`${PWD_COMMAND}`; export r; \
52451 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
52452 $(NORMAL_TARGET_EXPORTS) \
52453 echo "Doing clean in $(TARGET_SUBDIR)/libgomp" ; \
52454 for flag in $(EXTRA_TARGET_FLAGS); do \
52455 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52456 done; \
52457 (cd $(TARGET_SUBDIR)/libgomp && \
52458 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52459 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52460 "RANLIB=$${RANLIB}" \
bffcbe34 52461 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
00bc9d7f
PB
52462 clean) \
52463 || exit 1
52464
52465@endif target-libgomp
52466
52467.PHONY: maybe-distclean-target-libgomp distclean-target-libgomp
52468maybe-distclean-target-libgomp:
52469@if target-libgomp
52470maybe-distclean-target-libgomp: distclean-target-libgomp
52471
52472distclean-target-libgomp:
52473 @: $(MAKE); $(unstage)
52474 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
52475 r=`${PWD_COMMAND}`; export r; \
52476 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
52477 $(NORMAL_TARGET_EXPORTS) \
52478 echo "Doing distclean in $(TARGET_SUBDIR)/libgomp" ; \
52479 for flag in $(EXTRA_TARGET_FLAGS); do \
52480 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52481 done; \
52482 (cd $(TARGET_SUBDIR)/libgomp && \
52483 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52484 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52485 "RANLIB=$${RANLIB}" \
bffcbe34 52486 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
00bc9d7f
PB
52487 distclean) \
52488 || exit 1
52489
52490@endif target-libgomp
52491
52492.PHONY: maybe-maintainer-clean-target-libgomp maintainer-clean-target-libgomp
52493maybe-maintainer-clean-target-libgomp:
52494@if target-libgomp
52495maybe-maintainer-clean-target-libgomp: maintainer-clean-target-libgomp
52496
52497maintainer-clean-target-libgomp:
52498 @: $(MAKE); $(unstage)
52499 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
52500 r=`${PWD_COMMAND}`; export r; \
52501 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
52502 $(NORMAL_TARGET_EXPORTS) \
52503 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgomp" ; \
52504 for flag in $(EXTRA_TARGET_FLAGS); do \
52505 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52506 done; \
52507 (cd $(TARGET_SUBDIR)/libgomp && \
52508 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52509 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52510 "RANLIB=$${RANLIB}" \
bffcbe34 52511 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
00bc9d7f
PB
52512 maintainer-clean) \
52513 || exit 1
52514
52515@endif target-libgomp
52516
52517
52518
43bdb69a
NN
52519# ----------
52520# GCC module
52521# ----------
52522
e1666221 52523@if gcc-no-bootstrap
a3acbf46 52524.PHONY: cross
6a19fd82 52525cross: all-build all-gas all-ld
5230d454
L
52526 @r=`${PWD_COMMAND}`; export r; \
52527 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
63673a5b 52528 $(HOST_EXPORTS) \
a3acbf46 52529 echo "Building the C and C++ compiler"; \
25688b70 52530 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++"
5230d454
L
52531 @r=`${PWD_COMMAND}`; export r; \
52532 s=`cd $(srcdir); ${PWD_COMMAND}` ; export s; \
a3acbf46 52533 echo "Building runtime libraries"; \
21ff191e 52534 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LANGUAGES="c c++" all
e1666221 52535@endif gcc-no-bootstrap
a3acbf46 52536
a7e609d6 52537@if gcc
d97f0f72
JM
52538.PHONY: check-gcc-c++
52539check-gcc-c++:
f3d61cc7 52540 @if [ -f ./gcc/Makefile ] ; then \
5230d454
L
52541 r=`${PWD_COMMAND}`; export r; \
52542 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
63673a5b 52543 $(HOST_EXPORTS) \
6dbec167 52544 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-c++); \
f3d61cc7
DD
52545 else \
52546 true; \
d97f0f72
JM
52547 fi
52548
52549.PHONY: check-c++
2a33c5f1 52550check-c++: check-target-libstdc++-v3 check-gcc-c++
a3acbf46 52551
43bdb69a
NN
52552# Install the gcc headers files, but not the fixed include files,
52553# which Cygnus is not allowed to distribute. This rule is very
52554# dependent on the workings of the gcc Makefile.in.
52555.PHONY: gcc-no-fixedincludes
52556gcc-no-fixedincludes:
52557 @if [ -f ./gcc/Makefile ]; then \
52558 rm -rf gcc/tmp-include; \
52559 mv gcc/include gcc/tmp-include 2>/dev/null; \
52560 mkdir gcc/include; \
52561 cp $(srcdir)/gcc/gsyslimits.h gcc/include/syslimits.h; \
52562 touch gcc/stmp-fixinc gcc/include/fixed; \
52563 rm -f gcc/stmp-headers gcc/stmp-int-hdrs; \
5230d454
L
52564 r=`${PWD_COMMAND}`; export r; \
52565 s=`cd $(srcdir); ${PWD_COMMAND}` ; export s; \
63673a5b 52566 $(HOST_EXPORTS) \
6dbec167 52567 (cd ./gcc && \
43bdb69a
NN
52568 $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
52569 rm -rf gcc/include; \
52570 mv gcc/tmp-include gcc/include 2>/dev/null; \
52571 else true; fi
a7e609d6 52572@endif gcc
8ec98d6c 52573
d5eec917
PB
52574# ---------------------
52575# GCC bootstrap support
52576# ---------------------
8ec98d6c 52577
d5eec917
PB
52578# We track the current stage (the one in 'gcc') in the stage_current file.
52579# stage_last instead tracks the stage that was built last. These targets
52580# are dummy when toplevel bootstrap is not active.
8ec98d6c 52581
168b158c 52582# While making host and target tools, symlinks to the final stage must be
15b527ca
PB
52583# there, so $(unstage) should be run at various points. To avoid excessive
52584# recursive invocations of make, we "inline" them using a variable. These
52585# must be referenced as ": $(MAKE) ; $(unstage)" rather than "$(unstage)"
52586# to avoid warnings from the GNU Make job server.
168b158c
PB
52587
52588unstage = :
52589stage = :
ec92c4d6 52590current_stage = ""
168b158c 52591
d5eec917 52592@if gcc-bootstrap
0b66ef4c 52593unstage = if [ -f stage_last ]; then [ -f stage_current ] || $(MAKE) `cat stage_last`-start || exit 1; else :; fi
7e958b2e 52594stage = if [ -f stage_current ]; then $(MAKE) `cat stage_current`-end || exit 1; else :; fi
ec92c4d6 52595current_stage = "`cat stage_current 2> /dev/null`"
d5eec917 52596@endif gcc-bootstrap
8ec98d6c 52597
168b158c
PB
52598.PHONY: unstage stage
52599unstage:
15b527ca 52600 @: $(MAKE); $(unstage)
d5eec917 52601stage:
15b527ca 52602 @: $(MAKE); $(stage)
457eaf16 52603
e3c08f94
PB
52604# Disable commands for lean bootstrap.
52605LEAN = false
52606
35269421
PB
52607# We name the build directories for the various stages "stage1-gcc",
52608# "stage2-gcc","stage3-gcc", etc.
52609
52610# Since the 'compare' process will fail (on debugging information) if any
52611# directory names are different, we need to link the gcc directory for
15b527ca 52612# the previous stage to a constant name ('prev-gcc'), and to make the name of
35269421
PB
52613# the build directories constant as well. For the latter, we use naked names
52614# like 'gcc', because the scripts in that directory assume it. We use
52615# mv on platforms where symlinks to directories do not work or are not
52616# reliable.
52617
457eaf16
NN
52618# 'touch' doesn't work right on some platforms.
52619STAMP = echo timestamp >
52620
35269421
PB
52621# We only want to compare .o files, so set this!
52622objext = .o
52623
35269421 52624
e1666221 52625.PHONY: stage1-start stage1-end
35269421 52626
21ff191e 52627stage1-start::
15b527ca 52628 @: $(MAKE); $(stage); \
d5eec917 52629 echo stage1 > stage_current ; \
7fc2ca22 52630 echo stage1 > stage_last; \
15b527ca 52631 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
6a19fd82 52632@if bfd
7fc2ca22
PB
52633 @cd $(HOST_SUBDIR); [ -d stage1-bfd ] || \
52634 mkdir stage1-bfd; \
e3c08f94 52635 mv stage1-bfd bfd
6a19fd82
PB
52636@endif bfd
52637@if opcodes
7fc2ca22
PB
52638 @cd $(HOST_SUBDIR); [ -d stage1-opcodes ] || \
52639 mkdir stage1-opcodes; \
e3c08f94 52640 mv stage1-opcodes opcodes
6a19fd82
PB
52641@endif opcodes
52642@if binutils
7fc2ca22
PB
52643 @cd $(HOST_SUBDIR); [ -d stage1-binutils ] || \
52644 mkdir stage1-binutils; \
e3c08f94 52645 mv stage1-binutils binutils
6a19fd82
PB
52646@endif binutils
52647@if gas
7fc2ca22
PB
52648 @cd $(HOST_SUBDIR); [ -d stage1-gas ] || \
52649 mkdir stage1-gas; \
e3c08f94 52650 mv stage1-gas gas
6a19fd82
PB
52651@endif gas
52652@if gcc
7fc2ca22
PB
52653 @cd $(HOST_SUBDIR); [ -d stage1-gcc ] || \
52654 mkdir stage1-gcc; \
e3c08f94 52655 mv stage1-gcc gcc
6a19fd82 52656@endif gcc
42f55f77
PB
52657@if gmp
52658 @cd $(HOST_SUBDIR); [ -d stage1-gmp ] || \
52659 mkdir stage1-gmp; \
52660 mv stage1-gmp gmp
52661@endif gmp
52662@if mpfr
52663 @cd $(HOST_SUBDIR); [ -d stage1-mpfr ] || \
52664 mkdir stage1-mpfr; \
52665 mv stage1-mpfr mpfr
52666@endif mpfr
311b6756
JM
52667@if ppl
52668 @cd $(HOST_SUBDIR); [ -d stage1-ppl ] || \
52669 mkdir stage1-ppl; \
52670 mv stage1-ppl ppl
52671@endif ppl
52672@if cloog
52673 @cd $(HOST_SUBDIR); [ -d stage1-cloog ] || \
52674 mkdir stage1-cloog; \
52675 mv stage1-cloog cloog
52676@endif cloog
b916272a
ILT
52677@if gold
52678 @cd $(HOST_SUBDIR); [ -d stage1-gold ] || \
52679 mkdir stage1-gold; \
52680 mv stage1-gold gold
52681@endif gold
6a19fd82 52682@if intl
7fc2ca22
PB
52683 @cd $(HOST_SUBDIR); [ -d stage1-intl ] || \
52684 mkdir stage1-intl; \
e3c08f94 52685 mv stage1-intl intl
6a19fd82
PB
52686@endif intl
52687@if ld
7fc2ca22
PB
52688 @cd $(HOST_SUBDIR); [ -d stage1-ld ] || \
52689 mkdir stage1-ld; \
e3c08f94 52690 mv stage1-ld ld
6a19fd82
PB
52691@endif ld
52692@if libcpp
7fc2ca22
PB
52693 @cd $(HOST_SUBDIR); [ -d stage1-libcpp ] || \
52694 mkdir stage1-libcpp; \
e3c08f94 52695 mv stage1-libcpp libcpp
6a19fd82 52696@endif libcpp
a7dc05b5
PB
52697@if libdecnumber
52698 @cd $(HOST_SUBDIR); [ -d stage1-libdecnumber ] || \
52699 mkdir stage1-libdecnumber; \
e3c08f94 52700 mv stage1-libdecnumber libdecnumber
a7dc05b5 52701@endif libdecnumber
6a19fd82 52702@if libiberty
7fc2ca22
PB
52703 @cd $(HOST_SUBDIR); [ -d stage1-libiberty ] || \
52704 mkdir stage1-libiberty; \
e3c08f94 52705 mv stage1-libiberty libiberty
6a19fd82
PB
52706@endif libiberty
52707@if zlib
7fc2ca22
PB
52708 @cd $(HOST_SUBDIR); [ -d stage1-zlib ] || \
52709 mkdir stage1-zlib; \
e3c08f94 52710 mv stage1-zlib zlib
6a19fd82 52711@endif zlib
15b527ca
PB
52712 @[ -d stage1-$(TARGET_SUBDIR) ] || \
52713 mkdir stage1-$(TARGET_SUBDIR); \
e3c08f94 52714 mv stage1-$(TARGET_SUBDIR) $(TARGET_SUBDIR)
35269421 52715
e3c08f94 52716stage1-end::
6a19fd82 52717@if bfd
e3c08f94
PB
52718 @if test -d $(HOST_SUBDIR)/bfd ; then \
52719 cd $(HOST_SUBDIR); mv bfd stage1-bfd ; \
15b527ca 52720 fi
6a19fd82
PB
52721@endif bfd
52722@if opcodes
e3c08f94
PB
52723 @if test -d $(HOST_SUBDIR)/opcodes ; then \
52724 cd $(HOST_SUBDIR); mv opcodes stage1-opcodes ; \
15b527ca 52725 fi
6a19fd82
PB
52726@endif opcodes
52727@if binutils
e3c08f94
PB
52728 @if test -d $(HOST_SUBDIR)/binutils ; then \
52729 cd $(HOST_SUBDIR); mv binutils stage1-binutils ; \
15b527ca 52730 fi
6a19fd82
PB
52731@endif binutils
52732@if gas
e3c08f94
PB
52733 @if test -d $(HOST_SUBDIR)/gas ; then \
52734 cd $(HOST_SUBDIR); mv gas stage1-gas ; \
15b527ca 52735 fi
6a19fd82
PB
52736@endif gas
52737@if gcc
e3c08f94
PB
52738 @if test -d $(HOST_SUBDIR)/gcc ; then \
52739 cd $(HOST_SUBDIR); mv gcc stage1-gcc ; \
15b527ca 52740 fi
6a19fd82 52741@endif gcc
42f55f77
PB
52742@if gmp
52743 @if test -d $(HOST_SUBDIR)/gmp ; then \
52744 cd $(HOST_SUBDIR); mv gmp stage1-gmp ; \
52745 fi
52746@endif gmp
52747@if mpfr
52748 @if test -d $(HOST_SUBDIR)/mpfr ; then \
52749 cd $(HOST_SUBDIR); mv mpfr stage1-mpfr ; \
52750 fi
52751@endif mpfr
311b6756
JM
52752@if ppl
52753 @if test -d $(HOST_SUBDIR)/ppl ; then \
52754 cd $(HOST_SUBDIR); mv ppl stage1-ppl ; \
52755 fi
52756@endif ppl
52757@if cloog
52758 @if test -d $(HOST_SUBDIR)/cloog ; then \
52759 cd $(HOST_SUBDIR); mv cloog stage1-cloog ; \
52760 fi
52761@endif cloog
b916272a
ILT
52762@if gold
52763 @if test -d $(HOST_SUBDIR)/gold ; then \
52764 cd $(HOST_SUBDIR); mv gold stage1-gold ; \
52765 fi
52766@endif gold
6a19fd82 52767@if intl
e3c08f94
PB
52768 @if test -d $(HOST_SUBDIR)/intl ; then \
52769 cd $(HOST_SUBDIR); mv intl stage1-intl ; \
15b527ca 52770 fi
6a19fd82
PB
52771@endif intl
52772@if ld
e3c08f94
PB
52773 @if test -d $(HOST_SUBDIR)/ld ; then \
52774 cd $(HOST_SUBDIR); mv ld stage1-ld ; \
15b527ca 52775 fi
6a19fd82
PB
52776@endif ld
52777@if libcpp
e3c08f94
PB
52778 @if test -d $(HOST_SUBDIR)/libcpp ; then \
52779 cd $(HOST_SUBDIR); mv libcpp stage1-libcpp ; \
15b527ca 52780 fi
6a19fd82 52781@endif libcpp
a7dc05b5 52782@if libdecnumber
e3c08f94
PB
52783 @if test -d $(HOST_SUBDIR)/libdecnumber ; then \
52784 cd $(HOST_SUBDIR); mv libdecnumber stage1-libdecnumber ; \
15b527ca 52785 fi
a7dc05b5 52786@endif libdecnumber
6a19fd82 52787@if libiberty
e3c08f94
PB
52788 @if test -d $(HOST_SUBDIR)/libiberty ; then \
52789 cd $(HOST_SUBDIR); mv libiberty stage1-libiberty ; \
15b527ca 52790 fi
6a19fd82
PB
52791@endif libiberty
52792@if zlib
e3c08f94
PB
52793 @if test -d $(HOST_SUBDIR)/zlib ; then \
52794 cd $(HOST_SUBDIR); mv zlib stage1-zlib ; \
15b527ca 52795 fi
6a19fd82 52796@endif zlib
15b527ca 52797 @if test -d $(TARGET_SUBDIR) ; then \
e3c08f94 52798 mv $(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR) ; \
15b527ca 52799 fi
e3c08f94 52800 rm -f stage_current
35269421 52801
d3531b73 52802# Bubble a bug fix through all the stages up to stage 1. They are
15b527ca 52803# remade, but not reconfigured. The next stage (if any) will not be
5edf1524 52804# reconfigured either.
e1666221 52805.PHONY: stage1-bubble
21ff191e 52806stage1-bubble::
ecebee48
PB
52807 @r=`${PWD_COMMAND}`; export r; \
52808 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
52809 if test -f stage1-lean ; then \
ebc58bf8
PB
52810 echo Skipping rebuild of stage1 ; \
52811 else \
168b158c
PB
52812 $(MAKE) stage1-start; \
52813 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage1; \
ebc58bf8 52814 fi
6a19fd82 52815
99df82b9 52816.PHONY: all-stage1 clean-stage1
99df82b9 52817do-clean: clean-stage1
99df82b9 52818
6a19fd82
PB
52819# FIXME: Will not need to be conditional when toplevel bootstrap is the
52820# only possibility, but now it conflicts with no-bootstrap rules
52821@if gcc-bootstrap
52822
52823
52824
52825
99df82b9 52826# Rules to wipe a stage and all the following ones, also used for cleanstrap
6a19fd82 52827
99df82b9 52828.PHONY: distclean-stage1
6a19fd82 52829distclean-stage1::
15b527ca 52830 @: $(MAKE); $(stage)
28826d8f 52831 @test "`cat stage_last`" != stage1 || rm -f stage_last
ebc58bf8 52832 rm -rf stage1-*
6a19fd82
PB
52833
52834
52835@endif gcc-bootstrap
52836
52837
52838.PHONY: stage2-start stage2-end
52839
52840stage2-start::
15b527ca 52841 @: $(MAKE); $(stage); \
6a19fd82 52842 echo stage2 > stage_current ; \
7fc2ca22 52843 echo stage2 > stage_last; \
15b527ca 52844 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
6a19fd82 52845@if bfd
7fc2ca22
PB
52846 @cd $(HOST_SUBDIR); [ -d stage2-bfd ] || \
52847 mkdir stage2-bfd; \
e3c08f94
PB
52848 mv stage2-bfd bfd ; \
52849 mv stage1-bfd prev-bfd || test -f stage1-lean
6a19fd82
PB
52850@endif bfd
52851@if opcodes
7fc2ca22
PB
52852 @cd $(HOST_SUBDIR); [ -d stage2-opcodes ] || \
52853 mkdir stage2-opcodes; \
e3c08f94
PB
52854 mv stage2-opcodes opcodes ; \
52855 mv stage1-opcodes prev-opcodes || test -f stage1-lean
6a19fd82
PB
52856@endif opcodes
52857@if binutils
7fc2ca22
PB
52858 @cd $(HOST_SUBDIR); [ -d stage2-binutils ] || \
52859 mkdir stage2-binutils; \
e3c08f94
PB
52860 mv stage2-binutils binutils ; \
52861 mv stage1-binutils prev-binutils || test -f stage1-lean
6a19fd82
PB
52862@endif binutils
52863@if gas
7fc2ca22
PB
52864 @cd $(HOST_SUBDIR); [ -d stage2-gas ] || \
52865 mkdir stage2-gas; \
e3c08f94
PB
52866 mv stage2-gas gas ; \
52867 mv stage1-gas prev-gas || test -f stage1-lean
6a19fd82
PB
52868@endif gas
52869@if gcc
7fc2ca22
PB
52870 @cd $(HOST_SUBDIR); [ -d stage2-gcc ] || \
52871 mkdir stage2-gcc; \
e3c08f94
PB
52872 mv stage2-gcc gcc ; \
52873 mv stage1-gcc prev-gcc || test -f stage1-lean
6a19fd82 52874@endif gcc
42f55f77
PB
52875@if gmp
52876 @cd $(HOST_SUBDIR); [ -d stage2-gmp ] || \
52877 mkdir stage2-gmp; \
52878 mv stage2-gmp gmp ; \
52879 mv stage1-gmp prev-gmp || test -f stage1-lean
52880@endif gmp
52881@if mpfr
52882 @cd $(HOST_SUBDIR); [ -d stage2-mpfr ] || \
52883 mkdir stage2-mpfr; \
52884 mv stage2-mpfr mpfr ; \
52885 mv stage1-mpfr prev-mpfr || test -f stage1-lean
52886@endif mpfr
311b6756
JM
52887@if ppl
52888 @cd $(HOST_SUBDIR); [ -d stage2-ppl ] || \
52889 mkdir stage2-ppl; \
52890 mv stage2-ppl ppl ; \
52891 mv stage1-ppl prev-ppl || test -f stage1-lean
52892@endif ppl
52893@if cloog
52894 @cd $(HOST_SUBDIR); [ -d stage2-cloog ] || \
52895 mkdir stage2-cloog; \
52896 mv stage2-cloog cloog ; \
52897 mv stage1-cloog prev-cloog || test -f stage1-lean
52898@endif cloog
b916272a
ILT
52899@if gold
52900 @cd $(HOST_SUBDIR); [ -d stage2-gold ] || \
52901 mkdir stage2-gold; \
52902 mv stage2-gold gold ; \
52903 mv stage1-gold prev-gold || test -f stage1-lean
52904@endif gold
6a19fd82 52905@if intl
7fc2ca22
PB
52906 @cd $(HOST_SUBDIR); [ -d stage2-intl ] || \
52907 mkdir stage2-intl; \
e3c08f94
PB
52908 mv stage2-intl intl ; \
52909 mv stage1-intl prev-intl || test -f stage1-lean
6a19fd82
PB
52910@endif intl
52911@if ld
7fc2ca22
PB
52912 @cd $(HOST_SUBDIR); [ -d stage2-ld ] || \
52913 mkdir stage2-ld; \
e3c08f94
PB
52914 mv stage2-ld ld ; \
52915 mv stage1-ld prev-ld || test -f stage1-lean
6a19fd82
PB
52916@endif ld
52917@if libcpp
7fc2ca22
PB
52918 @cd $(HOST_SUBDIR); [ -d stage2-libcpp ] || \
52919 mkdir stage2-libcpp; \
e3c08f94
PB
52920 mv stage2-libcpp libcpp ; \
52921 mv stage1-libcpp prev-libcpp || test -f stage1-lean
6a19fd82 52922@endif libcpp
a7dc05b5
PB
52923@if libdecnumber
52924 @cd $(HOST_SUBDIR); [ -d stage2-libdecnumber ] || \
52925 mkdir stage2-libdecnumber; \
e3c08f94
PB
52926 mv stage2-libdecnumber libdecnumber ; \
52927 mv stage1-libdecnumber prev-libdecnumber || test -f stage1-lean
a7dc05b5 52928@endif libdecnumber
6a19fd82 52929@if libiberty
7fc2ca22
PB
52930 @cd $(HOST_SUBDIR); [ -d stage2-libiberty ] || \
52931 mkdir stage2-libiberty; \
e3c08f94
PB
52932 mv stage2-libiberty libiberty ; \
52933 mv stage1-libiberty prev-libiberty || test -f stage1-lean
6a19fd82
PB
52934@endif libiberty
52935@if zlib
7fc2ca22
PB
52936 @cd $(HOST_SUBDIR); [ -d stage2-zlib ] || \
52937 mkdir stage2-zlib; \
e3c08f94
PB
52938 mv stage2-zlib zlib ; \
52939 mv stage1-zlib prev-zlib || test -f stage1-lean
6a19fd82 52940@endif zlib
15b527ca
PB
52941 @[ -d stage2-$(TARGET_SUBDIR) ] || \
52942 mkdir stage2-$(TARGET_SUBDIR); \
e3c08f94
PB
52943 mv stage2-$(TARGET_SUBDIR) $(TARGET_SUBDIR) ; \
52944 mv stage1-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage1-lean
6a19fd82 52945
e3c08f94 52946stage2-end::
6a19fd82 52947@if bfd
e3c08f94
PB
52948 @if test -d $(HOST_SUBDIR)/bfd ; then \
52949 cd $(HOST_SUBDIR); mv bfd stage2-bfd ; \
52950 mv prev-bfd stage1-bfd ; : ; \
15b527ca 52951 fi
6a19fd82
PB
52952@endif bfd
52953@if opcodes
e3c08f94
PB
52954 @if test -d $(HOST_SUBDIR)/opcodes ; then \
52955 cd $(HOST_SUBDIR); mv opcodes stage2-opcodes ; \
52956 mv prev-opcodes stage1-opcodes ; : ; \
15b527ca 52957 fi
6a19fd82
PB
52958@endif opcodes
52959@if binutils
e3c08f94
PB
52960 @if test -d $(HOST_SUBDIR)/binutils ; then \
52961 cd $(HOST_SUBDIR); mv binutils stage2-binutils ; \
52962 mv prev-binutils stage1-binutils ; : ; \
15b527ca 52963 fi
6a19fd82
PB
52964@endif binutils
52965@if gas
e3c08f94
PB
52966 @if test -d $(HOST_SUBDIR)/gas ; then \
52967 cd $(HOST_SUBDIR); mv gas stage2-gas ; \
52968 mv prev-gas stage1-gas ; : ; \
15b527ca 52969 fi
6a19fd82
PB
52970@endif gas
52971@if gcc
e3c08f94
PB
52972 @if test -d $(HOST_SUBDIR)/gcc ; then \
52973 cd $(HOST_SUBDIR); mv gcc stage2-gcc ; \
52974 mv prev-gcc stage1-gcc ; : ; \
15b527ca 52975 fi
6a19fd82 52976@endif gcc
42f55f77
PB
52977@if gmp
52978 @if test -d $(HOST_SUBDIR)/gmp ; then \
52979 cd $(HOST_SUBDIR); mv gmp stage2-gmp ; \
52980 mv prev-gmp stage1-gmp ; : ; \
52981 fi
52982@endif gmp
52983@if mpfr
52984 @if test -d $(HOST_SUBDIR)/mpfr ; then \
52985 cd $(HOST_SUBDIR); mv mpfr stage2-mpfr ; \
52986 mv prev-mpfr stage1-mpfr ; : ; \
52987 fi
52988@endif mpfr
311b6756
JM
52989@if ppl
52990 @if test -d $(HOST_SUBDIR)/ppl ; then \
52991 cd $(HOST_SUBDIR); mv ppl stage2-ppl ; \
52992 mv prev-ppl stage1-ppl ; : ; \
52993 fi
52994@endif ppl
52995@if cloog
52996 @if test -d $(HOST_SUBDIR)/cloog ; then \
52997 cd $(HOST_SUBDIR); mv cloog stage2-cloog ; \
52998 mv prev-cloog stage1-cloog ; : ; \
52999 fi
53000@endif cloog
b916272a
ILT
53001@if gold
53002 @if test -d $(HOST_SUBDIR)/gold ; then \
53003 cd $(HOST_SUBDIR); mv gold stage2-gold ; \
53004 mv prev-gold stage1-gold ; : ; \
53005 fi
53006@endif gold
6a19fd82 53007@if intl
e3c08f94
PB
53008 @if test -d $(HOST_SUBDIR)/intl ; then \
53009 cd $(HOST_SUBDIR); mv intl stage2-intl ; \
53010 mv prev-intl stage1-intl ; : ; \
15b527ca 53011 fi
6a19fd82
PB
53012@endif intl
53013@if ld
e3c08f94
PB
53014 @if test -d $(HOST_SUBDIR)/ld ; then \
53015 cd $(HOST_SUBDIR); mv ld stage2-ld ; \
53016 mv prev-ld stage1-ld ; : ; \
15b527ca 53017 fi
6a19fd82
PB
53018@endif ld
53019@if libcpp
e3c08f94
PB
53020 @if test -d $(HOST_SUBDIR)/libcpp ; then \
53021 cd $(HOST_SUBDIR); mv libcpp stage2-libcpp ; \
53022 mv prev-libcpp stage1-libcpp ; : ; \
15b527ca 53023 fi
6a19fd82 53024@endif libcpp
a7dc05b5 53025@if libdecnumber
e3c08f94
PB
53026 @if test -d $(HOST_SUBDIR)/libdecnumber ; then \
53027 cd $(HOST_SUBDIR); mv libdecnumber stage2-libdecnumber ; \
53028 mv prev-libdecnumber stage1-libdecnumber ; : ; \
15b527ca 53029 fi
a7dc05b5 53030@endif libdecnumber
6a19fd82 53031@if libiberty
e3c08f94
PB
53032 @if test -d $(HOST_SUBDIR)/libiberty ; then \
53033 cd $(HOST_SUBDIR); mv libiberty stage2-libiberty ; \
53034 mv prev-libiberty stage1-libiberty ; : ; \
15b527ca 53035 fi
6a19fd82
PB
53036@endif libiberty
53037@if zlib
e3c08f94
PB
53038 @if test -d $(HOST_SUBDIR)/zlib ; then \
53039 cd $(HOST_SUBDIR); mv zlib stage2-zlib ; \
53040 mv prev-zlib stage1-zlib ; : ; \
15b527ca 53041 fi
6a19fd82 53042@endif zlib
15b527ca 53043 @if test -d $(TARGET_SUBDIR) ; then \
e3c08f94
PB
53044 mv $(TARGET_SUBDIR) stage2-$(TARGET_SUBDIR) ; \
53045 mv prev-$(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR) ; : ; \
15b527ca 53046 fi
e3c08f94 53047 rm -f stage_current
6a19fd82 53048
d3531b73 53049# Bubble a bug fix through all the stages up to stage 2. They are
15b527ca 53050# remade, but not reconfigured. The next stage (if any) will not be
5edf1524 53051# reconfigured either.
6a19fd82
PB
53052.PHONY: stage2-bubble
53053stage2-bubble:: stage1-bubble
ecebee48
PB
53054 @r=`${PWD_COMMAND}`; export r; \
53055 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53056 if test -f stage2-lean || test -f stage1-lean ; then \
ebc58bf8
PB
53057 echo Skipping rebuild of stage2 ; \
53058 else \
168b158c
PB
53059 $(MAKE) stage2-start; \
53060 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage2; \
ebc58bf8 53061 fi
6a19fd82 53062
99df82b9 53063.PHONY: all-stage2 clean-stage2
99df82b9 53064do-clean: clean-stage2
99df82b9 53065
6a19fd82
PB
53066# FIXME: Will not need to be conditional when toplevel bootstrap is the
53067# only possibility, but now it conflicts with no-bootstrap rules
53068@if gcc-bootstrap
53069
53070
53071
e3c08f94 53072.PHONY: bootstrap2 bootstrap2-lean
a7dc05b5
PB
53073bootstrap2:
53074 echo stage2 > stage_final
53075 @r=`${PWD_COMMAND}`; export r; \
53076 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53077 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage2-bubble
15b527ca 53078 @: $(MAKE); $(unstage)
a7dc05b5
PB
53079 @r=`${PWD_COMMAND}`; export r; \
53080 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53081 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
6a19fd82 53082
e3c08f94
PB
53083bootstrap2-lean:
53084 echo stage2 > stage_final
53085 @r=`${PWD_COMMAND}`; export r; \
53086 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53087 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage2-bubble
53088 @: $(MAKE); $(unstage)
53089 @r=`${PWD_COMMAND}`; export r; \
53090 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53091 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
53092
6a19fd82 53093
99df82b9 53094# Rules to wipe a stage and all the following ones, also used for cleanstrap
6a19fd82 53095distclean-stage1:: distclean-stage2
99df82b9 53096.PHONY: distclean-stage2
6a19fd82 53097distclean-stage2::
15b527ca 53098 @: $(MAKE); $(stage)
28826d8f 53099 @test "`cat stage_last`" != stage2 || rm -f stage_last
ebc58bf8 53100 rm -rf stage2-*
6a19fd82
PB
53101
53102
53103@endif gcc-bootstrap
53104
53105
2b41ef78
AO
53106.PHONY: stageb2g0-start stageb2g0-end
53107
53108stageb2g0-start::
53109 @: $(MAKE); $(stage); \
53110 echo stageb2g0 > stage_current ; \
53111 echo stageb2g0 > stage_last; \
53112 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
53113@if bfd
53114 @cd $(HOST_SUBDIR); [ -d stageb2g0-bfd ] || \
53115 mkdir stageb2g0-bfd; \
53116 mv stageb2g0-bfd bfd ; \
53117 mv stage1-bfd prev-bfd || test -f stage1-lean
53118@endif bfd
53119@if opcodes
53120 @cd $(HOST_SUBDIR); [ -d stageb2g0-opcodes ] || \
53121 mkdir stageb2g0-opcodes; \
53122 mv stageb2g0-opcodes opcodes ; \
53123 mv stage1-opcodes prev-opcodes || test -f stage1-lean
53124@endif opcodes
53125@if binutils
53126 @cd $(HOST_SUBDIR); [ -d stageb2g0-binutils ] || \
53127 mkdir stageb2g0-binutils; \
53128 mv stageb2g0-binutils binutils ; \
53129 mv stage1-binutils prev-binutils || test -f stage1-lean
53130@endif binutils
53131@if gas
53132 @cd $(HOST_SUBDIR); [ -d stageb2g0-gas ] || \
53133 mkdir stageb2g0-gas; \
53134 mv stageb2g0-gas gas ; \
53135 mv stage1-gas prev-gas || test -f stage1-lean
53136@endif gas
53137@if gcc
53138 @cd $(HOST_SUBDIR); [ -d stageb2g0-gcc ] || \
53139 mkdir stageb2g0-gcc; \
53140 mv stageb2g0-gcc gcc ; \
53141 mv stage1-gcc prev-gcc || test -f stage1-lean
53142@endif gcc
53143@if gmp
53144 @cd $(HOST_SUBDIR); [ -d stageb2g0-gmp ] || \
53145 mkdir stageb2g0-gmp; \
53146 mv stageb2g0-gmp gmp ; \
53147 mv stage1-gmp prev-gmp || test -f stage1-lean
53148@endif gmp
53149@if mpfr
53150 @cd $(HOST_SUBDIR); [ -d stageb2g0-mpfr ] || \
53151 mkdir stageb2g0-mpfr; \
53152 mv stageb2g0-mpfr mpfr ; \
53153 mv stage1-mpfr prev-mpfr || test -f stage1-lean
53154@endif mpfr
311b6756
JM
53155@if ppl
53156 @cd $(HOST_SUBDIR); [ -d stageb2g0-ppl ] || \
53157 mkdir stageb2g0-ppl; \
53158 mv stageb2g0-ppl ppl ; \
53159 mv stage1-ppl prev-ppl || test -f stage1-lean
53160@endif ppl
53161@if cloog
53162 @cd $(HOST_SUBDIR); [ -d stageb2g0-cloog ] || \
53163 mkdir stageb2g0-cloog; \
53164 mv stageb2g0-cloog cloog ; \
53165 mv stage1-cloog prev-cloog || test -f stage1-lean
53166@endif cloog
b916272a
ILT
53167@if gold
53168 @cd $(HOST_SUBDIR); [ -d stageb2g0-gold ] || \
53169 mkdir stageb2g0-gold; \
53170 mv stageb2g0-gold gold ; \
53171 mv stage1-gold prev-gold || test -f stage1-lean
53172@endif gold
2b41ef78
AO
53173@if intl
53174 @cd $(HOST_SUBDIR); [ -d stageb2g0-intl ] || \
53175 mkdir stageb2g0-intl; \
53176 mv stageb2g0-intl intl ; \
53177 mv stage1-intl prev-intl || test -f stage1-lean
53178@endif intl
53179@if ld
53180 @cd $(HOST_SUBDIR); [ -d stageb2g0-ld ] || \
53181 mkdir stageb2g0-ld; \
53182 mv stageb2g0-ld ld ; \
53183 mv stage1-ld prev-ld || test -f stage1-lean
53184@endif ld
53185@if libcpp
53186 @cd $(HOST_SUBDIR); [ -d stageb2g0-libcpp ] || \
53187 mkdir stageb2g0-libcpp; \
53188 mv stageb2g0-libcpp libcpp ; \
53189 mv stage1-libcpp prev-libcpp || test -f stage1-lean
53190@endif libcpp
53191@if libdecnumber
53192 @cd $(HOST_SUBDIR); [ -d stageb2g0-libdecnumber ] || \
53193 mkdir stageb2g0-libdecnumber; \
53194 mv stageb2g0-libdecnumber libdecnumber ; \
53195 mv stage1-libdecnumber prev-libdecnumber || test -f stage1-lean
53196@endif libdecnumber
53197@if libiberty
53198 @cd $(HOST_SUBDIR); [ -d stageb2g0-libiberty ] || \
53199 mkdir stageb2g0-libiberty; \
53200 mv stageb2g0-libiberty libiberty ; \
53201 mv stage1-libiberty prev-libiberty || test -f stage1-lean
53202@endif libiberty
53203@if zlib
53204 @cd $(HOST_SUBDIR); [ -d stageb2g0-zlib ] || \
53205 mkdir stageb2g0-zlib; \
53206 mv stageb2g0-zlib zlib ; \
53207 mv stage1-zlib prev-zlib || test -f stage1-lean
53208@endif zlib
53209 @[ -d stageb2g0-$(TARGET_SUBDIR) ] || \
53210 mkdir stageb2g0-$(TARGET_SUBDIR); \
53211 mv stageb2g0-$(TARGET_SUBDIR) $(TARGET_SUBDIR) ; \
53212 mv stage1-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage1-lean
53213
53214stageb2g0-end::
53215@if bfd
53216 @if test -d $(HOST_SUBDIR)/bfd ; then \
53217 cd $(HOST_SUBDIR); mv bfd stageb2g0-bfd ; \
53218 mv prev-bfd stage1-bfd ; : ; \
53219 fi
53220@endif bfd
53221@if opcodes
53222 @if test -d $(HOST_SUBDIR)/opcodes ; then \
53223 cd $(HOST_SUBDIR); mv opcodes stageb2g0-opcodes ; \
53224 mv prev-opcodes stage1-opcodes ; : ; \
53225 fi
53226@endif opcodes
53227@if binutils
53228 @if test -d $(HOST_SUBDIR)/binutils ; then \
53229 cd $(HOST_SUBDIR); mv binutils stageb2g0-binutils ; \
53230 mv prev-binutils stage1-binutils ; : ; \
53231 fi
53232@endif binutils
53233@if gas
53234 @if test -d $(HOST_SUBDIR)/gas ; then \
53235 cd $(HOST_SUBDIR); mv gas stageb2g0-gas ; \
53236 mv prev-gas stage1-gas ; : ; \
53237 fi
53238@endif gas
53239@if gcc
53240 @if test -d $(HOST_SUBDIR)/gcc ; then \
53241 cd $(HOST_SUBDIR); mv gcc stageb2g0-gcc ; \
53242 mv prev-gcc stage1-gcc ; : ; \
53243 fi
53244@endif gcc
53245@if gmp
53246 @if test -d $(HOST_SUBDIR)/gmp ; then \
53247 cd $(HOST_SUBDIR); mv gmp stageb2g0-gmp ; \
53248 mv prev-gmp stage1-gmp ; : ; \
53249 fi
53250@endif gmp
53251@if mpfr
53252 @if test -d $(HOST_SUBDIR)/mpfr ; then \
53253 cd $(HOST_SUBDIR); mv mpfr stageb2g0-mpfr ; \
53254 mv prev-mpfr stage1-mpfr ; : ; \
53255 fi
53256@endif mpfr
311b6756
JM
53257@if ppl
53258 @if test -d $(HOST_SUBDIR)/ppl ; then \
53259 cd $(HOST_SUBDIR); mv ppl stageb2g0-ppl ; \
53260 mv prev-ppl stage1-ppl ; : ; \
53261 fi
53262@endif ppl
53263@if cloog
53264 @if test -d $(HOST_SUBDIR)/cloog ; then \
53265 cd $(HOST_SUBDIR); mv cloog stageb2g0-cloog ; \
53266 mv prev-cloog stage1-cloog ; : ; \
53267 fi
53268@endif cloog
b916272a
ILT
53269@if gold
53270 @if test -d $(HOST_SUBDIR)/gold ; then \
53271 cd $(HOST_SUBDIR); mv gold stageb2g0-gold ; \
53272 mv prev-gold stage1-gold ; : ; \
53273 fi
53274@endif gold
2b41ef78
AO
53275@if intl
53276 @if test -d $(HOST_SUBDIR)/intl ; then \
53277 cd $(HOST_SUBDIR); mv intl stageb2g0-intl ; \
53278 mv prev-intl stage1-intl ; : ; \
53279 fi
53280@endif intl
53281@if ld
53282 @if test -d $(HOST_SUBDIR)/ld ; then \
53283 cd $(HOST_SUBDIR); mv ld stageb2g0-ld ; \
53284 mv prev-ld stage1-ld ; : ; \
53285 fi
53286@endif ld
53287@if libcpp
53288 @if test -d $(HOST_SUBDIR)/libcpp ; then \
53289 cd $(HOST_SUBDIR); mv libcpp stageb2g0-libcpp ; \
53290 mv prev-libcpp stage1-libcpp ; : ; \
53291 fi
53292@endif libcpp
53293@if libdecnumber
53294 @if test -d $(HOST_SUBDIR)/libdecnumber ; then \
53295 cd $(HOST_SUBDIR); mv libdecnumber stageb2g0-libdecnumber ; \
53296 mv prev-libdecnumber stage1-libdecnumber ; : ; \
53297 fi
53298@endif libdecnumber
53299@if libiberty
53300 @if test -d $(HOST_SUBDIR)/libiberty ; then \
53301 cd $(HOST_SUBDIR); mv libiberty stageb2g0-libiberty ; \
53302 mv prev-libiberty stage1-libiberty ; : ; \
53303 fi
53304@endif libiberty
53305@if zlib
53306 @if test -d $(HOST_SUBDIR)/zlib ; then \
53307 cd $(HOST_SUBDIR); mv zlib stageb2g0-zlib ; \
53308 mv prev-zlib stage1-zlib ; : ; \
53309 fi
53310@endif zlib
53311 @if test -d $(TARGET_SUBDIR) ; then \
53312 mv $(TARGET_SUBDIR) stageb2g0-$(TARGET_SUBDIR) ; \
53313 mv prev-$(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR) ; : ; \
53314 fi
53315 rm -f stage_current
53316
53317# Bubble a bug fix through all the stages up to stage b2g0. They are
53318# remade, but not reconfigured. The next stage (if any) will not be
5edf1524 53319# reconfigured either.
2b41ef78
AO
53320.PHONY: stageb2g0-bubble
53321stageb2g0-bubble:: stage1-bubble
53322 @r=`${PWD_COMMAND}`; export r; \
53323 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53324 if test -f stageb2g0-lean || test -f stage1-lean ; then \
53325 echo Skipping rebuild of stageb2g0 ; \
53326 else \
53327 $(MAKE) stageb2g0-start; \
53328 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stageb2g0; \
53329 fi
53330
53331.PHONY: all-stageb2g0 clean-stageb2g0
53332do-clean: clean-stageb2g0
53333
53334# FIXME: Will not need to be conditional when toplevel bootstrap is the
53335# only possibility, but now it conflicts with no-bootstrap rules
53336@if gcc-bootstrap
53337
53338
53339
53340.PHONY: bootstrap2-debug bootstrap2-debug-lean
53341bootstrap2-debug:
53342 echo stageb2g0 > stage_final
53343 @r=`${PWD_COMMAND}`; export r; \
53344 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53345 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stageb2g0-bubble
53346 @: $(MAKE); $(unstage)
53347 @r=`${PWD_COMMAND}`; export r; \
53348 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53349 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
53350
53351bootstrap2-debug-lean:
53352 echo stageb2g0 > stage_final
53353 @r=`${PWD_COMMAND}`; export r; \
53354 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53355 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stageb2g0-bubble
53356 @: $(MAKE); $(unstage)
53357 @r=`${PWD_COMMAND}`; export r; \
53358 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53359 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
53360
53361
53362# Rules to wipe a stage and all the following ones, also used for cleanstrap
53363distclean-stage1:: distclean-stageb2g0
53364.PHONY: distclean-stageb2g0
53365distclean-stageb2g0::
53366 @: $(MAKE); $(stage)
53367 @test "`cat stage_last`" != stageb2g0 || rm -f stage_last
53368 rm -rf stageb2g0-*
53369
53370
53371@endif gcc-bootstrap
53372
53373
6a19fd82
PB
53374.PHONY: stage3-start stage3-end
53375
53376stage3-start::
15b527ca 53377 @: $(MAKE); $(stage); \
6a19fd82 53378 echo stage3 > stage_current ; \
7fc2ca22 53379 echo stage3 > stage_last; \
15b527ca 53380 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
6a19fd82 53381@if bfd
7fc2ca22
PB
53382 @cd $(HOST_SUBDIR); [ -d stage3-bfd ] || \
53383 mkdir stage3-bfd; \
e3c08f94
PB
53384 mv stage3-bfd bfd ; \
53385 mv stage2-bfd prev-bfd || test -f stage2-lean
6a19fd82
PB
53386@endif bfd
53387@if opcodes
7fc2ca22
PB
53388 @cd $(HOST_SUBDIR); [ -d stage3-opcodes ] || \
53389 mkdir stage3-opcodes; \
e3c08f94
PB
53390 mv stage3-opcodes opcodes ; \
53391 mv stage2-opcodes prev-opcodes || test -f stage2-lean
6a19fd82
PB
53392@endif opcodes
53393@if binutils
7fc2ca22
PB
53394 @cd $(HOST_SUBDIR); [ -d stage3-binutils ] || \
53395 mkdir stage3-binutils; \
e3c08f94
PB
53396 mv stage3-binutils binutils ; \
53397 mv stage2-binutils prev-binutils || test -f stage2-lean
6a19fd82
PB
53398@endif binutils
53399@if gas
7fc2ca22
PB
53400 @cd $(HOST_SUBDIR); [ -d stage3-gas ] || \
53401 mkdir stage3-gas; \
e3c08f94
PB
53402 mv stage3-gas gas ; \
53403 mv stage2-gas prev-gas || test -f stage2-lean
6a19fd82
PB
53404@endif gas
53405@if gcc
7fc2ca22
PB
53406 @cd $(HOST_SUBDIR); [ -d stage3-gcc ] || \
53407 mkdir stage3-gcc; \
e3c08f94
PB
53408 mv stage3-gcc gcc ; \
53409 mv stage2-gcc prev-gcc || test -f stage2-lean
6a19fd82 53410@endif gcc
42f55f77
PB
53411@if gmp
53412 @cd $(HOST_SUBDIR); [ -d stage3-gmp ] || \
53413 mkdir stage3-gmp; \
53414 mv stage3-gmp gmp ; \
53415 mv stage2-gmp prev-gmp || test -f stage2-lean
53416@endif gmp
53417@if mpfr
53418 @cd $(HOST_SUBDIR); [ -d stage3-mpfr ] || \
53419 mkdir stage3-mpfr; \
53420 mv stage3-mpfr mpfr ; \
53421 mv stage2-mpfr prev-mpfr || test -f stage2-lean
53422@endif mpfr
311b6756
JM
53423@if ppl
53424 @cd $(HOST_SUBDIR); [ -d stage3-ppl ] || \
53425 mkdir stage3-ppl; \
53426 mv stage3-ppl ppl ; \
53427 mv stage2-ppl prev-ppl || test -f stage2-lean
53428@endif ppl
53429@if cloog
53430 @cd $(HOST_SUBDIR); [ -d stage3-cloog ] || \
53431 mkdir stage3-cloog; \
53432 mv stage3-cloog cloog ; \
53433 mv stage2-cloog prev-cloog || test -f stage2-lean
53434@endif cloog
b916272a
ILT
53435@if gold
53436 @cd $(HOST_SUBDIR); [ -d stage3-gold ] || \
53437 mkdir stage3-gold; \
53438 mv stage3-gold gold ; \
53439 mv stage2-gold prev-gold || test -f stage2-lean
53440@endif gold
6a19fd82 53441@if intl
7fc2ca22
PB
53442 @cd $(HOST_SUBDIR); [ -d stage3-intl ] || \
53443 mkdir stage3-intl; \
e3c08f94
PB
53444 mv stage3-intl intl ; \
53445 mv stage2-intl prev-intl || test -f stage2-lean
6a19fd82
PB
53446@endif intl
53447@if ld
7fc2ca22
PB
53448 @cd $(HOST_SUBDIR); [ -d stage3-ld ] || \
53449 mkdir stage3-ld; \
e3c08f94
PB
53450 mv stage3-ld ld ; \
53451 mv stage2-ld prev-ld || test -f stage2-lean
6a19fd82
PB
53452@endif ld
53453@if libcpp
7fc2ca22
PB
53454 @cd $(HOST_SUBDIR); [ -d stage3-libcpp ] || \
53455 mkdir stage3-libcpp; \
e3c08f94
PB
53456 mv stage3-libcpp libcpp ; \
53457 mv stage2-libcpp prev-libcpp || test -f stage2-lean
6a19fd82 53458@endif libcpp
a7dc05b5
PB
53459@if libdecnumber
53460 @cd $(HOST_SUBDIR); [ -d stage3-libdecnumber ] || \
53461 mkdir stage3-libdecnumber; \
e3c08f94
PB
53462 mv stage3-libdecnumber libdecnumber ; \
53463 mv stage2-libdecnumber prev-libdecnumber || test -f stage2-lean
a7dc05b5 53464@endif libdecnumber
6a19fd82 53465@if libiberty
7fc2ca22
PB
53466 @cd $(HOST_SUBDIR); [ -d stage3-libiberty ] || \
53467 mkdir stage3-libiberty; \
e3c08f94
PB
53468 mv stage3-libiberty libiberty ; \
53469 mv stage2-libiberty prev-libiberty || test -f stage2-lean
6a19fd82
PB
53470@endif libiberty
53471@if zlib
7fc2ca22
PB
53472 @cd $(HOST_SUBDIR); [ -d stage3-zlib ] || \
53473 mkdir stage3-zlib; \
e3c08f94
PB
53474 mv stage3-zlib zlib ; \
53475 mv stage2-zlib prev-zlib || test -f stage2-lean
6a19fd82 53476@endif zlib
15b527ca
PB
53477 @[ -d stage3-$(TARGET_SUBDIR) ] || \
53478 mkdir stage3-$(TARGET_SUBDIR); \
e3c08f94
PB
53479 mv stage3-$(TARGET_SUBDIR) $(TARGET_SUBDIR) ; \
53480 mv stage2-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage2-lean
6a19fd82 53481
e3c08f94 53482stage3-end::
6a19fd82 53483@if bfd
e3c08f94
PB
53484 @if test -d $(HOST_SUBDIR)/bfd ; then \
53485 cd $(HOST_SUBDIR); mv bfd stage3-bfd ; \
53486 mv prev-bfd stage2-bfd ; : ; \
15b527ca 53487 fi
6a19fd82
PB
53488@endif bfd
53489@if opcodes
e3c08f94
PB
53490 @if test -d $(HOST_SUBDIR)/opcodes ; then \
53491 cd $(HOST_SUBDIR); mv opcodes stage3-opcodes ; \
53492 mv prev-opcodes stage2-opcodes ; : ; \
15b527ca 53493 fi
6a19fd82
PB
53494@endif opcodes
53495@if binutils
e3c08f94
PB
53496 @if test -d $(HOST_SUBDIR)/binutils ; then \
53497 cd $(HOST_SUBDIR); mv binutils stage3-binutils ; \
53498 mv prev-binutils stage2-binutils ; : ; \
15b527ca 53499 fi
6a19fd82
PB
53500@endif binutils
53501@if gas
e3c08f94
PB
53502 @if test -d $(HOST_SUBDIR)/gas ; then \
53503 cd $(HOST_SUBDIR); mv gas stage3-gas ; \
53504 mv prev-gas stage2-gas ; : ; \
15b527ca 53505 fi
6a19fd82
PB
53506@endif gas
53507@if gcc
e3c08f94
PB
53508 @if test -d $(HOST_SUBDIR)/gcc ; then \
53509 cd $(HOST_SUBDIR); mv gcc stage3-gcc ; \
53510 mv prev-gcc stage2-gcc ; : ; \
15b527ca 53511 fi
6a19fd82 53512@endif gcc
42f55f77
PB
53513@if gmp
53514 @if test -d $(HOST_SUBDIR)/gmp ; then \
53515 cd $(HOST_SUBDIR); mv gmp stage3-gmp ; \
53516 mv prev-gmp stage2-gmp ; : ; \
53517 fi
53518@endif gmp
53519@if mpfr
53520 @if test -d $(HOST_SUBDIR)/mpfr ; then \
53521 cd $(HOST_SUBDIR); mv mpfr stage3-mpfr ; \
53522 mv prev-mpfr stage2-mpfr ; : ; \
53523 fi
53524@endif mpfr
311b6756
JM
53525@if ppl
53526 @if test -d $(HOST_SUBDIR)/ppl ; then \
53527 cd $(HOST_SUBDIR); mv ppl stage3-ppl ; \
53528 mv prev-ppl stage2-ppl ; : ; \
53529 fi
53530@endif ppl
53531@if cloog
53532 @if test -d $(HOST_SUBDIR)/cloog ; then \
53533 cd $(HOST_SUBDIR); mv cloog stage3-cloog ; \
53534 mv prev-cloog stage2-cloog ; : ; \
53535 fi
53536@endif cloog
b916272a
ILT
53537@if gold
53538 @if test -d $(HOST_SUBDIR)/gold ; then \
53539 cd $(HOST_SUBDIR); mv gold stage3-gold ; \
53540 mv prev-gold stage2-gold ; : ; \
53541 fi
53542@endif gold
6a19fd82 53543@if intl
e3c08f94
PB
53544 @if test -d $(HOST_SUBDIR)/intl ; then \
53545 cd $(HOST_SUBDIR); mv intl stage3-intl ; \
53546 mv prev-intl stage2-intl ; : ; \
15b527ca 53547 fi
6a19fd82
PB
53548@endif intl
53549@if ld
e3c08f94
PB
53550 @if test -d $(HOST_SUBDIR)/ld ; then \
53551 cd $(HOST_SUBDIR); mv ld stage3-ld ; \
53552 mv prev-ld stage2-ld ; : ; \
15b527ca 53553 fi
6a19fd82
PB
53554@endif ld
53555@if libcpp
e3c08f94
PB
53556 @if test -d $(HOST_SUBDIR)/libcpp ; then \
53557 cd $(HOST_SUBDIR); mv libcpp stage3-libcpp ; \
53558 mv prev-libcpp stage2-libcpp ; : ; \
15b527ca 53559 fi
6a19fd82 53560@endif libcpp
a7dc05b5 53561@if libdecnumber
e3c08f94
PB
53562 @if test -d $(HOST_SUBDIR)/libdecnumber ; then \
53563 cd $(HOST_SUBDIR); mv libdecnumber stage3-libdecnumber ; \
53564 mv prev-libdecnumber stage2-libdecnumber ; : ; \
15b527ca 53565 fi
a7dc05b5 53566@endif libdecnumber
6a19fd82 53567@if libiberty
e3c08f94
PB
53568 @if test -d $(HOST_SUBDIR)/libiberty ; then \
53569 cd $(HOST_SUBDIR); mv libiberty stage3-libiberty ; \
53570 mv prev-libiberty stage2-libiberty ; : ; \
15b527ca 53571 fi
6a19fd82
PB
53572@endif libiberty
53573@if zlib
e3c08f94
PB
53574 @if test -d $(HOST_SUBDIR)/zlib ; then \
53575 cd $(HOST_SUBDIR); mv zlib stage3-zlib ; \
53576 mv prev-zlib stage2-zlib ; : ; \
15b527ca 53577 fi
6a19fd82 53578@endif zlib
15b527ca 53579 @if test -d $(TARGET_SUBDIR) ; then \
e3c08f94
PB
53580 mv $(TARGET_SUBDIR) stage3-$(TARGET_SUBDIR) ; \
53581 mv prev-$(TARGET_SUBDIR) stage2-$(TARGET_SUBDIR) ; : ; \
15b527ca 53582 fi
e3c08f94 53583 rm -f stage_current
6a19fd82 53584
d3531b73 53585# Bubble a bug fix through all the stages up to stage 3. They are
15b527ca 53586# remade, but not reconfigured. The next stage (if any) will not be
5edf1524 53587# reconfigured either.
6a19fd82
PB
53588.PHONY: stage3-bubble
53589stage3-bubble:: stage2-bubble
ecebee48
PB
53590 @r=`${PWD_COMMAND}`; export r; \
53591 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53592 if test -f stage3-lean || test -f stage2-lean ; then \
ebc58bf8
PB
53593 echo Skipping rebuild of stage3 ; \
53594 else \
168b158c 53595 $(MAKE) stage3-start; \
e3c08f94
PB
53596 if $(LEAN); then \
53597 rm -rf stage1-* ; \
53598 $(STAMP) stage1-lean ; \
53599 fi; \
168b158c 53600 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage3; \
ebc58bf8 53601 fi
7e958b2e 53602 $(MAKE) $(RECURSE_FLAGS_TO_PASS) compare
6a19fd82 53603
99df82b9 53604.PHONY: all-stage3 clean-stage3
99df82b9 53605do-clean: clean-stage3
99df82b9 53606
a8a96878
PB
53607# FIXME: Will not need to be conditional when toplevel bootstrap is the
53608# only possibility, but now it conflicts with no-bootstrap rules
53609@if gcc-bootstrap
6a19fd82 53610
a8a96878 53611compare:
ecebee48
PB
53612 @r=`${PWD_COMMAND}`; export r; \
53613 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53614 if test -f stage2-lean; then \
a8a96878
PB
53615 echo Cannot compare object files as stage 2 was deleted. ; \
53616 exit 0 ; \
53617 fi; \
15b527ca 53618 : $(MAKE); $(stage); \
a8a96878 53619 rm -f .bad_compare ; \
ec92c4d6 53620 echo Comparing stages 2 and 3 ; \
a8a96878
PB
53621 cd stage3-gcc; \
53622 files=`find . -name "*$(objext)" -print` ; \
53623 cd .. ; \
53624 for file in $${files} ; do \
53625 f1=$$r/stage2-gcc/$$file; f2=$$r/stage3-gcc/$$file; \
2b41ef78 53626 $(do-compare) > /dev/null 2>&1; \
168b158c
PB
53627 if test $$? -eq 1; then \
53628 case $$file in \
53629 ./cc*-checksum$(objext) | ./libgcc/* ) \
53630 echo warning: $$file differs ;; \
53631 *) \
53632 echo $$file differs >> .bad_compare ;; \
53633 esac ; \
53634 fi ; \
a8a96878
PB
53635 done ; \
53636 if [ -f .bad_compare ]; then \
53637 echo "Bootstrap comparison failure!"; \
53638 cat .bad_compare; \
53639 exit 1; \
53640 else \
ec92c4d6 53641 echo Comparison successful.; \
a8a96878
PB
53642 fi ; \
53643 $(STAMP) compare
e3c08f94
PB
53644 if $(LEAN); then \
53645 rm -rf stage2-*; \
53646 $(STAMP) stage2-lean; \
53647 fi
ebc58bf8 53648
6a19fd82 53649
6a19fd82 53650
e3c08f94 53651.PHONY: bootstrap bootstrap-lean
a7dc05b5
PB
53652bootstrap:
53653 echo stage3 > stage_final
53654 @r=`${PWD_COMMAND}`; export r; \
53655 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53656 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage3-bubble
15b527ca 53657 @: $(MAKE); $(unstage)
a7dc05b5
PB
53658 @r=`${PWD_COMMAND}`; export r; \
53659 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53660 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
99df82b9 53661
e3c08f94
PB
53662bootstrap-lean:
53663 echo stage3 > stage_final
53664 @r=`${PWD_COMMAND}`; export r; \
53665 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53666 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage3-bubble
53667 @: $(MAKE); $(unstage)
53668 @r=`${PWD_COMMAND}`; export r; \
53669 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53670 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
53671
6a19fd82 53672
a8a96878
PB
53673# Rules to wipe a stage and all the following ones, also used for cleanstrap
53674distclean-stage2:: distclean-stage3
53675.PHONY: distclean-stage3
53676distclean-stage3::
15b527ca 53677 @: $(MAKE); $(stage)
28826d8f 53678 @test "`cat stage_last`" != stage3 || rm -f stage_last
a8a96878 53679 rm -rf stage3-* compare
99df82b9 53680
ebc58bf8 53681
a8a96878 53682.PHONY: cleanstrap
28826d8f
PB
53683cleanstrap: do-distclean local-clean
53684 echo stage3 > stage_final
53685 @r=`${PWD_COMMAND}`; export r; \
53686 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53687 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage3-bubble
53688 @: $(MAKE); $(unstage)
53689 @r=`${PWD_COMMAND}`; export r; \
53690 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53691 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
6a19fd82
PB
53692
53693@endif gcc-bootstrap
53694
53695
2b41ef78
AO
53696.PHONY: stageb3g2-start stageb3g2-end
53697
53698stageb3g2-start::
53699 @: $(MAKE); $(stage); \
53700 echo stageb3g2 > stage_current ; \
53701 echo stageb3g2 > stage_last; \
53702 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
53703@if bfd
53704 @cd $(HOST_SUBDIR); [ -d stageb3g2-bfd ] || \
53705 mkdir stageb3g2-bfd; \
53706 mv stageb3g2-bfd bfd ; \
53707 mv stageb2g0-bfd prev-bfd || test -f stageb2g0-lean
53708@endif bfd
53709@if opcodes
53710 @cd $(HOST_SUBDIR); [ -d stageb3g2-opcodes ] || \
53711 mkdir stageb3g2-opcodes; \
53712 mv stageb3g2-opcodes opcodes ; \
53713 mv stageb2g0-opcodes prev-opcodes || test -f stageb2g0-lean
53714@endif opcodes
53715@if binutils
53716 @cd $(HOST_SUBDIR); [ -d stageb3g2-binutils ] || \
53717 mkdir stageb3g2-binutils; \
53718 mv stageb3g2-binutils binutils ; \
53719 mv stageb2g0-binutils prev-binutils || test -f stageb2g0-lean
53720@endif binutils
53721@if gas
53722 @cd $(HOST_SUBDIR); [ -d stageb3g2-gas ] || \
53723 mkdir stageb3g2-gas; \
53724 mv stageb3g2-gas gas ; \
53725 mv stageb2g0-gas prev-gas || test -f stageb2g0-lean
53726@endif gas
53727@if gcc
53728 @cd $(HOST_SUBDIR); [ -d stageb3g2-gcc ] || \
53729 mkdir stageb3g2-gcc; \
53730 mv stageb3g2-gcc gcc ; \
53731 mv stageb2g0-gcc prev-gcc || test -f stageb2g0-lean
53732@endif gcc
53733@if gmp
53734 @cd $(HOST_SUBDIR); [ -d stageb3g2-gmp ] || \
53735 mkdir stageb3g2-gmp; \
53736 mv stageb3g2-gmp gmp ; \
53737 mv stageb2g0-gmp prev-gmp || test -f stageb2g0-lean
53738@endif gmp
53739@if mpfr
53740 @cd $(HOST_SUBDIR); [ -d stageb3g2-mpfr ] || \
53741 mkdir stageb3g2-mpfr; \
53742 mv stageb3g2-mpfr mpfr ; \
53743 mv stageb2g0-mpfr prev-mpfr || test -f stageb2g0-lean
53744@endif mpfr
311b6756
JM
53745@if ppl
53746 @cd $(HOST_SUBDIR); [ -d stageb3g2-ppl ] || \
53747 mkdir stageb3g2-ppl; \
53748 mv stageb3g2-ppl ppl ; \
53749 mv stageb2g0-ppl prev-ppl || test -f stageb2g0-lean
53750@endif ppl
53751@if cloog
53752 @cd $(HOST_SUBDIR); [ -d stageb3g2-cloog ] || \
53753 mkdir stageb3g2-cloog; \
53754 mv stageb3g2-cloog cloog ; \
53755 mv stageb2g0-cloog prev-cloog || test -f stageb2g0-lean
53756@endif cloog
b916272a
ILT
53757@if gold
53758 @cd $(HOST_SUBDIR); [ -d stageb3g2-gold ] || \
53759 mkdir stageb3g2-gold; \
53760 mv stageb3g2-gold gold ; \
53761 mv stageb2g0-gold prev-gold || test -f stageb2g0-lean
53762@endif gold
2b41ef78
AO
53763@if intl
53764 @cd $(HOST_SUBDIR); [ -d stageb3g2-intl ] || \
53765 mkdir stageb3g2-intl; \
53766 mv stageb3g2-intl intl ; \
53767 mv stageb2g0-intl prev-intl || test -f stageb2g0-lean
53768@endif intl
53769@if ld
53770 @cd $(HOST_SUBDIR); [ -d stageb3g2-ld ] || \
53771 mkdir stageb3g2-ld; \
53772 mv stageb3g2-ld ld ; \
53773 mv stageb2g0-ld prev-ld || test -f stageb2g0-lean
53774@endif ld
53775@if libcpp
53776 @cd $(HOST_SUBDIR); [ -d stageb3g2-libcpp ] || \
53777 mkdir stageb3g2-libcpp; \
53778 mv stageb3g2-libcpp libcpp ; \
53779 mv stageb2g0-libcpp prev-libcpp || test -f stageb2g0-lean
53780@endif libcpp
53781@if libdecnumber
53782 @cd $(HOST_SUBDIR); [ -d stageb3g2-libdecnumber ] || \
53783 mkdir stageb3g2-libdecnumber; \
53784 mv stageb3g2-libdecnumber libdecnumber ; \
53785 mv stageb2g0-libdecnumber prev-libdecnumber || test -f stageb2g0-lean
53786@endif libdecnumber
53787@if libiberty
53788 @cd $(HOST_SUBDIR); [ -d stageb3g2-libiberty ] || \
53789 mkdir stageb3g2-libiberty; \
53790 mv stageb3g2-libiberty libiberty ; \
53791 mv stageb2g0-libiberty prev-libiberty || test -f stageb2g0-lean
53792@endif libiberty
53793@if zlib
53794 @cd $(HOST_SUBDIR); [ -d stageb3g2-zlib ] || \
53795 mkdir stageb3g2-zlib; \
53796 mv stageb3g2-zlib zlib ; \
53797 mv stageb2g0-zlib prev-zlib || test -f stageb2g0-lean
53798@endif zlib
53799 @[ -d stageb3g2-$(TARGET_SUBDIR) ] || \
53800 mkdir stageb3g2-$(TARGET_SUBDIR); \
53801 mv stageb3g2-$(TARGET_SUBDIR) $(TARGET_SUBDIR) ; \
53802 mv stageb2g0-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stageb2g0-lean
53803
53804stageb3g2-end::
53805@if bfd
53806 @if test -d $(HOST_SUBDIR)/bfd ; then \
53807 cd $(HOST_SUBDIR); mv bfd stageb3g2-bfd ; \
53808 mv prev-bfd stageb2g0-bfd ; : ; \
53809 fi
53810@endif bfd
53811@if opcodes
53812 @if test -d $(HOST_SUBDIR)/opcodes ; then \
53813 cd $(HOST_SUBDIR); mv opcodes stageb3g2-opcodes ; \
53814 mv prev-opcodes stageb2g0-opcodes ; : ; \
53815 fi
53816@endif opcodes
53817@if binutils
53818 @if test -d $(HOST_SUBDIR)/binutils ; then \
53819 cd $(HOST_SUBDIR); mv binutils stageb3g2-binutils ; \
53820 mv prev-binutils stageb2g0-binutils ; : ; \
53821 fi
53822@endif binutils
53823@if gas
53824 @if test -d $(HOST_SUBDIR)/gas ; then \
53825 cd $(HOST_SUBDIR); mv gas stageb3g2-gas ; \
53826 mv prev-gas stageb2g0-gas ; : ; \
53827 fi
53828@endif gas
53829@if gcc
53830 @if test -d $(HOST_SUBDIR)/gcc ; then \
53831 cd $(HOST_SUBDIR); mv gcc stageb3g2-gcc ; \
53832 mv prev-gcc stageb2g0-gcc ; : ; \
53833 fi
53834@endif gcc
53835@if gmp
53836 @if test -d $(HOST_SUBDIR)/gmp ; then \
53837 cd $(HOST_SUBDIR); mv gmp stageb3g2-gmp ; \
53838 mv prev-gmp stageb2g0-gmp ; : ; \
53839 fi
53840@endif gmp
53841@if mpfr
53842 @if test -d $(HOST_SUBDIR)/mpfr ; then \
53843 cd $(HOST_SUBDIR); mv mpfr stageb3g2-mpfr ; \
53844 mv prev-mpfr stageb2g0-mpfr ; : ; \
53845 fi
53846@endif mpfr
311b6756
JM
53847@if ppl
53848 @if test -d $(HOST_SUBDIR)/ppl ; then \
53849 cd $(HOST_SUBDIR); mv ppl stageb3g2-ppl ; \
53850 mv prev-ppl stageb2g0-ppl ; : ; \
53851 fi
53852@endif ppl
53853@if cloog
53854 @if test -d $(HOST_SUBDIR)/cloog ; then \
53855 cd $(HOST_SUBDIR); mv cloog stageb3g2-cloog ; \
53856 mv prev-cloog stageb2g0-cloog ; : ; \
53857 fi
53858@endif cloog
b916272a
ILT
53859@if gold
53860 @if test -d $(HOST_SUBDIR)/gold ; then \
53861 cd $(HOST_SUBDIR); mv gold stageb3g2-gold ; \
53862 mv prev-gold stageb2g0-gold ; : ; \
53863 fi
53864@endif gold
2b41ef78
AO
53865@if intl
53866 @if test -d $(HOST_SUBDIR)/intl ; then \
53867 cd $(HOST_SUBDIR); mv intl stageb3g2-intl ; \
53868 mv prev-intl stageb2g0-intl ; : ; \
53869 fi
53870@endif intl
53871@if ld
53872 @if test -d $(HOST_SUBDIR)/ld ; then \
53873 cd $(HOST_SUBDIR); mv ld stageb3g2-ld ; \
53874 mv prev-ld stageb2g0-ld ; : ; \
53875 fi
53876@endif ld
53877@if libcpp
53878 @if test -d $(HOST_SUBDIR)/libcpp ; then \
53879 cd $(HOST_SUBDIR); mv libcpp stageb3g2-libcpp ; \
53880 mv prev-libcpp stageb2g0-libcpp ; : ; \
53881 fi
53882@endif libcpp
53883@if libdecnumber
53884 @if test -d $(HOST_SUBDIR)/libdecnumber ; then \
53885 cd $(HOST_SUBDIR); mv libdecnumber stageb3g2-libdecnumber ; \
53886 mv prev-libdecnumber stageb2g0-libdecnumber ; : ; \
53887 fi
53888@endif libdecnumber
53889@if libiberty
53890 @if test -d $(HOST_SUBDIR)/libiberty ; then \
53891 cd $(HOST_SUBDIR); mv libiberty stageb3g2-libiberty ; \
53892 mv prev-libiberty stageb2g0-libiberty ; : ; \
53893 fi
53894@endif libiberty
53895@if zlib
53896 @if test -d $(HOST_SUBDIR)/zlib ; then \
53897 cd $(HOST_SUBDIR); mv zlib stageb3g2-zlib ; \
53898 mv prev-zlib stageb2g0-zlib ; : ; \
53899 fi
53900@endif zlib
53901 @if test -d $(TARGET_SUBDIR) ; then \
53902 mv $(TARGET_SUBDIR) stageb3g2-$(TARGET_SUBDIR) ; \
53903 mv prev-$(TARGET_SUBDIR) stageb2g0-$(TARGET_SUBDIR) ; : ; \
53904 fi
53905 rm -f stage_current
53906
53907# Bubble a bug fix through all the stages up to stage b3g2. They are
53908# remade, but not reconfigured. The next stage (if any) will not be
5edf1524 53909# reconfigured either.
2b41ef78
AO
53910.PHONY: stageb3g2-bubble
53911stageb3g2-bubble:: stageb2g0-bubble
53912 @r=`${PWD_COMMAND}`; export r; \
53913 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53914 if test -f stageb3g2-lean || test -f stageb2g0-lean ; then \
53915 echo Skipping rebuild of stageb3g2 ; \
53916 else \
53917 $(MAKE) stageb3g2-start; \
53918 if $(LEAN); then \
53919 rm -rf stage1-* ; \
53920 $(STAMP) stage1-lean ; \
53921 fi; \
53922 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stageb3g2; \
53923 fi
53924 $(MAKE) $(RECURSE_FLAGS_TO_PASS) compare-debug
53925
53926.PHONY: all-stageb3g2 clean-stageb3g2
53927do-clean: clean-stageb3g2
53928
53929# FIXME: Will not need to be conditional when toplevel bootstrap is the
53930# only possibility, but now it conflicts with no-bootstrap rules
53931@if gcc-bootstrap
53932
53933compare-debug:
53934 @r=`${PWD_COMMAND}`; export r; \
53935 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53936 if test -f stageb2g0-lean; then \
53937 echo Cannot compare object files as stage b2g0 was deleted. ; \
53938 exit 0 ; \
53939 fi; \
53940 : $(MAKE); $(stage); \
53941 rm -f .bad_compare ; \
53942 echo Comparing stages b2g0 and b3g2 ; \
53943 cd stageb3g2-gcc; \
53944 files=`find . -name "*$(objext)" -print` ; \
53945 cd .. ; \
53946 for file in $${files} ; do \
53947 f1=$$r/stageb2g0-gcc/$$file; f2=$$r/stageb3g2-gcc/$$file; \
53948 $(do-compare-debug) > /dev/null 2>&1; \
53949 if test $$? -eq 1; then \
53950 case $$file in \
53951 ./cc*-checksum$(objext) | ./libgcc/* ) \
53952 echo warning: $$file differs ;; \
53953 *) \
53954 echo $$file differs >> .bad_compare ;; \
53955 esac ; \
53956 fi ; \
53957 done ; \
53958 if [ -f .bad_compare ]; then \
53959 echo "Bootstrap comparison failure!"; \
53960 cat .bad_compare; \
53961 exit 1; \
53962 else \
53963 echo Comparison successful.; \
53964 fi ; \
53965 $(STAMP) compare-debug
53966 if $(LEAN); then \
53967 rm -rf stageb2g0-*; \
53968 $(STAMP) stageb2g0-lean; \
53969 fi
53970
53971
53972
53973.PHONY: bootstrap-debug bootstrap-debug-lean
53974bootstrap-debug:
53975 echo stageb3g2 > stage_final
53976 @r=`${PWD_COMMAND}`; export r; \
53977 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53978 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stageb3g2-bubble
53979 @: $(MAKE); $(unstage)
53980 @r=`${PWD_COMMAND}`; export r; \
53981 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53982 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
53983
53984bootstrap-debug-lean:
53985 echo stageb3g2 > stage_final
53986 @r=`${PWD_COMMAND}`; export r; \
53987 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53988 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stageb3g2-bubble
53989 @: $(MAKE); $(unstage)
53990 @r=`${PWD_COMMAND}`; export r; \
53991 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53992 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
53993
53994
53995# Rules to wipe a stage and all the following ones, also used for cleanstrap
53996distclean-stageb2g0:: distclean-stageb3g2
53997.PHONY: distclean-stageb3g2
53998distclean-stageb3g2::
53999 @: $(MAKE); $(stage)
54000 @test "`cat stage_last`" != stageb3g2 || rm -f stage_last
54001 rm -rf stageb3g2-* compare-debug
54002
54003
54004.PHONY: cleanstrap-debug
54005cleanstrap-debug: do-distclean local-clean
54006 echo stageb3g2 > stage_final
54007 @r=`${PWD_COMMAND}`; export r; \
54008 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
54009 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stageb3g2-bubble
54010 @: $(MAKE); $(unstage)
54011 @r=`${PWD_COMMAND}`; export r; \
54012 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
54013 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
54014
54015@endif gcc-bootstrap
54016
54017
6a19fd82
PB
54018.PHONY: stage4-start stage4-end
54019
54020stage4-start::
15b527ca 54021 @: $(MAKE); $(stage); \
6a19fd82 54022 echo stage4 > stage_current ; \
7fc2ca22 54023 echo stage4 > stage_last; \
15b527ca 54024 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
6a19fd82 54025@if bfd
7fc2ca22
PB
54026 @cd $(HOST_SUBDIR); [ -d stage4-bfd ] || \
54027 mkdir stage4-bfd; \
e3c08f94
PB
54028 mv stage4-bfd bfd ; \
54029 mv stage3-bfd prev-bfd || test -f stage3-lean
6a19fd82
PB
54030@endif bfd
54031@if opcodes
7fc2ca22
PB
54032 @cd $(HOST_SUBDIR); [ -d stage4-opcodes ] || \
54033 mkdir stage4-opcodes; \
e3c08f94
PB
54034 mv stage4-opcodes opcodes ; \
54035 mv stage3-opcodes prev-opcodes || test -f stage3-lean
6a19fd82
PB
54036@endif opcodes
54037@if binutils
7fc2ca22
PB
54038 @cd $(HOST_SUBDIR); [ -d stage4-binutils ] || \
54039 mkdir stage4-binutils; \
e3c08f94
PB
54040 mv stage4-binutils binutils ; \
54041 mv stage3-binutils prev-binutils || test -f stage3-lean
6a19fd82
PB
54042@endif binutils
54043@if gas
7fc2ca22
PB
54044 @cd $(HOST_SUBDIR); [ -d stage4-gas ] || \
54045 mkdir stage4-gas; \
e3c08f94
PB
54046 mv stage4-gas gas ; \
54047 mv stage3-gas prev-gas || test -f stage3-lean
6a19fd82
PB
54048@endif gas
54049@if gcc
7fc2ca22
PB
54050 @cd $(HOST_SUBDIR); [ -d stage4-gcc ] || \
54051 mkdir stage4-gcc; \
e3c08f94
PB
54052 mv stage4-gcc gcc ; \
54053 mv stage3-gcc prev-gcc || test -f stage3-lean
6a19fd82 54054@endif gcc
42f55f77
PB
54055@if gmp
54056 @cd $(HOST_SUBDIR); [ -d stage4-gmp ] || \
54057 mkdir stage4-gmp; \
54058 mv stage4-gmp gmp ; \
54059 mv stage3-gmp prev-gmp || test -f stage3-lean
54060@endif gmp
54061@if mpfr
54062 @cd $(HOST_SUBDIR); [ -d stage4-mpfr ] || \
54063 mkdir stage4-mpfr; \
54064 mv stage4-mpfr mpfr ; \
54065 mv stage3-mpfr prev-mpfr || test -f stage3-lean
54066@endif mpfr
311b6756
JM
54067@if ppl
54068 @cd $(HOST_SUBDIR); [ -d stage4-ppl ] || \
54069 mkdir stage4-ppl; \
54070 mv stage4-ppl ppl ; \
54071 mv stage3-ppl prev-ppl || test -f stage3-lean
54072@endif ppl
54073@if cloog
54074 @cd $(HOST_SUBDIR); [ -d stage4-cloog ] || \
54075 mkdir stage4-cloog; \
54076 mv stage4-cloog cloog ; \
54077 mv stage3-cloog prev-cloog || test -f stage3-lean
54078@endif cloog
b916272a
ILT
54079@if gold
54080 @cd $(HOST_SUBDIR); [ -d stage4-gold ] || \
54081 mkdir stage4-gold; \
54082 mv stage4-gold gold ; \
54083 mv stage3-gold prev-gold || test -f stage3-lean
54084@endif gold
6a19fd82 54085@if intl
7fc2ca22
PB
54086 @cd $(HOST_SUBDIR); [ -d stage4-intl ] || \
54087 mkdir stage4-intl; \
e3c08f94
PB
54088 mv stage4-intl intl ; \
54089 mv stage3-intl prev-intl || test -f stage3-lean
6a19fd82
PB
54090@endif intl
54091@if ld
7fc2ca22
PB
54092 @cd $(HOST_SUBDIR); [ -d stage4-ld ] || \
54093 mkdir stage4-ld; \
e3c08f94
PB
54094 mv stage4-ld ld ; \
54095 mv stage3-ld prev-ld || test -f stage3-lean
6a19fd82
PB
54096@endif ld
54097@if libcpp
7fc2ca22
PB
54098 @cd $(HOST_SUBDIR); [ -d stage4-libcpp ] || \
54099 mkdir stage4-libcpp; \
e3c08f94
PB
54100 mv stage4-libcpp libcpp ; \
54101 mv stage3-libcpp prev-libcpp || test -f stage3-lean
6a19fd82 54102@endif libcpp
a7dc05b5
PB
54103@if libdecnumber
54104 @cd $(HOST_SUBDIR); [ -d stage4-libdecnumber ] || \
54105 mkdir stage4-libdecnumber; \
e3c08f94
PB
54106 mv stage4-libdecnumber libdecnumber ; \
54107 mv stage3-libdecnumber prev-libdecnumber || test -f stage3-lean
a7dc05b5 54108@endif libdecnumber
6a19fd82 54109@if libiberty
7fc2ca22
PB
54110 @cd $(HOST_SUBDIR); [ -d stage4-libiberty ] || \
54111 mkdir stage4-libiberty; \
e3c08f94
PB
54112 mv stage4-libiberty libiberty ; \
54113 mv stage3-libiberty prev-libiberty || test -f stage3-lean
6a19fd82
PB
54114@endif libiberty
54115@if zlib
7fc2ca22
PB
54116 @cd $(HOST_SUBDIR); [ -d stage4-zlib ] || \
54117 mkdir stage4-zlib; \
e3c08f94
PB
54118 mv stage4-zlib zlib ; \
54119 mv stage3-zlib prev-zlib || test -f stage3-lean
6a19fd82 54120@endif zlib
15b527ca
PB
54121 @[ -d stage4-$(TARGET_SUBDIR) ] || \
54122 mkdir stage4-$(TARGET_SUBDIR); \
e3c08f94
PB
54123 mv stage4-$(TARGET_SUBDIR) $(TARGET_SUBDIR) ; \
54124 mv stage3-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage3-lean
6a19fd82 54125
e3c08f94 54126stage4-end::
6a19fd82 54127@if bfd
e3c08f94
PB
54128 @if test -d $(HOST_SUBDIR)/bfd ; then \
54129 cd $(HOST_SUBDIR); mv bfd stage4-bfd ; \
54130 mv prev-bfd stage3-bfd ; : ; \
15b527ca 54131 fi
6a19fd82
PB
54132@endif bfd
54133@if opcodes
e3c08f94
PB
54134 @if test -d $(HOST_SUBDIR)/opcodes ; then \
54135 cd $(HOST_SUBDIR); mv opcodes stage4-opcodes ; \
54136 mv prev-opcodes stage3-opcodes ; : ; \
15b527ca 54137 fi
6a19fd82
PB
54138@endif opcodes
54139@if binutils
e3c08f94
PB
54140 @if test -d $(HOST_SUBDIR)/binutils ; then \
54141 cd $(HOST_SUBDIR); mv binutils stage4-binutils ; \
54142 mv prev-binutils stage3-binutils ; : ; \
15b527ca 54143 fi
6a19fd82
PB
54144@endif binutils
54145@if gas
e3c08f94
PB
54146 @if test -d $(HOST_SUBDIR)/gas ; then \
54147 cd $(HOST_SUBDIR); mv gas stage4-gas ; \
54148 mv prev-gas stage3-gas ; : ; \
15b527ca 54149 fi
6a19fd82
PB
54150@endif gas
54151@if gcc
e3c08f94
PB
54152 @if test -d $(HOST_SUBDIR)/gcc ; then \
54153 cd $(HOST_SUBDIR); mv gcc stage4-gcc ; \
54154 mv prev-gcc stage3-gcc ; : ; \
15b527ca 54155 fi
6a19fd82 54156@endif gcc
42f55f77
PB
54157@if gmp
54158 @if test -d $(HOST_SUBDIR)/gmp ; then \
54159 cd $(HOST_SUBDIR); mv gmp stage4-gmp ; \
54160 mv prev-gmp stage3-gmp ; : ; \
54161 fi
54162@endif gmp
54163@if mpfr
54164 @if test -d $(HOST_SUBDIR)/mpfr ; then \
54165 cd $(HOST_SUBDIR); mv mpfr stage4-mpfr ; \
54166 mv prev-mpfr stage3-mpfr ; : ; \
54167 fi
54168@endif mpfr
311b6756
JM
54169@if ppl
54170 @if test -d $(HOST_SUBDIR)/ppl ; then \
54171 cd $(HOST_SUBDIR); mv ppl stage4-ppl ; \
54172 mv prev-ppl stage3-ppl ; : ; \
54173 fi
54174@endif ppl
54175@if cloog
54176 @if test -d $(HOST_SUBDIR)/cloog ; then \
54177 cd $(HOST_SUBDIR); mv cloog stage4-cloog ; \
54178 mv prev-cloog stage3-cloog ; : ; \
54179 fi
54180@endif cloog
b916272a
ILT
54181@if gold
54182 @if test -d $(HOST_SUBDIR)/gold ; then \
54183 cd $(HOST_SUBDIR); mv gold stage4-gold ; \
54184 mv prev-gold stage3-gold ; : ; \
54185 fi
54186@endif gold
6a19fd82 54187@if intl
e3c08f94
PB
54188 @if test -d $(HOST_SUBDIR)/intl ; then \
54189 cd $(HOST_SUBDIR); mv intl stage4-intl ; \
54190 mv prev-intl stage3-intl ; : ; \
15b527ca 54191 fi
6a19fd82
PB
54192@endif intl
54193@if ld
e3c08f94
PB
54194 @if test -d $(HOST_SUBDIR)/ld ; then \
54195 cd $(HOST_SUBDIR); mv ld stage4-ld ; \
54196 mv prev-ld stage3-ld ; : ; \
15b527ca 54197 fi
6a19fd82
PB
54198@endif ld
54199@if libcpp
e3c08f94
PB
54200 @if test -d $(HOST_SUBDIR)/libcpp ; then \
54201 cd $(HOST_SUBDIR); mv libcpp stage4-libcpp ; \
54202 mv prev-libcpp stage3-libcpp ; : ; \
15b527ca 54203 fi
6a19fd82 54204@endif libcpp
a7dc05b5 54205@if libdecnumber
e3c08f94
PB
54206 @if test -d $(HOST_SUBDIR)/libdecnumber ; then \
54207 cd $(HOST_SUBDIR); mv libdecnumber stage4-libdecnumber ; \
54208 mv prev-libdecnumber stage3-libdecnumber ; : ; \
15b527ca 54209 fi
a7dc05b5 54210@endif libdecnumber
6a19fd82 54211@if libiberty
e3c08f94
PB
54212 @if test -d $(HOST_SUBDIR)/libiberty ; then \
54213 cd $(HOST_SUBDIR); mv libiberty stage4-libiberty ; \
54214 mv prev-libiberty stage3-libiberty ; : ; \
15b527ca 54215 fi
6a19fd82
PB
54216@endif libiberty
54217@if zlib
e3c08f94
PB
54218 @if test -d $(HOST_SUBDIR)/zlib ; then \
54219 cd $(HOST_SUBDIR); mv zlib stage4-zlib ; \
54220 mv prev-zlib stage3-zlib ; : ; \
15b527ca 54221 fi
6a19fd82 54222@endif zlib
15b527ca 54223 @if test -d $(TARGET_SUBDIR) ; then \
e3c08f94
PB
54224 mv $(TARGET_SUBDIR) stage4-$(TARGET_SUBDIR) ; \
54225 mv prev-$(TARGET_SUBDIR) stage3-$(TARGET_SUBDIR) ; : ; \
15b527ca 54226 fi
e3c08f94 54227 rm -f stage_current
6a19fd82 54228
d3531b73 54229# Bubble a bug fix through all the stages up to stage 4. They are
15b527ca 54230# remade, but not reconfigured. The next stage (if any) will not be
5edf1524 54231# reconfigured either.
6a19fd82
PB
54232.PHONY: stage4-bubble
54233stage4-bubble:: stage3-bubble
ecebee48
PB
54234 @r=`${PWD_COMMAND}`; export r; \
54235 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
54236 if test -f stage4-lean || test -f stage3-lean ; then \
ebc58bf8
PB
54237 echo Skipping rebuild of stage4 ; \
54238 else \
168b158c 54239 $(MAKE) stage4-start; \
e3c08f94
PB
54240 if $(LEAN); then \
54241 rm -rf stage2-* ; \
54242 $(STAMP) stage2-lean ; \
54243 fi; \
168b158c 54244 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage4; \
ebc58bf8 54245 fi
7e958b2e 54246 $(MAKE) $(RECURSE_FLAGS_TO_PASS) compare3
6a19fd82 54247
99df82b9 54248.PHONY: all-stage4 clean-stage4
99df82b9 54249do-clean: clean-stage4
99df82b9 54250
a8a96878
PB
54251# FIXME: Will not need to be conditional when toplevel bootstrap is the
54252# only possibility, but now it conflicts with no-bootstrap rules
54253@if gcc-bootstrap
6a19fd82 54254
a8a96878 54255compare3:
ecebee48
PB
54256 @r=`${PWD_COMMAND}`; export r; \
54257 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
54258 if test -f stage3-lean; then \
a8a96878
PB
54259 echo Cannot compare object files as stage 3 was deleted. ; \
54260 exit 0 ; \
54261 fi; \
15b527ca 54262 : $(MAKE); $(stage); \
a8a96878 54263 rm -f .bad_compare ; \
ec92c4d6 54264 echo Comparing stages 3 and 4 ; \
a8a96878
PB
54265 cd stage4-gcc; \
54266 files=`find . -name "*$(objext)" -print` ; \
54267 cd .. ; \
54268 for file in $${files} ; do \
54269 f1=$$r/stage3-gcc/$$file; f2=$$r/stage4-gcc/$$file; \
2b41ef78 54270 $(do-compare3) > /dev/null 2>&1; \
168b158c
PB
54271 if test $$? -eq 1; then \
54272 case $$file in \
54273 ./cc*-checksum$(objext) | ./libgcc/* ) \
54274 echo warning: $$file differs ;; \
54275 *) \
54276 echo $$file differs >> .bad_compare ;; \
54277 esac ; \
54278 fi ; \
a8a96878
PB
54279 done ; \
54280 if [ -f .bad_compare ]; then \
54281 echo "Bootstrap comparison failure!"; \
54282 cat .bad_compare; \
54283 exit 1; \
54284 else \
ec92c4d6 54285 echo Comparison successful.; \
a8a96878
PB
54286 fi ; \
54287 $(STAMP) compare3
e3c08f94
PB
54288 if $(LEAN); then \
54289 rm -rf stage3-*; \
54290 $(STAMP) stage3-lean; \
54291 fi
ebc58bf8 54292
6a19fd82 54293
6a19fd82 54294
e3c08f94 54295.PHONY: bootstrap4 bootstrap4-lean
a7dc05b5
PB
54296bootstrap4:
54297 echo stage4 > stage_final
54298 @r=`${PWD_COMMAND}`; export r; \
54299 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
54300 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage4-bubble
15b527ca 54301 @: $(MAKE); $(unstage)
a7dc05b5
PB
54302 @r=`${PWD_COMMAND}`; export r; \
54303 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
54304 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
99df82b9 54305
e3c08f94
PB
54306bootstrap4-lean:
54307 echo stage4 > stage_final
54308 @r=`${PWD_COMMAND}`; export r; \
54309 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
54310 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage4-bubble
54311 @: $(MAKE); $(unstage)
54312 @r=`${PWD_COMMAND}`; export r; \
54313 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
54314 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
54315
6a19fd82 54316
a8a96878
PB
54317# Rules to wipe a stage and all the following ones, also used for cleanstrap
54318distclean-stage3:: distclean-stage4
54319.PHONY: distclean-stage4
54320distclean-stage4::
15b527ca 54321 @: $(MAKE); $(stage)
28826d8f 54322 @test "`cat stage_last`" != stage4 || rm -f stage_last
a8a96878 54323 rm -rf stage4-* compare3
99df82b9 54324
ebc58bf8 54325
a8a96878 54326@endif gcc-bootstrap
6a19fd82
PB
54327
54328
54329.PHONY: stageprofile-start stageprofile-end
54330
54331stageprofile-start::
15b527ca 54332 @: $(MAKE); $(stage); \
6a19fd82 54333 echo stageprofile > stage_current ; \
7fc2ca22 54334 echo stageprofile > stage_last; \
15b527ca 54335 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
6a19fd82 54336@if bfd
7fc2ca22
PB
54337 @cd $(HOST_SUBDIR); [ -d stageprofile-bfd ] || \
54338 mkdir stageprofile-bfd; \
e3c08f94
PB
54339 mv stageprofile-bfd bfd ; \
54340 mv stage1-bfd prev-bfd || test -f stage1-lean
6a19fd82
PB
54341@endif bfd
54342@if opcodes
7fc2ca22
PB
54343 @cd $(HOST_SUBDIR); [ -d stageprofile-opcodes ] || \
54344 mkdir stageprofile-opcodes; \
e3c08f94
PB
54345 mv stageprofile-opcodes opcodes ; \
54346 mv stage1-opcodes prev-opcodes || test -f stage1-lean
6a19fd82
PB
54347@endif opcodes
54348@if binutils
7fc2ca22
PB
54349 @cd $(HOST_SUBDIR); [ -d stageprofile-binutils ] || \
54350 mkdir stageprofile-binutils; \
e3c08f94
PB
54351 mv stageprofile-binutils binutils ; \
54352 mv stage1-binutils prev-binutils || test -f stage1-lean
6a19fd82
PB
54353@endif binutils
54354@if gas
7fc2ca22
PB
54355 @cd $(HOST_SUBDIR); [ -d stageprofile-gas ] || \
54356 mkdir stageprofile-gas; \
e3c08f94
PB
54357 mv stageprofile-gas gas ; \
54358 mv stage1-gas prev-gas || test -f stage1-lean
6a19fd82
PB
54359@endif gas
54360@if gcc
7fc2ca22
PB
54361 @cd $(HOST_SUBDIR); [ -d stageprofile-gcc ] || \
54362 mkdir stageprofile-gcc; \
e3c08f94
PB
54363 mv stageprofile-gcc gcc ; \
54364 mv stage1-gcc prev-gcc || test -f stage1-lean
6a19fd82 54365@endif gcc
42f55f77
PB
54366@if gmp
54367 @cd $(HOST_SUBDIR); [ -d stageprofile-gmp ] || \
54368 mkdir stageprofile-gmp; \
54369 mv stageprofile-gmp gmp ; \
54370 mv stage1-gmp prev-gmp || test -f stage1-lean
54371@endif gmp
54372@if mpfr
54373 @cd $(HOST_SUBDIR); [ -d stageprofile-mpfr ] || \
54374 mkdir stageprofile-mpfr; \
54375 mv stageprofile-mpfr mpfr ; \
54376 mv stage1-mpfr prev-mpfr || test -f stage1-lean
54377@endif mpfr
311b6756
JM
54378@if ppl
54379 @cd $(HOST_SUBDIR); [ -d stageprofile-ppl ] || \
54380 mkdir stageprofile-ppl; \
54381 mv stageprofile-ppl ppl ; \
54382 mv stage1-ppl prev-ppl || test -f stage1-lean
54383@endif ppl
54384@if cloog
54385 @cd $(HOST_SUBDIR); [ -d stageprofile-cloog ] || \
54386 mkdir stageprofile-cloog; \
54387 mv stageprofile-cloog cloog ; \
54388 mv stage1-cloog prev-cloog || test -f stage1-lean
54389@endif cloog
b916272a
ILT
54390@if gold
54391 @cd $(HOST_SUBDIR); [ -d stageprofile-gold ] || \
54392 mkdir stageprofile-gold; \
54393 mv stageprofile-gold gold ; \
54394 mv stage1-gold prev-gold || test -f stage1-lean
54395@endif gold
6a19fd82 54396@if intl
7fc2ca22
PB
54397 @cd $(HOST_SUBDIR); [ -d stageprofile-intl ] || \
54398 mkdir stageprofile-intl; \
e3c08f94
PB
54399 mv stageprofile-intl intl ; \
54400 mv stage1-intl prev-intl || test -f stage1-lean
6a19fd82
PB
54401@endif intl
54402@if ld
7fc2ca22
PB
54403 @cd $(HOST_SUBDIR); [ -d stageprofile-ld ] || \
54404 mkdir stageprofile-ld; \
e3c08f94
PB
54405 mv stageprofile-ld ld ; \
54406 mv stage1-ld prev-ld || test -f stage1-lean
6a19fd82
PB
54407@endif ld
54408@if libcpp
7fc2ca22
PB
54409 @cd $(HOST_SUBDIR); [ -d stageprofile-libcpp ] || \
54410 mkdir stageprofile-libcpp; \
e3c08f94
PB
54411 mv stageprofile-libcpp libcpp ; \
54412 mv stage1-libcpp prev-libcpp || test -f stage1-lean
6a19fd82 54413@endif libcpp
a7dc05b5
PB
54414@if libdecnumber
54415 @cd $(HOST_SUBDIR); [ -d stageprofile-libdecnumber ] || \
54416 mkdir stageprofile-libdecnumber; \
e3c08f94
PB
54417 mv stageprofile-libdecnumber libdecnumber ; \
54418 mv stage1-libdecnumber prev-libdecnumber || test -f stage1-lean
a7dc05b5 54419@endif libdecnumber
6a19fd82 54420@if libiberty
7fc2ca22
PB
54421 @cd $(HOST_SUBDIR); [ -d stageprofile-libiberty ] || \
54422 mkdir stageprofile-libiberty; \
e3c08f94
PB
54423 mv stageprofile-libiberty libiberty ; \
54424 mv stage1-libiberty prev-libiberty || test -f stage1-lean
6a19fd82
PB
54425@endif libiberty
54426@if zlib
a8a96878
PB
54427 @cd $(HOST_SUBDIR); [ -d stageprofile-zlib ] || \
54428 mkdir stageprofile-zlib; \
e3c08f94
PB
54429 mv stageprofile-zlib zlib ; \
54430 mv stage1-zlib prev-zlib || test -f stage1-lean
a8a96878 54431@endif zlib
15b527ca
PB
54432 @[ -d stageprofile-$(TARGET_SUBDIR) ] || \
54433 mkdir stageprofile-$(TARGET_SUBDIR); \
e3c08f94
PB
54434 mv stageprofile-$(TARGET_SUBDIR) $(TARGET_SUBDIR) ; \
54435 mv stage1-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage1-lean
99df82b9 54436
e3c08f94 54437stageprofile-end::
a8a96878 54438@if bfd
e3c08f94
PB
54439 @if test -d $(HOST_SUBDIR)/bfd ; then \
54440 cd $(HOST_SUBDIR); mv bfd stageprofile-bfd ; \
54441 mv prev-bfd stage1-bfd ; : ; \
15b527ca 54442 fi
a8a96878
PB
54443@endif bfd
54444@if opcodes
e3c08f94
PB
54445 @if test -d $(HOST_SUBDIR)/opcodes ; then \
54446 cd $(HOST_SUBDIR); mv opcodes stageprofile-opcodes ; \
54447 mv prev-opcodes stage1-opcodes ; : ; \
15b527ca 54448 fi
a8a96878
PB
54449@endif opcodes
54450@if binutils
e3c08f94
PB
54451 @if test -d $(HOST_SUBDIR)/binutils ; then \
54452 cd $(HOST_SUBDIR); mv binutils stageprofile-binutils ; \
54453 mv prev-binutils stage1-binutils ; : ; \
15b527ca 54454 fi
a8a96878
PB
54455@endif binutils
54456@if gas
e3c08f94
PB
54457 @if test -d $(HOST_SUBDIR)/gas ; then \
54458 cd $(HOST_SUBDIR); mv gas stageprofile-gas ; \
54459 mv prev-gas stage1-gas ; : ; \
15b527ca 54460 fi
a8a96878
PB
54461@endif gas
54462@if gcc
e3c08f94
PB
54463 @if test -d $(HOST_SUBDIR)/gcc ; then \
54464 cd $(HOST_SUBDIR); mv gcc stageprofile-gcc ; \
54465 mv prev-gcc stage1-gcc ; : ; \
15b527ca 54466 fi
a8a96878 54467@endif gcc
42f55f77
PB
54468@if gmp
54469 @if test -d $(HOST_SUBDIR)/gmp ; then \
54470 cd $(HOST_SUBDIR); mv gmp stageprofile-gmp ; \
54471 mv prev-gmp stage1-gmp ; : ; \
54472 fi
54473@endif gmp
54474@if mpfr
54475 @if test -d $(HOST_SUBDIR)/mpfr ; then \
54476 cd $(HOST_SUBDIR); mv mpfr stageprofile-mpfr ; \
54477 mv prev-mpfr stage1-mpfr ; : ; \
54478 fi
54479@endif mpfr
311b6756
JM
54480@if ppl
54481 @if test -d $(HOST_SUBDIR)/ppl ; then \
54482 cd $(HOST_SUBDIR); mv ppl stageprofile-ppl ; \
54483 mv prev-ppl stage1-ppl ; : ; \
54484 fi
54485@endif ppl
54486@if cloog
54487 @if test -d $(HOST_SUBDIR)/cloog ; then \
54488 cd $(HOST_SUBDIR); mv cloog stageprofile-cloog ; \
54489 mv prev-cloog stage1-cloog ; : ; \
54490 fi
54491@endif cloog
b916272a
ILT
54492@if gold
54493 @if test -d $(HOST_SUBDIR)/gold ; then \
54494 cd $(HOST_SUBDIR); mv gold stageprofile-gold ; \
54495 mv prev-gold stage1-gold ; : ; \
54496 fi
54497@endif gold
a8a96878 54498@if intl
e3c08f94
PB
54499 @if test -d $(HOST_SUBDIR)/intl ; then \
54500 cd $(HOST_SUBDIR); mv intl stageprofile-intl ; \
54501 mv prev-intl stage1-intl ; : ; \
15b527ca 54502 fi
a8a96878
PB
54503@endif intl
54504@if ld
e3c08f94
PB
54505 @if test -d $(HOST_SUBDIR)/ld ; then \
54506 cd $(HOST_SUBDIR); mv ld stageprofile-ld ; \
54507 mv prev-ld stage1-ld ; : ; \
15b527ca 54508 fi
a8a96878
PB
54509@endif ld
54510@if libcpp
e3c08f94
PB
54511 @if test -d $(HOST_SUBDIR)/libcpp ; then \
54512 cd $(HOST_SUBDIR); mv libcpp stageprofile-libcpp ; \
54513 mv prev-libcpp stage1-libcpp ; : ; \
15b527ca 54514 fi
a8a96878 54515@endif libcpp
a7dc05b5 54516@if libdecnumber
e3c08f94
PB
54517 @if test -d $(HOST_SUBDIR)/libdecnumber ; then \
54518 cd $(HOST_SUBDIR); mv libdecnumber stageprofile-libdecnumber ; \
54519 mv prev-libdecnumber stage1-libdecnumber ; : ; \
15b527ca 54520 fi
a7dc05b5 54521@endif libdecnumber
a8a96878 54522@if libiberty
e3c08f94
PB
54523 @if test -d $(HOST_SUBDIR)/libiberty ; then \
54524 cd $(HOST_SUBDIR); mv libiberty stageprofile-libiberty ; \
54525 mv prev-libiberty stage1-libiberty ; : ; \
15b527ca 54526 fi
a8a96878
PB
54527@endif libiberty
54528@if zlib
e3c08f94
PB
54529 @if test -d $(HOST_SUBDIR)/zlib ; then \
54530 cd $(HOST_SUBDIR); mv zlib stageprofile-zlib ; \
54531 mv prev-zlib stage1-zlib ; : ; \
15b527ca 54532 fi
a8a96878 54533@endif zlib
15b527ca 54534 @if test -d $(TARGET_SUBDIR) ; then \
e3c08f94
PB
54535 mv $(TARGET_SUBDIR) stageprofile-$(TARGET_SUBDIR) ; \
54536 mv prev-$(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR) ; : ; \
15b527ca 54537 fi
e3c08f94 54538 rm -f stage_current
6a19fd82 54539
d3531b73 54540# Bubble a bug fix through all the stages up to stage profile. They are
15b527ca 54541# remade, but not reconfigured. The next stage (if any) will not be
5edf1524 54542# reconfigured either.
a8a96878
PB
54543.PHONY: stageprofile-bubble
54544stageprofile-bubble:: stage1-bubble
ecebee48
PB
54545 @r=`${PWD_COMMAND}`; export r; \
54546 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
54547 if test -f stageprofile-lean || test -f stage1-lean ; then \
a8a96878
PB
54548 echo Skipping rebuild of stageprofile ; \
54549 else \
168b158c
PB
54550 $(MAKE) stageprofile-start; \
54551 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stageprofile; \
a8a96878 54552 fi
6a19fd82 54553
a8a96878
PB
54554.PHONY: all-stageprofile clean-stageprofile
54555do-clean: clean-stageprofile
99df82b9 54556
6a19fd82
PB
54557# FIXME: Will not need to be conditional when toplevel bootstrap is the
54558# only possibility, but now it conflicts with no-bootstrap rules
54559@if gcc-bootstrap
54560
54561
54562
54563
99df82b9 54564# Rules to wipe a stage and all the following ones, also used for cleanstrap
6a19fd82 54565distclean-stage1:: distclean-stageprofile
99df82b9 54566.PHONY: distclean-stageprofile
6a19fd82 54567distclean-stageprofile::
15b527ca 54568 @: $(MAKE); $(stage)
28826d8f 54569 @test "`cat stage_last`" != stageprofile || rm -f stage_last
ebc58bf8 54570 rm -rf stageprofile-*
35269421
PB
54571
54572
6a19fd82 54573@endif gcc-bootstrap
35269421
PB
54574
54575
6a19fd82 54576.PHONY: stagefeedback-start stagefeedback-end
35269421 54577
6a19fd82 54578stagefeedback-start::
15b527ca 54579 @: $(MAKE); $(stage); \
6a19fd82 54580 echo stagefeedback > stage_current ; \
7fc2ca22 54581 echo stagefeedback > stage_last; \
15b527ca 54582 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
6a19fd82 54583@if bfd
7fc2ca22
PB
54584 @cd $(HOST_SUBDIR); [ -d stagefeedback-bfd ] || \
54585 mkdir stagefeedback-bfd; \
e3c08f94
PB
54586 mv stagefeedback-bfd bfd ; \
54587 mv stageprofile-bfd prev-bfd || test -f stageprofile-lean
6a19fd82
PB
54588@endif bfd
54589@if opcodes
7fc2ca22
PB
54590 @cd $(HOST_SUBDIR); [ -d stagefeedback-opcodes ] || \
54591 mkdir stagefeedback-opcodes; \
e3c08f94
PB
54592 mv stagefeedback-opcodes opcodes ; \
54593 mv stageprofile-opcodes prev-opcodes || test -f stageprofile-lean
6a19fd82
PB
54594@endif opcodes
54595@if binutils
7fc2ca22
PB
54596 @cd $(HOST_SUBDIR); [ -d stagefeedback-binutils ] || \
54597 mkdir stagefeedback-binutils; \
e3c08f94
PB
54598 mv stagefeedback-binutils binutils ; \
54599 mv stageprofile-binutils prev-binutils || test -f stageprofile-lean
6a19fd82
PB
54600@endif binutils
54601@if gas
7fc2ca22
PB
54602 @cd $(HOST_SUBDIR); [ -d stagefeedback-gas ] || \
54603 mkdir stagefeedback-gas; \
e3c08f94
PB
54604 mv stagefeedback-gas gas ; \
54605 mv stageprofile-gas prev-gas || test -f stageprofile-lean
6a19fd82
PB
54606@endif gas
54607@if gcc
7fc2ca22
PB
54608 @cd $(HOST_SUBDIR); [ -d stagefeedback-gcc ] || \
54609 mkdir stagefeedback-gcc; \
e3c08f94
PB
54610 mv stagefeedback-gcc gcc ; \
54611 mv stageprofile-gcc prev-gcc || test -f stageprofile-lean
6a19fd82 54612@endif gcc
42f55f77
PB
54613@if gmp
54614 @cd $(HOST_SUBDIR); [ -d stagefeedback-gmp ] || \
54615 mkdir stagefeedback-gmp; \
54616 mv stagefeedback-gmp gmp ; \
54617 mv stageprofile-gmp prev-gmp || test -f stageprofile-lean
54618@endif gmp
54619@if mpfr
54620 @cd $(HOST_SUBDIR); [ -d stagefeedback-mpfr ] || \
54621 mkdir stagefeedback-mpfr; \
54622 mv stagefeedback-mpfr mpfr ; \
54623 mv stageprofile-mpfr prev-mpfr || test -f stageprofile-lean
54624@endif mpfr
311b6756
JM
54625@if ppl
54626 @cd $(HOST_SUBDIR); [ -d stagefeedback-ppl ] || \
54627 mkdir stagefeedback-ppl; \
54628 mv stagefeedback-ppl ppl ; \
54629 mv stageprofile-ppl prev-ppl || test -f stageprofile-lean
54630@endif ppl
54631@if cloog
54632 @cd $(HOST_SUBDIR); [ -d stagefeedback-cloog ] || \
54633 mkdir stagefeedback-cloog; \
54634 mv stagefeedback-cloog cloog ; \
54635 mv stageprofile-cloog prev-cloog || test -f stageprofile-lean
54636@endif cloog
b916272a
ILT
54637@if gold
54638 @cd $(HOST_SUBDIR); [ -d stagefeedback-gold ] || \
54639 mkdir stagefeedback-gold; \
54640 mv stagefeedback-gold gold ; \
54641 mv stageprofile-gold prev-gold || test -f stageprofile-lean
54642@endif gold
6a19fd82 54643@if intl
7fc2ca22
PB
54644 @cd $(HOST_SUBDIR); [ -d stagefeedback-intl ] || \
54645 mkdir stagefeedback-intl; \
e3c08f94
PB
54646 mv stagefeedback-intl intl ; \
54647 mv stageprofile-intl prev-intl || test -f stageprofile-lean
6a19fd82
PB
54648@endif intl
54649@if ld
7fc2ca22
PB
54650 @cd $(HOST_SUBDIR); [ -d stagefeedback-ld ] || \
54651 mkdir stagefeedback-ld; \
e3c08f94
PB
54652 mv stagefeedback-ld ld ; \
54653 mv stageprofile-ld prev-ld || test -f stageprofile-lean
6a19fd82
PB
54654@endif ld
54655@if libcpp
7fc2ca22
PB
54656 @cd $(HOST_SUBDIR); [ -d stagefeedback-libcpp ] || \
54657 mkdir stagefeedback-libcpp; \
e3c08f94
PB
54658 mv stagefeedback-libcpp libcpp ; \
54659 mv stageprofile-libcpp prev-libcpp || test -f stageprofile-lean
6a19fd82 54660@endif libcpp
a7dc05b5
PB
54661@if libdecnumber
54662 @cd $(HOST_SUBDIR); [ -d stagefeedback-libdecnumber ] || \
54663 mkdir stagefeedback-libdecnumber; \
e3c08f94
PB
54664 mv stagefeedback-libdecnumber libdecnumber ; \
54665 mv stageprofile-libdecnumber prev-libdecnumber || test -f stageprofile-lean
a7dc05b5 54666@endif libdecnumber
6a19fd82 54667@if libiberty
7fc2ca22
PB
54668 @cd $(HOST_SUBDIR); [ -d stagefeedback-libiberty ] || \
54669 mkdir stagefeedback-libiberty; \
e3c08f94
PB
54670 mv stagefeedback-libiberty libiberty ; \
54671 mv stageprofile-libiberty prev-libiberty || test -f stageprofile-lean
6a19fd82
PB
54672@endif libiberty
54673@if zlib
7fc2ca22
PB
54674 @cd $(HOST_SUBDIR); [ -d stagefeedback-zlib ] || \
54675 mkdir stagefeedback-zlib; \
e3c08f94
PB
54676 mv stagefeedback-zlib zlib ; \
54677 mv stageprofile-zlib prev-zlib || test -f stageprofile-lean
6a19fd82 54678@endif zlib
15b527ca
PB
54679 @[ -d stagefeedback-$(TARGET_SUBDIR) ] || \
54680 mkdir stagefeedback-$(TARGET_SUBDIR); \
e3c08f94
PB
54681 mv stagefeedback-$(TARGET_SUBDIR) $(TARGET_SUBDIR) ; \
54682 mv stageprofile-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stageprofile-lean
35269421 54683
e3c08f94 54684stagefeedback-end::
6a19fd82 54685@if bfd
e3c08f94
PB
54686 @if test -d $(HOST_SUBDIR)/bfd ; then \
54687 cd $(HOST_SUBDIR); mv bfd stagefeedback-bfd ; \
54688 mv prev-bfd stageprofile-bfd ; : ; \
15b527ca 54689 fi
6a19fd82
PB
54690@endif bfd
54691@if opcodes
e3c08f94
PB
54692 @if test -d $(HOST_SUBDIR)/opcodes ; then \
54693 cd $(HOST_SUBDIR); mv opcodes stagefeedback-opcodes ; \
54694 mv prev-opcodes stageprofile-opcodes ; : ; \
15b527ca 54695 fi
6a19fd82
PB
54696@endif opcodes
54697@if binutils
e3c08f94
PB
54698 @if test -d $(HOST_SUBDIR)/binutils ; then \
54699 cd $(HOST_SUBDIR); mv binutils stagefeedback-binutils ; \
54700 mv prev-binutils stageprofile-binutils ; : ; \
15b527ca 54701 fi
6a19fd82
PB
54702@endif binutils
54703@if gas
e3c08f94
PB
54704 @if test -d $(HOST_SUBDIR)/gas ; then \
54705 cd $(HOST_SUBDIR); mv gas stagefeedback-gas ; \
54706 mv prev-gas stageprofile-gas ; : ; \
15b527ca 54707 fi
6a19fd82
PB
54708@endif gas
54709@if gcc
e3c08f94
PB
54710 @if test -d $(HOST_SUBDIR)/gcc ; then \
54711 cd $(HOST_SUBDIR); mv gcc stagefeedback-gcc ; \
54712 mv prev-gcc stageprofile-gcc ; : ; \
15b527ca 54713 fi
6a19fd82 54714@endif gcc
42f55f77
PB
54715@if gmp
54716 @if test -d $(HOST_SUBDIR)/gmp ; then \
54717 cd $(HOST_SUBDIR); mv gmp stagefeedback-gmp ; \
54718 mv prev-gmp stageprofile-gmp ; : ; \
54719 fi
54720@endif gmp
54721@if mpfr
54722 @if test -d $(HOST_SUBDIR)/mpfr ; then \
54723 cd $(HOST_SUBDIR); mv mpfr stagefeedback-mpfr ; \
54724 mv prev-mpfr stageprofile-mpfr ; : ; \
54725 fi
54726@endif mpfr
311b6756
JM
54727@if ppl
54728 @if test -d $(HOST_SUBDIR)/ppl ; then \
54729 cd $(HOST_SUBDIR); mv ppl stagefeedback-ppl ; \
54730 mv prev-ppl stageprofile-ppl ; : ; \
54731 fi
54732@endif ppl
54733@if cloog
54734 @if test -d $(HOST_SUBDIR)/cloog ; then \
54735 cd $(HOST_SUBDIR); mv cloog stagefeedback-cloog ; \
54736 mv prev-cloog stageprofile-cloog ; : ; \
54737 fi
54738@endif cloog
b916272a
ILT
54739@if gold
54740 @if test -d $(HOST_SUBDIR)/gold ; then \
54741 cd $(HOST_SUBDIR); mv gold stagefeedback-gold ; \
54742 mv prev-gold stageprofile-gold ; : ; \
54743 fi
54744@endif gold
6a19fd82 54745@if intl
e3c08f94
PB
54746 @if test -d $(HOST_SUBDIR)/intl ; then \
54747 cd $(HOST_SUBDIR); mv intl stagefeedback-intl ; \
54748 mv prev-intl stageprofile-intl ; : ; \
15b527ca 54749 fi
6a19fd82
PB
54750@endif intl
54751@if ld
e3c08f94
PB
54752 @if test -d $(HOST_SUBDIR)/ld ; then \
54753 cd $(HOST_SUBDIR); mv ld stagefeedback-ld ; \
54754 mv prev-ld stageprofile-ld ; : ; \
15b527ca 54755 fi
6a19fd82
PB
54756@endif ld
54757@if libcpp
e3c08f94
PB
54758 @if test -d $(HOST_SUBDIR)/libcpp ; then \
54759 cd $(HOST_SUBDIR); mv libcpp stagefeedback-libcpp ; \
54760 mv prev-libcpp stageprofile-libcpp ; : ; \
15b527ca 54761 fi
6a19fd82 54762@endif libcpp
a7dc05b5 54763@if libdecnumber
e3c08f94
PB
54764 @if test -d $(HOST_SUBDIR)/libdecnumber ; then \
54765 cd $(HOST_SUBDIR); mv libdecnumber stagefeedback-libdecnumber ; \
54766 mv prev-libdecnumber stageprofile-libdecnumber ; : ; \
15b527ca 54767 fi
a7dc05b5 54768@endif libdecnumber
6a19fd82 54769@if libiberty
e3c08f94
PB
54770 @if test -d $(HOST_SUBDIR)/libiberty ; then \
54771 cd $(HOST_SUBDIR); mv libiberty stagefeedback-libiberty ; \
54772 mv prev-libiberty stageprofile-libiberty ; : ; \
15b527ca 54773 fi
6a19fd82
PB
54774@endif libiberty
54775@if zlib
e3c08f94
PB
54776 @if test -d $(HOST_SUBDIR)/zlib ; then \
54777 cd $(HOST_SUBDIR); mv zlib stagefeedback-zlib ; \
54778 mv prev-zlib stageprofile-zlib ; : ; \
15b527ca 54779 fi
6a19fd82 54780@endif zlib
15b527ca 54781 @if test -d $(TARGET_SUBDIR) ; then \
e3c08f94
PB
54782 mv $(TARGET_SUBDIR) stagefeedback-$(TARGET_SUBDIR) ; \
54783 mv prev-$(TARGET_SUBDIR) stageprofile-$(TARGET_SUBDIR) ; : ; \
15b527ca 54784 fi
e3c08f94 54785 rm -f stage_current
35269421 54786
d3531b73 54787# Bubble a bug fix through all the stages up to stage feedback. They are
15b527ca 54788# remade, but not reconfigured. The next stage (if any) will not be
5edf1524 54789# reconfigured either.
6a19fd82 54790.PHONY: stagefeedback-bubble
6bfab24e 54791stagefeedback-bubble:: stageprofile-bubble
ecebee48
PB
54792 @r=`${PWD_COMMAND}`; export r; \
54793 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
54794 if test -f stagefeedback-lean || test -f stageprofile-lean ; then \
ebc58bf8
PB
54795 echo Skipping rebuild of stagefeedback ; \
54796 else \
168b158c
PB
54797 $(MAKE) stagefeedback-start; \
54798 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stagefeedback; \
ebc58bf8 54799 fi
6a19fd82 54800
99df82b9 54801.PHONY: all-stagefeedback clean-stagefeedback
99df82b9 54802do-clean: clean-stagefeedback
99df82b9 54803
6a19fd82
PB
54804# FIXME: Will not need to be conditional when toplevel bootstrap is the
54805# only possibility, but now it conflicts with no-bootstrap rules
54806@if gcc-bootstrap
21ff191e
PB
54807
54808
54809
e3c08f94 54810.PHONY: profiledbootstrap profiledbootstrap-lean
a7dc05b5
PB
54811profiledbootstrap:
54812 echo stagefeedback > stage_final
54813 @r=`${PWD_COMMAND}`; export r; \
54814 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
54815 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stagefeedback-bubble
15b527ca 54816 @: $(MAKE); $(unstage)
a7dc05b5
PB
54817 @r=`${PWD_COMMAND}`; export r; \
54818 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
54819 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
6bfab24e 54820
e3c08f94
PB
54821profiledbootstrap-lean:
54822 echo stagefeedback > stage_final
54823 @r=`${PWD_COMMAND}`; export r; \
54824 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
54825 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stagefeedback-bubble
54826 @: $(MAKE); $(unstage)
54827 @r=`${PWD_COMMAND}`; export r; \
54828 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
54829 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
54830
21ff191e 54831
99df82b9 54832# Rules to wipe a stage and all the following ones, also used for cleanstrap
6bfab24e 54833distclean-stageprofile:: distclean-stagefeedback
99df82b9 54834.PHONY: distclean-stagefeedback
21ff191e 54835distclean-stagefeedback::
15b527ca 54836 @: $(MAKE); $(stage)
28826d8f 54837 @test "`cat stage_last`" != stagefeedback || rm -f stage_last
ebc58bf8 54838 rm -rf stagefeedback-*
21ff191e
PB
54839
54840
6a19fd82 54841@endif gcc-bootstrap
21ff191e
PB
54842
54843
54844
6bfab24e
PB
54845stageprofile-end::
54846 $(MAKE) distclean-stagefeedback
21ff191e 54847
6bfab24e 54848stagefeedback-start::
21ff191e
PB
54849 @r=`${PWD_COMMAND}`; export r; \
54850 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6bfab24e
PB
54851 for i in prev-*; do \
54852 j=`echo $$i | sed s/^prev-//` ; \
54853 cd $$r/$$i && \
54854 { find . -type d | sort | sed 's,.*,$(SHELL) '"$$s"'/mkinstalldirs "../'$$j'/&",' | $(SHELL) ; } && \
54855 { find . -name '*.*da' | sed 's,.*,$(LN) -f "&" "../'$$j'/&",' | $(SHELL) ; } ; \
54856 done
866c244e 54857
99df82b9 54858@if gcc-bootstrap
99df82b9 54859do-distclean: distclean-stage1
ec92c4d6
PB
54860
54861# Provide a GCC build when we're building target libraries. This does
54862# not work as a dependency, just as the minimum necessary to avoid errors.
54863stage_last:
54864 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage1-bubble
99df82b9 54865
e1e5148c
CD
54866# Same as unstage, but not phony and defaulting to stage1-start. We place
54867# it in the dependency so that for example `make -j3 all-gcc' works.
54868stage_current:
54869 @if test -f stage_last; then $(unstage); else $(MAKE) stage1-start; fi
54870
ec92c4d6 54871.PHONY: restrap
edd8c172 54872restrap::
ec92c4d6 54873 @: $(MAKE); $(stage)
2b41ef78 54874 rm -rf stage1-$(TARGET_SUBDIR) stage2-* stageb2g0-* stage3-* stageb3g2-* stage4-* stageprofile-* stagefeedback-*
edd8c172 54875restrap:: all
5544eee7 54876@endif gcc-bootstrap
ec92c4d6 54877
c5ab3a90
NN
54878# --------------------------------------
54879# Dependencies between different modules
54880# --------------------------------------
a3acbf46 54881
364b9683 54882# Generic dependencies for target modules on host stuff, especially gcc
ec92c4d6
PB
54883@if gcc-bootstrap
54884configure-target-libstdc++-v3: stage_last
54885configure-target-libmudflap: stage_last
54886configure-target-libssp: stage_last
ec92c4d6 54887configure-target-newlib: stage_last
1f316156
DJ
54888configure-stage1-target-libgcc: maybe-all-stage1-gcc
54889configure-stage2-target-libgcc: maybe-all-stage2-gcc
2b41ef78 54890configure-stageb2g0-target-libgcc: maybe-all-stageb2g0-gcc
1f316156 54891configure-stage3-target-libgcc: maybe-all-stage3-gcc
2b41ef78 54892configure-stageb3g2-target-libgcc: maybe-all-stageb3g2-gcc
1f316156
DJ
54893configure-stage4-target-libgcc: maybe-all-stage4-gcc
54894configure-stageprofile-target-libgcc: maybe-all-stageprofile-gcc
54895configure-stagefeedback-target-libgcc: maybe-all-stagefeedback-gcc
ec92c4d6
PB
54896configure-target-libgfortran: stage_last
54897configure-target-libobjc: stage_last
54898configure-target-libtermcap: stage_last
54899configure-target-winsup: stage_last
54900configure-target-libgloss: stage_last
54901configure-target-libiberty: stage_last
54902configure-target-gperf: stage_last
54903configure-target-examples: stage_last
54904configure-target-libffi: stage_last
54905configure-target-libjava: stage_last
54906configure-target-zlib: stage_last
54907configure-target-boehm-gc: stage_last
54908configure-target-qthreads: stage_last
54909configure-target-rda: stage_last
54910configure-target-libada: stage_last
54911configure-target-libgomp: stage_last
54912@endif gcc-bootstrap
364b9683 54913
ec92c4d6 54914@if gcc-no-bootstrap
364b9683 54915configure-target-libstdc++-v3: maybe-all-gcc
364b9683 54916configure-target-libmudflap: maybe-all-gcc
4c3e061c 54917configure-target-libssp: maybe-all-gcc
364b9683 54918configure-target-newlib: maybe-all-gcc
1f316156 54919configure-target-libgcc: maybe-all-gcc
364b9683 54920configure-target-libgfortran: maybe-all-gcc
364b9683 54921configure-target-libobjc: maybe-all-gcc
364b9683 54922configure-target-libtermcap: maybe-all-gcc
364b9683 54923configure-target-winsup: maybe-all-gcc
364b9683 54924configure-target-libgloss: maybe-all-gcc
364b9683 54925configure-target-libiberty: maybe-all-gcc
364b9683 54926configure-target-gperf: maybe-all-gcc
364b9683 54927configure-target-examples: maybe-all-gcc
364b9683 54928configure-target-libffi: maybe-all-gcc
364b9683 54929configure-target-libjava: maybe-all-gcc
364b9683 54930configure-target-zlib: maybe-all-gcc
364b9683 54931configure-target-boehm-gc: maybe-all-gcc
364b9683 54932configure-target-qthreads: maybe-all-gcc
364b9683 54933configure-target-rda: maybe-all-gcc
364b9683 54934configure-target-libada: maybe-all-gcc
00bc9d7f 54935configure-target-libgomp: maybe-all-gcc
ec92c4d6 54936@endif gcc-no-bootstrap
00bc9d7f 54937
364b9683 54938
c5ab3a90
NN
54939# There are two types of dependencies here: 'hard' dependencies, where one
54940# module simply won't build without the other; and 'soft' dependencies, where
54941# if the depended-on module is missing, the depending module will do without
54942# or find a substitute somewhere (perhaps installed). Soft dependencies
364b9683 54943# are made here to depend on a 'maybe-' target. If you're not sure,
c5ab3a90
NN
54944# it's safer to use a soft dependency.
54945
364b9683
PB
54946
54947
54948
54949
10b25909 54950
364b9683
PB
54951# With all the machinery above in place, it is pretty easy to generate
54952# dependencies. Host dependencies are a bit more complex because we have
54953# to check for bootstrap/prebootstrap dependencies. To resolve
54954# prebootstrap dependencies, prebootstrap modules are gathered in
54955# a hash table.
2cb47d68 54956all-build-bison: maybe-all-build-texinfo
364b9683 54957all-build-byacc: maybe-all-build-texinfo
2cb47d68 54958all-build-flex: maybe-all-build-texinfo
364b9683
PB
54959all-build-flex: maybe-all-build-bison
54960all-build-flex: maybe-all-build-byacc
54961all-build-flex: maybe-all-build-m4
2cb47d68 54962all-build-libiberty: maybe-all-build-texinfo
364b9683 54963all-build-m4: maybe-all-build-texinfo
607d4caf 54964all-build-fixincludes: maybe-all-build-libiberty
364b9683
PB
54965configure-gcc: maybe-configure-intl
54966
54967configure-stage1-gcc: maybe-configure-stage1-intl
54968configure-stage2-gcc: maybe-configure-stage2-intl
2b41ef78 54969configure-stageb2g0-gcc: maybe-configure-stageb2g0-intl
364b9683 54970configure-stage3-gcc: maybe-configure-stage3-intl
2b41ef78 54971configure-stageb3g2-gcc: maybe-configure-stageb3g2-intl
364b9683
PB
54972configure-stage4-gcc: maybe-configure-stage4-intl
54973configure-stageprofile-gcc: maybe-configure-stageprofile-intl
54974configure-stagefeedback-gcc: maybe-configure-stagefeedback-intl
10b25909
PB
54975configure-gcc: maybe-all-binutils
54976
54977configure-stage1-gcc: maybe-all-stage1-binutils
54978configure-stage2-gcc: maybe-all-stage2-binutils
2b41ef78 54979configure-stageb2g0-gcc: maybe-all-stageb2g0-binutils
10b25909 54980configure-stage3-gcc: maybe-all-stage3-binutils
2b41ef78 54981configure-stageb3g2-gcc: maybe-all-stageb3g2-binutils
10b25909
PB
54982configure-stage4-gcc: maybe-all-stage4-binutils
54983configure-stageprofile-gcc: maybe-all-stageprofile-binutils
54984configure-stagefeedback-gcc: maybe-all-stagefeedback-binutils
54985configure-gcc: maybe-all-gas
54986
54987configure-stage1-gcc: maybe-all-stage1-gas
54988configure-stage2-gcc: maybe-all-stage2-gas
2b41ef78 54989configure-stageb2g0-gcc: maybe-all-stageb2g0-gas
10b25909 54990configure-stage3-gcc: maybe-all-stage3-gas
2b41ef78 54991configure-stageb3g2-gcc: maybe-all-stageb3g2-gas
10b25909
PB
54992configure-stage4-gcc: maybe-all-stage4-gas
54993configure-stageprofile-gcc: maybe-all-stageprofile-gas
54994configure-stagefeedback-gcc: maybe-all-stagefeedback-gas
54995configure-gcc: maybe-all-ld
54996
54997configure-stage1-gcc: maybe-all-stage1-ld
54998configure-stage2-gcc: maybe-all-stage2-ld
2b41ef78 54999configure-stageb2g0-gcc: maybe-all-stageb2g0-ld
10b25909 55000configure-stage3-gcc: maybe-all-stage3-ld
2b41ef78 55001configure-stageb3g2-gcc: maybe-all-stageb3g2-ld
10b25909
PB
55002configure-stage4-gcc: maybe-all-stage4-ld
55003configure-stageprofile-gcc: maybe-all-stageprofile-ld
55004configure-stagefeedback-gcc: maybe-all-stagefeedback-ld
b916272a
ILT
55005configure-gcc: maybe-all-gold
55006
55007configure-stage1-gcc: maybe-all-stage1-gold
55008configure-stage2-gcc: maybe-all-stage2-gold
55009configure-stageb2g0-gcc: maybe-all-stageb2g0-gold
55010configure-stage3-gcc: maybe-all-stage3-gold
55011configure-stageb3g2-gcc: maybe-all-stageb3g2-gold
55012configure-stage4-gcc: maybe-all-stage4-gold
55013configure-stageprofile-gcc: maybe-all-stageprofile-gold
55014configure-stagefeedback-gcc: maybe-all-stagefeedback-gold
364b9683
PB
55015all-gcc: all-libiberty
55016
55017all-stage1-gcc: all-stage1-libiberty
55018all-stage2-gcc: all-stage2-libiberty
2b41ef78 55019all-stageb2g0-gcc: all-stageb2g0-libiberty
364b9683 55020all-stage3-gcc: all-stage3-libiberty
2b41ef78 55021all-stageb3g2-gcc: all-stageb3g2-libiberty
364b9683
PB
55022all-stage4-gcc: all-stage4-libiberty
55023all-stageprofile-gcc: all-stageprofile-libiberty
55024all-stagefeedback-gcc: all-stagefeedback-libiberty
42f55f77
PB
55025all-gcc: maybe-all-gmp
55026
55027all-stage1-gcc: maybe-all-stage1-gmp
55028all-stage2-gcc: maybe-all-stage2-gmp
2b41ef78 55029all-stageb2g0-gcc: maybe-all-stageb2g0-gmp
42f55f77 55030all-stage3-gcc: maybe-all-stage3-gmp
2b41ef78 55031all-stageb3g2-gcc: maybe-all-stageb3g2-gmp
42f55f77
PB
55032all-stage4-gcc: maybe-all-stage4-gmp
55033all-stageprofile-gcc: maybe-all-stageprofile-gmp
55034all-stagefeedback-gcc: maybe-all-stagefeedback-gmp
364b9683
PB
55035all-gcc: maybe-all-intl
55036
55037all-stage1-gcc: maybe-all-stage1-intl
55038all-stage2-gcc: maybe-all-stage2-intl
2b41ef78 55039all-stageb2g0-gcc: maybe-all-stageb2g0-intl
364b9683 55040all-stage3-gcc: maybe-all-stage3-intl
2b41ef78 55041all-stageb3g2-gcc: maybe-all-stageb3g2-intl
364b9683
PB
55042all-stage4-gcc: maybe-all-stage4-intl
55043all-stageprofile-gcc: maybe-all-stageprofile-intl
55044all-stagefeedback-gcc: maybe-all-stagefeedback-intl
42f55f77
PB
55045all-gcc: maybe-all-mpfr
55046
55047all-stage1-gcc: maybe-all-stage1-mpfr
55048all-stage2-gcc: maybe-all-stage2-mpfr
2b41ef78 55049all-stageb2g0-gcc: maybe-all-stageb2g0-mpfr
42f55f77 55050all-stage3-gcc: maybe-all-stage3-mpfr
2b41ef78 55051all-stageb3g2-gcc: maybe-all-stageb3g2-mpfr
42f55f77
PB
55052all-stage4-gcc: maybe-all-stage4-mpfr
55053all-stageprofile-gcc: maybe-all-stageprofile-mpfr
55054all-stagefeedback-gcc: maybe-all-stagefeedback-mpfr
311b6756
JM
55055all-gcc: maybe-all-ppl
55056
55057all-stage1-gcc: maybe-all-stage1-ppl
55058all-stage2-gcc: maybe-all-stage2-ppl
55059all-stageb2g0-gcc: maybe-all-stageb2g0-ppl
55060all-stage3-gcc: maybe-all-stage3-ppl
55061all-stageb3g2-gcc: maybe-all-stageb3g2-ppl
55062all-stage4-gcc: maybe-all-stage4-ppl
55063all-stageprofile-gcc: maybe-all-stageprofile-ppl
55064all-stagefeedback-gcc: maybe-all-stagefeedback-ppl
55065all-gcc: maybe-all-cloog
55066
55067all-stage1-gcc: maybe-all-stage1-cloog
55068all-stage2-gcc: maybe-all-stage2-cloog
55069all-stageb2g0-gcc: maybe-all-stageb2g0-cloog
55070all-stage3-gcc: maybe-all-stage3-cloog
55071all-stageb3g2-gcc: maybe-all-stageb3g2-cloog
55072all-stage4-gcc: maybe-all-stage4-cloog
55073all-stageprofile-gcc: maybe-all-stageprofile-cloog
55074all-stagefeedback-gcc: maybe-all-stagefeedback-cloog
6a19fd82
PB
55075all-gcc: maybe-all-build-texinfo
55076
55077all-stage1-gcc: maybe-all-build-texinfo
55078all-stage2-gcc: maybe-all-build-texinfo
2b41ef78 55079all-stageb2g0-gcc: maybe-all-build-texinfo
6a19fd82 55080all-stage3-gcc: maybe-all-build-texinfo
2b41ef78 55081all-stageb3g2-gcc: maybe-all-build-texinfo
6a19fd82
PB
55082all-stage4-gcc: maybe-all-build-texinfo
55083all-stageprofile-gcc: maybe-all-build-texinfo
55084all-stagefeedback-gcc: maybe-all-build-texinfo
6a19fd82
PB
55085all-gcc: maybe-all-build-bison
55086
55087all-stage1-gcc: maybe-all-build-bison
55088all-stage2-gcc: maybe-all-build-bison
2b41ef78 55089all-stageb2g0-gcc: maybe-all-build-bison
6a19fd82 55090all-stage3-gcc: maybe-all-build-bison
2b41ef78 55091all-stageb3g2-gcc: maybe-all-build-bison
6a19fd82
PB
55092all-stage4-gcc: maybe-all-build-bison
55093all-stageprofile-gcc: maybe-all-build-bison
55094all-stagefeedback-gcc: maybe-all-build-bison
6a19fd82
PB
55095all-gcc: maybe-all-build-byacc
55096
55097all-stage1-gcc: maybe-all-build-byacc
55098all-stage2-gcc: maybe-all-build-byacc
2b41ef78 55099all-stageb2g0-gcc: maybe-all-build-byacc
6a19fd82 55100all-stage3-gcc: maybe-all-build-byacc
2b41ef78 55101all-stageb3g2-gcc: maybe-all-build-byacc
6a19fd82
PB
55102all-stage4-gcc: maybe-all-build-byacc
55103all-stageprofile-gcc: maybe-all-build-byacc
55104all-stagefeedback-gcc: maybe-all-build-byacc
6a19fd82
PB
55105all-gcc: maybe-all-build-flex
55106
55107all-stage1-gcc: maybe-all-build-flex
55108all-stage2-gcc: maybe-all-build-flex
2b41ef78 55109all-stageb2g0-gcc: maybe-all-build-flex
6a19fd82 55110all-stage3-gcc: maybe-all-build-flex
2b41ef78 55111all-stageb3g2-gcc: maybe-all-build-flex
6a19fd82
PB
55112all-stage4-gcc: maybe-all-build-flex
55113all-stageprofile-gcc: maybe-all-build-flex
55114all-stagefeedback-gcc: maybe-all-build-flex
607d4caf
PB
55115all-gcc: maybe-all-build-libiberty
55116
55117all-stage1-gcc: maybe-all-build-libiberty
55118all-stage2-gcc: maybe-all-build-libiberty
2b41ef78 55119all-stageb2g0-gcc: maybe-all-build-libiberty
607d4caf 55120all-stage3-gcc: maybe-all-build-libiberty
2b41ef78 55121all-stageb3g2-gcc: maybe-all-build-libiberty
607d4caf
PB
55122all-stage4-gcc: maybe-all-build-libiberty
55123all-stageprofile-gcc: maybe-all-build-libiberty
55124all-stagefeedback-gcc: maybe-all-build-libiberty
607d4caf
PB
55125all-gcc: maybe-all-build-fixincludes
55126
55127all-stage1-gcc: maybe-all-build-fixincludes
55128all-stage2-gcc: maybe-all-build-fixincludes
2b41ef78 55129all-stageb2g0-gcc: maybe-all-build-fixincludes
607d4caf 55130all-stage3-gcc: maybe-all-build-fixincludes
2b41ef78 55131all-stageb3g2-gcc: maybe-all-build-fixincludes
607d4caf
PB
55132all-stage4-gcc: maybe-all-build-fixincludes
55133all-stageprofile-gcc: maybe-all-build-fixincludes
55134all-stagefeedback-gcc: maybe-all-build-fixincludes
364b9683
PB
55135all-gcc: maybe-all-zlib
55136
55137all-stage1-gcc: maybe-all-stage1-zlib
55138all-stage2-gcc: maybe-all-stage2-zlib
2b41ef78 55139all-stageb2g0-gcc: maybe-all-stageb2g0-zlib
364b9683 55140all-stage3-gcc: maybe-all-stage3-zlib
2b41ef78 55141all-stageb3g2-gcc: maybe-all-stageb3g2-zlib
364b9683
PB
55142all-stage4-gcc: maybe-all-stage4-zlib
55143all-stageprofile-gcc: maybe-all-stageprofile-zlib
55144all-stagefeedback-gcc: maybe-all-stagefeedback-zlib
364b9683
PB
55145all-gcc: all-libcpp
55146
55147all-stage1-gcc: all-stage1-libcpp
55148all-stage2-gcc: all-stage2-libcpp
2b41ef78 55149all-stageb2g0-gcc: all-stageb2g0-libcpp
364b9683 55150all-stage3-gcc: all-stage3-libcpp
2b41ef78 55151all-stageb3g2-gcc: all-stageb3g2-libcpp
364b9683
PB
55152all-stage4-gcc: all-stage4-libcpp
55153all-stageprofile-gcc: all-stageprofile-libcpp
55154all-stagefeedback-gcc: all-stagefeedback-libcpp
a7dc05b5
PB
55155all-gcc: all-libdecnumber
55156
55157all-stage1-gcc: all-stage1-libdecnumber
55158all-stage2-gcc: all-stage2-libdecnumber
2b41ef78 55159all-stageb2g0-gcc: all-stageb2g0-libdecnumber
a7dc05b5 55160all-stage3-gcc: all-stage3-libdecnumber
2b41ef78 55161all-stageb3g2-gcc: all-stageb3g2-libdecnumber
a7dc05b5
PB
55162all-stage4-gcc: all-stage4-libdecnumber
55163all-stageprofile-gcc: all-stageprofile-libdecnumber
55164all-stagefeedback-gcc: all-stagefeedback-libdecnumber
5350aa8b
GK
55165all-gcc: maybe-all-libiberty
55166
55167all-stage1-gcc: maybe-all-stage1-libiberty
55168all-stage2-gcc: maybe-all-stage2-libiberty
2b41ef78 55169all-stageb2g0-gcc: maybe-all-stageb2g0-libiberty
5350aa8b 55170all-stage3-gcc: maybe-all-stage3-libiberty
2b41ef78 55171all-stageb3g2-gcc: maybe-all-stageb3g2-libiberty
5350aa8b
GK
55172all-stage4-gcc: maybe-all-stage4-libiberty
55173all-stageprofile-gcc: maybe-all-stageprofile-libiberty
55174all-stagefeedback-gcc: maybe-all-stagefeedback-libiberty
55175all-gcc: maybe-all-fixincludes
afaa92f9 55176install-gcc: maybe-install-fixincludes
364b9683
PB
55177configure-libcpp: configure-libiberty
55178
55179configure-stage1-libcpp: configure-stage1-libiberty
55180configure-stage2-libcpp: configure-stage2-libiberty
2b41ef78 55181configure-stageb2g0-libcpp: configure-stageb2g0-libiberty
364b9683 55182configure-stage3-libcpp: configure-stage3-libiberty
2b41ef78 55183configure-stageb3g2-libcpp: configure-stageb3g2-libiberty
364b9683
PB
55184configure-stage4-libcpp: configure-stage4-libiberty
55185configure-stageprofile-libcpp: configure-stageprofile-libiberty
55186configure-stagefeedback-libcpp: configure-stagefeedback-libiberty
55187configure-libcpp: maybe-configure-intl
55188
55189configure-stage1-libcpp: maybe-configure-stage1-intl
55190configure-stage2-libcpp: maybe-configure-stage2-intl
2b41ef78 55191configure-stageb2g0-libcpp: maybe-configure-stageb2g0-intl
364b9683 55192configure-stage3-libcpp: maybe-configure-stage3-intl
2b41ef78 55193configure-stageb3g2-libcpp: maybe-configure-stageb3g2-intl
364b9683
PB
55194configure-stage4-libcpp: maybe-configure-stage4-intl
55195configure-stageprofile-libcpp: maybe-configure-stageprofile-intl
55196configure-stagefeedback-libcpp: maybe-configure-stagefeedback-intl
55197all-libcpp: all-libiberty
55198
55199all-stage1-libcpp: all-stage1-libiberty
55200all-stage2-libcpp: all-stage2-libiberty
2b41ef78 55201all-stageb2g0-libcpp: all-stageb2g0-libiberty
364b9683 55202all-stage3-libcpp: all-stage3-libiberty
2b41ef78 55203all-stageb3g2-libcpp: all-stageb3g2-libiberty
364b9683
PB
55204all-stage4-libcpp: all-stage4-libiberty
55205all-stageprofile-libcpp: all-stageprofile-libiberty
55206all-stagefeedback-libcpp: all-stagefeedback-libiberty
55207all-libcpp: maybe-all-intl
55208
55209all-stage1-libcpp: maybe-all-stage1-intl
55210all-stage2-libcpp: maybe-all-stage2-intl
2b41ef78 55211all-stageb2g0-libcpp: maybe-all-stageb2g0-intl
364b9683 55212all-stage3-libcpp: maybe-all-stage3-intl
2b41ef78 55213all-stageb3g2-libcpp: maybe-all-stageb3g2-intl
364b9683
PB
55214all-stage4-libcpp: maybe-all-stage4-intl
55215all-stageprofile-libcpp: maybe-all-stageprofile-intl
55216all-stagefeedback-libcpp: maybe-all-stagefeedback-intl
5350aa8b 55217all-fixincludes: maybe-all-libiberty
7fc2ca22 55218all-gnattools: maybe-all-target-libada
42f55f77
PB
55219configure-mpfr: maybe-all-gmp
55220
55221configure-stage1-mpfr: maybe-all-stage1-gmp
55222configure-stage2-mpfr: maybe-all-stage2-gmp
2b41ef78 55223configure-stageb2g0-mpfr: maybe-all-stageb2g0-gmp
42f55f77 55224configure-stage3-mpfr: maybe-all-stage3-gmp
2b41ef78 55225configure-stageb3g2-mpfr: maybe-all-stageb3g2-gmp
42f55f77
PB
55226configure-stage4-mpfr: maybe-all-stage4-gmp
55227configure-stageprofile-mpfr: maybe-all-stageprofile-gmp
55228configure-stagefeedback-mpfr: maybe-all-stagefeedback-gmp
311b6756
JM
55229configure-ppl: maybe-all-gmp
55230
55231configure-stage1-ppl: maybe-all-stage1-gmp
55232configure-stage2-ppl: maybe-all-stage2-gmp
55233configure-stageb2g0-ppl: maybe-all-stageb2g0-gmp
55234configure-stage3-ppl: maybe-all-stage3-gmp
55235configure-stageb3g2-ppl: maybe-all-stageb3g2-gmp
55236configure-stage4-ppl: maybe-all-stage4-gmp
55237configure-stageprofile-ppl: maybe-all-stageprofile-gmp
55238configure-stagefeedback-ppl: maybe-all-stagefeedback-gmp
55239configure-ppl: maybe-all-mpfr
55240
55241configure-stage1-ppl: maybe-all-stage1-mpfr
55242configure-stage2-ppl: maybe-all-stage2-mpfr
55243configure-stageb2g0-ppl: maybe-all-stageb2g0-mpfr
55244configure-stage3-ppl: maybe-all-stage3-mpfr
55245configure-stageb3g2-ppl: maybe-all-stageb3g2-mpfr
55246configure-stage4-ppl: maybe-all-stage4-mpfr
55247configure-stageprofile-ppl: maybe-all-stageprofile-mpfr
55248configure-stagefeedback-ppl: maybe-all-stagefeedback-mpfr
55249configure-cloog: maybe-all-ppl
55250
55251configure-stage1-cloog: maybe-all-stage1-ppl
55252configure-stage2-cloog: maybe-all-stage2-ppl
55253configure-stageb2g0-cloog: maybe-all-stageb2g0-ppl
55254configure-stage3-cloog: maybe-all-stage3-ppl
55255configure-stageb3g2-cloog: maybe-all-stageb3g2-ppl
55256configure-stage4-cloog: maybe-all-stage4-ppl
55257configure-stageprofile-cloog: maybe-all-stageprofile-ppl
55258configure-stagefeedback-cloog: maybe-all-stagefeedback-ppl
5b9de9d9 55259configure-gdb: maybe-all-intl
364b9683 55260configure-gdb: maybe-configure-sim
94b5321e 55261configure-gdb: maybe-all-bfd
364b9683
PB
55262all-gdb: maybe-all-libiberty
55263all-gdb: maybe-all-opcodes
364b9683 55264all-gdb: maybe-all-readline
6a19fd82
PB
55265all-gdb: maybe-all-build-bison
55266all-gdb: maybe-all-build-byacc
364b9683 55267all-gdb: maybe-all-sim
8cca1e6c 55268all-gdb: maybe-all-libdecnumber
364b9683
PB
55269configure-libgui: maybe-configure-tcl
55270configure-libgui: maybe-configure-tk
55271all-libgui: maybe-all-tcl
55272all-libgui: maybe-all-tk
55273all-libgui: maybe-all-itcl
5f7308ff 55274configure-bfd: configure-libiberty
364b9683
PB
55275
55276configure-stage1-bfd: configure-stage1-libiberty
55277configure-stage2-bfd: configure-stage2-libiberty
2b41ef78 55278configure-stageb2g0-bfd: configure-stageb2g0-libiberty
364b9683 55279configure-stage3-bfd: configure-stage3-libiberty
2b41ef78 55280configure-stageb3g2-bfd: configure-stageb3g2-libiberty
364b9683
PB
55281configure-stage4-bfd: configure-stage4-libiberty
55282configure-stageprofile-bfd: configure-stageprofile-libiberty
55283configure-stagefeedback-bfd: configure-stagefeedback-libiberty
0505defa
DJ
55284configure-bfd: maybe-configure-intl
55285
55286configure-stage1-bfd: maybe-configure-stage1-intl
55287configure-stage2-bfd: maybe-configure-stage2-intl
2b41ef78 55288configure-stageb2g0-bfd: maybe-configure-stageb2g0-intl
0505defa 55289configure-stage3-bfd: maybe-configure-stage3-intl
2b41ef78 55290configure-stageb3g2-bfd: maybe-configure-stageb3g2-intl
0505defa
DJ
55291configure-stage4-bfd: maybe-configure-stage4-intl
55292configure-stageprofile-bfd: maybe-configure-stageprofile-intl
55293configure-stagefeedback-bfd: maybe-configure-stagefeedback-intl
364b9683
PB
55294all-bfd: maybe-all-libiberty
55295
55296all-stage1-bfd: maybe-all-stage1-libiberty
55297all-stage2-bfd: maybe-all-stage2-libiberty
2b41ef78 55298all-stageb2g0-bfd: maybe-all-stageb2g0-libiberty
364b9683 55299all-stage3-bfd: maybe-all-stage3-libiberty
2b41ef78 55300all-stageb3g2-bfd: maybe-all-stageb3g2-libiberty
364b9683
PB
55301all-stage4-bfd: maybe-all-stage4-libiberty
55302all-stageprofile-bfd: maybe-all-stageprofile-libiberty
55303all-stagefeedback-bfd: maybe-all-stagefeedback-libiberty
55304all-bfd: maybe-all-intl
55305
55306all-stage1-bfd: maybe-all-stage1-intl
55307all-stage2-bfd: maybe-all-stage2-intl
2b41ef78 55308all-stageb2g0-bfd: maybe-all-stageb2g0-intl
364b9683 55309all-stage3-bfd: maybe-all-stage3-intl
2b41ef78 55310all-stageb3g2-bfd: maybe-all-stageb3g2-intl
364b9683
PB
55311all-stage4-bfd: maybe-all-stage4-intl
55312all-stageprofile-bfd: maybe-all-stageprofile-intl
55313all-stagefeedback-bfd: maybe-all-stagefeedback-intl
0505defa
DJ
55314configure-binutils: maybe-configure-intl
55315
55316configure-stage1-binutils: maybe-configure-stage1-intl
55317configure-stage2-binutils: maybe-configure-stage2-intl
2b41ef78 55318configure-stageb2g0-binutils: maybe-configure-stageb2g0-intl
0505defa 55319configure-stage3-binutils: maybe-configure-stage3-intl
2b41ef78 55320configure-stageb3g2-binutils: maybe-configure-stageb3g2-intl
0505defa
DJ
55321configure-stage4-binutils: maybe-configure-stage4-intl
55322configure-stageprofile-binutils: maybe-configure-stageprofile-intl
55323configure-stagefeedback-binutils: maybe-configure-stagefeedback-intl
364b9683
PB
55324all-binutils: maybe-all-libiberty
55325
55326all-stage1-binutils: maybe-all-stage1-libiberty
55327all-stage2-binutils: maybe-all-stage2-libiberty
2b41ef78 55328all-stageb2g0-binutils: maybe-all-stageb2g0-libiberty
364b9683 55329all-stage3-binutils: maybe-all-stage3-libiberty
2b41ef78 55330all-stageb3g2-binutils: maybe-all-stageb3g2-libiberty
364b9683
PB
55331all-stage4-binutils: maybe-all-stage4-libiberty
55332all-stageprofile-binutils: maybe-all-stageprofile-libiberty
55333all-stagefeedback-binutils: maybe-all-stagefeedback-libiberty
55334all-binutils: maybe-all-opcodes
55335
55336all-stage1-binutils: maybe-all-stage1-opcodes
55337all-stage2-binutils: maybe-all-stage2-opcodes
2b41ef78 55338all-stageb2g0-binutils: maybe-all-stageb2g0-opcodes
364b9683 55339all-stage3-binutils: maybe-all-stage3-opcodes
2b41ef78 55340all-stageb3g2-binutils: maybe-all-stageb3g2-opcodes
364b9683
PB
55341all-stage4-binutils: maybe-all-stage4-opcodes
55342all-stageprofile-binutils: maybe-all-stageprofile-opcodes
55343all-stagefeedback-binutils: maybe-all-stagefeedback-opcodes
55344all-binutils: maybe-all-bfd
55345
55346all-stage1-binutils: maybe-all-stage1-bfd
55347all-stage2-binutils: maybe-all-stage2-bfd
2b41ef78 55348all-stageb2g0-binutils: maybe-all-stageb2g0-bfd
364b9683 55349all-stage3-binutils: maybe-all-stage3-bfd
2b41ef78 55350all-stageb3g2-binutils: maybe-all-stageb3g2-bfd
364b9683
PB
55351all-stage4-binutils: maybe-all-stage4-bfd
55352all-stageprofile-binutils: maybe-all-stageprofile-bfd
55353all-stagefeedback-binutils: maybe-all-stagefeedback-bfd
6a19fd82
PB
55354all-binutils: maybe-all-build-flex
55355
55356all-stage1-binutils: maybe-all-build-flex
55357all-stage2-binutils: maybe-all-build-flex
2b41ef78 55358all-stageb2g0-binutils: maybe-all-build-flex
6a19fd82 55359all-stage3-binutils: maybe-all-build-flex
2b41ef78 55360all-stageb3g2-binutils: maybe-all-build-flex
6a19fd82
PB
55361all-stage4-binutils: maybe-all-build-flex
55362all-stageprofile-binutils: maybe-all-build-flex
55363all-stagefeedback-binutils: maybe-all-build-flex
6a19fd82
PB
55364all-binutils: maybe-all-build-bison
55365
55366all-stage1-binutils: maybe-all-build-bison
55367all-stage2-binutils: maybe-all-build-bison
2b41ef78 55368all-stageb2g0-binutils: maybe-all-build-bison
6a19fd82 55369all-stage3-binutils: maybe-all-build-bison
2b41ef78 55370all-stageb3g2-binutils: maybe-all-build-bison
6a19fd82
PB
55371all-stage4-binutils: maybe-all-build-bison
55372all-stageprofile-binutils: maybe-all-build-bison
55373all-stagefeedback-binutils: maybe-all-build-bison
6a19fd82
PB
55374all-binutils: maybe-all-build-byacc
55375
55376all-stage1-binutils: maybe-all-build-byacc
55377all-stage2-binutils: maybe-all-build-byacc
2b41ef78 55378all-stageb2g0-binutils: maybe-all-build-byacc
6a19fd82 55379all-stage3-binutils: maybe-all-build-byacc
2b41ef78 55380all-stageb3g2-binutils: maybe-all-build-byacc
6a19fd82
PB
55381all-stage4-binutils: maybe-all-build-byacc
55382all-stageprofile-binutils: maybe-all-build-byacc
55383all-stagefeedback-binutils: maybe-all-build-byacc
364b9683
PB
55384all-binutils: maybe-all-intl
55385
55386all-stage1-binutils: maybe-all-stage1-intl
55387all-stage2-binutils: maybe-all-stage2-intl
2b41ef78 55388all-stageb2g0-binutils: maybe-all-stageb2g0-intl
364b9683 55389all-stage3-binutils: maybe-all-stage3-intl
2b41ef78 55390all-stageb3g2-binutils: maybe-all-stageb3g2-intl
364b9683
PB
55391all-stage4-binutils: maybe-all-stage4-intl
55392all-stageprofile-binutils: maybe-all-stageprofile-intl
55393all-stagefeedback-binutils: maybe-all-stagefeedback-intl
c5ab3a90 55394install-binutils: maybe-install-opcodes
7deb4540 55395install-opcodes: maybe-install-bfd
0505defa
DJ
55396configure-gas: maybe-configure-intl
55397
55398configure-stage1-gas: maybe-configure-stage1-intl
55399configure-stage2-gas: maybe-configure-stage2-intl
2b41ef78 55400configure-stageb2g0-gas: maybe-configure-stageb2g0-intl
0505defa 55401configure-stage3-gas: maybe-configure-stage3-intl
2b41ef78 55402configure-stageb3g2-gas: maybe-configure-stageb3g2-intl
0505defa
DJ
55403configure-stage4-gas: maybe-configure-stage4-intl
55404configure-stageprofile-gas: maybe-configure-stageprofile-intl
55405configure-stagefeedback-gas: maybe-configure-stagefeedback-intl
364b9683
PB
55406all-gas: maybe-all-libiberty
55407
55408all-stage1-gas: maybe-all-stage1-libiberty
55409all-stage2-gas: maybe-all-stage2-libiberty
2b41ef78 55410all-stageb2g0-gas: maybe-all-stageb2g0-libiberty
364b9683 55411all-stage3-gas: maybe-all-stage3-libiberty
2b41ef78 55412all-stageb3g2-gas: maybe-all-stageb3g2-libiberty
364b9683
PB
55413all-stage4-gas: maybe-all-stage4-libiberty
55414all-stageprofile-gas: maybe-all-stageprofile-libiberty
55415all-stagefeedback-gas: maybe-all-stagefeedback-libiberty
55416all-gas: maybe-all-opcodes
55417
55418all-stage1-gas: maybe-all-stage1-opcodes
55419all-stage2-gas: maybe-all-stage2-opcodes
2b41ef78 55420all-stageb2g0-gas: maybe-all-stageb2g0-opcodes
364b9683 55421all-stage3-gas: maybe-all-stage3-opcodes
2b41ef78 55422all-stageb3g2-gas: maybe-all-stageb3g2-opcodes
364b9683
PB
55423all-stage4-gas: maybe-all-stage4-opcodes
55424all-stageprofile-gas: maybe-all-stageprofile-opcodes
55425all-stagefeedback-gas: maybe-all-stagefeedback-opcodes
55426all-gas: maybe-all-bfd
55427
55428all-stage1-gas: maybe-all-stage1-bfd
55429all-stage2-gas: maybe-all-stage2-bfd
2b41ef78 55430all-stageb2g0-gas: maybe-all-stageb2g0-bfd
364b9683 55431all-stage3-gas: maybe-all-stage3-bfd
2b41ef78 55432all-stageb3g2-gas: maybe-all-stageb3g2-bfd
364b9683
PB
55433all-stage4-gas: maybe-all-stage4-bfd
55434all-stageprofile-gas: maybe-all-stageprofile-bfd
55435all-stagefeedback-gas: maybe-all-stagefeedback-bfd
55436all-gas: maybe-all-intl
55437
55438all-stage1-gas: maybe-all-stage1-intl
55439all-stage2-gas: maybe-all-stage2-intl
2b41ef78 55440all-stageb2g0-gas: maybe-all-stageb2g0-intl
364b9683 55441all-stage3-gas: maybe-all-stage3-intl
2b41ef78 55442all-stageb3g2-gas: maybe-all-stageb3g2-intl
364b9683
PB
55443all-stage4-gas: maybe-all-stage4-intl
55444all-stageprofile-gas: maybe-all-stageprofile-intl
55445all-stagefeedback-gas: maybe-all-stagefeedback-intl
0505defa 55446configure-gprof: maybe-configure-intl
364b9683
PB
55447all-gprof: maybe-all-libiberty
55448all-gprof: maybe-all-bfd
55449all-gprof: maybe-all-opcodes
55450all-gprof: maybe-all-intl
0505defa
DJ
55451configure-ld: maybe-configure-intl
55452
55453configure-stage1-ld: maybe-configure-stage1-intl
55454configure-stage2-ld: maybe-configure-stage2-intl
2b41ef78 55455configure-stageb2g0-ld: maybe-configure-stageb2g0-intl
0505defa 55456configure-stage3-ld: maybe-configure-stage3-intl
2b41ef78 55457configure-stageb3g2-ld: maybe-configure-stageb3g2-intl
0505defa
DJ
55458configure-stage4-ld: maybe-configure-stage4-intl
55459configure-stageprofile-ld: maybe-configure-stageprofile-intl
55460configure-stagefeedback-ld: maybe-configure-stagefeedback-intl
364b9683
PB
55461all-ld: maybe-all-libiberty
55462
55463all-stage1-ld: maybe-all-stage1-libiberty
55464all-stage2-ld: maybe-all-stage2-libiberty
2b41ef78 55465all-stageb2g0-ld: maybe-all-stageb2g0-libiberty
364b9683 55466all-stage3-ld: maybe-all-stage3-libiberty
2b41ef78 55467all-stageb3g2-ld: maybe-all-stageb3g2-libiberty
364b9683
PB
55468all-stage4-ld: maybe-all-stage4-libiberty
55469all-stageprofile-ld: maybe-all-stageprofile-libiberty
55470all-stagefeedback-ld: maybe-all-stagefeedback-libiberty
55471all-ld: maybe-all-bfd
55472
55473all-stage1-ld: maybe-all-stage1-bfd
55474all-stage2-ld: maybe-all-stage2-bfd
2b41ef78 55475all-stageb2g0-ld: maybe-all-stageb2g0-bfd
364b9683 55476all-stage3-ld: maybe-all-stage3-bfd
2b41ef78 55477all-stageb3g2-ld: maybe-all-stageb3g2-bfd
364b9683
PB
55478all-stage4-ld: maybe-all-stage4-bfd
55479all-stageprofile-ld: maybe-all-stageprofile-bfd
55480all-stagefeedback-ld: maybe-all-stagefeedback-bfd
55481all-ld: maybe-all-opcodes
55482
55483all-stage1-ld: maybe-all-stage1-opcodes
55484all-stage2-ld: maybe-all-stage2-opcodes
2b41ef78 55485all-stageb2g0-ld: maybe-all-stageb2g0-opcodes
364b9683 55486all-stage3-ld: maybe-all-stage3-opcodes
2b41ef78 55487all-stageb3g2-ld: maybe-all-stageb3g2-opcodes
364b9683
PB
55488all-stage4-ld: maybe-all-stage4-opcodes
55489all-stageprofile-ld: maybe-all-stageprofile-opcodes
55490all-stagefeedback-ld: maybe-all-stagefeedback-opcodes
6a19fd82
PB
55491all-ld: maybe-all-build-bison
55492
55493all-stage1-ld: maybe-all-build-bison
55494all-stage2-ld: maybe-all-build-bison
2b41ef78 55495all-stageb2g0-ld: maybe-all-build-bison
6a19fd82 55496all-stage3-ld: maybe-all-build-bison
2b41ef78 55497all-stageb3g2-ld: maybe-all-build-bison
6a19fd82
PB
55498all-stage4-ld: maybe-all-build-bison
55499all-stageprofile-ld: maybe-all-build-bison
55500all-stagefeedback-ld: maybe-all-build-bison
6a19fd82
PB
55501all-ld: maybe-all-build-byacc
55502
55503all-stage1-ld: maybe-all-build-byacc
55504all-stage2-ld: maybe-all-build-byacc
2b41ef78 55505all-stageb2g0-ld: maybe-all-build-byacc
6a19fd82 55506all-stage3-ld: maybe-all-build-byacc
2b41ef78 55507all-stageb3g2-ld: maybe-all-build-byacc
6a19fd82
PB
55508all-stage4-ld: maybe-all-build-byacc
55509all-stageprofile-ld: maybe-all-build-byacc
55510all-stagefeedback-ld: maybe-all-build-byacc
6a19fd82
PB
55511all-ld: maybe-all-build-flex
55512
55513all-stage1-ld: maybe-all-build-flex
55514all-stage2-ld: maybe-all-build-flex
2b41ef78 55515all-stageb2g0-ld: maybe-all-build-flex
6a19fd82 55516all-stage3-ld: maybe-all-build-flex
2b41ef78 55517all-stageb3g2-ld: maybe-all-build-flex
6a19fd82
PB
55518all-stage4-ld: maybe-all-build-flex
55519all-stageprofile-ld: maybe-all-build-flex
55520all-stagefeedback-ld: maybe-all-build-flex
364b9683
PB
55521all-ld: maybe-all-intl
55522
55523all-stage1-ld: maybe-all-stage1-intl
55524all-stage2-ld: maybe-all-stage2-intl
2b41ef78 55525all-stageb2g0-ld: maybe-all-stageb2g0-intl
364b9683 55526all-stage3-ld: maybe-all-stage3-intl
2b41ef78 55527all-stageb3g2-ld: maybe-all-stageb3g2-intl
364b9683
PB
55528all-stage4-ld: maybe-all-stage4-intl
55529all-stageprofile-ld: maybe-all-stageprofile-intl
55530all-stagefeedback-ld: maybe-all-stagefeedback-intl
b916272a
ILT
55531configure-gold: maybe-configure-intl
55532
55533configure-stage1-gold: maybe-configure-stage1-intl
55534configure-stage2-gold: maybe-configure-stage2-intl
55535configure-stageb2g0-gold: maybe-configure-stageb2g0-intl
55536configure-stage3-gold: maybe-configure-stage3-intl
55537configure-stageb3g2-gold: maybe-configure-stageb3g2-intl
55538configure-stage4-gold: maybe-configure-stage4-intl
55539configure-stageprofile-gold: maybe-configure-stageprofile-intl
55540configure-stagefeedback-gold: maybe-configure-stagefeedback-intl
55541all-gold: maybe-all-libiberty
55542
55543all-stage1-gold: maybe-all-stage1-libiberty
55544all-stage2-gold: maybe-all-stage2-libiberty
55545all-stageb2g0-gold: maybe-all-stageb2g0-libiberty
55546all-stage3-gold: maybe-all-stage3-libiberty
55547all-stageb3g2-gold: maybe-all-stageb3g2-libiberty
55548all-stage4-gold: maybe-all-stage4-libiberty
55549all-stageprofile-gold: maybe-all-stageprofile-libiberty
55550all-stagefeedback-gold: maybe-all-stagefeedback-libiberty
55551all-gold: maybe-all-intl
55552
55553all-stage1-gold: maybe-all-stage1-intl
55554all-stage2-gold: maybe-all-stage2-intl
55555all-stageb2g0-gold: maybe-all-stageb2g0-intl
55556all-stage3-gold: maybe-all-stage3-intl
55557all-stageb3g2-gold: maybe-all-stageb3g2-intl
55558all-stage4-gold: maybe-all-stage4-intl
55559all-stageprofile-gold: maybe-all-stageprofile-intl
55560all-stagefeedback-gold: maybe-all-stagefeedback-intl
55561all-gold: maybe-all-bfd
55562
55563all-stage1-gold: maybe-all-stage1-bfd
55564all-stage2-gold: maybe-all-stage2-bfd
55565all-stageb2g0-gold: maybe-all-stageb2g0-bfd
55566all-stage3-gold: maybe-all-stage3-bfd
55567all-stageb3g2-gold: maybe-all-stageb3g2-bfd
55568all-stage4-gold: maybe-all-stage4-bfd
55569all-stageprofile-gold: maybe-all-stageprofile-bfd
55570all-stagefeedback-gold: maybe-all-stagefeedback-bfd
55571all-gold: maybe-all-build-bison
55572
55573all-stage1-gold: maybe-all-build-bison
55574all-stage2-gold: maybe-all-build-bison
55575all-stageb2g0-gold: maybe-all-build-bison
55576all-stage3-gold: maybe-all-build-bison
55577all-stageb3g2-gold: maybe-all-build-bison
55578all-stage4-gold: maybe-all-build-bison
55579all-stageprofile-gold: maybe-all-build-bison
55580all-stagefeedback-gold: maybe-all-build-bison
55581all-gold: maybe-all-build-byacc
55582
55583all-stage1-gold: maybe-all-build-byacc
55584all-stage2-gold: maybe-all-build-byacc
55585all-stageb2g0-gold: maybe-all-build-byacc
55586all-stage3-gold: maybe-all-build-byacc
55587all-stageb3g2-gold: maybe-all-build-byacc
55588all-stage4-gold: maybe-all-build-byacc
55589all-stageprofile-gold: maybe-all-build-byacc
55590all-stagefeedback-gold: maybe-all-build-byacc
0838c752
ILT
55591check-gold: maybe-all-binutils
55592
55593check-stage1-gold: maybe-all-stage1-binutils
55594check-stage2-gold: maybe-all-stage2-binutils
55595check-stageb2g0-gold: maybe-all-stageb2g0-binutils
55596check-stage3-gold: maybe-all-stage3-binutils
55597check-stageb3g2-gold: maybe-all-stageb3g2-binutils
55598check-stage4-gold: maybe-all-stage4-binutils
55599check-stageprofile-gold: maybe-all-stageprofile-binutils
55600check-stagefeedback-gold: maybe-all-stagefeedback-binutils
b04b2e6b
JJ
55601configure-opcodes: maybe-configure-intl
55602
55603configure-stage1-opcodes: maybe-configure-stage1-intl
55604configure-stage2-opcodes: maybe-configure-stage2-intl
2b41ef78 55605configure-stageb2g0-opcodes: maybe-configure-stageb2g0-intl
b04b2e6b 55606configure-stage3-opcodes: maybe-configure-stage3-intl
2b41ef78 55607configure-stageb3g2-opcodes: maybe-configure-stageb3g2-intl
b04b2e6b
JJ
55608configure-stage4-opcodes: maybe-configure-stage4-intl
55609configure-stageprofile-opcodes: maybe-configure-stageprofile-intl
55610configure-stagefeedback-opcodes: maybe-configure-stagefeedback-intl
364b9683
PB
55611all-opcodes: maybe-all-bfd
55612
55613all-stage1-opcodes: maybe-all-stage1-bfd
55614all-stage2-opcodes: maybe-all-stage2-bfd
2b41ef78 55615all-stageb2g0-opcodes: maybe-all-stageb2g0-bfd
364b9683 55616all-stage3-opcodes: maybe-all-stage3-bfd
2b41ef78 55617all-stageb3g2-opcodes: maybe-all-stageb3g2-bfd
364b9683
PB
55618all-stage4-opcodes: maybe-all-stage4-bfd
55619all-stageprofile-opcodes: maybe-all-stageprofile-bfd
55620all-stagefeedback-opcodes: maybe-all-stagefeedback-bfd
55621all-opcodes: maybe-all-libiberty
55622
55623all-stage1-opcodes: maybe-all-stage1-libiberty
55624all-stage2-opcodes: maybe-all-stage2-libiberty
2b41ef78 55625all-stageb2g0-opcodes: maybe-all-stageb2g0-libiberty
364b9683 55626all-stage3-opcodes: maybe-all-stage3-libiberty
2b41ef78 55627all-stageb3g2-opcodes: maybe-all-stageb3g2-libiberty
364b9683
PB
55628all-stage4-opcodes: maybe-all-stage4-libiberty
55629all-stageprofile-opcodes: maybe-all-stageprofile-libiberty
55630all-stagefeedback-opcodes: maybe-all-stagefeedback-libiberty
b04b2e6b
JJ
55631all-opcodes: maybe-all-intl
55632
55633all-stage1-opcodes: maybe-all-stage1-intl
55634all-stage2-opcodes: maybe-all-stage2-intl
2b41ef78 55635all-stageb2g0-opcodes: maybe-all-stageb2g0-intl
b04b2e6b 55636all-stage3-opcodes: maybe-all-stage3-intl
2b41ef78 55637all-stageb3g2-opcodes: maybe-all-stageb3g2-intl
b04b2e6b
JJ
55638all-stage4-opcodes: maybe-all-stage4-intl
55639all-stageprofile-opcodes: maybe-all-stageprofile-intl
55640all-stagefeedback-opcodes: maybe-all-stagefeedback-intl
364b9683
PB
55641all-dejagnu: maybe-all-tcl
55642all-dejagnu: maybe-all-expect
55643all-dejagnu: maybe-all-tk
55644configure-expect: maybe-configure-tcl
55645configure-expect: maybe-configure-tk
55646all-expect: maybe-all-tcl
55647all-expect: maybe-all-tk
55648configure-itcl: maybe-configure-tcl
55649configure-itcl: maybe-configure-tk
55650all-itcl: maybe-all-tcl
55651all-itcl: maybe-all-tk
c5ab3a90 55652install-itcl: maybe-install-tcl
5f7308ff 55653configure-tk: maybe-configure-tcl
c5ab3a90 55654all-tk: maybe-all-tcl
364b9683
PB
55655all-sid: maybe-all-libiberty
55656all-sid: maybe-all-bfd
55657all-sid: maybe-all-opcodes
55658all-sid: maybe-all-tcl
55659all-sid: maybe-all-tk
55660install-sid: maybe-install-tcl
55661install-sid: maybe-install-tk
0505defa
DJ
55662configure-sim: maybe-configure-intl
55663all-sim: maybe-all-intl
364b9683
PB
55664all-sim: maybe-all-libiberty
55665all-sim: maybe-all-bfd
55666all-sim: maybe-all-opcodes
55667all-sim: maybe-all-readline
55668all-sim: maybe-configure-gdb
55669all-fastjar: maybe-all-zlib
6a19fd82 55670all-fastjar: maybe-all-build-texinfo
364b9683
PB
55671all-fastjar: maybe-all-libiberty
55672all-autoconf: maybe-all-m4
6a19fd82 55673all-autoconf: maybe-all-build-texinfo
364b9683 55674all-automake: maybe-all-m4
6a19fd82 55675all-automake: maybe-all-build-texinfo
364b9683
PB
55676all-automake: maybe-all-autoconf
55677all-bison: maybe-all-intl
6a19fd82 55678all-bison: maybe-all-build-texinfo
364b9683 55679all-diff: maybe-all-intl
6a19fd82 55680all-diff: maybe-all-build-texinfo
364b9683 55681all-fileutils: maybe-all-intl
6a19fd82
PB
55682all-fileutils: maybe-all-build-texinfo
55683all-flex: maybe-all-build-bison
55684all-flex: maybe-all-build-byacc
364b9683
PB
55685all-flex: maybe-all-intl
55686all-flex: maybe-all-m4
6a19fd82 55687all-flex: maybe-all-build-texinfo
364b9683
PB
55688all-gzip: maybe-all-intl
55689all-gzip: maybe-all-zlib
6a19fd82 55690all-gzip: maybe-all-build-texinfo
364b9683 55691all-hello: maybe-all-intl
6a19fd82 55692all-hello: maybe-all-build-texinfo
364b9683 55693all-m4: maybe-all-intl
6a19fd82 55694all-m4: maybe-all-build-texinfo
364b9683 55695all-make: maybe-all-intl
6a19fd82
PB
55696all-make: maybe-all-build-texinfo
55697all-patch: maybe-all-build-texinfo
55698all-make: maybe-all-build-texinfo
c5e4bb70 55699all-prms: maybe-all-libiberty
6a19fd82
PB
55700all-recode: maybe-all-build-texinfo
55701all-sed: maybe-all-build-texinfo
c5e4bb70 55702all-send-pr: maybe-all-prms
6a19fd82
PB
55703all-tar: maybe-all-build-texinfo
55704all-uudecode: maybe-all-build-texinfo
364b9683 55705configure-target-boehm-gc: maybe-configure-target-qthreads
5f7308ff 55706configure-target-fastjar: maybe-configure-target-zlib
364b9683
PB
55707all-target-fastjar: maybe-all-target-zlib
55708all-target-fastjar: maybe-all-target-libiberty
55709configure-target-libjava: maybe-configure-target-zlib
55710configure-target-libjava: maybe-configure-target-boehm-gc
55711configure-target-libjava: maybe-configure-target-qthreads
55712configure-target-libjava: maybe-configure-target-libffi
55713all-target-libjava: maybe-all-fastjar
55714all-target-libjava: maybe-all-target-zlib
55715all-target-libjava: maybe-all-target-boehm-gc
55716all-target-libjava: maybe-all-target-qthreads
55717all-target-libjava: maybe-all-target-libffi
e1e5148c 55718configure-target-libobjc: maybe-configure-target-boehm-gc
c5ab3a90 55719all-target-libobjc: maybe-all-target-libiberty
e1e5148c 55720all-target-libobjc: maybe-all-target-boehm-gc
c5ab3a90 55721all-target-libstdc++-v3: maybe-all-target-libiberty
a8c17d42 55722configure-target-libstdc++-v3: maybe-configure-target-libgomp
8eea1bd7 55723all-target-libgloss: maybe-all-target-newlib
364b9683
PB
55724all-target-winsup: maybe-all-target-libiberty
55725all-target-winsup: maybe-all-target-libtermcap
55726
55727
1f316156
DJ
55728# Dependencies for target modules on other target modules are
55729# described by lang_env_dependencies; the defaults apply to anything
55730# not mentioned there.
55731
55732
55733@if gcc-bootstrap
55734@endif gcc-bootstrap
55735
55736@if gcc-no-bootstrap
55737configure-target-libstdc++-v3: maybe-all-target-libgcc
55738configure-target-libmudflap: maybe-all-target-libgcc
55739configure-target-libssp: maybe-all-target-libgcc
55740configure-target-newlib: maybe-all-target-libgcc
55741configure-target-libgfortran: maybe-all-target-libgcc
55742configure-target-libobjc: maybe-all-target-libgcc
55743configure-target-libtermcap: maybe-all-target-libgcc
55744configure-target-winsup: maybe-all-target-libgcc
55745configure-target-libgloss: maybe-all-target-libgcc
55746configure-target-libiberty: maybe-all-target-libgcc
55747configure-target-gperf: maybe-all-target-libgcc
55748configure-target-examples: maybe-all-target-libgcc
55749configure-target-libffi: maybe-all-target-libgcc
55750configure-target-libjava: maybe-all-target-libgcc
55751configure-target-zlib: maybe-all-target-libgcc
55752configure-target-boehm-gc: maybe-all-target-libgcc
55753configure-target-qthreads: maybe-all-target-libgcc
55754configure-target-rda: maybe-all-target-libgcc
55755configure-target-libada: maybe-all-target-libgcc
55756configure-target-libgomp: maybe-all-target-libgcc
55757@endif gcc-no-bootstrap
55758
55759
55760configure-target-libstdc++-v3: maybe-all-target-newlib maybe-all-target-libgloss
55761
55762configure-target-libmudflap: maybe-all-target-newlib maybe-all-target-libgloss
55763
55764configure-target-libssp: maybe-all-target-newlib maybe-all-target-libgloss
55765
55766
55767
55768configure-target-libgfortran: maybe-all-target-newlib maybe-all-target-libgloss
55769
55770configure-target-libobjc: maybe-all-target-newlib maybe-all-target-libgloss
55771
55772configure-target-libtermcap: maybe-all-target-newlib maybe-all-target-libgloss
55773
55774configure-target-winsup: maybe-all-target-newlib maybe-all-target-libgloss
55775
55776
55777
55778configure-target-gperf: maybe-all-target-newlib maybe-all-target-libgloss
55779configure-target-gperf: maybe-all-target-libstdc++-v3
55780
55781configure-target-examples: maybe-all-target-newlib maybe-all-target-libgloss
55782
55783configure-target-libffi: maybe-all-target-newlib maybe-all-target-libgloss
55784
55785configure-target-libjava: maybe-all-target-newlib maybe-all-target-libgloss
55786configure-target-libjava: maybe-all-target-libstdc++-v3
55787
55788configure-target-zlib: maybe-all-target-newlib maybe-all-target-libgloss
55789
55790configure-target-boehm-gc: maybe-all-target-newlib maybe-all-target-libgloss
55791
55792configure-target-qthreads: maybe-all-target-newlib maybe-all-target-libgloss
55793
55794configure-target-rda: maybe-all-target-newlib maybe-all-target-libgloss
55795
55796configure-target-libada: maybe-all-target-newlib maybe-all-target-libgloss
55797
55798configure-target-libgomp: maybe-all-target-newlib maybe-all-target-libgloss
55799
55800
81cdf522 55801CONFIGURE_GDB_TK = @CONFIGURE_GDB_TK@
364b9683 55802GDB_TK = @GDB_TK@
81cdf522
DJ
55803INSTALL_GDB_TK = @INSTALL_GDB_TK@
55804configure-gdb: $(CONFIGURE_GDB_TK)
364b9683 55805all-gdb: $(gdbnlmrequirements) $(GDB_TK)
81cdf522 55806install-gdb: $(INSTALL_GDB_TK)
00f56d7b 55807
d8e6f006
NN
55808# Serialization dependencies. Host configures don't work well in parallel to
55809# each other, due to contention over config.cache. Target configures and
55810# build configures are similar.
55811@serialization_dependencies@
55812
43bdb69a
NN
55813# --------------------------------
55814# Regenerating top level configury
55815# --------------------------------
a3acbf46 55816
862fb445 55817# Rebuilding Makefile.in, using autogen.
81011f17 55818AUTOGEN = autogen
3728f201 55819$(srcdir)/Makefile.in: @MAINT@ $(srcdir)/Makefile.tpl $(srcdir)/Makefile.def
81011f17 55820 cd $(srcdir) && $(AUTOGEN) Makefile.def
862fb445 55821
bafecfd6 55822# Rebuilding Makefile.
81011f17
AO
55823Makefile: $(srcdir)/Makefile.in config.status
55824 CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
55825
9e6daff1 55826config.status: configure
08bf2e60 55827 CONFIG_SHELL="$(SHELL)" $(SHELL) ./config.status --recheck
a3acbf46 55828
bafecfd6 55829# Rebuilding configure.
81011f17 55830AUTOCONF = autoconf
9ad2ea2f
PB
55831$(srcdir)/configure: @MAINT@ $(srcdir)/configure.ac $(srcdir)/config/acx.m4 \
55832 $(srcdir)/config/override.m4 $(srcdir)/config/proginstall.m4
81011f17 55833 cd $(srcdir) && $(AUTOCONF)
a3acbf46 55834
1c53cd00
NN
55835# ------------------------------
55836# Special directives to GNU Make
55837# ------------------------------
55838
1c53cd00
NN
55839# Don't pass command-line variables to submakes.
55840.NOEXPORT:
55841MAKEOVERRIDES=
55842
a3acbf46 55843# end of Makefile.in
This page took 8.038751 seconds and 5 git commands to generate.