]> gcc.gnu.org Git - gcc.git/blame - Makefile.in
configure.in: Adjust command to source config-ml.in to account for changes to the...
[gcc.git] / Makefile.in
CommitLineData
95ddd785
NN
1
2# Makefile.in is generated from Makefile.tpl by 'autogen Makefile.def'.
6599da04
JM
3#
4# Makefile for directory with subdirs to build.
6e2a4843 5# Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
1e6347d8 6# 1999, 2000, 2001, 2002 Free Software Foundation
6599da04
JM
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
20# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21#
22
4977bab6
ZW
23VPATH=@srcdir@
24links=@configlinks@
25
26build_alias=@build_alias@
27build_cpu=@build_cpu@
28build_vendor=@build_vendor@
29build_os=@build_os@
30build_canonical=@build_cpu@-@build_vendor@-@build_os@
31host_alias=@host_alias@
32host_cpu=@host_cpu@
33host_vendor=@host_vendor@
34host_os=@host_os@
35host_canonical=@host_cpu@-@host_vendor@-@host_os@
36target_alias=@target_alias@
37target_cpu=@target_cpu@
38target_vendor=@target_vendor@
39target_os=@target_os@
40target_canonical=@target_cpu@-@target_vendor@-@target_os@
41
42enable_shared = @enable_shared@
43enable_threads = @enable_threads@
44enable_version_specific_runtime_libs = @enable_version_specific_runtime_libs@
45# The file containing GCC's version number.
46gcc_version_trigger = @gcc_version_trigger@
47gcc_version = @gcc_version@
48
3dfabf63
NN
49# The gcc driver likes to know the arguments it was configured with.
50TOPLEVEL_CONFIGURE_ARGUMENTS=@TOPLEVEL_CONFIGURE_ARGUMENTS@
51
0dffceed
NN
52srcdir = @srcdir@
53
54prefix = @prefix@
55exec_prefix = @exec_prefix@
56
57bindir = @bindir@
58sbindir = @sbindir@
59libexecdir = @libexecdir@
60datadir = @datadir@
61sysconfdir = @sysconfdir@
62sharedstatedir = @sharedstatedir@
63localstatedir = @localstatedir@
64libdir = @libdir@
65includedir = @includedir@
66oldincludedir = @oldincludedir@
67infodir = @infodir@
68mandir = @mandir@
f0895142
AS
69gxx_include_dir = @gxx_include_dir@
70libstdcxx_incdir = @libstdcxx_incdir@
5d4a5ee6 71
0dffceed
NN
72tooldir = @tooldir@
73build_tooldir = @build_tooldir@
5cb95c7a 74
0dffceed 75program_transform_name = @program_transform_name@
6599da04 76
6599da04
JM
77man1dir = $(mandir)/man1
78man2dir = $(mandir)/man2
79man3dir = $(mandir)/man3
80man4dir = $(mandir)/man4
81man5dir = $(mandir)/man5
82man6dir = $(mandir)/man6
83man7dir = $(mandir)/man7
84man8dir = $(mandir)/man8
85man9dir = $(mandir)/man9
fe2fa3c4
MH
86# Directory in which the compiler finds executables, libraries, etc.
87libsubdir = $(libdir)/gcc-lib/$(target_alias)/$(gcc_version)
6599da04
JM
88GDB_NLM_DEPS =
89
0dffceed 90SHELL = @config_shell@
6599da04 91
1e6347d8
RO
92# pwd command to use. Allow user to override default by setting PWDCMD in
93# the environment to account for automounters. The make variable must not
94# be called PWDCMD, otherwise the value set here is passed to make
95# subprocesses and overrides the setting from the user's environment.
96PWD = $${PWDCMD-pwd}
97
6599da04 98# INSTALL_PROGRAM_ARGS is changed by configure.in to use -x for a
d207ebef 99# cygwin host.
6599da04
JM
100INSTALL_PROGRAM_ARGS =
101
102INSTALL = $(SHELL) $$s/install-sh -c
103INSTALL_PROGRAM = $(INSTALL) $(INSTALL_PROGRAM_ARGS)
104INSTALL_SCRIPT = $(INSTALL)
105INSTALL_DATA = $(INSTALL) -m 644
106
4977bab6
ZW
107AS = @AS@
108AR = @AR@
6599da04 109AR_FLAGS = rc
4977bab6 110CC = @CC@
6599da04
JM
111
112# Special variables passed down in EXTRA_GCC_FLAGS. They are defined
113# here so that they can be overridden by Makefile fragments.
4977bab6
ZW
114BUILD_CC = $(CC_FOR_BUILD)
115BUILD_PREFIX = @BUILD_PREFIX@
116BUILD_PREFIX_1 = @BUILD_PREFIX_1@
6599da04 117
4977bab6
ZW
118CFLAGS = @CFLAGS@
119CXXFLAGS = @CXXFLAGS@
6599da04 120
d207ebef 121LDFLAGS =
6599da04 122LIBCFLAGS = $(CFLAGS)
d920e825 123CFLAGS_FOR_BUILD = $(CFLAGS)
c8eb2bc0
KG
124# During gcc bootstrap, if we use some random cc for stage1 then
125# CFLAGS will be just -g. We want to ensure that TARGET libraries
126# (which we know are built with gcc) are built with optimizations so
127# prepend -O2 when setting CFLAGS_FOR_TARGET.
128CFLAGS_FOR_TARGET = -O2 $(CFLAGS)
6599da04
JM
129LDFLAGS_FOR_TARGET =
130LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
131PICFLAG =
132PICFLAG_FOR_TARGET =
133
4977bab6 134CXX = @CXX@
6599da04
JM
135
136# Use -O2 to stress test the compiler.
137LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates
138CXXFLAGS_FOR_TARGET = $(CXXFLAGS)
139LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
140
4977bab6
ZW
141DLLTOOL = @DLLTOOL@
142WINDRES = @WINDRES@
6599da04 143
4977bab6 144NM = @NM@
6599da04 145
4977bab6 146LD = @LD@
6599da04 147
6599da04 148# These values are substituted by configure.
0dffceed
NN
149DEFAULT_YACC = @DEFAULT_YACC@
150DEFAULT_LEX = @DEFAULT_LEX@
151DEFAULT_M4 = @DEFAULT_M4@
6599da04 152
4977bab6
ZW
153BISON=@BISON@
154USUAL_BISON = `if [ -f $$r/bison/bison ] ; then \
6599da04
JM
155 echo $$r/bison/bison -L $$s/bison/ ; \
156 else \
157 echo bison ; \
158 fi`
159
4977bab6
ZW
160YACC=@YACC@
161USUAL_YACC = `if [ -f $$r/bison/bison ] ; then \
6599da04
JM
162 echo $$r/bison/bison -y -L $$s/bison/ ; \
163 elif [ -f $$r/byacc/byacc ] ; then \
164 echo $$r/byacc/byacc ; \
165 else \
166 echo ${DEFAULT_YACC} ; \
167 fi`
168
4977bab6
ZW
169LEX=@LEX@
170USUAL_LEX = `if [ -f $$r/flex/flex ] ; \
6599da04
JM
171 then echo $$r/flex/flex ; \
172 else echo ${DEFAULT_LEX} ; fi`
173
174M4 = `if [ -f $$r/m4/m4 ] ; \
175 then echo $$r/m4/m4 ; \
3a35dcc4 176 else echo ${DEFAULT_M4} ; fi`
6599da04 177
53cdb27a
HPN
178# For an installed makeinfo, we require it to be from texinfo 4 or
179# higher, else we use the "missing" dummy.
4977bab6
ZW
180MAKEINFO=@MAKEINFO@
181USUAL_MAKEINFO = `if [ -f $$r/texinfo/makeinfo/makeinfo ] ; \
6599da04 182 then echo $$r/texinfo/makeinfo/makeinfo ; \
53cdb27a
HPN
183 else if (makeinfo --version \
184 | egrep 'texinfo[^0-9]*([1-3][0-9]|[4-9])') >/dev/null 2>&1; \
185 then echo makeinfo; else echo $$s/missing makeinfo; fi; fi`
6599da04
JM
186
187# This just becomes part of the MAKEINFO definition passed down to
188# sub-makes. It lets flags be given on the command line while still
189# using the makeinfo from the object tree.
190MAKEINFOFLAGS =
191
192EXPECT = `if [ -f $$r/expect/expect ] ; \
193 then echo $$r/expect/expect ; \
194 else echo expect ; fi`
195
196RUNTEST = `if [ -f $$s/dejagnu/runtest ] ; \
197 then echo $$s/dejagnu/runtest ; \
198 else echo runtest ; fi`
199
200
201# compilers to use to create programs which must be run in the build
202# environment.
4977bab6 203CC_FOR_BUILD = @CC_FOR_BUILD@
6599da04
JM
204CXX_FOR_BUILD = $(CXX)
205
dd30b57d 206SUBDIRS = @configdirs@
6599da04
JM
207
208# This is set by the configure script to the list of directories which
209# should be built using the target tools.
ec0461f6 210TARGET_CONFIGDIRS = @target_configdirs@
6599da04
JM
211
212# Target libraries are put under this directory:
213# Changed by configure to $(target_alias) if cross.
ec0461f6 214TARGET_SUBDIR = @target_subdir@
6599da04 215
e490616e 216BUILD_CONFIGDIRS = libiberty
ec0461f6 217BUILD_SUBDIR = @build_subdir@
e490616e 218
e490616e
ZW
219# This is set by the configure script to the arguments to use when configuring
220# directories built for the build system.
ec0461f6 221BUILD_CONFIGARGS = @build_configargs@
6599da04 222
4977bab6
ZW
223# This is set by the configure script to the arguments to use when configuring
224# directories built for the host system.
225HOST_CONFIGARGS = @host_configargs@
226
227# This is set by the configure script to the arguments to use when configuring
228# directories built for the target.
229TARGET_CONFIGARGS = @target_configargs@
230
6599da04
JM
231# This is set by configure to REALLY_SET_LIB_PATH if --enable-shared
232# was used.
aba8a494 233SET_LIB_PATH = @SET_LIB_PATH@
6599da04
JM
234
235# This is the name of the environment variable used for the path to
236# the libraries. This may be changed by configure.in.
fe3d5b7f 237RPATH_ENVVAR = @RPATH_ENVVAR@
6599da04 238
ce8e06b1
AO
239# This is the list of directories that may be needed in RPATH_ENVVAR
240# so that programs built for the host machine work.
241HOST_LIB_PATH = $$r/bfd:$$r/opcodes
242
243# This is the list of directories that may be needed in RPATH_ENVVAR
244# so that prorgams built for the target machine work.
4d88a68a 245TARGET_LIB_PATH = $$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs:
ce8e06b1 246
6599da04 247# configure.in sets SET_LIB_PATH to this if --enable-shared was used.
ce8e06b1
AO
248# Some platforms don't like blank entries, so we remove duplicate,
249# leading and trailing colons.
6599da04 250REALLY_SET_LIB_PATH = \
ce8e06b1 251 $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH):$(TARGET_LIB_PATH):$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR);
6599da04 252
b87487b6 253# Should be substed by configure.in
ec0461f6
NN
254FLAGS_FOR_TARGET = @FLAGS_FOR_TARGET@
255CC_FOR_TARGET = @CC_FOR_TARGET@
256CXX_FOR_TARGET = @CXX_FOR_TARGET@
4977bab6 257RAW_CXX_FOR_TARGET = @RAW_CXX_FOR_TARGET@
ec0461f6 258CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = @CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@
4977bab6 259RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = @RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@
ec0461f6 260GCJ_FOR_TARGET = @GCJ_FOR_TARGET@
6599da04 261
b87487b6 262# If GCC_FOR_TARGET is not overriden on the command line, then this
6599da04
JM
263# variable is passed down to the gcc Makefile, where it is used to
264# build libgcc2.a. We define it here so that it can itself be
265# overridden on the command line.
4977bab6
ZW
266GCC_FOR_TARGET=@GCC_FOR_TARGET@
267USUAL_GCC_FOR_TARGET = $(STAGE_CC_WRAPPER) $$r/gcc/xgcc -B$$r/gcc/ $(FLAGS_FOR_TARGET)
6599da04 268
4977bab6
ZW
269AS_FOR_TARGET=@AS_FOR_TARGET@
270USUAL_AS_FOR_TARGET = ` \
6599da04
JM
271 if [ -f $$r/gas/as-new ] ; then \
272 echo $$r/gas/as-new ; \
e9a8af10
AO
273 elif [ -f $$r/gcc/xgcc ]; then \
274 $(CC_FOR_TARGET) -print-prog-name=as ; \
6599da04 275 else \
759bfa90 276 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
6599da04
JM
277 echo $(AS); \
278 else \
e245b0ea 279 echo as | sed '$(program_transform_name)' ; \
6599da04
JM
280 fi; \
281 fi`
282
4977bab6
ZW
283LD_FOR_TARGET=@LD_FOR_TARGET@
284USUAL_LD_FOR_TARGET = ` \
6599da04
JM
285 if [ -f $$r/ld/ld-new ] ; then \
286 echo $$r/ld/ld-new ; \
e9a8af10
AO
287 elif [ -f $$r/gcc/xgcc ]; then \
288 $(CC_FOR_TARGET) -print-prog-name=ld ; \
6599da04 289 else \
759bfa90 290 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
6599da04
JM
291 echo $(LD); \
292 else \
e245b0ea 293 echo ld | sed '$(program_transform_name)' ; \
6599da04
JM
294 fi; \
295 fi`
296
4977bab6
ZW
297DLLTOOL_FOR_TARGET=@DLLTOOL_FOR_TARGET@
298USUAL_DLLTOOL_FOR_TARGET = ` \
6599da04
JM
299 if [ -f $$r/binutils/dlltool ] ; then \
300 echo $$r/binutils/dlltool ; \
301 else \
759bfa90 302 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
6599da04
JM
303 echo $(DLLTOOL); \
304 else \
e245b0ea 305 echo dlltool | sed '$(program_transform_name)' ; \
6599da04
JM
306 fi; \
307 fi`
308
4977bab6
ZW
309WINDRES_FOR_TARGET=@WINDRES_FOR_TARGET@
310USUAL_WINDRES_FOR_TARGET = ` \
6599da04
JM
311 if [ -f $$r/binutils/windres ] ; then \
312 echo $$r/binutils/windres ; \
313 else \
759bfa90 314 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
6599da04
JM
315 echo $(WINDRES); \
316 else \
e245b0ea 317 echo windres | sed '$(program_transform_name)' ; \
6599da04
JM
318 fi; \
319 fi`
320
4977bab6
ZW
321AR_FOR_TARGET=@AR_FOR_TARGET@
322USUAL_AR_FOR_TARGET = ` \
6599da04
JM
323 if [ -f $$r/binutils/ar ] ; then \
324 echo $$r/binutils/ar ; \
325 else \
759bfa90 326 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
6599da04
JM
327 echo $(AR); \
328 else \
e245b0ea 329 echo ar | sed '$(program_transform_name)' ; \
6599da04
JM
330 fi; \
331 fi`
332
4977bab6
ZW
333RANLIB_FOR_TARGET=@RANLIB_FOR_TARGET@
334USUAL_RANLIB_FOR_TARGET = ` \
6599da04
JM
335 if [ -f $$r/binutils/ranlib ] ; then \
336 echo $$r/binutils/ranlib ; \
337 else \
759bfa90
AO
338 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
339 if [ x'$(RANLIB)' != x ]; then \
6822468a
LB
340 echo $(RANLIB); \
341 else \
342 echo ranlib; \
343 fi; \
6599da04 344 else \
e245b0ea 345 echo ranlib | sed '$(program_transform_name)' ; \
6599da04
JM
346 fi; \
347 fi`
348
4977bab6
ZW
349NM_FOR_TARGET=@NM_FOR_TARGET@
350USUAL_NM_FOR_TARGET = ` \
6599da04
JM
351 if [ -f $$r/binutils/nm-new ] ; then \
352 echo $$r/binutils/nm-new ; \
e9a8af10
AO
353 elif [ -f $$r/gcc/xgcc ]; then \
354 $(CC_FOR_TARGET) -print-prog-name=nm ; \
6599da04 355 else \
759bfa90 356 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
6599da04
JM
357 echo $(NM); \
358 else \
e245b0ea 359 echo nm | sed '$(program_transform_name)' ; \
6599da04
JM
360 fi; \
361 fi`
362
5d4a5ee6
JL
363# The first rule in the file had better be this one. Don't put any above it.
364# This lives here to allow makefile fragments to contain dependencies.
365all: all.normal
366.PHONY: all
367
6599da04 368#### host and target specific makefile fragments come in here.
671aa708
NN
369@target_makefile_frag@
370@alphaieee_frag@
371@ospace_frag@
372@host_makefile_frag@
6599da04
JM
373###
374
375# Flags to pass down to all sub-makes.
376# Please keep these in alphabetical order.
377BASE_FLAGS_TO_PASS = \
378 "AR_FLAGS=$(AR_FLAGS)" \
379 "AR_FOR_TARGET=$(AR_FOR_TARGET)" \
380 "AS_FOR_TARGET=$(AS_FOR_TARGET)" \
381 "BISON=$(BISON)" \
382 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
383 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
384 "CFLAGS=$(CFLAGS)" \
385 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
85b99cbe 386 "GCJ_FOR_TARGET=$(GCJ_FOR_TARGET)" \
6599da04
JM
387 "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
388 "CXXFLAGS=$(CXXFLAGS)" \
389 "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \
390 "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
3fbe8e4a 391 "DESTDIR=$(DESTDIR)" \
6599da04
JM
392 "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \
393 "INSTALL=$(INSTALL)" \
394 "INSTALL_DATA=$(INSTALL_DATA)" \
395 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
396 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
397 "LDFLAGS=$(LDFLAGS)" \
398 "LEX=$(LEX)" \
399 "LD_FOR_TARGET=$(LD_FOR_TARGET)" \
400 "LIBCFLAGS=$(LIBCFLAGS)" \
401 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
402 "LIBCXXFLAGS=$(LIBCXXFLAGS)" \
403 "LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \
404 "M4=$(M4)" \
405 "MAKE=$(MAKE)" \
406 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
407 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
6599da04 408 "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
5d4a5ee6 409 "RPATH_ENVVAR=$(RPATH_ENVVAR)" \
6599da04
JM
410 "SHELL=$(SHELL)" \
411 "EXPECT=$(EXPECT)" \
412 "RUNTEST=$(RUNTEST)" \
413 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
81241b5e 414 "TARGET_SUBDIR=$(TARGET_SUBDIR)" \
6599da04
JM
415 "WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \
416 "YACC=$(YACC)" \
5d4a5ee6
JL
417 "bindir=$(bindir)" \
418 "datadir=$(datadir)" \
6599da04 419 "exec_prefix=$(exec_prefix)" \
5d4a5ee6
JL
420 "includedir=$(includedir)" \
421 "infodir=$(infodir)" \
422 "libdir=$(libdir)" \
423 "libexecdir=$(libexecdir)" \
424 "lispdir=$(lispdir)" \
cc330df9
BK
425 "libstdcxx_incdir=$(libstdcxx_incdir)" \
426 "libsubdir=$(libsubdir)" \
5d4a5ee6
JL
427 "localstatedir=$(localstatedir)" \
428 "mandir=$(mandir)" \
429 "oldincludedir=$(oldincludedir)" \
6599da04 430 "prefix=$(prefix)" \
5d4a5ee6
JL
431 "sbindir=$(sbindir)" \
432 "sharedstatedir=$(sharedstatedir)" \
433 "sysconfdir=$(sysconfdir)" \
d0a8352c 434 "tooldir=$(tooldir)" \
5cb95c7a 435 "build_tooldir=$(build_tooldir)" \
fe2fa3c4
MH
436 "gxx_include_dir=$(gxx_include_dir)" \
437 "gcc_version=$(gcc_version)" \
6dd27861 438 "gcc_version_trigger=$(gcc_version_trigger)" \
cc330df9 439 "target_alias=$(target_alias)"
6599da04 440
a3406c06
AO
441# For any flags above that may contain shell code that varies from one
442# target library to another. When doing recursive invocations of the
443# top-level Makefile, we don't want the outer make to evaluate them,
444# so we pass these variables down unchanged. They must not contain
445# single nor double quotes.
446RECURSE_FLAGS = \
4977bab6
ZW
447 CXX_FOR_TARGET='$(CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)' \
448 RAW_CXX_FOR_TARGET='$(RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)' \
a3406c06 449
6599da04
JM
450# Flags to pass down to most sub-makes, in which we're building with
451# the host environment.
452# If any variables are added here, they must be added to do-*, below.
453EXTRA_HOST_FLAGS = \
454 'AR=$(AR)' \
455 'AS=$(AS)' \
456 'CC=$(CC)' \
457 'CXX=$(CXX)' \
458 'DLLTOOL=$(DLLTOOL)' \
459 'LD=$(LD)' \
460 'NM=$(NM)' \
6822468a 461 "`echo 'RANLIB=$(RANLIB)' | sed -e s/.*=$$/XFOO=/`" \
6599da04
JM
462 'WINDRES=$(WINDRES)'
463
464FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)
465
466# Flags that are concerned with the location of the X11 include files
467# and library files
468#
469# NOTE: until the top-level is getting the values via autoconf, it only
470# causes problems to have this top-level Makefile overriding the autoconf-set
471# values in child directories. Only variables that don't conflict with
472# autoconf'ed ones should be passed by X11_FLAGS_TO_PASS for now.
473#
474X11_FLAGS_TO_PASS = \
475 'X11_EXTRA_CFLAGS=$(X11_EXTRA_CFLAGS)' \
476 'X11_EXTRA_LIBS=$(X11_EXTRA_LIBS)'
477
478# Flags to pass down to makes which are built with the target environment.
479# The double $ decreases the length of the command line; the variables
480# are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them.
481# If any variables are added here, they must be added to do-*, below.
482EXTRA_TARGET_FLAGS = \
483 'AR=$$(AR_FOR_TARGET)' \
484 'AS=$$(AS_FOR_TARGET)' \
485 'CC=$$(CC_FOR_TARGET)' \
486 'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
487 'CXX=$$(CXX_FOR_TARGET)' \
488 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
489 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
490 'LD=$$(LD_FOR_TARGET)' \
491 'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
492 'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \
493 'NM=$$(NM_FOR_TARGET)' \
0c055e34 494 'RANLIB=$$(RANLIB_FOR_TARGET)' \
6599da04
JM
495 'WINDRES=$$(WINDRES_FOR_TARGET)'
496
497TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)
498
499# Flags to pass down to gcc. gcc builds a library, libgcc.a, so it
500# unfortunately needs the native compiler and the target ar and
501# ranlib.
502# If any variables are added here, they must be added to do-*, below.
503# The HOST_* variables are a special case, which are used for the gcc
504# cross-building scheme.
505EXTRA_GCC_FLAGS = \
ecd62820 506 'AR=$(AR)' \
6599da04
JM
507 'AS=$(AS)' \
508 'CC=$(CC)' \
509 'CXX=$(CXX)' \
510 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
4977bab6 511 'BUILD_CC=$(CC_FOR_BUILD)' \
efe1f357
NN
512 'BUILD_PREFIX=$(BUILD_PREFIX)' \
513 'BUILD_PREFIX_1=$(BUILD_PREFIX_1)' \
6599da04 514 'NM=$(NM)' \
6822468a 515 "`echo 'RANLIB=$(RANLIB)' | sed -e s/.*=$$/XFOO=/`" \
6599da04
JM
516 'WINDRES=$$(WINDRES_FOR_TARGET)' \
517 "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
d920e825 518 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
5d4a5ee6
JL
519 "`echo 'LANGUAGES=$(LANGUAGES)' | sed -e s/.*=$$/XFOO=/`" \
520 "`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s/.*=$$/XFOO=/`" \
521 "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s/.*=$$/XFOO=/`" \
5d4a5ee6
JL
522 "`echo 'LIBGCC2_CFLAGS=$(LIBGCC2_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \
523 "`echo 'LIBGCC2_DEBUG_CFLAGS=$(LIBGCC2_DEBUG_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \
524 "`echo 'LIBGCC2_INCLUDES=$(LIBGCC2_INCLUDES)' | sed -e s/.*=$$/XFOO=/`" \
525 "`echo 'ENQUIRE=$(ENQUIRE)' | sed -e s/.*=$$/XFOO=/`" \
78faa32d 526 "`echo 'STAGE1_CFLAGS=$(STAGE1_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \
5d4a5ee6 527 "`echo 'BOOT_CFLAGS=$(BOOT_CFLAGS)' | sed -e s/.*=$$/XFOO=/`"
6599da04
JM
528
529GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS)
530
4977bab6
ZW
531configure-host: @configure_host_modules@
532configure-target: @configure_target_modules@
6599da04
JM
533
534# This is a list of the targets for which we can do a clean-{target}.
535CLEAN_MODULES = \
5d4a5ee6 536 clean-ash \
6599da04
JM
537 clean-autoconf \
538 clean-automake \
539 clean-bash \
540 clean-bfd \
95ddd785 541 clean-opcodes \
6599da04
JM
542 clean-binutils \
543 clean-bison \
544 clean-byacc \
5d4a5ee6 545 clean-bzip2 \
6599da04
JM
546 clean-db \
547 clean-dejagnu \
548 clean-diff \
549 clean-dosutils \
550 clean-etc \
5db1f7ed 551 clean-fastjar \
6599da04
JM
552 clean-fileutils \
553 clean-findutils \
554 clean-find \
555 clean-flex \
556 clean-gas \
557 clean-gawk \
5d4a5ee6 558 clean-gettext \
6599da04
JM
559 clean-gnuserv \
560 clean-gprof \
561 clean-grep \
6599da04
JM
562 clean-gzip \
563 clean-hello \
564 clean-indent \
5d4a5ee6 565 clean-intl \
95ddd785 566 clean-tcl \
6599da04
JM
567 clean-itcl \
568 clean-ld \
5d4a5ee6 569 clean-libgui \
6599da04 570 clean-libiberty \
5d4a5ee6 571 clean-libtool \
6599da04
JM
572 clean-m4 \
573 clean-make \
574 clean-mmalloc \
6599da04
JM
575 clean-patch \
576 clean-perl \
577 clean-prms \
578 clean-rcs \
579 clean-readline \
580 clean-release \
581 clean-recode \
582 clean-sed \
583 clean-send-pr \
584 clean-shellutils \
3f19b439 585 clean-sid \
6599da04 586 clean-sim \
5d4a5ee6 587 clean-snavigator \
6599da04 588 clean-tar \
6599da04
JM
589 clean-texinfo \
590 clean-textutils \
6599da04
JM
591 clean-time \
592 clean-uudecode \
99d60508 593 clean-wdiff \
3c809ba4 594 clean-zip \
4977bab6
ZW
595 clean-zlib \
596 clean-utils
99d60508 597
6599da04
JM
598# All of the target modules that can be cleaned
599CLEAN_TARGET_MODULES = \
17090313 600 clean-target-libstdc++-v3 \
6599da04 601 clean-target-newlib \
8821a725 602 clean-target-libf2c \
6fc19d6d 603 clean-target-libobjc \
6599da04
JM
604 clean-target-winsup \
605 clean-target-libgloss \
606 clean-target-libiberty \
607 clean-target-gperf \
5d4a5ee6 608 clean-target-examples \
aab0d19d 609 clean-target-libffi \
99d60508
TT
610 clean-target-libjava \
611 clean-target-zlib \
612 clean-target-boehm-gc \
40673d2b 613 clean-target-qthreads \
4977bab6 614 clean-target-rda
6599da04
JM
615
616# All of the x11 modules that can be cleaned
617CLEAN_X11_MODULES = \
6599da04
JM
618 clean-gdb \
619 clean-expect \
6599da04 620 clean-guile \
6599da04 621 clean-tk \
4977bab6 622 clean-tix
6599da04 623
6599da04 624# The target built for a native build.
4977bab6 625# This list only includes modules actually being configured and built.
6599da04 626.PHONY: all.normal
4977bab6
ZW
627all.normal: @all_build_modules@ \
628 @all_host_modules@ \
629 @all_target_modules@
630
631all-host: @all_host_modules@
632all-target: @all_target_modules@
6599da04
JM
633
634# Do a target for all the subdirectories. A ``make do-X'' will do a
635# ``make X'' in all subdirectories (because, in general, there is a
636# dependency (below) of X upon do-X, a ``make X'' will also do this,
637# but it may do additional work as well).
638# This target ensures that $(BASE_FLAGS_TO_PASS) appears only once,
639# because it is so large that it can easily overflow the command line
640# length limit on some systems.
4977bab6
ZW
641
642.PHONY: do-clean
643do-clean:
644 @r=`${PWD}`; export r; \
1e6347d8 645 s=`cd $(srcdir); ${PWD}`; export s; \
6599da04
JM
646 $(SET_LIB_PATH) \
647 for i in $(SUBDIRS) -dummy-; do \
648 if [ -f ./$$i/Makefile ]; then \
649 case $$i in \
650 gcc) \
651 for flag in $(EXTRA_GCC_FLAGS); do \
759bfa90 652 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6599da04
JM
653 done; \
654 ;; \
655 *) \
656 for flag in $(EXTRA_HOST_FLAGS); do \
759bfa90 657 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6599da04
JM
658 done; \
659 ;; \
660 esac ; \
88b5521b 661 (cd ./$$i && \
6599da04
JM
662 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
663 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
e9f4fa71 664 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
6599da04 665 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
88b5521b
NN
666 clean) \
667 || exit 1; \
6599da04
JM
668 else true; fi; \
669 done
4977bab6 670 # Break into two pieces
1e6347d8
RO
671 r=`${PWD}`; export r; \
672 s=`cd $(srcdir); ${PWD}`; export s; \
6599da04
JM
673 $(SET_LIB_PATH) \
674 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
675 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
676 for flag in $(EXTRA_TARGET_FLAGS); do \
759bfa90 677 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6599da04 678 done; \
88b5521b 679 (cd $(TARGET_SUBDIR)/$$i && \
6599da04
JM
680 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
681 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7238de5c 682 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
6599da04 683 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
88b5521b
NN
684 clean) \
685 || exit 1; \
6599da04
JM
686 else true; fi; \
687 done
688
4977bab6
ZW
689.PHONY: do-distclean
690do-distclean:
691 @r=`${PWD}`; export r; \
692 s=`cd $(srcdir); ${PWD}`; export s; \
693 $(SET_LIB_PATH) \
694 for i in $(SUBDIRS) -dummy-; do \
695 if [ -f ./$$i/Makefile ]; then \
696 case $$i in \
697 gcc) \
698 for flag in $(EXTRA_GCC_FLAGS); do \
699 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
700 done; \
701 ;; \
702 *) \
703 for flag in $(EXTRA_HOST_FLAGS); do \
704 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
705 done; \
706 ;; \
707 esac ; \
88b5521b 708 (cd ./$$i && \
4977bab6
ZW
709 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
710 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
711 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
712 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
88b5521b
NN
713 distclean) \
714 || exit 1; \
4977bab6
ZW
715 else true; fi; \
716 done
717 # Break into two pieces
718 r=`${PWD}`; export r; \
719 s=`cd $(srcdir); ${PWD}`; export s; \
720 $(SET_LIB_PATH) \
721 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
722 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
723 for flag in $(EXTRA_TARGET_FLAGS); do \
724 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
725 done; \
88b5521b 726 (cd $(TARGET_SUBDIR)/$$i && \
4977bab6
ZW
727 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
728 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
729 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
730 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
88b5521b
NN
731 distclean) \
732 || exit 1; \
4977bab6
ZW
733 else true; fi; \
734 done
6599da04 735
4977bab6
ZW
736.PHONY: do-dvi
737do-dvi:
738 @r=`${PWD}`; export r; \
1e6347d8 739 s=`cd $(srcdir); ${PWD}`; export s; \
4977bab6
ZW
740 $(SET_LIB_PATH) \
741 for i in $(SUBDIRS) -dummy-; do \
742 if [ -f ./$$i/Makefile ]; then \
743 case $$i in \
744 gcc) \
745 for flag in $(EXTRA_GCC_FLAGS); do \
746 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
747 done; \
748 ;; \
749 *) \
750 for flag in $(EXTRA_HOST_FLAGS); do \
751 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
752 done; \
753 ;; \
754 esac ; \
88b5521b 755 (cd ./$$i && \
4977bab6
ZW
756 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
757 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
758 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
759 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
88b5521b
NN
760 dvi) \
761 || exit 1; \
4977bab6
ZW
762 else true; fi; \
763 done
764 # Break into two pieces
765 r=`${PWD}`; export r; \
766 s=`cd $(srcdir); ${PWD}`; export s; \
767 $(SET_LIB_PATH) \
768 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
769 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
770 for flag in $(EXTRA_TARGET_FLAGS); do \
771 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
772 done; \
88b5521b 773 (cd $(TARGET_SUBDIR)/$$i && \
4977bab6
ZW
774 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
775 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
776 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
777 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
88b5521b
NN
778 dvi) \
779 || exit 1; \
4977bab6
ZW
780 else true; fi; \
781 done
6599da04 782
4977bab6
ZW
783.PHONY: do-info
784do-info:
785 @r=`${PWD}`; export r; \
786 s=`cd $(srcdir); ${PWD}`; export s; \
787 $(SET_LIB_PATH) \
788 for i in $(SUBDIRS) -dummy-; do \
789 if [ -f ./$$i/Makefile ]; then \
790 case $$i in \
791 gcc) \
792 for flag in $(EXTRA_GCC_FLAGS); do \
793 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
794 done; \
795 ;; \
796 *) \
797 for flag in $(EXTRA_HOST_FLAGS); do \
798 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
799 done; \
800 ;; \
801 esac ; \
88b5521b 802 (cd ./$$i && \
4977bab6
ZW
803 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
804 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
805 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
806 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
88b5521b
NN
807 info) \
808 || exit 1; \
4977bab6
ZW
809 else true; fi; \
810 done
811 # Break into two pieces
812 r=`${PWD}`; export r; \
813 s=`cd $(srcdir); ${PWD}`; export s; \
814 $(SET_LIB_PATH) \
815 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
816 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
817 for flag in $(EXTRA_TARGET_FLAGS); do \
818 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
819 done; \
88b5521b 820 (cd $(TARGET_SUBDIR)/$$i && \
4977bab6
ZW
821 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
822 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
823 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
824 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
88b5521b
NN
825 info) \
826 || exit 1; \
4977bab6
ZW
827 else true; fi; \
828 done
6599da04 829
4977bab6
ZW
830.PHONY: do-install-info
831do-install-info:
832 @r=`${PWD}`; export r; \
833 s=`cd $(srcdir); ${PWD}`; export s; \
834 $(SET_LIB_PATH) \
835 for i in $(SUBDIRS) -dummy-; do \
836 if [ -f ./$$i/Makefile ]; then \
837 case $$i in \
838 gcc) \
839 for flag in $(EXTRA_GCC_FLAGS); do \
840 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
841 done; \
842 ;; \
843 *) \
844 for flag in $(EXTRA_HOST_FLAGS); do \
845 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
846 done; \
847 ;; \
848 esac ; \
88b5521b 849 (cd ./$$i && \
4977bab6
ZW
850 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
851 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
852 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
853 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
88b5521b
NN
854 install-info) \
855 || exit 1; \
4977bab6
ZW
856 else true; fi; \
857 done
858 # Break into two pieces
859 r=`${PWD}`; export r; \
860 s=`cd $(srcdir); ${PWD}`; export s; \
861 $(SET_LIB_PATH) \
862 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
863 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
864 for flag in $(EXTRA_TARGET_FLAGS); do \
865 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
866 done; \
88b5521b 867 (cd $(TARGET_SUBDIR)/$$i && \
4977bab6
ZW
868 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
869 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
870 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
871 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
88b5521b
NN
872 install-info) \
873 || exit 1; \
4977bab6
ZW
874 else true; fi; \
875 done
6599da04 876
4977bab6
ZW
877.PHONY: do-installcheck
878do-installcheck:
879 @r=`${PWD}`; export r; \
880 s=`cd $(srcdir); ${PWD}`; export s; \
881 $(SET_LIB_PATH) \
882 for i in $(SUBDIRS) -dummy-; do \
883 if [ -f ./$$i/Makefile ]; then \
884 case $$i in \
885 gcc) \
886 for flag in $(EXTRA_GCC_FLAGS); do \
887 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
888 done; \
889 ;; \
890 *) \
891 for flag in $(EXTRA_HOST_FLAGS); do \
892 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
893 done; \
894 ;; \
895 esac ; \
88b5521b 896 (cd ./$$i && \
4977bab6
ZW
897 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
898 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
899 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
900 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
88b5521b
NN
901 installcheck) \
902 || exit 1; \
4977bab6
ZW
903 else true; fi; \
904 done
905 # Break into two pieces
906 r=`${PWD}`; export r; \
907 s=`cd $(srcdir); ${PWD}`; export s; \
908 $(SET_LIB_PATH) \
909 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
910 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
911 for flag in $(EXTRA_TARGET_FLAGS); do \
912 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
913 done; \
88b5521b 914 (cd $(TARGET_SUBDIR)/$$i && \
4977bab6
ZW
915 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
916 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
917 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
918 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
88b5521b
NN
919 installcheck) \
920 || exit 1; \
4977bab6
ZW
921 else true; fi; \
922 done
6599da04 923
4977bab6
ZW
924.PHONY: do-mostlyclean
925do-mostlyclean:
926 @r=`${PWD}`; export r; \
927 s=`cd $(srcdir); ${PWD}`; export s; \
928 $(SET_LIB_PATH) \
929 for i in $(SUBDIRS) -dummy-; do \
930 if [ -f ./$$i/Makefile ]; then \
931 case $$i in \
932 gcc) \
933 for flag in $(EXTRA_GCC_FLAGS); do \
934 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
935 done; \
936 ;; \
937 *) \
938 for flag in $(EXTRA_HOST_FLAGS); do \
939 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
940 done; \
941 ;; \
942 esac ; \
88b5521b 943 (cd ./$$i && \
4977bab6
ZW
944 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
945 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
946 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
947 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
88b5521b
NN
948 mostlyclean) \
949 || exit 1; \
4977bab6
ZW
950 else true; fi; \
951 done
952 # Break into two pieces
953 r=`${PWD}`; export r; \
954 s=`cd $(srcdir); ${PWD}`; export s; \
955 $(SET_LIB_PATH) \
956 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
957 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
958 for flag in $(EXTRA_TARGET_FLAGS); do \
959 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
960 done; \
88b5521b 961 (cd $(TARGET_SUBDIR)/$$i && \
4977bab6
ZW
962 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
963 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
964 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
965 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
88b5521b
NN
966 mostlyclean) \
967 || exit 1; \
4977bab6
ZW
968 else true; fi; \
969 done
970
971.PHONY: do-maintainer-clean
972do-maintainer-clean:
973 @r=`${PWD}`; export r; \
974 s=`cd $(srcdir); ${PWD}`; export s; \
975 $(SET_LIB_PATH) \
976 for i in $(SUBDIRS) -dummy-; do \
977 if [ -f ./$$i/Makefile ]; then \
978 case $$i in \
979 gcc) \
980 for flag in $(EXTRA_GCC_FLAGS); do \
981 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
982 done; \
983 ;; \
984 *) \
985 for flag in $(EXTRA_HOST_FLAGS); do \
986 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
987 done; \
988 ;; \
989 esac ; \
88b5521b 990 (cd ./$$i && \
4977bab6
ZW
991 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
992 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
993 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
994 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
88b5521b
NN
995 maintainer-clean) \
996 || exit 1; \
4977bab6
ZW
997 else true; fi; \
998 done
999 # Break into two pieces
1000 r=`${PWD}`; export r; \
1001 s=`cd $(srcdir); ${PWD}`; export s; \
1002 $(SET_LIB_PATH) \
1003 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
1004 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
1005 for flag in $(EXTRA_TARGET_FLAGS); do \
1006 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1007 done; \
88b5521b 1008 (cd $(TARGET_SUBDIR)/$$i && \
4977bab6
ZW
1009 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
1010 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1011 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
1012 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
88b5521b
NN
1013 maintainer-clean) \
1014 || exit 1; \
4977bab6
ZW
1015 else true; fi; \
1016 done
1017
1018.PHONY: do-TAGS
1019do-TAGS:
1020 @r=`${PWD}`; export r; \
1021 s=`cd $(srcdir); ${PWD}`; export s; \
1022 $(SET_LIB_PATH) \
1023 for i in $(SUBDIRS) -dummy-; do \
1024 if [ -f ./$$i/Makefile ]; then \
1025 case $$i in \
1026 gcc) \
1027 for flag in $(EXTRA_GCC_FLAGS); do \
1028 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1029 done; \
1030 ;; \
1031 *) \
1032 for flag in $(EXTRA_HOST_FLAGS); do \
1033 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1034 done; \
1035 ;; \
1036 esac ; \
88b5521b 1037 (cd ./$$i && \
4977bab6
ZW
1038 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
1039 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1040 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
1041 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
88b5521b
NN
1042 TAGS) \
1043 || exit 1; \
4977bab6
ZW
1044 else true; fi; \
1045 done
1046 # Break into two pieces
1047 r=`${PWD}`; export r; \
1048 s=`cd $(srcdir); ${PWD}`; export s; \
1049 $(SET_LIB_PATH) \
1050 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
1051 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
1052 for flag in $(EXTRA_TARGET_FLAGS); do \
1053 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1054 done; \
88b5521b 1055 (cd $(TARGET_SUBDIR)/$$i && \
4977bab6
ZW
1056 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
1057 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1058 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
1059 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
88b5521b
NN
1060 TAGS) \
1061 || exit 1; \
4977bab6
ZW
1062 else true; fi; \
1063 done
1064
1065
1066
1067# Here are the targets which correspond to the do-X targets.
1068
1069.PHONY: info installcheck dvi install-info
1070.PHONY: clean distclean mostlyclean maintainer-clean realclean
1071.PHONY: local-clean local-distclean local-maintainer-clean
1072info: do-info
1073installcheck: do-installcheck
1074dvi: do-dvi
1075
212f6dd0
NN
1076# Make sure makeinfo is built before we do a `make info', if we're
1077# in fact building texinfo.
1078do-info: maybe-all-texinfo
4977bab6
ZW
1079
1080install-info: do-install-info dir.info
1081 s=`cd $(srcdir); ${PWD}`; export s; \
1082 if [ -f dir.info ] ; then \
3fbe8e4a 1083 $(INSTALL_DATA) dir.info $(DESTDIR)$(infodir)/dir.info ; \
4977bab6
ZW
1084 else true ; fi
1085
1086local-clean:
1087 -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
1088
1089local-distclean:
1090 -rm -f Makefile config.status config.cache mh-frag mt-frag
ade82b16 1091 -rm -f multilib.out multilib.tmp maybedep.tmp serdep.tmp
4977bab6
ZW
1092 -if [ "$(TARGET_SUBDIR)" != "." ]; then \
1093 rm -rf $(TARGET_SUBDIR); \
1094 else true; fi
1095 -rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile
1096 -rm -f texinfo/doc/Makefile texinfo/po/POTFILES
1097 -rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null
1098 -rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null
1099 -rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null
1100
1101local-maintainer-clean:
1102 @echo "This command is intended for maintainers to use;"
1103 @echo "it deletes files that may require special tools to rebuild."
1104
1105clean: do-clean local-clean
1106mostlyclean: do-mostlyclean local-clean
1107distclean: do-distclean local-clean local-distclean
6599da04
JM
1108maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean
1109maintainer-clean: local-distclean
1110realclean: maintainer-clean
1111
1112# This rule is used to clean specific modules.
1113.PHONY: $(CLEAN_MODULES) $(CLEAN_X11_MODULES) clean-gcc
1114$(CLEAN_MODULES) $(CLEAN_X11_MODULES) clean-gcc:
1115 @dir=`echo $@ | sed -e 's/clean-//'`; \
1116 if [ -f ./$${dir}/Makefile ] ; then \
1e6347d8
RO
1117 r=`${PWD}`; export r; \
1118 s=`cd $(srcdir); ${PWD}`; export s; \
6599da04 1119 $(SET_LIB_PATH) \
88b5521b 1120 (cd $${dir} && $(MAKE) $(FLAGS_TO_PASS) clean); \
6599da04
JM
1121 else \
1122 true; \
1123 fi
1124
1125.PHONY: $(CLEAN_TARGET_MODULES)
1126$(CLEAN_TARGET_MODULES):
1127 @dir=`echo $@ | sed -e 's/clean-target-//'`; \
1128 rm -f $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/tmpmulti.out; \
1129 if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1e6347d8
RO
1130 r=`${PWD}`; export r; \
1131 s=`cd $(srcdir); ${PWD}`; export s; \
6599da04 1132 $(SET_LIB_PATH) \
88b5521b 1133 (cd $(TARGET_SUBDIR)/$${dir} && $(MAKE) $(TARGET_FLAGS_TO_PASS) clean); \
6599da04
JM
1134 else \
1135 true; \
1136 fi
1137
1670d1ea
AO
1138clean-target: $(CLEAN_TARGET_MODULES) clean-target-libgcc
1139clean-target-libgcc:
1140 test ! -d gcc/libgcc || \
1141 (cd gcc/libgcc && find . -type d -print) | \
1142 while read d; do rm -f gcc/$$d/libgcc.a || : ; done
1143 -rm -rf gcc/libgcc
6599da04
JM
1144
1145# Check target.
1146
c2273204
RH
1147.PHONY: check do-check
1148check:
1149 $(MAKE) do-check NOTPARALLEL=parallel-ok
1150
4977bab6
ZW
1151# Only include modules actually being configured and built.
1152do-check: @check_host_modules@ \
1153 @check_target_modules@
6599da04 1154
c4137c50
AO
1155# Automated reporting of test results.
1156
1157warning.log: build.log
1158 $(srcdir)/contrib/warn_summary build.log > $@
1159
1160mail-report.log:
1161 if test x'$(BOOT_CFLAGS)' != x''; then \
1162 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
1163 fi; \
1164 $(srcdir)/contrib/test_summary -t >$@
1165 chmod +x $@
1166 echo If you really want to send e-mail, run ./$@ now
1167
1168mail-report-with-warnings.log: warning.log
1169 if test x'$(BOOT_CFLAGS)' != x''; then \
1170 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
1171 fi; \
1172 $(srcdir)/contrib/test_summary -t -i warning.log >$@
1173 chmod +x $@
1174 echo If you really want to send e-mail, run ./$@ now
1175
6599da04
JM
1176# Installation targets.
1177
4977bab6
ZW
1178.PHONY: install uninstall
1179install: installdirs @install_host_modules@ @install_target_modules@
1180
1181install-target: @install_target_modules@
6599da04
JM
1182
1183uninstall:
1184 @echo "the uninstall target is not supported in this tree"
1185
6599da04
JM
1186.PHONY: install.all
1187install.all: install-no-fixedincludes
1188 @if [ -f ./gcc/Makefile ] ; then \
1e6347d8 1189 r=`${PWD}` ; export r ; \
6599da04 1190 $(SET_LIB_PATH) \
88b5521b 1191 (cd ./gcc && \
6599da04
JM
1192 $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \
1193 else \
1194 true ; \
1195 fi
1196
6599da04
JM
1197# install-no-fixedincludes is used because Cygnus can not distribute
1198# the fixed header files.
1199.PHONY: install-no-fixedincludes
4977bab6
ZW
1200install-no-fixedincludes: installdirs @install_host_modules_nogcc@ \
1201 @install_target_modules@ gcc-no-fixedincludes
6599da04 1202
4977bab6
ZW
1203### other supporting targets
1204
1205MAKEDIRS= \
1206 $(DESTDIR)$(prefix) \
1207 $(DESTDIR)$(exec_prefix)
1208.PHONY: installdirs
1209installdirs: mkinstalldirs
1210 $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS)
1211
1212dir.info: do-install-info
1213 if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \
3fbe8e4a 1214 $(srcdir)/texinfo/gen-info-dir $(DESTDIR)$(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \
4977bab6
ZW
1215 mv -f dir.info.new dir.info ; \
1216 else true ; \
1217 fi
1218
1219dist:
1220 @echo "Building a full distribution of this tree isn't done"
1221 @echo "via 'make dist'. Check out the etc/ subdirectory"
1222
1223etags tags: TAGS
1224
1225# Right now this just builds TAGS in each subdirectory. emacs19 has the
1226# ability to use several tags files at once, so there is probably no need
1227# to combine them into one big TAGS file (like CVS 1.3 does). We could
1228# (if we felt like it) have this Makefile write a piece of elisp which
1229# the user could load to tell emacs19 where all the TAGS files we just
1230# built are.
1231TAGS: do-TAGS
1232
4977bab6
ZW
1233# --------------------------------------
1234# Modules which run on the build machine
1235# --------------------------------------
1236
1237.PHONY: configure-build-libiberty maybe-configure-build-libiberty
1238maybe-configure-build-libiberty:
ade82b16
AO
1239configure-build-libiberty:
1240 @test ! -f $(BUILD_SUBDIR)/libiberty/Makefile || exit 0; \
1241 [ -d $(BUILD_SUBDIR)/libiberty ] || \
1242 mkdir $(BUILD_SUBDIR)/libiberty;\
4977bab6
ZW
1243 r=`${PWD}`; export r; \
1244 s=`cd $(srcdir); ${PWD}`; export s; \
1245 AR="$(AR_FOR_BUILD)"; export AR; \
1246 AS="$(AS_FOR_BUILD)"; export AS; \
1247 CC="$(CC_FOR_BUILD)"; export CC; \
1248 CFLAGS="$(CFLAGS_FOR_BUILD)"; export CFLAGS; \
1249 CXX="$(CXX_FOR_BUILD)"; export CXX; \
1250 CXXFLAGS="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS; \
1251 GCJ="$(GCJ_FOR_BUILD)"; export GCJ; \
1252 DLLTOOL="$(DLLTOOL_FOR_BUILD)"; export DLLTOOL; \
1253 LD="$(LD_FOR_BUILD)"; export LD; \
1254 LDFLAGS="$(LDFLAGS_FOR_BUILD)"; export LDFLAGS; \
1255 NM="$(NM_FOR_BUILD)"; export NM; \
1256 RANLIB="$(RANLIB_FOR_BUILD)"; export RANLIB; \
1257 WINDRES="$(WINDRES_FOR_BUILD)"; export WINDRES; \
1258 echo Configuring in $(BUILD_SUBDIR)/libiberty; \
1259 cd "$(BUILD_SUBDIR)/libiberty" || exit 1; \
1260 case $(srcdir) in \
1261 /* | [A-Za-z]:[\\/]*) \
1262 topdir=$(srcdir) ;; \
1263 *) \
1264 case "$(BUILD_SUBDIR)" in \
1265 .) topdir="../$(srcdir)" ;; \
1266 *) topdir="../../$(srcdir)" ;; \
1267 esac ;; \
1268 esac; \
1269 if [ "$(srcdir)" = "." ] ; then \
1270 if [ "$(BUILD_SUBDIR)" != "." ] ; then \
1271 if $(SHELL) $$s/symlink-tree $${topdir}/libiberty "no-such-file" ; then \
1272 if [ -f Makefile ]; then \
1273 if $(MAKE) distclean; then \
1274 true; \
1275 else \
1276 exit 1; \
1277 fi; \
1278 else \
1279 true; \
1280 fi; \
1281 else \
1282 exit 1; \
1283 fi; \
1284 else \
1285 true; \
1286 fi; \
1287 srcdiroption="--srcdir=."; \
1288 libsrcdir="."; \
1289 else \
1290 srcdiroption="--srcdir=$${topdir}/libiberty"; \
1291 libsrcdir="$$s/libiberty"; \
1292 fi; \
1293 rm -f no-such-file || : ; \
1294 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
1295 $(BUILD_CONFIGARGS) $${srcdiroption} \
1296 --with-build-subdir="$(BUILD_SUBDIR)" \
1297 || exit 1
1298
1299.PHONY: all-build-libiberty maybe-all-build-libiberty
1300maybe-all-build-libiberty:
1301all-build-libiberty: configure-build-libiberty
1302 @r=`${PWD}`; export r; \
1303 s=`cd $(srcdir); ${PWD}`; export s; \
1304 (cd $(BUILD_SUBDIR)/libiberty && $(MAKE) all)
1305
1306
1307# --------------------------------------
1308# Modules which run on the host machine
1309# --------------------------------------
1310
1311.PHONY: configure-ash maybe-configure-ash
1312maybe-configure-ash:
ade82b16
AO
1313configure-ash:
1314 @test ! -f ash/Makefile || exit 0; \
1315 [ -d ash ] || mkdir ash; \
4977bab6
ZW
1316 r=`${PWD}`; export r; \
1317 s=`cd $(srcdir); ${PWD}`; export s; \
1318 CC="$(CC)"; export CC; \
1319 CFLAGS="$(CFLAGS)"; export CFLAGS; \
1320 CXX="$(CXX)"; export CXX; \
1321 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1322 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
1323 AR="$(AR)"; export AR; \
1324 AS="$(AS)"; export AS; \
1325 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
1326 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
1327 LD="$(LD)"; export LD; \
1328 NM="$(NM)"; export NM; \
1329 RANLIB="$(RANLIB)"; export RANLIB; \
1330 WINDRES="$(WINDRES)"; export WINDRES; \
1331 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
1332 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
1333 fi; \
1334 echo Configuring in ash; \
1335 cd ash || exit 1; \
1336 case $(srcdir) in \
1337 \.) \
1338 srcdiroption="--srcdir=."; \
1339 libsrcdir=".";; \
1340 /* | [A-Za-z]:[\\/]*) \
1341 srcdiroption="--srcdir=$(srcdir)/ash"; \
1342 libsrcdir="$$s/ash";; \
1343 *) \
1344 srcdiroption="--srcdir=../$(srcdir)/ash"; \
1345 libsrcdir="$$s/ash";; \
1346 esac; \
1347 $(SHELL) $${libsrcdir}/configure \
1348 $(HOST_CONFIGARGS) $${srcdiroption} \
1349 || exit 1
1350
1351.PHONY: all-ash maybe-all-ash
1352maybe-all-ash:
1353all-ash: configure-ash
1354 @r=`${PWD}`; export r; \
1355 s=`cd $(srcdir); ${PWD}`; export s; \
1356 $(SET_LIB_PATH) \
88b5521b 1357 (cd ash && $(MAKE) $(FLAGS_TO_PASS) all)
4977bab6
ZW
1358
1359
1360.PHONY: check-ash
1361check-ash:
1362 @r=`${PWD}`; export r; \
1363 s=`cd $(srcdir); ${PWD}`; export s; \
1364 $(SET_LIB_PATH) \
88b5521b 1365 (cd ash && $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6
ZW
1366
1367
1368
1369.PHONY: install-ash maybe-install-ash
1370maybe-install-ash:
1371install-ash: installdirs
1372 @r=`${PWD}`; export r; \
1373 s=`cd $(srcdir); ${PWD}`; export s; \
1374 $(SET_LIB_PATH) \
88b5521b 1375 (cd ash && $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6
ZW
1376
1377
1378.PHONY: configure-autoconf maybe-configure-autoconf
1379maybe-configure-autoconf:
ade82b16
AO
1380configure-autoconf:
1381 @test ! -f autoconf/Makefile || exit 0; \
1382 [ -d autoconf ] || mkdir autoconf; \
4977bab6
ZW
1383 r=`${PWD}`; export r; \
1384 s=`cd $(srcdir); ${PWD}`; export s; \
1385 CC="$(CC)"; export CC; \
1386 CFLAGS="$(CFLAGS)"; export CFLAGS; \
1387 CXX="$(CXX)"; export CXX; \
1388 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1389 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
1390 AR="$(AR)"; export AR; \
1391 AS="$(AS)"; export AS; \
1392 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
1393 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
1394 LD="$(LD)"; export LD; \
1395 NM="$(NM)"; export NM; \
1396 RANLIB="$(RANLIB)"; export RANLIB; \
1397 WINDRES="$(WINDRES)"; export WINDRES; \
1398 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
1399 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
1400 fi; \
1401 echo Configuring in autoconf; \
1402 cd autoconf || exit 1; \
1403 case $(srcdir) in \
1404 \.) \
1405 srcdiroption="--srcdir=."; \
1406 libsrcdir=".";; \
1407 /* | [A-Za-z]:[\\/]*) \
1408 srcdiroption="--srcdir=$(srcdir)/autoconf"; \
1409 libsrcdir="$$s/autoconf";; \
1410 *) \
1411 srcdiroption="--srcdir=../$(srcdir)/autoconf"; \
1412 libsrcdir="$$s/autoconf";; \
1413 esac; \
1414 $(SHELL) $${libsrcdir}/configure \
1415 $(HOST_CONFIGARGS) $${srcdiroption} \
1416 || exit 1
1417
1418.PHONY: all-autoconf maybe-all-autoconf
1419maybe-all-autoconf:
1420all-autoconf: configure-autoconf
1421 @r=`${PWD}`; export r; \
1422 s=`cd $(srcdir); ${PWD}`; export s; \
1423 $(SET_LIB_PATH) \
88b5521b 1424 (cd autoconf && $(MAKE) $(FLAGS_TO_PASS) all)
4977bab6
ZW
1425
1426
1427.PHONY: check-autoconf
1428check-autoconf:
1429 @r=`${PWD}`; export r; \
1430 s=`cd $(srcdir); ${PWD}`; export s; \
1431 $(SET_LIB_PATH) \
88b5521b 1432 (cd autoconf && $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6
ZW
1433
1434
1435
1436.PHONY: install-autoconf maybe-install-autoconf
1437maybe-install-autoconf:
1438install-autoconf: installdirs
1439 @r=`${PWD}`; export r; \
1440 s=`cd $(srcdir); ${PWD}`; export s; \
1441 $(SET_LIB_PATH) \
88b5521b 1442 (cd autoconf && $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6
ZW
1443
1444
1445.PHONY: configure-automake maybe-configure-automake
1446maybe-configure-automake:
ade82b16
AO
1447configure-automake:
1448 @test ! -f automake/Makefile || exit 0; \
1449 [ -d automake ] || mkdir automake; \
4977bab6
ZW
1450 r=`${PWD}`; export r; \
1451 s=`cd $(srcdir); ${PWD}`; export s; \
1452 CC="$(CC)"; export CC; \
1453 CFLAGS="$(CFLAGS)"; export CFLAGS; \
1454 CXX="$(CXX)"; export CXX; \
1455 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1456 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
1457 AR="$(AR)"; export AR; \
1458 AS="$(AS)"; export AS; \
1459 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
1460 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
1461 LD="$(LD)"; export LD; \
1462 NM="$(NM)"; export NM; \
1463 RANLIB="$(RANLIB)"; export RANLIB; \
1464 WINDRES="$(WINDRES)"; export WINDRES; \
1465 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
1466 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
1467 fi; \
1468 echo Configuring in automake; \
1469 cd automake || exit 1; \
1470 case $(srcdir) in \
1471 \.) \
1472 srcdiroption="--srcdir=."; \
1473 libsrcdir=".";; \
1474 /* | [A-Za-z]:[\\/]*) \
1475 srcdiroption="--srcdir=$(srcdir)/automake"; \
1476 libsrcdir="$$s/automake";; \
1477 *) \
1478 srcdiroption="--srcdir=../$(srcdir)/automake"; \
1479 libsrcdir="$$s/automake";; \
1480 esac; \
1481 $(SHELL) $${libsrcdir}/configure \
1482 $(HOST_CONFIGARGS) $${srcdiroption} \
1483 || exit 1
1484
1485.PHONY: all-automake maybe-all-automake
1486maybe-all-automake:
1487all-automake: configure-automake
1488 @r=`${PWD}`; export r; \
1489 s=`cd $(srcdir); ${PWD}`; export s; \
1490 $(SET_LIB_PATH) \
88b5521b 1491 (cd automake && $(MAKE) $(FLAGS_TO_PASS) all)
4977bab6
ZW
1492
1493
1494.PHONY: check-automake
1495check-automake:
1496 @r=`${PWD}`; export r; \
1497 s=`cd $(srcdir); ${PWD}`; export s; \
1498 $(SET_LIB_PATH) \
88b5521b 1499 (cd automake && $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6
ZW
1500
1501
1502
1503.PHONY: install-automake maybe-install-automake
1504maybe-install-automake:
1505install-automake: installdirs
1506 @r=`${PWD}`; export r; \
1507 s=`cd $(srcdir); ${PWD}`; export s; \
1508 $(SET_LIB_PATH) \
88b5521b 1509 (cd automake && $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6
ZW
1510
1511
1512.PHONY: configure-bash maybe-configure-bash
1513maybe-configure-bash:
ade82b16
AO
1514configure-bash:
1515 @test ! -f bash/Makefile || exit 0; \
1516 [ -d bash ] || mkdir bash; \
4977bab6
ZW
1517 r=`${PWD}`; export r; \
1518 s=`cd $(srcdir); ${PWD}`; export s; \
1519 CC="$(CC)"; export CC; \
1520 CFLAGS="$(CFLAGS)"; export CFLAGS; \
1521 CXX="$(CXX)"; export CXX; \
1522 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1523 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
1524 AR="$(AR)"; export AR; \
1525 AS="$(AS)"; export AS; \
1526 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
1527 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
1528 LD="$(LD)"; export LD; \
1529 NM="$(NM)"; export NM; \
1530 RANLIB="$(RANLIB)"; export RANLIB; \
1531 WINDRES="$(WINDRES)"; export WINDRES; \
1532 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
1533 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
1534 fi; \
1535 echo Configuring in bash; \
1536 cd bash || exit 1; \
1537 case $(srcdir) in \
1538 \.) \
1539 srcdiroption="--srcdir=."; \
1540 libsrcdir=".";; \
1541 /* | [A-Za-z]:[\\/]*) \
1542 srcdiroption="--srcdir=$(srcdir)/bash"; \
1543 libsrcdir="$$s/bash";; \
1544 *) \
1545 srcdiroption="--srcdir=../$(srcdir)/bash"; \
1546 libsrcdir="$$s/bash";; \
1547 esac; \
1548 $(SHELL) $${libsrcdir}/configure \
1549 $(HOST_CONFIGARGS) $${srcdiroption} \
1550 || exit 1
1551
1552.PHONY: all-bash maybe-all-bash
1553maybe-all-bash:
1554all-bash: configure-bash
1555 @r=`${PWD}`; export r; \
1556 s=`cd $(srcdir); ${PWD}`; export s; \
1557 $(SET_LIB_PATH) \
88b5521b 1558 (cd bash && $(MAKE) $(FLAGS_TO_PASS) all)
4977bab6
ZW
1559
1560
1561.PHONY: check-bash
1562check-bash:
1563 @r=`${PWD}`; export r; \
1564 s=`cd $(srcdir); ${PWD}`; export s; \
1565 $(SET_LIB_PATH) \
88b5521b 1566 (cd bash && $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6
ZW
1567
1568
1569
1570.PHONY: install-bash maybe-install-bash
1571maybe-install-bash:
1572install-bash: installdirs
1573 @r=`${PWD}`; export r; \
1574 s=`cd $(srcdir); ${PWD}`; export s; \
1575 $(SET_LIB_PATH) \
88b5521b 1576 (cd bash && $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6
ZW
1577
1578
1579.PHONY: configure-bfd maybe-configure-bfd
1580maybe-configure-bfd:
ade82b16
AO
1581configure-bfd:
1582 @test ! -f bfd/Makefile || exit 0; \
1583 [ -d bfd ] || mkdir bfd; \
4977bab6
ZW
1584 r=`${PWD}`; export r; \
1585 s=`cd $(srcdir); ${PWD}`; export s; \
1586 CC="$(CC)"; export CC; \
1587 CFLAGS="$(CFLAGS)"; export CFLAGS; \
1588 CXX="$(CXX)"; export CXX; \
1589 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1590 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
1591 AR="$(AR)"; export AR; \
1592 AS="$(AS)"; export AS; \
1593 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
1594 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
1595 LD="$(LD)"; export LD; \
1596 NM="$(NM)"; export NM; \
1597 RANLIB="$(RANLIB)"; export RANLIB; \
1598 WINDRES="$(WINDRES)"; export WINDRES; \
1599 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
1600 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
1601 fi; \
1602 echo Configuring in bfd; \
1603 cd bfd || exit 1; \
1604 case $(srcdir) in \
1605 \.) \
1606 srcdiroption="--srcdir=."; \
1607 libsrcdir=".";; \
1608 /* | [A-Za-z]:[\\/]*) \
1609 srcdiroption="--srcdir=$(srcdir)/bfd"; \
1610 libsrcdir="$$s/bfd";; \
1611 *) \
1612 srcdiroption="--srcdir=../$(srcdir)/bfd"; \
1613 libsrcdir="$$s/bfd";; \
1614 esac; \
1615 $(SHELL) $${libsrcdir}/configure \
1616 $(HOST_CONFIGARGS) $${srcdiroption} \
1617 || exit 1
1618
1619.PHONY: all-bfd maybe-all-bfd
1620maybe-all-bfd:
1621all-bfd: configure-bfd
1622 @r=`${PWD}`; export r; \
1623 s=`cd $(srcdir); ${PWD}`; export s; \
1624 $(SET_LIB_PATH) \
88b5521b 1625 (cd bfd && $(MAKE) $(FLAGS_TO_PASS) all)
4977bab6
ZW
1626
1627
1628.PHONY: check-bfd
1629check-bfd:
1630 @r=`${PWD}`; export r; \
1631 s=`cd $(srcdir); ${PWD}`; export s; \
1632 $(SET_LIB_PATH) \
88b5521b 1633 (cd bfd && $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6
ZW
1634
1635
1636
1637.PHONY: install-bfd maybe-install-bfd
1638maybe-install-bfd:
1639install-bfd: installdirs
1640 @r=`${PWD}`; export r; \
1641 s=`cd $(srcdir); ${PWD}`; export s; \
1642 $(SET_LIB_PATH) \
88b5521b 1643 (cd bfd && $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6
ZW
1644
1645
1646.PHONY: configure-opcodes maybe-configure-opcodes
1647maybe-configure-opcodes:
ade82b16
AO
1648configure-opcodes:
1649 @test ! -f opcodes/Makefile || exit 0; \
1650 [ -d opcodes ] || mkdir opcodes; \
4977bab6
ZW
1651 r=`${PWD}`; export r; \
1652 s=`cd $(srcdir); ${PWD}`; export s; \
1653 CC="$(CC)"; export CC; \
1654 CFLAGS="$(CFLAGS)"; export CFLAGS; \
1655 CXX="$(CXX)"; export CXX; \
1656 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1657 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
1658 AR="$(AR)"; export AR; \
1659 AS="$(AS)"; export AS; \
1660 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
1661 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
1662 LD="$(LD)"; export LD; \
1663 NM="$(NM)"; export NM; \
1664 RANLIB="$(RANLIB)"; export RANLIB; \
1665 WINDRES="$(WINDRES)"; export WINDRES; \
1666 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
1667 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
1668 fi; \
1669 echo Configuring in opcodes; \
1670 cd opcodes || exit 1; \
1671 case $(srcdir) in \
1672 \.) \
1673 srcdiroption="--srcdir=."; \
1674 libsrcdir=".";; \
1675 /* | [A-Za-z]:[\\/]*) \
1676 srcdiroption="--srcdir=$(srcdir)/opcodes"; \
1677 libsrcdir="$$s/opcodes";; \
1678 *) \
1679 srcdiroption="--srcdir=../$(srcdir)/opcodes"; \
1680 libsrcdir="$$s/opcodes";; \
1681 esac; \
1682 $(SHELL) $${libsrcdir}/configure \
1683 $(HOST_CONFIGARGS) $${srcdiroption} \
1684 || exit 1
1685
1686.PHONY: all-opcodes maybe-all-opcodes
1687maybe-all-opcodes:
1688all-opcodes: configure-opcodes
1689 @r=`${PWD}`; export r; \
1690 s=`cd $(srcdir); ${PWD}`; export s; \
1691 $(SET_LIB_PATH) \
88b5521b 1692 (cd opcodes && $(MAKE) $(FLAGS_TO_PASS) all)
4977bab6
ZW
1693
1694
1695.PHONY: check-opcodes
1696check-opcodes:
1697 @r=`${PWD}`; export r; \
1698 s=`cd $(srcdir); ${PWD}`; export s; \
1699 $(SET_LIB_PATH) \
88b5521b 1700 (cd opcodes && $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6
ZW
1701
1702
1703
1704.PHONY: install-opcodes maybe-install-opcodes
1705maybe-install-opcodes:
1706install-opcodes: installdirs
1707 @r=`${PWD}`; export r; \
1708 s=`cd $(srcdir); ${PWD}`; export s; \
1709 $(SET_LIB_PATH) \
88b5521b 1710 (cd opcodes && $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6
ZW
1711
1712
1713.PHONY: configure-binutils maybe-configure-binutils
1714maybe-configure-binutils:
ade82b16
AO
1715configure-binutils:
1716 @test ! -f binutils/Makefile || exit 0; \
1717 [ -d binutils ] || mkdir binutils; \
4977bab6
ZW
1718 r=`${PWD}`; export r; \
1719 s=`cd $(srcdir); ${PWD}`; export s; \
1720 CC="$(CC)"; export CC; \
1721 CFLAGS="$(CFLAGS)"; export CFLAGS; \
1722 CXX="$(CXX)"; export CXX; \
1723 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1724 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
1725 AR="$(AR)"; export AR; \
1726 AS="$(AS)"; export AS; \
1727 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
1728 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
1729 LD="$(LD)"; export LD; \
1730 NM="$(NM)"; export NM; \
1731 RANLIB="$(RANLIB)"; export RANLIB; \
1732 WINDRES="$(WINDRES)"; export WINDRES; \
1733 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
1734 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
1735 fi; \
1736 echo Configuring in binutils; \
1737 cd binutils || exit 1; \
1738 case $(srcdir) in \
1739 \.) \
1740 srcdiroption="--srcdir=."; \
1741 libsrcdir=".";; \
1742 /* | [A-Za-z]:[\\/]*) \
1743 srcdiroption="--srcdir=$(srcdir)/binutils"; \
1744 libsrcdir="$$s/binutils";; \
1745 *) \
1746 srcdiroption="--srcdir=../$(srcdir)/binutils"; \
1747 libsrcdir="$$s/binutils";; \
1748 esac; \
1749 $(SHELL) $${libsrcdir}/configure \
1750 $(HOST_CONFIGARGS) $${srcdiroption} \
1751 || exit 1
1752
1753.PHONY: all-binutils maybe-all-binutils
1754maybe-all-binutils:
1755all-binutils: configure-binutils
1756 @r=`${PWD}`; export r; \
1757 s=`cd $(srcdir); ${PWD}`; export s; \
1758 $(SET_LIB_PATH) \
88b5521b 1759 (cd binutils && $(MAKE) $(FLAGS_TO_PASS) all)
4977bab6
ZW
1760
1761
1762.PHONY: check-binutils
1763check-binutils:
1764 @r=`${PWD}`; export r; \
1765 s=`cd $(srcdir); ${PWD}`; export s; \
1766 $(SET_LIB_PATH) \
88b5521b 1767 (cd binutils && $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6
ZW
1768
1769
1770
1771.PHONY: install-binutils maybe-install-binutils
1772maybe-install-binutils:
1773install-binutils: installdirs
1774 @r=`${PWD}`; export r; \
1775 s=`cd $(srcdir); ${PWD}`; export s; \
1776 $(SET_LIB_PATH) \
88b5521b 1777 (cd binutils && $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6
ZW
1778
1779
1780.PHONY: configure-bison maybe-configure-bison
1781maybe-configure-bison:
ade82b16
AO
1782configure-bison:
1783 @test ! -f bison/Makefile || exit 0; \
1784 [ -d bison ] || mkdir bison; \
4977bab6
ZW
1785 r=`${PWD}`; export r; \
1786 s=`cd $(srcdir); ${PWD}`; export s; \
1787 CC="$(CC)"; export CC; \
1788 CFLAGS="$(CFLAGS)"; export CFLAGS; \
1789 CXX="$(CXX)"; export CXX; \
1790 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1791 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
1792 AR="$(AR)"; export AR; \
1793 AS="$(AS)"; export AS; \
1794 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
1795 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
1796 LD="$(LD)"; export LD; \
1797 NM="$(NM)"; export NM; \
1798 RANLIB="$(RANLIB)"; export RANLIB; \
1799 WINDRES="$(WINDRES)"; export WINDRES; \
1800 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
1801 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
1802 fi; \
1803 echo Configuring in bison; \
1804 cd bison || exit 1; \
1805 case $(srcdir) in \
1806 \.) \
1807 srcdiroption="--srcdir=."; \
1808 libsrcdir=".";; \
1809 /* | [A-Za-z]:[\\/]*) \
1810 srcdiroption="--srcdir=$(srcdir)/bison"; \
1811 libsrcdir="$$s/bison";; \
1812 *) \
1813 srcdiroption="--srcdir=../$(srcdir)/bison"; \
1814 libsrcdir="$$s/bison";; \
1815 esac; \
1816 $(SHELL) $${libsrcdir}/configure \
1817 $(HOST_CONFIGARGS) $${srcdiroption} \
1818 || exit 1
1819
1820.PHONY: all-bison maybe-all-bison
1821maybe-all-bison:
1822all-bison: configure-bison
1823 @r=`${PWD}`; export r; \
1824 s=`cd $(srcdir); ${PWD}`; export s; \
1825 $(SET_LIB_PATH) \
88b5521b 1826 (cd bison && $(MAKE) $(FLAGS_TO_PASS) all)
4977bab6
ZW
1827
1828
1829.PHONY: check-bison
1830# This module is only tested in a native toolchain.
1831check-bison:
1832 @if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
1833 r=`${PWD}`; export r; \
1834 s=`cd $(srcdir); ${PWD}`; export s; \
1835 $(SET_LIB_PATH) \
88b5521b 1836 (cd bison && $(MAKE) $(FLAGS_TO_PASS) check); \
4977bab6
ZW
1837 fi
1838
1839
1840
1841.PHONY: install-bison maybe-install-bison
1842maybe-install-bison:
1843install-bison: installdirs
1844 @r=`${PWD}`; export r; \
1845 s=`cd $(srcdir); ${PWD}`; export s; \
1846 $(SET_LIB_PATH) \
88b5521b 1847 (cd bison && $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6
ZW
1848
1849
1850.PHONY: configure-byacc maybe-configure-byacc
1851maybe-configure-byacc:
ade82b16
AO
1852configure-byacc:
1853 @test ! -f byacc/Makefile || exit 0; \
1854 [ -d byacc ] || mkdir byacc; \
4977bab6
ZW
1855 r=`${PWD}`; export r; \
1856 s=`cd $(srcdir); ${PWD}`; export s; \
1857 CC="$(CC)"; export CC; \
1858 CFLAGS="$(CFLAGS)"; export CFLAGS; \
1859 CXX="$(CXX)"; export CXX; \
1860 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1861 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
1862 AR="$(AR)"; export AR; \
1863 AS="$(AS)"; export AS; \
1864 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
1865 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
1866 LD="$(LD)"; export LD; \
1867 NM="$(NM)"; export NM; \
1868 RANLIB="$(RANLIB)"; export RANLIB; \
1869 WINDRES="$(WINDRES)"; export WINDRES; \
1870 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
1871 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
1872 fi; \
1873 echo Configuring in byacc; \
1874 cd byacc || exit 1; \
1875 case $(srcdir) in \
1876 \.) \
1877 srcdiroption="--srcdir=."; \
1878 libsrcdir=".";; \
1879 /* | [A-Za-z]:[\\/]*) \
1880 srcdiroption="--srcdir=$(srcdir)/byacc"; \
1881 libsrcdir="$$s/byacc";; \
1882 *) \
1883 srcdiroption="--srcdir=../$(srcdir)/byacc"; \
1884 libsrcdir="$$s/byacc";; \
1885 esac; \
1886 $(SHELL) $${libsrcdir}/configure \
1887 $(HOST_CONFIGARGS) $${srcdiroption} \
1888 || exit 1
1889
1890.PHONY: all-byacc maybe-all-byacc
1891maybe-all-byacc:
1892all-byacc: configure-byacc
1893 @r=`${PWD}`; export r; \
1894 s=`cd $(srcdir); ${PWD}`; export s; \
1895 $(SET_LIB_PATH) \
88b5521b 1896 (cd byacc && $(MAKE) $(FLAGS_TO_PASS) all)
4977bab6
ZW
1897
1898
1899.PHONY: check-byacc
1900# This module is only tested in a native toolchain.
1901check-byacc:
1902 @if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
1903 r=`${PWD}`; export r; \
1904 s=`cd $(srcdir); ${PWD}`; export s; \
1905 $(SET_LIB_PATH) \
88b5521b 1906 (cd byacc && $(MAKE) $(FLAGS_TO_PASS) check); \
4977bab6
ZW
1907 fi
1908
1909
1910
1911.PHONY: install-byacc maybe-install-byacc
1912maybe-install-byacc:
1913install-byacc: installdirs
1914 @r=`${PWD}`; export r; \
1915 s=`cd $(srcdir); ${PWD}`; export s; \
1916 $(SET_LIB_PATH) \
88b5521b 1917 (cd byacc && $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6
ZW
1918
1919
1920.PHONY: configure-bzip2 maybe-configure-bzip2
1921maybe-configure-bzip2:
ade82b16
AO
1922configure-bzip2:
1923 @test ! -f bzip2/Makefile || exit 0; \
1924 [ -d bzip2 ] || mkdir bzip2; \
4977bab6
ZW
1925 r=`${PWD}`; export r; \
1926 s=`cd $(srcdir); ${PWD}`; export s; \
1927 CC="$(CC)"; export CC; \
1928 CFLAGS="$(CFLAGS)"; export CFLAGS; \
1929 CXX="$(CXX)"; export CXX; \
1930 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1931 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
1932 AR="$(AR)"; export AR; \
1933 AS="$(AS)"; export AS; \
1934 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
1935 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
1936 LD="$(LD)"; export LD; \
1937 NM="$(NM)"; export NM; \
1938 RANLIB="$(RANLIB)"; export RANLIB; \
1939 WINDRES="$(WINDRES)"; export WINDRES; \
1940 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
1941 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
1942 fi; \
1943 echo Configuring in bzip2; \
1944 cd bzip2 || exit 1; \
1945 case $(srcdir) in \
1946 \.) \
1947 srcdiroption="--srcdir=."; \
1948 libsrcdir=".";; \
1949 /* | [A-Za-z]:[\\/]*) \
1950 srcdiroption="--srcdir=$(srcdir)/bzip2"; \
1951 libsrcdir="$$s/bzip2";; \
1952 *) \
1953 srcdiroption="--srcdir=../$(srcdir)/bzip2"; \
1954 libsrcdir="$$s/bzip2";; \
1955 esac; \
1956 $(SHELL) $${libsrcdir}/configure \
1957 $(HOST_CONFIGARGS) $${srcdiroption} \
1958 || exit 1
1959
1960.PHONY: all-bzip2 maybe-all-bzip2
1961maybe-all-bzip2:
1962all-bzip2: configure-bzip2
1963 @r=`${PWD}`; export r; \
1964 s=`cd $(srcdir); ${PWD}`; export s; \
1965 $(SET_LIB_PATH) \
88b5521b 1966 (cd bzip2 && $(MAKE) $(FLAGS_TO_PASS) all)
4977bab6
ZW
1967
1968
1969.PHONY: check-bzip2
1970check-bzip2:
1971 @r=`${PWD}`; export r; \
1972 s=`cd $(srcdir); ${PWD}`; export s; \
1973 $(SET_LIB_PATH) \
88b5521b 1974 (cd bzip2 && $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6
ZW
1975
1976
1977
1978.PHONY: install-bzip2 maybe-install-bzip2
1979maybe-install-bzip2:
1980install-bzip2: installdirs
1981 @r=`${PWD}`; export r; \
1982 s=`cd $(srcdir); ${PWD}`; export s; \
1983 $(SET_LIB_PATH) \
88b5521b 1984 (cd bzip2 && $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6
ZW
1985
1986
1987.PHONY: configure-db maybe-configure-db
1988maybe-configure-db:
ade82b16
AO
1989configure-db:
1990 @test ! -f db/Makefile || exit 0; \
1991 [ -d db ] || mkdir db; \
4977bab6
ZW
1992 r=`${PWD}`; export r; \
1993 s=`cd $(srcdir); ${PWD}`; export s; \
1994 CC="$(CC)"; export CC; \
1995 CFLAGS="$(CFLAGS)"; export CFLAGS; \
1996 CXX="$(CXX)"; export CXX; \
1997 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1998 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
1999 AR="$(AR)"; export AR; \
2000 AS="$(AS)"; export AS; \
2001 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2002 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2003 LD="$(LD)"; export LD; \
2004 NM="$(NM)"; export NM; \
2005 RANLIB="$(RANLIB)"; export RANLIB; \
2006 WINDRES="$(WINDRES)"; export WINDRES; \
2007 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2008 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2009 fi; \
2010 echo Configuring in db; \
2011 cd db || exit 1; \
2012 case $(srcdir) in \
2013 \.) \
2014 srcdiroption="--srcdir=."; \
2015 libsrcdir=".";; \
2016 /* | [A-Za-z]:[\\/]*) \
2017 srcdiroption="--srcdir=$(srcdir)/db"; \
2018 libsrcdir="$$s/db";; \
2019 *) \
2020 srcdiroption="--srcdir=../$(srcdir)/db"; \
2021 libsrcdir="$$s/db";; \
2022 esac; \
2023 $(SHELL) $${libsrcdir}/configure \
2024 $(HOST_CONFIGARGS) $${srcdiroption} \
2025 || exit 1
2026
2027.PHONY: all-db maybe-all-db
2028maybe-all-db:
2029all-db: configure-db
2030 @r=`${PWD}`; export r; \
2031 s=`cd $(srcdir); ${PWD}`; export s; \
2032 $(SET_LIB_PATH) \
88b5521b 2033 (cd db && $(MAKE) $(FLAGS_TO_PASS) all)
4977bab6
ZW
2034
2035
2036.PHONY: check-db
2037check-db:
2038 @r=`${PWD}`; export r; \
2039 s=`cd $(srcdir); ${PWD}`; export s; \
2040 $(SET_LIB_PATH) \
88b5521b 2041 (cd db && $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6
ZW
2042
2043
2044
2045.PHONY: install-db maybe-install-db
2046maybe-install-db:
2047install-db: installdirs
2048 @r=`${PWD}`; export r; \
2049 s=`cd $(srcdir); ${PWD}`; export s; \
2050 $(SET_LIB_PATH) \
88b5521b 2051 (cd db && $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6
ZW
2052
2053
2054.PHONY: configure-dejagnu maybe-configure-dejagnu
2055maybe-configure-dejagnu:
ade82b16
AO
2056configure-dejagnu:
2057 @test ! -f dejagnu/Makefile || exit 0; \
2058 [ -d dejagnu ] || mkdir dejagnu; \
4977bab6
ZW
2059 r=`${PWD}`; export r; \
2060 s=`cd $(srcdir); ${PWD}`; export s; \
2061 CC="$(CC)"; export CC; \
2062 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2063 CXX="$(CXX)"; export CXX; \
2064 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2065 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2066 AR="$(AR)"; export AR; \
2067 AS="$(AS)"; export AS; \
2068 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2069 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2070 LD="$(LD)"; export LD; \
2071 NM="$(NM)"; export NM; \
2072 RANLIB="$(RANLIB)"; export RANLIB; \
2073 WINDRES="$(WINDRES)"; export WINDRES; \
2074 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2075 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2076 fi; \
2077 echo Configuring in dejagnu; \
2078 cd dejagnu || exit 1; \
2079 case $(srcdir) in \
2080 \.) \
2081 srcdiroption="--srcdir=."; \
2082 libsrcdir=".";; \
2083 /* | [A-Za-z]:[\\/]*) \
2084 srcdiroption="--srcdir=$(srcdir)/dejagnu"; \
2085 libsrcdir="$$s/dejagnu";; \
2086 *) \
2087 srcdiroption="--srcdir=../$(srcdir)/dejagnu"; \
2088 libsrcdir="$$s/dejagnu";; \
2089 esac; \
2090 $(SHELL) $${libsrcdir}/configure \
2091 $(HOST_CONFIGARGS) $${srcdiroption} \
2092 || exit 1
2093
2094.PHONY: all-dejagnu maybe-all-dejagnu
2095maybe-all-dejagnu:
2096all-dejagnu: configure-dejagnu
2097 @r=`${PWD}`; export r; \
2098 s=`cd $(srcdir); ${PWD}`; export s; \
2099 $(SET_LIB_PATH) \
88b5521b 2100 (cd dejagnu && $(MAKE) $(FLAGS_TO_PASS) all)
4977bab6
ZW
2101
2102
2103.PHONY: check-dejagnu
2104check-dejagnu:
2105 @r=`${PWD}`; export r; \
2106 s=`cd $(srcdir); ${PWD}`; export s; \
2107 $(SET_LIB_PATH) \
88b5521b 2108 (cd dejagnu && $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6
ZW
2109
2110
2111
2112.PHONY: install-dejagnu maybe-install-dejagnu
2113maybe-install-dejagnu:
2114install-dejagnu: installdirs
2115 @r=`${PWD}`; export r; \
2116 s=`cd $(srcdir); ${PWD}`; export s; \
2117 $(SET_LIB_PATH) \
88b5521b 2118 (cd dejagnu && $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6
ZW
2119
2120
2121.PHONY: configure-diff maybe-configure-diff
2122maybe-configure-diff:
ade82b16
AO
2123configure-diff:
2124 @test ! -f diff/Makefile || exit 0; \
2125 [ -d diff ] || mkdir diff; \
4977bab6
ZW
2126 r=`${PWD}`; export r; \
2127 s=`cd $(srcdir); ${PWD}`; export s; \
2128 CC="$(CC)"; export CC; \
2129 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2130 CXX="$(CXX)"; export CXX; \
2131 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2132 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2133 AR="$(AR)"; export AR; \
2134 AS="$(AS)"; export AS; \
2135 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2136 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2137 LD="$(LD)"; export LD; \
2138 NM="$(NM)"; export NM; \
2139 RANLIB="$(RANLIB)"; export RANLIB; \
2140 WINDRES="$(WINDRES)"; export WINDRES; \
2141 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2142 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2143 fi; \
2144 echo Configuring in diff; \
2145 cd diff || exit 1; \
2146 case $(srcdir) in \
2147 \.) \
2148 srcdiroption="--srcdir=."; \
2149 libsrcdir=".";; \
2150 /* | [A-Za-z]:[\\/]*) \
2151 srcdiroption="--srcdir=$(srcdir)/diff"; \
2152 libsrcdir="$$s/diff";; \
2153 *) \
2154 srcdiroption="--srcdir=../$(srcdir)/diff"; \
2155 libsrcdir="$$s/diff";; \
2156 esac; \
2157 $(SHELL) $${libsrcdir}/configure \
2158 $(HOST_CONFIGARGS) $${srcdiroption} \
2159 || exit 1
2160
2161.PHONY: all-diff maybe-all-diff
2162maybe-all-diff:
2163all-diff: configure-diff
2164 @r=`${PWD}`; export r; \
2165 s=`cd $(srcdir); ${PWD}`; export s; \
2166 $(SET_LIB_PATH) \
88b5521b 2167 (cd diff && $(MAKE) $(FLAGS_TO_PASS) all)
4977bab6
ZW
2168
2169
2170.PHONY: check-diff
2171check-diff:
2172 @r=`${PWD}`; export r; \
2173 s=`cd $(srcdir); ${PWD}`; export s; \
2174 $(SET_LIB_PATH) \
88b5521b 2175 (cd diff && $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6
ZW
2176
2177
2178
2179.PHONY: install-diff maybe-install-diff
2180maybe-install-diff:
2181install-diff: installdirs
2182 @r=`${PWD}`; export r; \
2183 s=`cd $(srcdir); ${PWD}`; export s; \
2184 $(SET_LIB_PATH) \
88b5521b 2185 (cd diff && $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6
ZW
2186
2187
2188.PHONY: configure-dosutils maybe-configure-dosutils
2189maybe-configure-dosutils:
ade82b16
AO
2190configure-dosutils:
2191 @test ! -f dosutils/Makefile || exit 0; \
2192 [ -d dosutils ] || mkdir dosutils; \
4977bab6
ZW
2193 r=`${PWD}`; export r; \
2194 s=`cd $(srcdir); ${PWD}`; export s; \
2195 CC="$(CC)"; export CC; \
2196 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2197 CXX="$(CXX)"; export CXX; \
2198 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2199 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2200 AR="$(AR)"; export AR; \
2201 AS="$(AS)"; export AS; \
2202 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2203 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2204 LD="$(LD)"; export LD; \
2205 NM="$(NM)"; export NM; \
2206 RANLIB="$(RANLIB)"; export RANLIB; \
2207 WINDRES="$(WINDRES)"; export WINDRES; \
2208 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2209 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2210 fi; \
2211 echo Configuring in dosutils; \
2212 cd dosutils || exit 1; \
2213 case $(srcdir) in \
2214 \.) \
2215 srcdiroption="--srcdir=."; \
2216 libsrcdir=".";; \
2217 /* | [A-Za-z]:[\\/]*) \
2218 srcdiroption="--srcdir=$(srcdir)/dosutils"; \
2219 libsrcdir="$$s/dosutils";; \
2220 *) \
2221 srcdiroption="--srcdir=../$(srcdir)/dosutils"; \
2222 libsrcdir="$$s/dosutils";; \
2223 esac; \
2224 $(SHELL) $${libsrcdir}/configure \
2225 $(HOST_CONFIGARGS) $${srcdiroption} \
2226 || exit 1
2227
2228.PHONY: all-dosutils maybe-all-dosutils
2229maybe-all-dosutils:
2230all-dosutils: configure-dosutils
2231 @r=`${PWD}`; export r; \
2232 s=`cd $(srcdir); ${PWD}`; export s; \
2233 $(SET_LIB_PATH) \
88b5521b 2234 (cd dosutils && $(MAKE) $(FLAGS_TO_PASS) all)
4977bab6
ZW
2235
2236
2237.PHONY: check-dosutils
2238check-dosutils:
2239
2240
2241
2242.PHONY: install-dosutils maybe-install-dosutils
2243maybe-install-dosutils:
2244install-dosutils: installdirs
2245 @r=`${PWD}`; export r; \
2246 s=`cd $(srcdir); ${PWD}`; export s; \
2247 $(SET_LIB_PATH) \
88b5521b 2248 (cd dosutils && $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6
ZW
2249
2250
2251.PHONY: configure-etc maybe-configure-etc
2252maybe-configure-etc:
ade82b16
AO
2253configure-etc:
2254 @test ! -f etc/Makefile || exit 0; \
2255 [ -d etc ] || mkdir etc; \
4977bab6
ZW
2256 r=`${PWD}`; export r; \
2257 s=`cd $(srcdir); ${PWD}`; export s; \
2258 CC="$(CC)"; export CC; \
2259 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2260 CXX="$(CXX)"; export CXX; \
2261 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2262 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2263 AR="$(AR)"; export AR; \
2264 AS="$(AS)"; export AS; \
2265 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2266 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2267 LD="$(LD)"; export LD; \
2268 NM="$(NM)"; export NM; \
2269 RANLIB="$(RANLIB)"; export RANLIB; \
2270 WINDRES="$(WINDRES)"; export WINDRES; \
2271 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2272 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2273 fi; \
2274 echo Configuring in etc; \
2275 cd etc || exit 1; \
2276 case $(srcdir) in \
2277 \.) \
2278 srcdiroption="--srcdir=."; \
2279 libsrcdir=".";; \
2280 /* | [A-Za-z]:[\\/]*) \
2281 srcdiroption="--srcdir=$(srcdir)/etc"; \
2282 libsrcdir="$$s/etc";; \
2283 *) \
2284 srcdiroption="--srcdir=../$(srcdir)/etc"; \
2285 libsrcdir="$$s/etc";; \
2286 esac; \
2287 $(SHELL) $${libsrcdir}/configure \
2288 $(HOST_CONFIGARGS) $${srcdiroption} \
2289 || exit 1
2290
2291.PHONY: all-etc maybe-all-etc
2292maybe-all-etc:
2293all-etc: configure-etc
2294 @r=`${PWD}`; export r; \
2295 s=`cd $(srcdir); ${PWD}`; export s; \
2296 $(SET_LIB_PATH) \
88b5521b 2297 (cd etc && $(MAKE) $(FLAGS_TO_PASS) all)
4977bab6
ZW
2298
2299
2300.PHONY: check-etc
2301check-etc:
2302 @r=`${PWD}`; export r; \
2303 s=`cd $(srcdir); ${PWD}`; export s; \
2304 $(SET_LIB_PATH) \
88b5521b 2305 (cd etc && $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6
ZW
2306
2307
2308
2309.PHONY: install-etc maybe-install-etc
2310maybe-install-etc:
2311install-etc: installdirs
2312 @r=`${PWD}`; export r; \
2313 s=`cd $(srcdir); ${PWD}`; export s; \
2314 $(SET_LIB_PATH) \
88b5521b 2315 (cd etc && $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6
ZW
2316
2317
2318.PHONY: configure-fastjar maybe-configure-fastjar
2319maybe-configure-fastjar:
ade82b16
AO
2320configure-fastjar:
2321 @test ! -f fastjar/Makefile || exit 0; \
2322 [ -d fastjar ] || mkdir fastjar; \
4977bab6
ZW
2323 r=`${PWD}`; export r; \
2324 s=`cd $(srcdir); ${PWD}`; export s; \
2325 CC="$(CC)"; export CC; \
2326 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2327 CXX="$(CXX)"; export CXX; \
2328 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2329 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2330 AR="$(AR)"; export AR; \
2331 AS="$(AS)"; export AS; \
2332 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2333 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2334 LD="$(LD)"; export LD; \
2335 NM="$(NM)"; export NM; \
2336 RANLIB="$(RANLIB)"; export RANLIB; \
2337 WINDRES="$(WINDRES)"; export WINDRES; \
2338 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2339 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2340 fi; \
2341 echo Configuring in fastjar; \
2342 cd fastjar || exit 1; \
2343 case $(srcdir) in \
2344 \.) \
2345 srcdiroption="--srcdir=."; \
2346 libsrcdir=".";; \
2347 /* | [A-Za-z]:[\\/]*) \
2348 srcdiroption="--srcdir=$(srcdir)/fastjar"; \
2349 libsrcdir="$$s/fastjar";; \
2350 *) \
2351 srcdiroption="--srcdir=../$(srcdir)/fastjar"; \
2352 libsrcdir="$$s/fastjar";; \
2353 esac; \
2354 $(SHELL) $${libsrcdir}/configure \
2355 $(HOST_CONFIGARGS) $${srcdiroption} \
2356 || exit 1
2357
2358.PHONY: all-fastjar maybe-all-fastjar
2359maybe-all-fastjar:
2360all-fastjar: configure-fastjar
2361 @r=`${PWD}`; export r; \
2362 s=`cd $(srcdir); ${PWD}`; export s; \
2363 $(SET_LIB_PATH) \
88b5521b 2364 (cd fastjar && $(MAKE) $(FLAGS_TO_PASS) all)
4977bab6
ZW
2365
2366
2367.PHONY: check-fastjar
2368# This module is only tested in a native toolchain.
2369check-fastjar:
2370 @if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
2371 r=`${PWD}`; export r; \
2372 s=`cd $(srcdir); ${PWD}`; export s; \
2373 $(SET_LIB_PATH) \
88b5521b 2374 (cd fastjar && $(MAKE) $(FLAGS_TO_PASS) check); \
4977bab6
ZW
2375 fi
2376
2377
2378
2379.PHONY: install-fastjar maybe-install-fastjar
2380maybe-install-fastjar:
2381install-fastjar: installdirs
2382 @r=`${PWD}`; export r; \
2383 s=`cd $(srcdir); ${PWD}`; export s; \
2384 $(SET_LIB_PATH) \
88b5521b 2385 (cd fastjar && $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6
ZW
2386
2387
2388.PHONY: configure-fileutils maybe-configure-fileutils
2389maybe-configure-fileutils:
ade82b16
AO
2390configure-fileutils:
2391 @test ! -f fileutils/Makefile || exit 0; \
2392 [ -d fileutils ] || mkdir fileutils; \
4977bab6
ZW
2393 r=`${PWD}`; export r; \
2394 s=`cd $(srcdir); ${PWD}`; export s; \
2395 CC="$(CC)"; export CC; \
2396 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2397 CXX="$(CXX)"; export CXX; \
2398 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2399 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2400 AR="$(AR)"; export AR; \
2401 AS="$(AS)"; export AS; \
2402 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2403 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2404 LD="$(LD)"; export LD; \
2405 NM="$(NM)"; export NM; \
2406 RANLIB="$(RANLIB)"; export RANLIB; \
2407 WINDRES="$(WINDRES)"; export WINDRES; \
2408 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2409 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2410 fi; \
2411 echo Configuring in fileutils; \
2412 cd fileutils || exit 1; \
2413 case $(srcdir) in \
2414 \.) \
2415 srcdiroption="--srcdir=."; \
2416 libsrcdir=".";; \
2417 /* | [A-Za-z]:[\\/]*) \
2418 srcdiroption="--srcdir=$(srcdir)/fileutils"; \
2419 libsrcdir="$$s/fileutils";; \
2420 *) \
2421 srcdiroption="--srcdir=../$(srcdir)/fileutils"; \
2422 libsrcdir="$$s/fileutils";; \
2423 esac; \
2424 $(SHELL) $${libsrcdir}/configure \
2425 $(HOST_CONFIGARGS) $${srcdiroption} \
2426 || exit 1
2427
2428.PHONY: all-fileutils maybe-all-fileutils
2429maybe-all-fileutils:
2430all-fileutils: configure-fileutils
2431 @r=`${PWD}`; export r; \
2432 s=`cd $(srcdir); ${PWD}`; export s; \
2433 $(SET_LIB_PATH) \
88b5521b 2434 (cd fileutils && $(MAKE) $(FLAGS_TO_PASS) all)
4977bab6
ZW
2435
2436
2437.PHONY: check-fileutils
2438check-fileutils:
2439 @r=`${PWD}`; export r; \
2440 s=`cd $(srcdir); ${PWD}`; export s; \
2441 $(SET_LIB_PATH) \
88b5521b 2442 (cd fileutils && $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6
ZW
2443
2444
2445
2446.PHONY: install-fileutils maybe-install-fileutils
2447maybe-install-fileutils:
2448install-fileutils: installdirs
2449 @r=`${PWD}`; export r; \
2450 s=`cd $(srcdir); ${PWD}`; export s; \
2451 $(SET_LIB_PATH) \
88b5521b 2452 (cd fileutils && $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6
ZW
2453
2454
2455.PHONY: configure-findutils maybe-configure-findutils
2456maybe-configure-findutils:
ade82b16
AO
2457configure-findutils:
2458 @test ! -f findutils/Makefile || exit 0; \
2459 [ -d findutils ] || mkdir findutils; \
4977bab6
ZW
2460 r=`${PWD}`; export r; \
2461 s=`cd $(srcdir); ${PWD}`; export s; \
2462 CC="$(CC)"; export CC; \
2463 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2464 CXX="$(CXX)"; export CXX; \
2465 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2466 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2467 AR="$(AR)"; export AR; \
2468 AS="$(AS)"; export AS; \
2469 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2470 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2471 LD="$(LD)"; export LD; \
2472 NM="$(NM)"; export NM; \
2473 RANLIB="$(RANLIB)"; export RANLIB; \
2474 WINDRES="$(WINDRES)"; export WINDRES; \
2475 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2476 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2477 fi; \
2478 echo Configuring in findutils; \
2479 cd findutils || exit 1; \
2480 case $(srcdir) in \
2481 \.) \
2482 srcdiroption="--srcdir=."; \
2483 libsrcdir=".";; \
2484 /* | [A-Za-z]:[\\/]*) \
2485 srcdiroption="--srcdir=$(srcdir)/findutils"; \
2486 libsrcdir="$$s/findutils";; \
2487 *) \
2488 srcdiroption="--srcdir=../$(srcdir)/findutils"; \
2489 libsrcdir="$$s/findutils";; \
2490 esac; \
2491 $(SHELL) $${libsrcdir}/configure \
2492 $(HOST_CONFIGARGS) $${srcdiroption} \
2493 || exit 1
2494
2495.PHONY: all-findutils maybe-all-findutils
2496maybe-all-findutils:
2497all-findutils: configure-findutils
2498 @r=`${PWD}`; export r; \
2499 s=`cd $(srcdir); ${PWD}`; export s; \
2500 $(SET_LIB_PATH) \
88b5521b 2501 (cd findutils && $(MAKE) $(FLAGS_TO_PASS) all)
4977bab6
ZW
2502
2503
2504.PHONY: check-findutils
2505check-findutils:
2506 @r=`${PWD}`; export r; \
2507 s=`cd $(srcdir); ${PWD}`; export s; \
2508 $(SET_LIB_PATH) \
88b5521b 2509 (cd findutils && $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6
ZW
2510
2511
2512
2513.PHONY: install-findutils maybe-install-findutils
2514maybe-install-findutils:
2515install-findutils: installdirs
2516 @r=`${PWD}`; export r; \
2517 s=`cd $(srcdir); ${PWD}`; export s; \
2518 $(SET_LIB_PATH) \
88b5521b 2519 (cd findutils && $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6
ZW
2520
2521
2522.PHONY: configure-find maybe-configure-find
2523maybe-configure-find:
ade82b16
AO
2524configure-find:
2525 @test ! -f find/Makefile || exit 0; \
2526 [ -d find ] || mkdir find; \
4977bab6
ZW
2527 r=`${PWD}`; export r; \
2528 s=`cd $(srcdir); ${PWD}`; export s; \
2529 CC="$(CC)"; export CC; \
2530 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2531 CXX="$(CXX)"; export CXX; \
2532 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2533 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2534 AR="$(AR)"; export AR; \
2535 AS="$(AS)"; export AS; \
2536 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2537 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2538 LD="$(LD)"; export LD; \
2539 NM="$(NM)"; export NM; \
2540 RANLIB="$(RANLIB)"; export RANLIB; \
2541 WINDRES="$(WINDRES)"; export WINDRES; \
2542 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2543 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2544 fi; \
2545 echo Configuring in find; \
2546 cd find || exit 1; \
2547 case $(srcdir) in \
2548 \.) \
2549 srcdiroption="--srcdir=."; \
2550 libsrcdir=".";; \
2551 /* | [A-Za-z]:[\\/]*) \
2552 srcdiroption="--srcdir=$(srcdir)/find"; \
2553 libsrcdir="$$s/find";; \
2554 *) \
2555 srcdiroption="--srcdir=../$(srcdir)/find"; \
2556 libsrcdir="$$s/find";; \
2557 esac; \
2558 $(SHELL) $${libsrcdir}/configure \
2559 $(HOST_CONFIGARGS) $${srcdiroption} \
2560 || exit 1
2561
2562.PHONY: all-find maybe-all-find
2563maybe-all-find:
2564all-find: configure-find
2565 @r=`${PWD}`; export r; \
2566 s=`cd $(srcdir); ${PWD}`; export s; \
2567 $(SET_LIB_PATH) \
88b5521b 2568 (cd find && $(MAKE) $(FLAGS_TO_PASS) all)
4977bab6
ZW
2569
2570
2571.PHONY: check-find
2572check-find:
2573 @r=`${PWD}`; export r; \
2574 s=`cd $(srcdir); ${PWD}`; export s; \
2575 $(SET_LIB_PATH) \
88b5521b 2576 (cd find && $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6
ZW
2577
2578
2579
2580.PHONY: install-find maybe-install-find
2581maybe-install-find:
2582install-find: installdirs
2583 @r=`${PWD}`; export r; \
2584 s=`cd $(srcdir); ${PWD}`; export s; \
2585 $(SET_LIB_PATH) \
88b5521b 2586 (cd find && $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6
ZW
2587
2588
2589.PHONY: configure-flex maybe-configure-flex
2590maybe-configure-flex:
ade82b16
AO
2591configure-flex:
2592 @test ! -f flex/Makefile || exit 0; \
2593 [ -d flex ] || mkdir flex; \
4977bab6
ZW
2594 r=`${PWD}`; export r; \
2595 s=`cd $(srcdir); ${PWD}`; export s; \
2596 CC="$(CC)"; export CC; \
2597 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2598 CXX="$(CXX)"; export CXX; \
2599 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2600 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2601 AR="$(AR)"; export AR; \
2602 AS="$(AS)"; export AS; \
2603 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2604 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2605 LD="$(LD)"; export LD; \
2606 NM="$(NM)"; export NM; \
2607 RANLIB="$(RANLIB)"; export RANLIB; \
2608 WINDRES="$(WINDRES)"; export WINDRES; \
2609 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2610 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2611 fi; \
2612 echo Configuring in flex; \
2613 cd flex || exit 1; \
2614 case $(srcdir) in \
2615 \.) \
2616 srcdiroption="--srcdir=."; \
2617 libsrcdir=".";; \
2618 /* | [A-Za-z]:[\\/]*) \
2619 srcdiroption="--srcdir=$(srcdir)/flex"; \
2620 libsrcdir="$$s/flex";; \
2621 *) \
2622 srcdiroption="--srcdir=../$(srcdir)/flex"; \
2623 libsrcdir="$$s/flex";; \
2624 esac; \
2625 $(SHELL) $${libsrcdir}/configure \
2626 $(HOST_CONFIGARGS) $${srcdiroption} \
2627 || exit 1
2628
2629.PHONY: all-flex maybe-all-flex
2630maybe-all-flex:
2631all-flex: configure-flex
2632 @r=`${PWD}`; export r; \
2633 s=`cd $(srcdir); ${PWD}`; export s; \
2634 $(SET_LIB_PATH) \
88b5521b 2635 (cd flex && $(MAKE) $(FLAGS_TO_PASS) all)
4977bab6
ZW
2636
2637
2638.PHONY: check-flex
2639# This module is only tested in a native toolchain.
2640check-flex:
2641 @if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
2642 r=`${PWD}`; export r; \
2643 s=`cd $(srcdir); ${PWD}`; export s; \
2644 $(SET_LIB_PATH) \
88b5521b 2645 (cd flex && $(MAKE) $(FLAGS_TO_PASS) check); \
4977bab6
ZW
2646 fi
2647
2648
2649
2650.PHONY: install-flex maybe-install-flex
2651maybe-install-flex:
2652install-flex: installdirs
2653 @r=`${PWD}`; export r; \
2654 s=`cd $(srcdir); ${PWD}`; export s; \
2655 $(SET_LIB_PATH) \
88b5521b 2656 (cd flex && $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6
ZW
2657
2658
2659.PHONY: configure-gas maybe-configure-gas
2660maybe-configure-gas:
ade82b16
AO
2661configure-gas:
2662 @test ! -f gas/Makefile || exit 0; \
2663 [ -d gas ] || mkdir gas; \
4977bab6
ZW
2664 r=`${PWD}`; export r; \
2665 s=`cd $(srcdir); ${PWD}`; export s; \
2666 CC="$(CC)"; export CC; \
2667 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2668 CXX="$(CXX)"; export CXX; \
2669 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2670 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2671 AR="$(AR)"; export AR; \
2672 AS="$(AS)"; export AS; \
2673 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2674 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2675 LD="$(LD)"; export LD; \
2676 NM="$(NM)"; export NM; \
2677 RANLIB="$(RANLIB)"; export RANLIB; \
2678 WINDRES="$(WINDRES)"; export WINDRES; \
2679 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2680 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2681 fi; \
2682 echo Configuring in gas; \
2683 cd gas || exit 1; \
2684 case $(srcdir) in \
2685 \.) \
2686 srcdiroption="--srcdir=."; \
2687 libsrcdir=".";; \
2688 /* | [A-Za-z]:[\\/]*) \
2689 srcdiroption="--srcdir=$(srcdir)/gas"; \
2690 libsrcdir="$$s/gas";; \
2691 *) \
2692 srcdiroption="--srcdir=../$(srcdir)/gas"; \
2693 libsrcdir="$$s/gas";; \
2694 esac; \
2695 $(SHELL) $${libsrcdir}/configure \
2696 $(HOST_CONFIGARGS) $${srcdiroption} \
2697 || exit 1
2698
2699.PHONY: all-gas maybe-all-gas
2700maybe-all-gas:
2701all-gas: configure-gas
2702 @r=`${PWD}`; export r; \
2703 s=`cd $(srcdir); ${PWD}`; export s; \
2704 $(SET_LIB_PATH) \
88b5521b 2705 (cd gas && $(MAKE) $(FLAGS_TO_PASS) all)
4977bab6
ZW
2706
2707
2708.PHONY: check-gas
2709check-gas:
2710 @r=`${PWD}`; export r; \
2711 s=`cd $(srcdir); ${PWD}`; export s; \
2712 $(SET_LIB_PATH) \
88b5521b 2713 (cd gas && $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6
ZW
2714
2715
2716
2717.PHONY: install-gas maybe-install-gas
2718maybe-install-gas:
2719install-gas: installdirs
2720 @r=`${PWD}`; export r; \
2721 s=`cd $(srcdir); ${PWD}`; export s; \
2722 $(SET_LIB_PATH) \
88b5521b 2723 (cd gas && $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6
ZW
2724
2725
2726.PHONY: configure-gawk maybe-configure-gawk
2727maybe-configure-gawk:
ade82b16
AO
2728configure-gawk:
2729 @test ! -f gawk/Makefile || exit 0; \
2730 [ -d gawk ] || mkdir gawk; \
4977bab6
ZW
2731 r=`${PWD}`; export r; \
2732 s=`cd $(srcdir); ${PWD}`; export s; \
2733 CC="$(CC)"; export CC; \
2734 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2735 CXX="$(CXX)"; export CXX; \
2736 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2737 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2738 AR="$(AR)"; export AR; \
2739 AS="$(AS)"; export AS; \
2740 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2741 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2742 LD="$(LD)"; export LD; \
2743 NM="$(NM)"; export NM; \
2744 RANLIB="$(RANLIB)"; export RANLIB; \
2745 WINDRES="$(WINDRES)"; export WINDRES; \
2746 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2747 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2748 fi; \
2749 echo Configuring in gawk; \
2750 cd gawk || exit 1; \
2751 case $(srcdir) in \
2752 \.) \
2753 srcdiroption="--srcdir=."; \
2754 libsrcdir=".";; \
2755 /* | [A-Za-z]:[\\/]*) \
2756 srcdiroption="--srcdir=$(srcdir)/gawk"; \
2757 libsrcdir="$$s/gawk";; \
2758 *) \
2759 srcdiroption="--srcdir=../$(srcdir)/gawk"; \
2760 libsrcdir="$$s/gawk";; \
2761 esac; \
2762 $(SHELL) $${libsrcdir}/configure \
2763 $(HOST_CONFIGARGS) $${srcdiroption} \
2764 || exit 1
2765
2766.PHONY: all-gawk maybe-all-gawk
2767maybe-all-gawk:
2768all-gawk: configure-gawk
2769 @r=`${PWD}`; export r; \
2770 s=`cd $(srcdir); ${PWD}`; export s; \
2771 $(SET_LIB_PATH) \
88b5521b 2772 (cd gawk && $(MAKE) $(FLAGS_TO_PASS) all)
4977bab6
ZW
2773
2774
2775.PHONY: check-gawk
2776check-gawk:
2777 @r=`${PWD}`; export r; \
2778 s=`cd $(srcdir); ${PWD}`; export s; \
2779 $(SET_LIB_PATH) \
88b5521b 2780 (cd gawk && $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6
ZW
2781
2782
2783
2784.PHONY: install-gawk maybe-install-gawk
2785maybe-install-gawk:
2786install-gawk: installdirs
2787 @r=`${PWD}`; export r; \
2788 s=`cd $(srcdir); ${PWD}`; export s; \
2789 $(SET_LIB_PATH) \
88b5521b 2790 (cd gawk && $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6
ZW
2791
2792
2793.PHONY: configure-gettext maybe-configure-gettext
2794maybe-configure-gettext:
ade82b16
AO
2795configure-gettext:
2796 @test ! -f gettext/Makefile || exit 0; \
2797 [ -d gettext ] || mkdir gettext; \
4977bab6
ZW
2798 r=`${PWD}`; export r; \
2799 s=`cd $(srcdir); ${PWD}`; export s; \
2800 CC="$(CC)"; export CC; \
2801 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2802 CXX="$(CXX)"; export CXX; \
2803 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2804 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2805 AR="$(AR)"; export AR; \
2806 AS="$(AS)"; export AS; \
2807 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2808 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2809 LD="$(LD)"; export LD; \
2810 NM="$(NM)"; export NM; \
2811 RANLIB="$(RANLIB)"; export RANLIB; \
2812 WINDRES="$(WINDRES)"; export WINDRES; \
2813 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2814 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2815 fi; \
2816 echo Configuring in gettext; \
2817 cd gettext || exit 1; \
2818 case $(srcdir) in \
2819 \.) \
2820 srcdiroption="--srcdir=."; \
2821 libsrcdir=".";; \
2822 /* | [A-Za-z]:[\\/]*) \
2823 srcdiroption="--srcdir=$(srcdir)/gettext"; \
2824 libsrcdir="$$s/gettext";; \
2825 *) \
2826 srcdiroption="--srcdir=../$(srcdir)/gettext"; \
2827 libsrcdir="$$s/gettext";; \
2828 esac; \
2829 $(SHELL) $${libsrcdir}/configure \
2830 $(HOST_CONFIGARGS) $${srcdiroption} \
2831 || exit 1
2832
2833.PHONY: all-gettext maybe-all-gettext
2834maybe-all-gettext:
2835all-gettext: configure-gettext
2836 @r=`${PWD}`; export r; \
2837 s=`cd $(srcdir); ${PWD}`; export s; \
2838 $(SET_LIB_PATH) \
88b5521b 2839 (cd gettext && $(MAKE) $(FLAGS_TO_PASS) all)
4977bab6
ZW
2840
2841
2842.PHONY: check-gettext
2843check-gettext:
2844 @r=`${PWD}`; export r; \
2845 s=`cd $(srcdir); ${PWD}`; export s; \
2846 $(SET_LIB_PATH) \
88b5521b 2847 (cd gettext && $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6
ZW
2848
2849
2850
2851.PHONY: install-gettext maybe-install-gettext
2852maybe-install-gettext:
2853install-gettext: installdirs
2854 @r=`${PWD}`; export r; \
2855 s=`cd $(srcdir); ${PWD}`; export s; \
2856 $(SET_LIB_PATH) \
88b5521b 2857 (cd gettext && $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6
ZW
2858
2859
2860.PHONY: configure-gnuserv maybe-configure-gnuserv
2861maybe-configure-gnuserv:
ade82b16
AO
2862configure-gnuserv:
2863 @test ! -f gnuserv/Makefile || exit 0; \
2864 [ -d gnuserv ] || mkdir gnuserv; \
4977bab6
ZW
2865 r=`${PWD}`; export r; \
2866 s=`cd $(srcdir); ${PWD}`; export s; \
2867 CC="$(CC)"; export CC; \
2868 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2869 CXX="$(CXX)"; export CXX; \
2870 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2871 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2872 AR="$(AR)"; export AR; \
2873 AS="$(AS)"; export AS; \
2874 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2875 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2876 LD="$(LD)"; export LD; \
2877 NM="$(NM)"; export NM; \
2878 RANLIB="$(RANLIB)"; export RANLIB; \
2879 WINDRES="$(WINDRES)"; export WINDRES; \
2880 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2881 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2882 fi; \
2883 echo Configuring in gnuserv; \
2884 cd gnuserv || exit 1; \
2885 case $(srcdir) in \
2886 \.) \
2887 srcdiroption="--srcdir=."; \
2888 libsrcdir=".";; \
2889 /* | [A-Za-z]:[\\/]*) \
2890 srcdiroption="--srcdir=$(srcdir)/gnuserv"; \
2891 libsrcdir="$$s/gnuserv";; \
2892 *) \
2893 srcdiroption="--srcdir=../$(srcdir)/gnuserv"; \
2894 libsrcdir="$$s/gnuserv";; \
2895 esac; \
2896 $(SHELL) $${libsrcdir}/configure \
2897 $(HOST_CONFIGARGS) $${srcdiroption} \
2898 || exit 1
2899
2900.PHONY: all-gnuserv maybe-all-gnuserv
2901maybe-all-gnuserv:
2902all-gnuserv: configure-gnuserv
2903 @r=`${PWD}`; export r; \
2904 s=`cd $(srcdir); ${PWD}`; export s; \
2905 $(SET_LIB_PATH) \
88b5521b 2906 (cd gnuserv && $(MAKE) $(FLAGS_TO_PASS) all)
4977bab6
ZW
2907
2908
2909.PHONY: check-gnuserv
2910check-gnuserv:
2911 @r=`${PWD}`; export r; \
2912 s=`cd $(srcdir); ${PWD}`; export s; \
2913 $(SET_LIB_PATH) \
88b5521b 2914 (cd gnuserv && $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6
ZW
2915
2916
2917
2918.PHONY: install-gnuserv maybe-install-gnuserv
2919maybe-install-gnuserv:
2920install-gnuserv: installdirs
2921 @r=`${PWD}`; export r; \
2922 s=`cd $(srcdir); ${PWD}`; export s; \
2923 $(SET_LIB_PATH) \
88b5521b 2924 (cd gnuserv && $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6
ZW
2925
2926
2927.PHONY: configure-gprof maybe-configure-gprof
2928maybe-configure-gprof:
ade82b16
AO
2929configure-gprof:
2930 @test ! -f gprof/Makefile || exit 0; \
2931 [ -d gprof ] || mkdir gprof; \
4977bab6
ZW
2932 r=`${PWD}`; export r; \
2933 s=`cd $(srcdir); ${PWD}`; export s; \
2934 CC="$(CC)"; export CC; \
2935 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2936 CXX="$(CXX)"; export CXX; \
2937 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2938 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2939 AR="$(AR)"; export AR; \
2940 AS="$(AS)"; export AS; \
2941 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2942 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2943 LD="$(LD)"; export LD; \
2944 NM="$(NM)"; export NM; \
2945 RANLIB="$(RANLIB)"; export RANLIB; \
2946 WINDRES="$(WINDRES)"; export WINDRES; \
2947 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2948 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2949 fi; \
2950 echo Configuring in gprof; \
2951 cd gprof || exit 1; \
2952 case $(srcdir) in \
2953 \.) \
2954 srcdiroption="--srcdir=."; \
2955 libsrcdir=".";; \
2956 /* | [A-Za-z]:[\\/]*) \
2957 srcdiroption="--srcdir=$(srcdir)/gprof"; \
2958 libsrcdir="$$s/gprof";; \
2959 *) \
2960 srcdiroption="--srcdir=../$(srcdir)/gprof"; \
2961 libsrcdir="$$s/gprof";; \
2962 esac; \
2963 $(SHELL) $${libsrcdir}/configure \
2964 $(HOST_CONFIGARGS) $${srcdiroption} \
2965 || exit 1
2966
2967.PHONY: all-gprof maybe-all-gprof
2968maybe-all-gprof:
2969all-gprof: configure-gprof
2970 @r=`${PWD}`; export r; \
2971 s=`cd $(srcdir); ${PWD}`; export s; \
2972 $(SET_LIB_PATH) \
88b5521b 2973 (cd gprof && $(MAKE) $(FLAGS_TO_PASS) all)
4977bab6
ZW
2974
2975
2976.PHONY: check-gprof
2977check-gprof:
2978 @r=`${PWD}`; export r; \
2979 s=`cd $(srcdir); ${PWD}`; export s; \
2980 $(SET_LIB_PATH) \
88b5521b 2981 (cd gprof && $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6
ZW
2982
2983
2984
2985.PHONY: install-gprof maybe-install-gprof
2986maybe-install-gprof:
2987install-gprof: installdirs
2988 @r=`${PWD}`; export r; \
2989 s=`cd $(srcdir); ${PWD}`; export s; \
2990 $(SET_LIB_PATH) \
88b5521b 2991 (cd gprof && $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6
ZW
2992
2993
2994.PHONY: configure-grep maybe-configure-grep
2995maybe-configure-grep:
ade82b16
AO
2996configure-grep:
2997 @test ! -f grep/Makefile || exit 0; \
2998 [ -d grep ] || mkdir grep; \
4977bab6
ZW
2999 r=`${PWD}`; export r; \
3000 s=`cd $(srcdir); ${PWD}`; export s; \
3001 CC="$(CC)"; export CC; \
3002 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3003 CXX="$(CXX)"; export CXX; \
3004 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3005 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3006 AR="$(AR)"; export AR; \
3007 AS="$(AS)"; export AS; \
3008 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3009 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3010 LD="$(LD)"; export LD; \
3011 NM="$(NM)"; export NM; \
3012 RANLIB="$(RANLIB)"; export RANLIB; \
3013 WINDRES="$(WINDRES)"; export WINDRES; \
3014 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3015 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3016 fi; \
3017 echo Configuring in grep; \
3018 cd grep || exit 1; \
3019 case $(srcdir) in \
3020 \.) \
3021 srcdiroption="--srcdir=."; \
3022 libsrcdir=".";; \
3023 /* | [A-Za-z]:[\\/]*) \
3024 srcdiroption="--srcdir=$(srcdir)/grep"; \
3025 libsrcdir="$$s/grep";; \
3026 *) \
3027 srcdiroption="--srcdir=../$(srcdir)/grep"; \
3028 libsrcdir="$$s/grep";; \
3029 esac; \
3030 $(SHELL) $${libsrcdir}/configure \
3031 $(HOST_CONFIGARGS) $${srcdiroption} \
3032 || exit 1
3033
3034.PHONY: all-grep maybe-all-grep
3035maybe-all-grep:
3036all-grep: configure-grep
3037 @r=`${PWD}`; export r; \
3038 s=`cd $(srcdir); ${PWD}`; export s; \
3039 $(SET_LIB_PATH) \
88b5521b 3040 (cd grep && $(MAKE) $(FLAGS_TO_PASS) all)
4977bab6
ZW
3041
3042
3043.PHONY: check-grep
3044check-grep:
3045 @r=`${PWD}`; export r; \
3046 s=`cd $(srcdir); ${PWD}`; export s; \
3047 $(SET_LIB_PATH) \
88b5521b 3048 (cd grep && $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6
ZW
3049
3050
3051
3052.PHONY: install-grep maybe-install-grep
3053maybe-install-grep:
3054install-grep: installdirs
3055 @r=`${PWD}`; export r; \
3056 s=`cd $(srcdir); ${PWD}`; export s; \
3057 $(SET_LIB_PATH) \
88b5521b 3058 (cd grep && $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6
ZW
3059
3060
3061.PHONY: configure-gzip maybe-configure-gzip
3062maybe-configure-gzip:
ade82b16
AO
3063configure-gzip:
3064 @test ! -f gzip/Makefile || exit 0; \
3065 [ -d gzip ] || mkdir gzip; \
4977bab6
ZW
3066 r=`${PWD}`; export r; \
3067 s=`cd $(srcdir); ${PWD}`; export s; \
3068 CC="$(CC)"; export CC; \
3069 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3070 CXX="$(CXX)"; export CXX; \
3071 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3072 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3073 AR="$(AR)"; export AR; \
3074 AS="$(AS)"; export AS; \
3075 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3076 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3077 LD="$(LD)"; export LD; \
3078 NM="$(NM)"; export NM; \
3079 RANLIB="$(RANLIB)"; export RANLIB; \
3080 WINDRES="$(WINDRES)"; export WINDRES; \
3081 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3082 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3083 fi; \
3084 echo Configuring in gzip; \
3085 cd gzip || exit 1; \
3086 case $(srcdir) in \
3087 \.) \
3088 srcdiroption="--srcdir=."; \
3089 libsrcdir=".";; \
3090 /* | [A-Za-z]:[\\/]*) \
3091 srcdiroption="--srcdir=$(srcdir)/gzip"; \
3092 libsrcdir="$$s/gzip";; \
3093 *) \
3094 srcdiroption="--srcdir=../$(srcdir)/gzip"; \
3095 libsrcdir="$$s/gzip";; \
3096 esac; \
3097 $(SHELL) $${libsrcdir}/configure \
3098 $(HOST_CONFIGARGS) $${srcdiroption} \
3099 || exit 1
3100
3101.PHONY: all-gzip maybe-all-gzip
3102maybe-all-gzip:
3103all-gzip: configure-gzip
3104 @r=`${PWD}`; export r; \
3105 s=`cd $(srcdir); ${PWD}`; export s; \
3106 $(SET_LIB_PATH) \
88b5521b 3107 (cd gzip && $(MAKE) $(FLAGS_TO_PASS) all)
4977bab6
ZW
3108
3109
3110.PHONY: check-gzip
3111check-gzip:
3112 @r=`${PWD}`; export r; \
3113 s=`cd $(srcdir); ${PWD}`; export s; \
3114 $(SET_LIB_PATH) \
88b5521b 3115 (cd gzip && $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6
ZW
3116
3117
3118
3119.PHONY: install-gzip maybe-install-gzip
3120maybe-install-gzip:
3121install-gzip: installdirs
3122 @r=`${PWD}`; export r; \
3123 s=`cd $(srcdir); ${PWD}`; export s; \
3124 $(SET_LIB_PATH) \
88b5521b 3125 (cd gzip && $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6
ZW
3126
3127
3128.PHONY: configure-hello maybe-configure-hello
3129maybe-configure-hello:
ade82b16
AO
3130configure-hello:
3131 @test ! -f hello/Makefile || exit 0; \
3132 [ -d hello ] || mkdir hello; \
4977bab6
ZW
3133 r=`${PWD}`; export r; \
3134 s=`cd $(srcdir); ${PWD}`; export s; \
3135 CC="$(CC)"; export CC; \
3136 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3137 CXX="$(CXX)"; export CXX; \
3138 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3139 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3140 AR="$(AR)"; export AR; \
3141 AS="$(AS)"; export AS; \
3142 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3143 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3144 LD="$(LD)"; export LD; \
3145 NM="$(NM)"; export NM; \
3146 RANLIB="$(RANLIB)"; export RANLIB; \
3147 WINDRES="$(WINDRES)"; export WINDRES; \
3148 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3149 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3150 fi; \
3151 echo Configuring in hello; \
3152 cd hello || exit 1; \
3153 case $(srcdir) in \
3154 \.) \
3155 srcdiroption="--srcdir=."; \
3156 libsrcdir=".";; \
3157 /* | [A-Za-z]:[\\/]*) \
3158 srcdiroption="--srcdir=$(srcdir)/hello"; \
3159 libsrcdir="$$s/hello";; \
3160 *) \
3161 srcdiroption="--srcdir=../$(srcdir)/hello"; \
3162 libsrcdir="$$s/hello";; \
3163 esac; \
3164 $(SHELL) $${libsrcdir}/configure \
3165 $(HOST_CONFIGARGS) $${srcdiroption} \
3166 || exit 1
3167
3168.PHONY: all-hello maybe-all-hello
3169maybe-all-hello:
3170all-hello: configure-hello
3171 @r=`${PWD}`; export r; \
3172 s=`cd $(srcdir); ${PWD}`; export s; \
3173 $(SET_LIB_PATH) \
88b5521b 3174 (cd hello && $(MAKE) $(FLAGS_TO_PASS) all)
4977bab6
ZW
3175
3176
3177.PHONY: check-hello
3178check-hello:
3179 @r=`${PWD}`; export r; \
3180 s=`cd $(srcdir); ${PWD}`; export s; \
3181 $(SET_LIB_PATH) \
88b5521b 3182 (cd hello && $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6
ZW
3183
3184
3185
3186.PHONY: install-hello maybe-install-hello
3187maybe-install-hello:
3188install-hello: installdirs
3189 @r=`${PWD}`; export r; \
3190 s=`cd $(srcdir); ${PWD}`; export s; \
3191 $(SET_LIB_PATH) \
88b5521b 3192 (cd hello && $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6
ZW
3193
3194
3195.PHONY: configure-indent maybe-configure-indent
3196maybe-configure-indent:
ade82b16
AO
3197configure-indent:
3198 @test ! -f indent/Makefile || exit 0; \
3199 [ -d indent ] || mkdir indent; \
4977bab6
ZW
3200 r=`${PWD}`; export r; \
3201 s=`cd $(srcdir); ${PWD}`; export s; \
3202 CC="$(CC)"; export CC; \
3203 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3204 CXX="$(CXX)"; export CXX; \
3205 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3206 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3207 AR="$(AR)"; export AR; \
3208 AS="$(AS)"; export AS; \
3209 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3210 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3211 LD="$(LD)"; export LD; \
3212 NM="$(NM)"; export NM; \
3213 RANLIB="$(RANLIB)"; export RANLIB; \
3214 WINDRES="$(WINDRES)"; export WINDRES; \
3215 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3216 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3217 fi; \
3218 echo Configuring in indent; \
3219 cd indent || exit 1; \
3220 case $(srcdir) in \
3221 \.) \
3222 srcdiroption="--srcdir=."; \
3223 libsrcdir=".";; \
3224 /* | [A-Za-z]:[\\/]*) \
3225 srcdiroption="--srcdir=$(srcdir)/indent"; \
3226 libsrcdir="$$s/indent";; \
3227 *) \
3228 srcdiroption="--srcdir=../$(srcdir)/indent"; \
3229 libsrcdir="$$s/indent";; \
3230 esac; \
3231 $(SHELL) $${libsrcdir}/configure \
3232 $(HOST_CONFIGARGS) $${srcdiroption} \
3233 || exit 1
3234
3235.PHONY: all-indent maybe-all-indent
3236maybe-all-indent:
3237all-indent: configure-indent
3238 @r=`${PWD}`; export r; \
3239 s=`cd $(srcdir); ${PWD}`; export s; \
3240 $(SET_LIB_PATH) \
88b5521b 3241 (cd indent && $(MAKE) $(FLAGS_TO_PASS) all)
4977bab6
ZW
3242
3243
3244.PHONY: check-indent
3245check-indent:
3246 @r=`${PWD}`; export r; \
3247 s=`cd $(srcdir); ${PWD}`; export s; \
3248 $(SET_LIB_PATH) \
88b5521b 3249 (cd indent && $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6
ZW
3250
3251
3252
3253.PHONY: install-indent maybe-install-indent
3254maybe-install-indent:
3255install-indent: installdirs
3256 @r=`${PWD}`; export r; \
3257 s=`cd $(srcdir); ${PWD}`; export s; \
3258 $(SET_LIB_PATH) \
88b5521b 3259 (cd indent && $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6
ZW
3260
3261
3262.PHONY: configure-intl maybe-configure-intl
3263maybe-configure-intl:
ade82b16
AO
3264configure-intl:
3265 @test ! -f intl/Makefile || exit 0; \
3266 [ -d intl ] || mkdir intl; \
4977bab6
ZW
3267 r=`${PWD}`; export r; \
3268 s=`cd $(srcdir); ${PWD}`; export s; \
3269 CC="$(CC)"; export CC; \
3270 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3271 CXX="$(CXX)"; export CXX; \
3272 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3273 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3274 AR="$(AR)"; export AR; \
3275 AS="$(AS)"; export AS; \
3276 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3277 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3278 LD="$(LD)"; export LD; \
3279 NM="$(NM)"; export NM; \
3280 RANLIB="$(RANLIB)"; export RANLIB; \
3281 WINDRES="$(WINDRES)"; export WINDRES; \
3282 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3283 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3284 fi; \
3285 echo Configuring in intl; \
3286 cd intl || exit 1; \
3287 case $(srcdir) in \
3288 \.) \
3289 srcdiroption="--srcdir=."; \
3290 libsrcdir=".";; \
3291 /* | [A-Za-z]:[\\/]*) \
3292 srcdiroption="--srcdir=$(srcdir)/intl"; \
3293 libsrcdir="$$s/intl";; \
3294 *) \
3295 srcdiroption="--srcdir=../$(srcdir)/intl"; \
3296 libsrcdir="$$s/intl";; \
3297 esac; \
3298 $(SHELL) $${libsrcdir}/configure \
3299 $(HOST_CONFIGARGS) $${srcdiroption} \
3300 || exit 1
3301
3302.PHONY: all-intl maybe-all-intl
3303maybe-all-intl:
3304all-intl: configure-intl
3305 @r=`${PWD}`; export r; \
3306 s=`cd $(srcdir); ${PWD}`; export s; \
3307 $(SET_LIB_PATH) \
88b5521b 3308 (cd intl && $(MAKE) $(FLAGS_TO_PASS) all)
4977bab6
ZW
3309
3310
3311.PHONY: check-intl
3312check-intl:
3313 @r=`${PWD}`; export r; \
3314 s=`cd $(srcdir); ${PWD}`; export s; \
3315 $(SET_LIB_PATH) \
88b5521b 3316 (cd intl && $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6
ZW
3317
3318
3319
3320.PHONY: install-intl maybe-install-intl
3321maybe-install-intl:
3322install-intl: installdirs
3323 @r=`${PWD}`; export r; \
3324 s=`cd $(srcdir); ${PWD}`; export s; \
3325 $(SET_LIB_PATH) \
88b5521b 3326 (cd intl && $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6
ZW
3327
3328
3329.PHONY: configure-tcl maybe-configure-tcl
3330maybe-configure-tcl:
ade82b16
AO
3331configure-tcl:
3332 @test ! -f tcl/Makefile || exit 0; \
3333 [ -d tcl ] || mkdir tcl; \
4977bab6
ZW
3334 r=`${PWD}`; export r; \
3335 s=`cd $(srcdir); ${PWD}`; export s; \
3336 CC="$(CC)"; export CC; \
3337 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3338 CXX="$(CXX)"; export CXX; \
3339 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3340 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3341 AR="$(AR)"; export AR; \
3342 AS="$(AS)"; export AS; \
3343 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3344 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3345 LD="$(LD)"; export LD; \
3346 NM="$(NM)"; export NM; \
3347 RANLIB="$(RANLIB)"; export RANLIB; \
3348 WINDRES="$(WINDRES)"; export WINDRES; \
3349 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3350 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3351 fi; \
3352 echo Configuring in tcl; \
3353 cd tcl || exit 1; \
3354 case $(srcdir) in \
3355 \.) \
3356 srcdiroption="--srcdir=."; \
3357 libsrcdir=".";; \
3358 /* | [A-Za-z]:[\\/]*) \
3359 srcdiroption="--srcdir=$(srcdir)/tcl"; \
3360 libsrcdir="$$s/tcl";; \
3361 *) \
3362 srcdiroption="--srcdir=../$(srcdir)/tcl"; \
3363 libsrcdir="$$s/tcl";; \
3364 esac; \
3365 $(SHELL) $${libsrcdir}/configure \
3366 $(HOST_CONFIGARGS) $${srcdiroption} \
3367 || exit 1
3368
3369.PHONY: all-tcl maybe-all-tcl
3370maybe-all-tcl:
3371all-tcl: configure-tcl
3372 @r=`${PWD}`; export r; \
3373 s=`cd $(srcdir); ${PWD}`; export s; \
3374 $(SET_LIB_PATH) \
88b5521b 3375 (cd tcl && $(MAKE) $(FLAGS_TO_PASS) all)
4977bab6
ZW
3376
3377
3378.PHONY: check-tcl
3379check-tcl:
3380 @r=`${PWD}`; export r; \
3381 s=`cd $(srcdir); ${PWD}`; export s; \
3382 $(SET_LIB_PATH) \
88b5521b 3383 (cd tcl && $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6
ZW
3384
3385
3386
3387.PHONY: install-tcl maybe-install-tcl
3388maybe-install-tcl:
3389install-tcl: installdirs
3390 @r=`${PWD}`; export r; \
3391 s=`cd $(srcdir); ${PWD}`; export s; \
3392 $(SET_LIB_PATH) \
88b5521b 3393 (cd tcl && $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6
ZW
3394
3395
3396.PHONY: configure-itcl maybe-configure-itcl
3397maybe-configure-itcl:
ade82b16
AO
3398configure-itcl:
3399 @test ! -f itcl/Makefile || exit 0; \
3400 [ -d itcl ] || mkdir itcl; \
4977bab6
ZW
3401 r=`${PWD}`; export r; \
3402 s=`cd $(srcdir); ${PWD}`; export s; \
3403 CC="$(CC)"; export CC; \
3404 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3405 CXX="$(CXX)"; export CXX; \
3406 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3407 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3408 AR="$(AR)"; export AR; \
3409 AS="$(AS)"; export AS; \
3410 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3411 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3412 LD="$(LD)"; export LD; \
3413 NM="$(NM)"; export NM; \
3414 RANLIB="$(RANLIB)"; export RANLIB; \
3415 WINDRES="$(WINDRES)"; export WINDRES; \
3416 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3417 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3418 fi; \
3419 echo Configuring in itcl; \
3420 cd itcl || exit 1; \
3421 case $(srcdir) in \
3422 \.) \
3423 srcdiroption="--srcdir=."; \
3424 libsrcdir=".";; \
3425 /* | [A-Za-z]:[\\/]*) \
3426 srcdiroption="--srcdir=$(srcdir)/itcl"; \
3427 libsrcdir="$$s/itcl";; \
3428 *) \
3429 srcdiroption="--srcdir=../$(srcdir)/itcl"; \
3430 libsrcdir="$$s/itcl";; \
3431 esac; \
3432 $(SHELL) $${libsrcdir}/configure \
3433 $(HOST_CONFIGARGS) $${srcdiroption} \
3434 || exit 1
3435
3436.PHONY: all-itcl maybe-all-itcl
3437maybe-all-itcl:
3438all-itcl: configure-itcl
3439 @r=`${PWD}`; export r; \
3440 s=`cd $(srcdir); ${PWD}`; export s; \
3441 $(SET_LIB_PATH) \
88b5521b 3442 (cd itcl && $(MAKE) $(FLAGS_TO_PASS) all)
4977bab6
ZW
3443
3444
3445.PHONY: check-itcl
3446check-itcl:
3447 @r=`${PWD}`; export r; \
3448 s=`cd $(srcdir); ${PWD}`; export s; \
3449 $(SET_LIB_PATH) \
88b5521b 3450 (cd itcl && $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6
ZW
3451
3452
3453
3454.PHONY: install-itcl maybe-install-itcl
3455maybe-install-itcl:
3456install-itcl: installdirs
3457 @r=`${PWD}`; export r; \
3458 s=`cd $(srcdir); ${PWD}`; export s; \
3459 $(SET_LIB_PATH) \
88b5521b 3460 (cd itcl && $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6
ZW
3461
3462
3463.PHONY: configure-ld maybe-configure-ld
3464maybe-configure-ld:
ade82b16
AO
3465configure-ld:
3466 @test ! -f ld/Makefile || exit 0; \
3467 [ -d ld ] || mkdir ld; \
4977bab6
ZW
3468 r=`${PWD}`; export r; \
3469 s=`cd $(srcdir); ${PWD}`; export s; \
3470 CC="$(CC)"; export CC; \
3471 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3472 CXX="$(CXX)"; export CXX; \
3473 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3474 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3475 AR="$(AR)"; export AR; \
3476 AS="$(AS)"; export AS; \
3477 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3478 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3479 LD="$(LD)"; export LD; \
3480 NM="$(NM)"; export NM; \
3481 RANLIB="$(RANLIB)"; export RANLIB; \
3482 WINDRES="$(WINDRES)"; export WINDRES; \
3483 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3484 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3485 fi; \
3486 echo Configuring in ld; \
3487 cd ld || exit 1; \
3488 case $(srcdir) in \
3489 \.) \
3490 srcdiroption="--srcdir=."; \
3491 libsrcdir=".";; \
3492 /* | [A-Za-z]:[\\/]*) \
3493 srcdiroption="--srcdir=$(srcdir)/ld"; \
3494 libsrcdir="$$s/ld";; \
3495 *) \
3496 srcdiroption="--srcdir=../$(srcdir)/ld"; \
3497 libsrcdir="$$s/ld";; \
3498 esac; \
3499 $(SHELL) $${libsrcdir}/configure \
3500 $(HOST_CONFIGARGS) $${srcdiroption} \
3501 || exit 1
3502
3503.PHONY: all-ld maybe-all-ld
3504maybe-all-ld:
3505all-ld: configure-ld
3506 @r=`${PWD}`; export r; \
3507 s=`cd $(srcdir); ${PWD}`; export s; \
3508 $(SET_LIB_PATH) \
88b5521b 3509 (cd ld && $(MAKE) $(FLAGS_TO_PASS) all)
4977bab6
ZW
3510
3511
3512.PHONY: check-ld
3513check-ld:
3514 @r=`${PWD}`; export r; \
3515 s=`cd $(srcdir); ${PWD}`; export s; \
3516 $(SET_LIB_PATH) \
88b5521b 3517 (cd ld && $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6
ZW
3518
3519
3520
3521.PHONY: install-ld maybe-install-ld
3522maybe-install-ld:
3523install-ld: installdirs
3524 @r=`${PWD}`; export r; \
3525 s=`cd $(srcdir); ${PWD}`; export s; \
3526 $(SET_LIB_PATH) \
88b5521b 3527 (cd ld && $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6
ZW
3528
3529
3530.PHONY: configure-libgui maybe-configure-libgui
3531maybe-configure-libgui:
ade82b16
AO
3532configure-libgui:
3533 @test ! -f libgui/Makefile || exit 0; \
3534 [ -d libgui ] || mkdir libgui; \
4977bab6
ZW
3535 r=`${PWD}`; export r; \
3536 s=`cd $(srcdir); ${PWD}`; export s; \
3537 CC="$(CC)"; export CC; \
3538 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3539 CXX="$(CXX)"; export CXX; \
3540 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3541 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3542 AR="$(AR)"; export AR; \
3543 AS="$(AS)"; export AS; \
3544 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3545 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3546 LD="$(LD)"; export LD; \
3547 NM="$(NM)"; export NM; \
3548 RANLIB="$(RANLIB)"; export RANLIB; \
3549 WINDRES="$(WINDRES)"; export WINDRES; \
3550 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3551 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3552 fi; \
3553 echo Configuring in libgui; \
3554 cd libgui || exit 1; \
3555 case $(srcdir) in \
3556 \.) \
3557 srcdiroption="--srcdir=."; \
3558 libsrcdir=".";; \
3559 /* | [A-Za-z]:[\\/]*) \
3560 srcdiroption="--srcdir=$(srcdir)/libgui"; \
3561 libsrcdir="$$s/libgui";; \
3562 *) \
3563 srcdiroption="--srcdir=../$(srcdir)/libgui"; \
3564 libsrcdir="$$s/libgui";; \
3565 esac; \
3566 $(SHELL) $${libsrcdir}/configure \
3567 $(HOST_CONFIGARGS) $${srcdiroption} \
3568 || exit 1
3569
3570.PHONY: all-libgui maybe-all-libgui
3571maybe-all-libgui:
3572all-libgui: configure-libgui
3573 @r=`${PWD}`; export r; \
3574 s=`cd $(srcdir); ${PWD}`; export s; \
3575 $(SET_LIB_PATH) \
88b5521b 3576 (cd libgui && $(MAKE) $(FLAGS_TO_PASS) all)
4977bab6
ZW
3577
3578
3579.PHONY: check-libgui
3580check-libgui:
3581 @r=`${PWD}`; export r; \
3582 s=`cd $(srcdir); ${PWD}`; export s; \
3583 $(SET_LIB_PATH) \
88b5521b 3584 (cd libgui && $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6
ZW
3585
3586
3587
3588.PHONY: install-libgui maybe-install-libgui
3589maybe-install-libgui:
3590install-libgui: installdirs
3591 @r=`${PWD}`; export r; \
3592 s=`cd $(srcdir); ${PWD}`; export s; \
3593 $(SET_LIB_PATH) \
88b5521b 3594 (cd libgui && $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6
ZW
3595
3596
3597.PHONY: configure-libiberty maybe-configure-libiberty
3598maybe-configure-libiberty:
ade82b16
AO
3599configure-libiberty:
3600 @test ! -f libiberty/Makefile || exit 0; \
3601 [ -d libiberty ] || mkdir libiberty; \
4977bab6
ZW
3602 r=`${PWD}`; export r; \
3603 s=`cd $(srcdir); ${PWD}`; export s; \
3604 CC="$(CC)"; export CC; \
3605 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3606 CXX="$(CXX)"; export CXX; \
3607 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3608 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3609 AR="$(AR)"; export AR; \
3610 AS="$(AS)"; export AS; \
3611 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3612 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3613 LD="$(LD)"; export LD; \
3614 NM="$(NM)"; export NM; \
3615 RANLIB="$(RANLIB)"; export RANLIB; \
3616 WINDRES="$(WINDRES)"; export WINDRES; \
3617 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3618 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3619 fi; \
3620 echo Configuring in libiberty; \
3621 cd libiberty || exit 1; \
3622 case $(srcdir) in \
3623 \.) \
3624 srcdiroption="--srcdir=."; \
3625 libsrcdir=".";; \
3626 /* | [A-Za-z]:[\\/]*) \
3627 srcdiroption="--srcdir=$(srcdir)/libiberty"; \
3628 libsrcdir="$$s/libiberty";; \
3629 *) \
3630 srcdiroption="--srcdir=../$(srcdir)/libiberty"; \
3631 libsrcdir="$$s/libiberty";; \
3632 esac; \
3633 $(SHELL) $${libsrcdir}/configure \
3634 $(HOST_CONFIGARGS) $${srcdiroption} \
3635 || exit 1
3636
3637.PHONY: all-libiberty maybe-all-libiberty
3638maybe-all-libiberty:
3639all-libiberty: configure-libiberty
3640 @r=`${PWD}`; export r; \
3641 s=`cd $(srcdir); ${PWD}`; export s; \
3642 $(SET_LIB_PATH) \
88b5521b 3643 (cd libiberty && $(MAKE) $(FLAGS_TO_PASS) all)
4977bab6
ZW
3644
3645
3646.PHONY: check-libiberty
3647check-libiberty:
3648 @r=`${PWD}`; export r; \
3649 s=`cd $(srcdir); ${PWD}`; export s; \
3650 $(SET_LIB_PATH) \
88b5521b 3651 (cd libiberty && $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6
ZW
3652
3653
3654
3655.PHONY: install-libiberty maybe-install-libiberty
3656maybe-install-libiberty:
3657install-libiberty: installdirs
3658 @r=`${PWD}`; export r; \
3659 s=`cd $(srcdir); ${PWD}`; export s; \
3660 $(SET_LIB_PATH) \
88b5521b 3661 (cd libiberty && $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6
ZW
3662
3663
3664.PHONY: configure-libtool maybe-configure-libtool
3665maybe-configure-libtool:
ade82b16
AO
3666configure-libtool:
3667 @test ! -f libtool/Makefile || exit 0; \
3668 [ -d libtool ] || mkdir libtool; \
4977bab6
ZW
3669 r=`${PWD}`; export r; \
3670 s=`cd $(srcdir); ${PWD}`; export s; \
3671 CC="$(CC)"; export CC; \
3672 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3673 CXX="$(CXX)"; export CXX; \
3674 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3675 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3676 AR="$(AR)"; export AR; \
3677 AS="$(AS)"; export AS; \
3678 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3679 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3680 LD="$(LD)"; export LD; \
3681 NM="$(NM)"; export NM; \
3682 RANLIB="$(RANLIB)"; export RANLIB; \
3683 WINDRES="$(WINDRES)"; export WINDRES; \
3684 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3685 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3686 fi; \
3687 echo Configuring in libtool; \
3688 cd libtool || exit 1; \
3689 case $(srcdir) in \
3690 \.) \
3691 srcdiroption="--srcdir=."; \
3692 libsrcdir=".";; \
3693 /* | [A-Za-z]:[\\/]*) \
3694 srcdiroption="--srcdir=$(srcdir)/libtool"; \
3695 libsrcdir="$$s/libtool";; \
3696 *) \
3697 srcdiroption="--srcdir=../$(srcdir)/libtool"; \
3698 libsrcdir="$$s/libtool";; \
3699 esac; \
3700 $(SHELL) $${libsrcdir}/configure \
3701 $(HOST_CONFIGARGS) $${srcdiroption} \
3702 || exit 1
3703
3704.PHONY: all-libtool maybe-all-libtool
3705maybe-all-libtool:
3706all-libtool: configure-libtool
3707 @r=`${PWD}`; export r; \
3708 s=`cd $(srcdir); ${PWD}`; export s; \
3709 $(SET_LIB_PATH) \
88b5521b 3710 (cd libtool && $(MAKE) $(FLAGS_TO_PASS) all)
4977bab6
ZW
3711
3712
3713.PHONY: check-libtool
3714check-libtool:
3715 @r=`${PWD}`; export r; \
3716 s=`cd $(srcdir); ${PWD}`; export s; \
3717 $(SET_LIB_PATH) \
88b5521b 3718 (cd libtool && $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6
ZW
3719
3720
3721
3722.PHONY: install-libtool maybe-install-libtool
3723maybe-install-libtool:
3724install-libtool: installdirs
3725 @r=`${PWD}`; export r; \
3726 s=`cd $(srcdir); ${PWD}`; export s; \
3727 $(SET_LIB_PATH) \
88b5521b 3728 (cd libtool && $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6
ZW
3729
3730
3731.PHONY: configure-m4 maybe-configure-m4
3732maybe-configure-m4:
ade82b16
AO
3733configure-m4:
3734 @test ! -f m4/Makefile || exit 0; \
3735 [ -d m4 ] || mkdir m4; \
4977bab6
ZW
3736 r=`${PWD}`; export r; \
3737 s=`cd $(srcdir); ${PWD}`; export s; \
3738 CC="$(CC)"; export CC; \
3739 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3740 CXX="$(CXX)"; export CXX; \
3741 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3742 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3743 AR="$(AR)"; export AR; \
3744 AS="$(AS)"; export AS; \
3745 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3746 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3747 LD="$(LD)"; export LD; \
3748 NM="$(NM)"; export NM; \
3749 RANLIB="$(RANLIB)"; export RANLIB; \
3750 WINDRES="$(WINDRES)"; export WINDRES; \
3751 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3752 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3753 fi; \
3754 echo Configuring in m4; \
3755 cd m4 || exit 1; \
3756 case $(srcdir) in \
3757 \.) \
3758 srcdiroption="--srcdir=."; \
3759 libsrcdir=".";; \
3760 /* | [A-Za-z]:[\\/]*) \
3761 srcdiroption="--srcdir=$(srcdir)/m4"; \
3762 libsrcdir="$$s/m4";; \
3763 *) \
3764 srcdiroption="--srcdir=../$(srcdir)/m4"; \
3765 libsrcdir="$$s/m4";; \
3766 esac; \
3767 $(SHELL) $${libsrcdir}/configure \
3768 $(HOST_CONFIGARGS) $${srcdiroption} \
3769 || exit 1
3770
3771.PHONY: all-m4 maybe-all-m4
3772maybe-all-m4:
3773all-m4: configure-m4
3774 @r=`${PWD}`; export r; \
3775 s=`cd $(srcdir); ${PWD}`; export s; \
3776 $(SET_LIB_PATH) \
88b5521b 3777 (cd m4 && $(MAKE) $(FLAGS_TO_PASS) all)
4977bab6
ZW
3778
3779
3780.PHONY: check-m4
3781check-m4:
3782 @r=`${PWD}`; export r; \
3783 s=`cd $(srcdir); ${PWD}`; export s; \
3784 $(SET_LIB_PATH) \
88b5521b 3785 (cd m4 && $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6
ZW
3786
3787
3788
3789.PHONY: install-m4 maybe-install-m4
3790maybe-install-m4:
3791install-m4: installdirs
3792 @r=`${PWD}`; export r; \
3793 s=`cd $(srcdir); ${PWD}`; export s; \
3794 $(SET_LIB_PATH) \
88b5521b 3795 (cd m4 && $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6
ZW
3796
3797
3798.PHONY: configure-make maybe-configure-make
3799maybe-configure-make:
ade82b16
AO
3800configure-make:
3801 @test ! -f make/Makefile || exit 0; \
3802 [ -d make ] || mkdir make; \
4977bab6
ZW
3803 r=`${PWD}`; export r; \
3804 s=`cd $(srcdir); ${PWD}`; export s; \
3805 CC="$(CC)"; export CC; \
3806 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3807 CXX="$(CXX)"; export CXX; \
3808 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3809 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3810 AR="$(AR)"; export AR; \
3811 AS="$(AS)"; export AS; \
3812 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3813 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3814 LD="$(LD)"; export LD; \
3815 NM="$(NM)"; export NM; \
3816 RANLIB="$(RANLIB)"; export RANLIB; \
3817 WINDRES="$(WINDRES)"; export WINDRES; \
3818 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3819 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3820 fi; \
3821 echo Configuring in make; \
3822 cd make || exit 1; \
3823 case $(srcdir) in \
3824 \.) \
3825 srcdiroption="--srcdir=."; \
3826 libsrcdir=".";; \
3827 /* | [A-Za-z]:[\\/]*) \
3828 srcdiroption="--srcdir=$(srcdir)/make"; \
3829 libsrcdir="$$s/make";; \
3830 *) \
3831 srcdiroption="--srcdir=../$(srcdir)/make"; \
3832 libsrcdir="$$s/make";; \
3833 esac; \
3834 $(SHELL) $${libsrcdir}/configure \
3835 $(HOST_CONFIGARGS) $${srcdiroption} \
3836 || exit 1
3837
3838.PHONY: all-make maybe-all-make
3839maybe-all-make:
3840all-make: configure-make
3841 @r=`${PWD}`; export r; \
3842 s=`cd $(srcdir); ${PWD}`; export s; \
3843 $(SET_LIB_PATH) \
88b5521b 3844 (cd make && $(MAKE) $(FLAGS_TO_PASS) all)
4977bab6
ZW
3845
3846
3847.PHONY: check-make
3848check-make:
3849 @r=`${PWD}`; export r; \
3850 s=`cd $(srcdir); ${PWD}`; export s; \
3851 $(SET_LIB_PATH) \
88b5521b 3852 (cd make && $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6
ZW
3853
3854
3855
3856.PHONY: install-make maybe-install-make
3857maybe-install-make:
3858install-make: installdirs
3859 @r=`${PWD}`; export r; \
3860 s=`cd $(srcdir); ${PWD}`; export s; \
3861 $(SET_LIB_PATH) \
88b5521b 3862 (cd make && $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6
ZW
3863
3864
3865.PHONY: configure-mmalloc maybe-configure-mmalloc
3866maybe-configure-mmalloc:
ade82b16
AO
3867configure-mmalloc:
3868 @test ! -f mmalloc/Makefile || exit 0; \
3869 [ -d mmalloc ] || mkdir mmalloc; \
4977bab6
ZW
3870 r=`${PWD}`; export r; \
3871 s=`cd $(srcdir); ${PWD}`; export s; \
3872 CC="$(CC)"; export CC; \
3873 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3874 CXX="$(CXX)"; export CXX; \
3875 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3876 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3877 AR="$(AR)"; export AR; \
3878 AS="$(AS)"; export AS; \
3879 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3880 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3881 LD="$(LD)"; export LD; \
3882 NM="$(NM)"; export NM; \
3883 RANLIB="$(RANLIB)"; export RANLIB; \
3884 WINDRES="$(WINDRES)"; export WINDRES; \
3885 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3886 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3887 fi; \
3888 echo Configuring in mmalloc; \
3889 cd mmalloc || exit 1; \
3890 case $(srcdir) in \
3891 \.) \
3892 srcdiroption="--srcdir=."; \
3893 libsrcdir=".";; \
3894 /* | [A-Za-z]:[\\/]*) \
3895 srcdiroption="--srcdir=$(srcdir)/mmalloc"; \
3896 libsrcdir="$$s/mmalloc";; \
3897 *) \
3898 srcdiroption="--srcdir=../$(srcdir)/mmalloc"; \
3899 libsrcdir="$$s/mmalloc";; \
3900 esac; \
3901 $(SHELL) $${libsrcdir}/configure \
3902 $(HOST_CONFIGARGS) $${srcdiroption} \
3903 || exit 1
3904
3905.PHONY: all-mmalloc maybe-all-mmalloc
3906maybe-all-mmalloc:
3907all-mmalloc: configure-mmalloc
3908 @r=`${PWD}`; export r; \
3909 s=`cd $(srcdir); ${PWD}`; export s; \
3910 $(SET_LIB_PATH) \
88b5521b 3911 (cd mmalloc && $(MAKE) $(FLAGS_TO_PASS) all)
4977bab6
ZW
3912
3913
3914.PHONY: check-mmalloc
3915check-mmalloc:
3916
3917
3918
3919.PHONY: install-mmalloc maybe-install-mmalloc
3920maybe-install-mmalloc:
3921install-mmalloc: installdirs
3922 @r=`${PWD}`; export r; \
3923 s=`cd $(srcdir); ${PWD}`; export s; \
3924 $(SET_LIB_PATH) \
88b5521b 3925 (cd mmalloc && $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6
ZW
3926
3927
3928.PHONY: configure-patch maybe-configure-patch
3929maybe-configure-patch:
ade82b16
AO
3930configure-patch:
3931 @test ! -f patch/Makefile || exit 0; \
3932 [ -d patch ] || mkdir patch; \
4977bab6
ZW
3933 r=`${PWD}`; export r; \
3934 s=`cd $(srcdir); ${PWD}`; export s; \
3935 CC="$(CC)"; export CC; \
3936 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3937 CXX="$(CXX)"; export CXX; \
3938 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3939 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3940 AR="$(AR)"; export AR; \
3941 AS="$(AS)"; export AS; \
3942 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3943 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3944 LD="$(LD)"; export LD; \
3945 NM="$(NM)"; export NM; \
3946 RANLIB="$(RANLIB)"; export RANLIB; \
3947 WINDRES="$(WINDRES)"; export WINDRES; \
3948 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3949 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3950 fi; \
3951 echo Configuring in patch; \
3952 cd patch || exit 1; \
3953 case $(srcdir) in \
3954 \.) \
3955 srcdiroption="--srcdir=."; \
3956 libsrcdir=".";; \
3957 /* | [A-Za-z]:[\\/]*) \
3958 srcdiroption="--srcdir=$(srcdir)/patch"; \
3959 libsrcdir="$$s/patch";; \
3960 *) \
3961 srcdiroption="--srcdir=../$(srcdir)/patch"; \
3962 libsrcdir="$$s/patch";; \
3963 esac; \
3964 $(SHELL) $${libsrcdir}/configure \
3965 $(HOST_CONFIGARGS) $${srcdiroption} \
3966 || exit 1
3967
3968.PHONY: all-patch maybe-all-patch
3969maybe-all-patch:
3970all-patch: configure-patch
3971 @r=`${PWD}`; export r; \
3972 s=`cd $(srcdir); ${PWD}`; export s; \
3973 $(SET_LIB_PATH) \
88b5521b 3974 (cd patch && $(MAKE) $(FLAGS_TO_PASS) all)
4977bab6
ZW
3975
3976
3977.PHONY: check-patch
3978check-patch:
3979 @r=`${PWD}`; export r; \
3980 s=`cd $(srcdir); ${PWD}`; export s; \
3981 $(SET_LIB_PATH) \
88b5521b 3982 (cd patch && $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6
ZW
3983
3984
3985
3986.PHONY: install-patch maybe-install-patch
3987maybe-install-patch:
3988install-patch: installdirs
3989 @r=`${PWD}`; export r; \
3990 s=`cd $(srcdir); ${PWD}`; export s; \
3991 $(SET_LIB_PATH) \
88b5521b 3992 (cd patch && $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6
ZW
3993
3994
3995.PHONY: configure-perl maybe-configure-perl
3996maybe-configure-perl:
ade82b16
AO
3997configure-perl:
3998 @test ! -f perl/Makefile || exit 0; \
3999 [ -d perl ] || mkdir perl; \
4977bab6
ZW
4000 r=`${PWD}`; export r; \
4001 s=`cd $(srcdir); ${PWD}`; export s; \
4002 CC="$(CC)"; export CC; \
4003 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4004 CXX="$(CXX)"; export CXX; \
4005 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4006 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4007 AR="$(AR)"; export AR; \
4008 AS="$(AS)"; export AS; \
4009 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4010 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4011 LD="$(LD)"; export LD; \
4012 NM="$(NM)"; export NM; \
4013 RANLIB="$(RANLIB)"; export RANLIB; \
4014 WINDRES="$(WINDRES)"; export WINDRES; \
4015 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4016 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4017 fi; \
4018 echo Configuring in perl; \
4019 cd perl || exit 1; \
4020 case $(srcdir) in \
4021 \.) \
4022 srcdiroption="--srcdir=."; \
4023 libsrcdir=".";; \
4024 /* | [A-Za-z]:[\\/]*) \
4025 srcdiroption="--srcdir=$(srcdir)/perl"; \
4026 libsrcdir="$$s/perl";; \
4027 *) \
4028 srcdiroption="--srcdir=../$(srcdir)/perl"; \
4029 libsrcdir="$$s/perl";; \
4030 esac; \
4031 $(SHELL) $${libsrcdir}/configure \
4032 $(HOST_CONFIGARGS) $${srcdiroption} \
4033 || exit 1
4034
4035.PHONY: all-perl maybe-all-perl
4036maybe-all-perl:
4037all-perl: configure-perl
4038 @r=`${PWD}`; export r; \
4039 s=`cd $(srcdir); ${PWD}`; export s; \
4040 $(SET_LIB_PATH) \
88b5521b 4041 (cd perl && $(MAKE) $(FLAGS_TO_PASS) all)
4977bab6
ZW
4042
4043
4044.PHONY: check-perl
4045check-perl:
4046 @r=`${PWD}`; export r; \
4047 s=`cd $(srcdir); ${PWD}`; export s; \
4048 $(SET_LIB_PATH) \
88b5521b 4049 (cd perl && $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6
ZW
4050
4051
4052
4053.PHONY: install-perl maybe-install-perl
4054maybe-install-perl:
4055install-perl: installdirs
4056 @r=`${PWD}`; export r; \
4057 s=`cd $(srcdir); ${PWD}`; export s; \
4058 $(SET_LIB_PATH) \
88b5521b 4059 (cd perl && $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6
ZW
4060
4061
4062.PHONY: configure-prms maybe-configure-prms
4063maybe-configure-prms:
ade82b16
AO
4064configure-prms:
4065 @test ! -f prms/Makefile || exit 0; \
4066 [ -d prms ] || mkdir prms; \
4977bab6
ZW
4067 r=`${PWD}`; export r; \
4068 s=`cd $(srcdir); ${PWD}`; export s; \
4069 CC="$(CC)"; export CC; \
4070 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4071 CXX="$(CXX)"; export CXX; \
4072 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4073 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4074 AR="$(AR)"; export AR; \
4075 AS="$(AS)"; export AS; \
4076 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4077 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4078 LD="$(LD)"; export LD; \
4079 NM="$(NM)"; export NM; \
4080 RANLIB="$(RANLIB)"; export RANLIB; \
4081 WINDRES="$(WINDRES)"; export WINDRES; \
4082 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4083 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4084 fi; \
4085 echo Configuring in prms; \
4086 cd prms || exit 1; \
4087 case $(srcdir) in \
4088 \.) \
4089 srcdiroption="--srcdir=."; \
4090 libsrcdir=".";; \
4091 /* | [A-Za-z]:[\\/]*) \
4092 srcdiroption="--srcdir=$(srcdir)/prms"; \
4093 libsrcdir="$$s/prms";; \
4094 *) \
4095 srcdiroption="--srcdir=../$(srcdir)/prms"; \
4096 libsrcdir="$$s/prms";; \
4097 esac; \
4098 $(SHELL) $${libsrcdir}/configure \
4099 $(HOST_CONFIGARGS) $${srcdiroption} \
4100 || exit 1
4101
4102.PHONY: all-prms maybe-all-prms
4103maybe-all-prms:
4104all-prms: configure-prms
4105 @r=`${PWD}`; export r; \
4106 s=`cd $(srcdir); ${PWD}`; export s; \
4107 $(SET_LIB_PATH) \
88b5521b 4108 (cd prms && $(MAKE) $(FLAGS_TO_PASS) all)
4977bab6
ZW
4109
4110
4111.PHONY: check-prms
4112check-prms:
4113 @r=`${PWD}`; export r; \
4114 s=`cd $(srcdir); ${PWD}`; export s; \
4115 $(SET_LIB_PATH) \
88b5521b 4116 (cd prms && $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6
ZW
4117
4118
4119
4120.PHONY: install-prms maybe-install-prms
4121maybe-install-prms:
4122install-prms: installdirs
4123 @r=`${PWD}`; export r; \
4124 s=`cd $(srcdir); ${PWD}`; export s; \
4125 $(SET_LIB_PATH) \
88b5521b 4126 (cd prms && $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6
ZW
4127
4128
4129.PHONY: configure-rcs maybe-configure-rcs
4130maybe-configure-rcs:
ade82b16
AO
4131configure-rcs:
4132 @test ! -f rcs/Makefile || exit 0; \
4133 [ -d rcs ] || mkdir rcs; \
4977bab6
ZW
4134 r=`${PWD}`; export r; \
4135 s=`cd $(srcdir); ${PWD}`; export s; \
4136 CC="$(CC)"; export CC; \
4137 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4138 CXX="$(CXX)"; export CXX; \
4139 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4140 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4141 AR="$(AR)"; export AR; \
4142 AS="$(AS)"; export AS; \
4143 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4144 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4145 LD="$(LD)"; export LD; \
4146 NM="$(NM)"; export NM; \
4147 RANLIB="$(RANLIB)"; export RANLIB; \
4148 WINDRES="$(WINDRES)"; export WINDRES; \
4149 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4150 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4151 fi; \
4152 echo Configuring in rcs; \
4153 cd rcs || exit 1; \
4154 case $(srcdir) in \
4155 \.) \
4156 srcdiroption="--srcdir=."; \
4157 libsrcdir=".";; \
4158 /* | [A-Za-z]:[\\/]*) \
4159 srcdiroption="--srcdir=$(srcdir)/rcs"; \
4160 libsrcdir="$$s/rcs";; \
4161 *) \
4162 srcdiroption="--srcdir=../$(srcdir)/rcs"; \
4163 libsrcdir="$$s/rcs";; \
4164 esac; \
4165 $(SHELL) $${libsrcdir}/configure \
4166 $(HOST_CONFIGARGS) $${srcdiroption} \
4167 || exit 1
4168
4169.PHONY: all-rcs maybe-all-rcs
4170maybe-all-rcs:
4171all-rcs: configure-rcs
4172 @r=`${PWD}`; export r; \
4173 s=`cd $(srcdir); ${PWD}`; export s; \
4174 $(SET_LIB_PATH) \
88b5521b 4175 (cd rcs && $(MAKE) $(FLAGS_TO_PASS) all)
4977bab6
ZW
4176
4177
4178.PHONY: check-rcs
4179check-rcs:
4180 @r=`${PWD}`; export r; \
4181 s=`cd $(srcdir); ${PWD}`; export s; \
4182 $(SET_LIB_PATH) \
88b5521b 4183 (cd rcs && $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6
ZW
4184
4185
4186
4187.PHONY: install-rcs maybe-install-rcs
4188maybe-install-rcs:
4189install-rcs: installdirs
4190 @r=`${PWD}`; export r; \
4191 s=`cd $(srcdir); ${PWD}`; export s; \
4192 $(SET_LIB_PATH) \
88b5521b 4193 (cd rcs && $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6
ZW
4194
4195
4196.PHONY: configure-readline maybe-configure-readline
4197maybe-configure-readline:
ade82b16
AO
4198configure-readline:
4199 @test ! -f readline/Makefile || exit 0; \
4200 [ -d readline ] || mkdir readline; \
4977bab6
ZW
4201 r=`${PWD}`; export r; \
4202 s=`cd $(srcdir); ${PWD}`; export s; \
4203 CC="$(CC)"; export CC; \
4204 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4205 CXX="$(CXX)"; export CXX; \
4206 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4207 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4208 AR="$(AR)"; export AR; \
4209 AS="$(AS)"; export AS; \
4210 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4211 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4212 LD="$(LD)"; export LD; \
4213 NM="$(NM)"; export NM; \
4214 RANLIB="$(RANLIB)"; export RANLIB; \
4215 WINDRES="$(WINDRES)"; export WINDRES; \
4216 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4217 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4218 fi; \
4219 echo Configuring in readline; \
4220 cd readline || exit 1; \
4221 case $(srcdir) in \
4222 \.) \
4223 srcdiroption="--srcdir=."; \
4224 libsrcdir=".";; \
4225 /* | [A-Za-z]:[\\/]*) \
4226 srcdiroption="--srcdir=$(srcdir)/readline"; \
4227 libsrcdir="$$s/readline";; \
4228 *) \
4229 srcdiroption="--srcdir=../$(srcdir)/readline"; \
4230 libsrcdir="$$s/readline";; \
4231 esac; \
4232 $(SHELL) $${libsrcdir}/configure \
4233 $(HOST_CONFIGARGS) $${srcdiroption} \
4234 || exit 1
4235
4236.PHONY: all-readline maybe-all-readline
4237maybe-all-readline:
4238all-readline: configure-readline
4239 @r=`${PWD}`; export r; \
4240 s=`cd $(srcdir); ${PWD}`; export s; \
4241 $(SET_LIB_PATH) \
88b5521b 4242 (cd readline && $(MAKE) $(FLAGS_TO_PASS) all)
4977bab6
ZW
4243
4244
4245.PHONY: check-readline
4246check-readline:
4247 @r=`${PWD}`; export r; \
4248 s=`cd $(srcdir); ${PWD}`; export s; \
4249 $(SET_LIB_PATH) \
88b5521b 4250 (cd readline && $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6
ZW
4251
4252
4253
4254.PHONY: install-readline maybe-install-readline
4255maybe-install-readline:
4256install-readline: installdirs
4257 @r=`${PWD}`; export r; \
4258 s=`cd $(srcdir); ${PWD}`; export s; \
4259 $(SET_LIB_PATH) \
88b5521b 4260 (cd readline && $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6
ZW
4261
4262
4263.PHONY: configure-release maybe-configure-release
4264maybe-configure-release:
ade82b16
AO
4265configure-release:
4266 @test ! -f release/Makefile || exit 0; \
4267 [ -d release ] || mkdir release; \
4977bab6
ZW
4268 r=`${PWD}`; export r; \
4269 s=`cd $(srcdir); ${PWD}`; export s; \
4270 CC="$(CC)"; export CC; \
4271 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4272 CXX="$(CXX)"; export CXX; \
4273 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4274 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4275 AR="$(AR)"; export AR; \
4276 AS="$(AS)"; export AS; \
4277 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4278 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4279 LD="$(LD)"; export LD; \
4280 NM="$(NM)"; export NM; \
4281 RANLIB="$(RANLIB)"; export RANLIB; \
4282 WINDRES="$(WINDRES)"; export WINDRES; \
4283 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4284 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4285 fi; \
4286 echo Configuring in release; \
4287 cd release || exit 1; \
4288 case $(srcdir) in \
4289 \.) \
4290 srcdiroption="--srcdir=."; \
4291 libsrcdir=".";; \
4292 /* | [A-Za-z]:[\\/]*) \
4293 srcdiroption="--srcdir=$(srcdir)/release"; \
4294 libsrcdir="$$s/release";; \
4295 *) \
4296 srcdiroption="--srcdir=../$(srcdir)/release"; \
4297 libsrcdir="$$s/release";; \
4298 esac; \
4299 $(SHELL) $${libsrcdir}/configure \
4300 $(HOST_CONFIGARGS) $${srcdiroption} \
4301 || exit 1
4302
4303.PHONY: all-release maybe-all-release
4304maybe-all-release:
4305all-release: configure-release
4306 @r=`${PWD}`; export r; \
4307 s=`cd $(srcdir); ${PWD}`; export s; \
4308 $(SET_LIB_PATH) \
88b5521b 4309 (cd release && $(MAKE) $(FLAGS_TO_PASS) all)
4977bab6
ZW
4310
4311
4312.PHONY: check-release
4313check-release:
4314
4315
4316
4317.PHONY: install-release maybe-install-release
4318maybe-install-release:
4319install-release:
4320
4321
4322.PHONY: configure-recode maybe-configure-recode
4323maybe-configure-recode:
ade82b16
AO
4324configure-recode:
4325 @test ! -f recode/Makefile || exit 0; \
4326 [ -d recode ] || mkdir recode; \
4977bab6
ZW
4327 r=`${PWD}`; export r; \
4328 s=`cd $(srcdir); ${PWD}`; export s; \
4329 CC="$(CC)"; export CC; \
4330 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4331 CXX="$(CXX)"; export CXX; \
4332 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4333 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4334 AR="$(AR)"; export AR; \
4335 AS="$(AS)"; export AS; \
4336 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4337 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4338 LD="$(LD)"; export LD; \
4339 NM="$(NM)"; export NM; \
4340 RANLIB="$(RANLIB)"; export RANLIB; \
4341 WINDRES="$(WINDRES)"; export WINDRES; \
4342 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4343 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4344 fi; \
4345 echo Configuring in recode; \
4346 cd recode || exit 1; \
4347 case $(srcdir) in \
4348 \.) \
4349 srcdiroption="--srcdir=."; \
4350 libsrcdir=".";; \
4351 /* | [A-Za-z]:[\\/]*) \
4352 srcdiroption="--srcdir=$(srcdir)/recode"; \
4353 libsrcdir="$$s/recode";; \
4354 *) \
4355 srcdiroption="--srcdir=../$(srcdir)/recode"; \
4356 libsrcdir="$$s/recode";; \
4357 esac; \
4358 $(SHELL) $${libsrcdir}/configure \
4359 $(HOST_CONFIGARGS) $${srcdiroption} \
4360 || exit 1
4361
4362.PHONY: all-recode maybe-all-recode
4363maybe-all-recode:
4364all-recode: configure-recode
4365 @r=`${PWD}`; export r; \
4366 s=`cd $(srcdir); ${PWD}`; export s; \
4367 $(SET_LIB_PATH) \
88b5521b 4368 (cd recode && $(MAKE) $(FLAGS_TO_PASS) all)
4977bab6
ZW
4369
4370
4371.PHONY: check-recode
4372check-recode:
4373 @r=`${PWD}`; export r; \
4374 s=`cd $(srcdir); ${PWD}`; export s; \
4375 $(SET_LIB_PATH) \
88b5521b 4376 (cd recode && $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6
ZW
4377
4378
4379
4380.PHONY: install-recode maybe-install-recode
4381maybe-install-recode:
4382install-recode: installdirs
4383 @r=`${PWD}`; export r; \
4384 s=`cd $(srcdir); ${PWD}`; export s; \
4385 $(SET_LIB_PATH) \
88b5521b 4386 (cd recode && $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6
ZW
4387
4388
4389.PHONY: configure-sed maybe-configure-sed
4390maybe-configure-sed:
ade82b16
AO
4391configure-sed:
4392 @test ! -f sed/Makefile || exit 0; \
4393 [ -d sed ] || mkdir sed; \
4977bab6
ZW
4394 r=`${PWD}`; export r; \
4395 s=`cd $(srcdir); ${PWD}`; export s; \
4396 CC="$(CC)"; export CC; \
4397 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4398 CXX="$(CXX)"; export CXX; \
4399 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4400 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4401 AR="$(AR)"; export AR; \
4402 AS="$(AS)"; export AS; \
4403 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4404 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4405 LD="$(LD)"; export LD; \
4406 NM="$(NM)"; export NM; \
4407 RANLIB="$(RANLIB)"; export RANLIB; \
4408 WINDRES="$(WINDRES)"; export WINDRES; \
4409 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4410 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4411 fi; \
4412 echo Configuring in sed; \
4413 cd sed || exit 1; \
4414 case $(srcdir) in \
4415 \.) \
4416 srcdiroption="--srcdir=."; \
4417 libsrcdir=".";; \
4418 /* | [A-Za-z]:[\\/]*) \
4419 srcdiroption="--srcdir=$(srcdir)/sed"; \
4420 libsrcdir="$$s/sed";; \
4421 *) \
4422 srcdiroption="--srcdir=../$(srcdir)/sed"; \
4423 libsrcdir="$$s/sed";; \
4424 esac; \
4425 $(SHELL) $${libsrcdir}/configure \
4426 $(HOST_CONFIGARGS) $${srcdiroption} \
4427 || exit 1
4428
4429.PHONY: all-sed maybe-all-sed
4430maybe-all-sed:
4431all-sed: configure-sed
4432 @r=`${PWD}`; export r; \
4433 s=`cd $(srcdir); ${PWD}`; export s; \
4434 $(SET_LIB_PATH) \
88b5521b 4435 (cd sed && $(MAKE) $(FLAGS_TO_PASS) all)
4977bab6
ZW
4436
4437
4438.PHONY: check-sed
4439check-sed:
4440 @r=`${PWD}`; export r; \
4441 s=`cd $(srcdir); ${PWD}`; export s; \
4442 $(SET_LIB_PATH) \
88b5521b 4443 (cd sed && $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6
ZW
4444
4445
4446
4447.PHONY: install-sed maybe-install-sed
4448maybe-install-sed:
4449install-sed: installdirs
4450 @r=`${PWD}`; export r; \
4451 s=`cd $(srcdir); ${PWD}`; export s; \
4452 $(SET_LIB_PATH) \
88b5521b 4453 (cd sed && $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6
ZW
4454
4455
4456.PHONY: configure-send-pr maybe-configure-send-pr
4457maybe-configure-send-pr:
ade82b16
AO
4458configure-send-pr:
4459 @test ! -f send-pr/Makefile || exit 0; \
4460 [ -d send-pr ] || mkdir send-pr; \
4977bab6
ZW
4461 r=`${PWD}`; export r; \
4462 s=`cd $(srcdir); ${PWD}`; export s; \
4463 CC="$(CC)"; export CC; \
4464 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4465 CXX="$(CXX)"; export CXX; \
4466 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4467 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4468 AR="$(AR)"; export AR; \
4469 AS="$(AS)"; export AS; \
4470 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4471 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4472 LD="$(LD)"; export LD; \
4473 NM="$(NM)"; export NM; \
4474 RANLIB="$(RANLIB)"; export RANLIB; \
4475 WINDRES="$(WINDRES)"; export WINDRES; \
4476 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4477 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4478 fi; \
4479 echo Configuring in send-pr; \
4480 cd send-pr || exit 1; \
4481 case $(srcdir) in \
4482 \.) \
4483 srcdiroption="--srcdir=."; \
4484 libsrcdir=".";; \
4485 /* | [A-Za-z]:[\\/]*) \
4486 srcdiroption="--srcdir=$(srcdir)/send-pr"; \
4487 libsrcdir="$$s/send-pr";; \
4488 *) \
4489 srcdiroption="--srcdir=../$(srcdir)/send-pr"; \
4490 libsrcdir="$$s/send-pr";; \
4491 esac; \
4492 $(SHELL) $${libsrcdir}/configure \
4493 $(HOST_CONFIGARGS) $${srcdiroption} \
4494 || exit 1
4495
4496.PHONY: all-send-pr maybe-all-send-pr
4497maybe-all-send-pr:
4498all-send-pr: configure-send-pr
4499 @r=`${PWD}`; export r; \
4500 s=`cd $(srcdir); ${PWD}`; export s; \
4501 $(SET_LIB_PATH) \
88b5521b 4502 (cd send-pr && $(MAKE) $(FLAGS_TO_PASS) all)
4977bab6
ZW
4503
4504
4505.PHONY: check-send-pr
4506check-send-pr:
4507 @r=`${PWD}`; export r; \
4508 s=`cd $(srcdir); ${PWD}`; export s; \
4509 $(SET_LIB_PATH) \
88b5521b 4510 (cd send-pr && $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6
ZW
4511
4512
4513
4514.PHONY: install-send-pr maybe-install-send-pr
4515maybe-install-send-pr:
4516install-send-pr: installdirs
4517 @r=`${PWD}`; export r; \
4518 s=`cd $(srcdir); ${PWD}`; export s; \
4519 $(SET_LIB_PATH) \
88b5521b 4520 (cd send-pr && $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6
ZW
4521
4522
4523.PHONY: configure-shellutils maybe-configure-shellutils
4524maybe-configure-shellutils:
ade82b16
AO
4525configure-shellutils:
4526 @test ! -f shellutils/Makefile || exit 0; \
4527 [ -d shellutils ] || mkdir shellutils; \
4977bab6
ZW
4528 r=`${PWD}`; export r; \
4529 s=`cd $(srcdir); ${PWD}`; export s; \
4530 CC="$(CC)"; export CC; \
4531 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4532 CXX="$(CXX)"; export CXX; \
4533 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4534 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4535 AR="$(AR)"; export AR; \
4536 AS="$(AS)"; export AS; \
4537 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4538 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4539 LD="$(LD)"; export LD; \
4540 NM="$(NM)"; export NM; \
4541 RANLIB="$(RANLIB)"; export RANLIB; \
4542 WINDRES="$(WINDRES)"; export WINDRES; \
4543 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4544 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4545 fi; \
4546 echo Configuring in shellutils; \
4547 cd shellutils || exit 1; \
4548 case $(srcdir) in \
4549 \.) \
4550 srcdiroption="--srcdir=."; \
4551 libsrcdir=".";; \
4552 /* | [A-Za-z]:[\\/]*) \
4553 srcdiroption="--srcdir=$(srcdir)/shellutils"; \
4554 libsrcdir="$$s/shellutils";; \
4555 *) \
4556 srcdiroption="--srcdir=../$(srcdir)/shellutils"; \
4557 libsrcdir="$$s/shellutils";; \
4558 esac; \
4559 $(SHELL) $${libsrcdir}/configure \
4560 $(HOST_CONFIGARGS) $${srcdiroption} \
4561 || exit 1
4562
4563.PHONY: all-shellutils maybe-all-shellutils
4564maybe-all-shellutils:
4565all-shellutils: configure-shellutils
4566 @r=`${PWD}`; export r; \
4567 s=`cd $(srcdir); ${PWD}`; export s; \
4568 $(SET_LIB_PATH) \
88b5521b 4569 (cd shellutils && $(MAKE) $(FLAGS_TO_PASS) all)
4977bab6
ZW
4570
4571
4572.PHONY: check-shellutils
4573check-shellutils:
4574 @r=`${PWD}`; export r; \
4575 s=`cd $(srcdir); ${PWD}`; export s; \
4576 $(SET_LIB_PATH) \
88b5521b 4577 (cd shellutils && $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6
ZW
4578
4579
4580
4581.PHONY: install-shellutils maybe-install-shellutils
4582maybe-install-shellutils:
4583install-shellutils: installdirs
4584 @r=`${PWD}`; export r; \
4585 s=`cd $(srcdir); ${PWD}`; export s; \
4586 $(SET_LIB_PATH) \
88b5521b 4587 (cd shellutils && $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6
ZW
4588
4589
4590.PHONY: configure-sid maybe-configure-sid
4591maybe-configure-sid:
ade82b16
AO
4592configure-sid:
4593 @test ! -f sid/Makefile || exit 0; \
4594 [ -d sid ] || mkdir sid; \
4977bab6
ZW
4595 r=`${PWD}`; export r; \
4596 s=`cd $(srcdir); ${PWD}`; export s; \
4597 CC="$(CC)"; export CC; \
4598 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4599 CXX="$(CXX)"; export CXX; \
4600 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4601 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4602 AR="$(AR)"; export AR; \
4603 AS="$(AS)"; export AS; \
4604 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4605 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4606 LD="$(LD)"; export LD; \
4607 NM="$(NM)"; export NM; \
4608 RANLIB="$(RANLIB)"; export RANLIB; \
4609 WINDRES="$(WINDRES)"; export WINDRES; \
4610 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4611 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4612 fi; \
4613 echo Configuring in sid; \
4614 cd sid || exit 1; \
4615 case $(srcdir) in \
4616 \.) \
4617 srcdiroption="--srcdir=."; \
4618 libsrcdir=".";; \
4619 /* | [A-Za-z]:[\\/]*) \
4620 srcdiroption="--srcdir=$(srcdir)/sid"; \
4621 libsrcdir="$$s/sid";; \
4622 *) \
4623 srcdiroption="--srcdir=../$(srcdir)/sid"; \
4624 libsrcdir="$$s/sid";; \
4625 esac; \
4626 $(SHELL) $${libsrcdir}/configure \
4627 $(HOST_CONFIGARGS) $${srcdiroption} \
4628 || exit 1
4629
4630.PHONY: all-sid maybe-all-sid
4631maybe-all-sid:
4632all-sid: configure-sid
4633 @r=`${PWD}`; export r; \
4634 s=`cd $(srcdir); ${PWD}`; export s; \
4635 $(SET_LIB_PATH) \
88b5521b 4636 (cd sid && $(MAKE) $(FLAGS_TO_PASS) all)
4977bab6
ZW
4637
4638
4639.PHONY: check-sid
4640check-sid:
4641 @r=`${PWD}`; export r; \
4642 s=`cd $(srcdir); ${PWD}`; export s; \
4643 $(SET_LIB_PATH) \
88b5521b 4644 (cd sid && $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6
ZW
4645
4646
4647
4648.PHONY: install-sid maybe-install-sid
4649maybe-install-sid:
4650install-sid: installdirs
4651 @r=`${PWD}`; export r; \
4652 s=`cd $(srcdir); ${PWD}`; export s; \
4653 $(SET_LIB_PATH) \
88b5521b 4654 (cd sid && $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6
ZW
4655
4656
4657.PHONY: configure-sim maybe-configure-sim
4658maybe-configure-sim:
ade82b16
AO
4659configure-sim:
4660 @test ! -f sim/Makefile || exit 0; \
4661 [ -d sim ] || mkdir sim; \
4977bab6
ZW
4662 r=`${PWD}`; export r; \
4663 s=`cd $(srcdir); ${PWD}`; export s; \
4664 CC="$(CC)"; export CC; \
4665 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4666 CXX="$(CXX)"; export CXX; \
4667 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4668 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4669 AR="$(AR)"; export AR; \
4670 AS="$(AS)"; export AS; \
4671 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4672 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4673 LD="$(LD)"; export LD; \
4674 NM="$(NM)"; export NM; \
4675 RANLIB="$(RANLIB)"; export RANLIB; \
4676 WINDRES="$(WINDRES)"; export WINDRES; \
4677 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4678 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4679 fi; \
4680 echo Configuring in sim; \
4681 cd sim || exit 1; \
4682 case $(srcdir) in \
4683 \.) \
4684 srcdiroption="--srcdir=."; \
4685 libsrcdir=".";; \
4686 /* | [A-Za-z]:[\\/]*) \
4687 srcdiroption="--srcdir=$(srcdir)/sim"; \
4688 libsrcdir="$$s/sim";; \
4689 *) \
4690 srcdiroption="--srcdir=../$(srcdir)/sim"; \
4691 libsrcdir="$$s/sim";; \
4692 esac; \
4693 $(SHELL) $${libsrcdir}/configure \
4694 $(HOST_CONFIGARGS) $${srcdiroption} \
4695 || exit 1
4696
4697.PHONY: all-sim maybe-all-sim
4698maybe-all-sim:
4699all-sim: configure-sim
4700 @r=`${PWD}`; export r; \
4701 s=`cd $(srcdir); ${PWD}`; export s; \
4702 $(SET_LIB_PATH) \
88b5521b 4703 (cd sim && $(MAKE) $(FLAGS_TO_PASS) all)
4977bab6
ZW
4704
4705
4706.PHONY: check-sim
4707check-sim:
4708 @r=`${PWD}`; export r; \
4709 s=`cd $(srcdir); ${PWD}`; export s; \
4710 $(SET_LIB_PATH) \
88b5521b 4711 (cd sim && $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6
ZW
4712
4713
4714
4715.PHONY: install-sim maybe-install-sim
4716maybe-install-sim:
4717install-sim: installdirs
4718 @r=`${PWD}`; export r; \
4719 s=`cd $(srcdir); ${PWD}`; export s; \
4720 $(SET_LIB_PATH) \
88b5521b 4721 (cd sim && $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6
ZW
4722
4723
4724.PHONY: configure-snavigator maybe-configure-snavigator
4725maybe-configure-snavigator:
ade82b16
AO
4726configure-snavigator:
4727 @test ! -f snavigator/Makefile || exit 0; \
4728 [ -d snavigator ] || mkdir snavigator; \
4977bab6
ZW
4729 r=`${PWD}`; export r; \
4730 s=`cd $(srcdir); ${PWD}`; export s; \
4731 CC="$(CC)"; export CC; \
4732 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4733 CXX="$(CXX)"; export CXX; \
4734 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4735 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4736 AR="$(AR)"; export AR; \
4737 AS="$(AS)"; export AS; \
4738 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4739 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4740 LD="$(LD)"; export LD; \
4741 NM="$(NM)"; export NM; \
4742 RANLIB="$(RANLIB)"; export RANLIB; \
4743 WINDRES="$(WINDRES)"; export WINDRES; \
4744 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4745 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4746 fi; \
4747 echo Configuring in snavigator; \
4748 cd snavigator || exit 1; \
4749 case $(srcdir) in \
4750 \.) \
4751 srcdiroption="--srcdir=."; \
4752 libsrcdir=".";; \
4753 /* | [A-Za-z]:[\\/]*) \
4754 srcdiroption="--srcdir=$(srcdir)/snavigator"; \
4755 libsrcdir="$$s/snavigator";; \
4756 *) \
4757 srcdiroption="--srcdir=../$(srcdir)/snavigator"; \
4758 libsrcdir="$$s/snavigator";; \
4759 esac; \
4760 $(SHELL) $${libsrcdir}/configure \
4761 $(HOST_CONFIGARGS) $${srcdiroption} \
4762 || exit 1
4763
4764.PHONY: all-snavigator maybe-all-snavigator
4765maybe-all-snavigator:
4766all-snavigator: configure-snavigator
4767 @r=`${PWD}`; export r; \
4768 s=`cd $(srcdir); ${PWD}`; export s; \
4769 $(SET_LIB_PATH) \
88b5521b 4770 (cd snavigator && $(MAKE) $(FLAGS_TO_PASS) all)
4977bab6
ZW
4771
4772
4773.PHONY: check-snavigator
4774check-snavigator:
4775 @r=`${PWD}`; export r; \
4776 s=`cd $(srcdir); ${PWD}`; export s; \
4777 $(SET_LIB_PATH) \
88b5521b 4778 (cd snavigator && $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6
ZW
4779
4780
4781
4782.PHONY: install-snavigator maybe-install-snavigator
4783maybe-install-snavigator:
4784install-snavigator: installdirs
4785 @r=`${PWD}`; export r; \
4786 s=`cd $(srcdir); ${PWD}`; export s; \
4787 $(SET_LIB_PATH) \
88b5521b 4788 (cd snavigator && $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6
ZW
4789
4790
4791.PHONY: configure-tar maybe-configure-tar
4792maybe-configure-tar:
ade82b16
AO
4793configure-tar:
4794 @test ! -f tar/Makefile || exit 0; \
4795 [ -d tar ] || mkdir tar; \
4977bab6
ZW
4796 r=`${PWD}`; export r; \
4797 s=`cd $(srcdir); ${PWD}`; export s; \
4798 CC="$(CC)"; export CC; \
4799 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4800 CXX="$(CXX)"; export CXX; \
4801 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4802 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4803 AR="$(AR)"; export AR; \
4804 AS="$(AS)"; export AS; \
4805 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4806 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4807 LD="$(LD)"; export LD; \
4808 NM="$(NM)"; export NM; \
4809 RANLIB="$(RANLIB)"; export RANLIB; \
4810 WINDRES="$(WINDRES)"; export WINDRES; \
4811 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4812 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4813 fi; \
4814 echo Configuring in tar; \
4815 cd tar || exit 1; \
4816 case $(srcdir) in \
4817 \.) \
4818 srcdiroption="--srcdir=."; \
4819 libsrcdir=".";; \
4820 /* | [A-Za-z]:[\\/]*) \
4821 srcdiroption="--srcdir=$(srcdir)/tar"; \
4822 libsrcdir="$$s/tar";; \
4823 *) \
4824 srcdiroption="--srcdir=../$(srcdir)/tar"; \
4825 libsrcdir="$$s/tar";; \
4826 esac; \
4827 $(SHELL) $${libsrcdir}/configure \
4828 $(HOST_CONFIGARGS) $${srcdiroption} \
4829 || exit 1
4830
4831.PHONY: all-tar maybe-all-tar
4832maybe-all-tar:
4833all-tar: configure-tar
4834 @r=`${PWD}`; export r; \
4835 s=`cd $(srcdir); ${PWD}`; export s; \
4836 $(SET_LIB_PATH) \
88b5521b 4837 (cd tar && $(MAKE) $(FLAGS_TO_PASS) all)
4977bab6
ZW
4838
4839
4840.PHONY: check-tar
4841check-tar:
4842 @r=`${PWD}`; export r; \
4843 s=`cd $(srcdir); ${PWD}`; export s; \
4844 $(SET_LIB_PATH) \
88b5521b 4845 (cd tar && $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6
ZW
4846
4847
4848
4849.PHONY: install-tar maybe-install-tar
4850maybe-install-tar:
4851install-tar: installdirs
4852 @r=`${PWD}`; export r; \
4853 s=`cd $(srcdir); ${PWD}`; export s; \
4854 $(SET_LIB_PATH) \
88b5521b 4855 (cd tar && $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6
ZW
4856
4857
4858.PHONY: configure-texinfo maybe-configure-texinfo
4859maybe-configure-texinfo:
ade82b16
AO
4860configure-texinfo:
4861 @test ! -f texinfo/Makefile || exit 0; \
4862 [ -d texinfo ] || mkdir texinfo; \
4977bab6
ZW
4863 r=`${PWD}`; export r; \
4864 s=`cd $(srcdir); ${PWD}`; export s; \
4865 CC="$(CC)"; export CC; \
4866 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4867 CXX="$(CXX)"; export CXX; \
4868 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4869 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4870 AR="$(AR)"; export AR; \
4871 AS="$(AS)"; export AS; \
4872 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4873 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4874 LD="$(LD)"; export LD; \
4875 NM="$(NM)"; export NM; \
4876 RANLIB="$(RANLIB)"; export RANLIB; \
4877 WINDRES="$(WINDRES)"; export WINDRES; \
4878 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4879 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4880 fi; \
4881 echo Configuring in texinfo; \
4882 cd texinfo || exit 1; \
4883 case $(srcdir) in \
4884 \.) \
4885 srcdiroption="--srcdir=."; \
4886 libsrcdir=".";; \
4887 /* | [A-Za-z]:[\\/]*) \
4888 srcdiroption="--srcdir=$(srcdir)/texinfo"; \
4889 libsrcdir="$$s/texinfo";; \
4890 *) \
4891 srcdiroption="--srcdir=../$(srcdir)/texinfo"; \
4892 libsrcdir="$$s/texinfo";; \
4893 esac; \
4894 $(SHELL) $${libsrcdir}/configure \
4895 $(HOST_CONFIGARGS) $${srcdiroption} \
4896 || exit 1
4897
4898.PHONY: all-texinfo maybe-all-texinfo
4899maybe-all-texinfo:
4900all-texinfo: configure-texinfo
4901 @r=`${PWD}`; export r; \
4902 s=`cd $(srcdir); ${PWD}`; export s; \
4903 $(SET_LIB_PATH) \
88b5521b 4904 (cd texinfo && $(MAKE) $(FLAGS_TO_PASS) all)
4977bab6
ZW
4905
4906
4907.PHONY: check-texinfo
4908check-texinfo:
4909 @r=`${PWD}`; export r; \
4910 s=`cd $(srcdir); ${PWD}`; export s; \
4911 $(SET_LIB_PATH) \
88b5521b 4912 (cd texinfo && $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6
ZW
4913
4914
4915
4916.PHONY: install-texinfo maybe-install-texinfo
4917maybe-install-texinfo:
4918install-texinfo:
4919
4920
4921.PHONY: configure-textutils maybe-configure-textutils
4922maybe-configure-textutils:
ade82b16
AO
4923configure-textutils:
4924 @test ! -f textutils/Makefile || exit 0; \
4925 [ -d textutils ] || mkdir textutils; \
4977bab6
ZW
4926 r=`${PWD}`; export r; \
4927 s=`cd $(srcdir); ${PWD}`; export s; \
4928 CC="$(CC)"; export CC; \
4929 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4930 CXX="$(CXX)"; export CXX; \
4931 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4932 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4933 AR="$(AR)"; export AR; \
4934 AS="$(AS)"; export AS; \
4935 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4936 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4937 LD="$(LD)"; export LD; \
4938 NM="$(NM)"; export NM; \
4939 RANLIB="$(RANLIB)"; export RANLIB; \
4940 WINDRES="$(WINDRES)"; export WINDRES; \
4941 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4942 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4943 fi; \
4944 echo Configuring in textutils; \
4945 cd textutils || exit 1; \
4946 case $(srcdir) in \
4947 \.) \
4948 srcdiroption="--srcdir=."; \
4949 libsrcdir=".";; \
4950 /* | [A-Za-z]:[\\/]*) \
4951 srcdiroption="--srcdir=$(srcdir)/textutils"; \
4952 libsrcdir="$$s/textutils";; \
4953 *) \
4954 srcdiroption="--srcdir=../$(srcdir)/textutils"; \
4955 libsrcdir="$$s/textutils";; \
4956 esac; \
4957 $(SHELL) $${libsrcdir}/configure \
4958 $(HOST_CONFIGARGS) $${srcdiroption} \
4959 || exit 1
4960
4961.PHONY: all-textutils maybe-all-textutils
4962maybe-all-textutils:
4963all-textutils: configure-textutils
4964 @r=`${PWD}`; export r; \
4965 s=`cd $(srcdir); ${PWD}`; export s; \
4966 $(SET_LIB_PATH) \
88b5521b 4967 (cd textutils && $(MAKE) $(FLAGS_TO_PASS) all)
4977bab6
ZW
4968
4969
4970.PHONY: check-textutils
4971check-textutils:
4972 @r=`${PWD}`; export r; \
4973 s=`cd $(srcdir); ${PWD}`; export s; \
4974 $(SET_LIB_PATH) \
88b5521b 4975 (cd textutils && $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6
ZW
4976
4977
4978
4979.PHONY: install-textutils maybe-install-textutils
4980maybe-install-textutils:
4981install-textutils: installdirs
4982 @r=`${PWD}`; export r; \
4983 s=`cd $(srcdir); ${PWD}`; export s; \
4984 $(SET_LIB_PATH) \
88b5521b 4985 (cd textutils && $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6
ZW
4986
4987
4988.PHONY: configure-time maybe-configure-time
4989maybe-configure-time:
ade82b16
AO
4990configure-time:
4991 @test ! -f time/Makefile || exit 0; \
4992 [ -d time ] || mkdir time; \
4977bab6
ZW
4993 r=`${PWD}`; export r; \
4994 s=`cd $(srcdir); ${PWD}`; export s; \
4995 CC="$(CC)"; export CC; \
4996 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4997 CXX="$(CXX)"; export CXX; \
4998 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4999 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
5000 AR="$(AR)"; export AR; \
5001 AS="$(AS)"; export AS; \
5002 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5003 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5004 LD="$(LD)"; export LD; \
5005 NM="$(NM)"; export NM; \
5006 RANLIB="$(RANLIB)"; export RANLIB; \
5007 WINDRES="$(WINDRES)"; export WINDRES; \
5008 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5009 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5010 fi; \
5011 echo Configuring in time; \
5012 cd time || exit 1; \
5013 case $(srcdir) in \
5014 \.) \
5015 srcdiroption="--srcdir=."; \
5016 libsrcdir=".";; \
5017 /* | [A-Za-z]:[\\/]*) \
5018 srcdiroption="--srcdir=$(srcdir)/time"; \
5019 libsrcdir="$$s/time";; \
5020 *) \
5021 srcdiroption="--srcdir=../$(srcdir)/time"; \
5022 libsrcdir="$$s/time";; \
5023 esac; \
5024 $(SHELL) $${libsrcdir}/configure \
5025 $(HOST_CONFIGARGS) $${srcdiroption} \
5026 || exit 1
5027
5028.PHONY: all-time maybe-all-time
5029maybe-all-time:
5030all-time: configure-time
5031 @r=`${PWD}`; export r; \
5032 s=`cd $(srcdir); ${PWD}`; export s; \
5033 $(SET_LIB_PATH) \
88b5521b 5034 (cd time && $(MAKE) $(FLAGS_TO_PASS) all)
4977bab6
ZW
5035
5036
5037.PHONY: check-time
5038check-time:
5039 @r=`${PWD}`; export r; \
5040 s=`cd $(srcdir); ${PWD}`; export s; \
5041 $(SET_LIB_PATH) \
88b5521b 5042 (cd time && $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6
ZW
5043
5044
5045
5046.PHONY: install-time maybe-install-time
5047maybe-install-time:
5048install-time: installdirs
5049 @r=`${PWD}`; export r; \
5050 s=`cd $(srcdir); ${PWD}`; export s; \
5051 $(SET_LIB_PATH) \
88b5521b 5052 (cd time && $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6
ZW
5053
5054
5055.PHONY: configure-uudecode maybe-configure-uudecode
5056maybe-configure-uudecode:
ade82b16
AO
5057configure-uudecode:
5058 @test ! -f uudecode/Makefile || exit 0; \
5059 [ -d uudecode ] || mkdir uudecode; \
4977bab6
ZW
5060 r=`${PWD}`; export r; \
5061 s=`cd $(srcdir); ${PWD}`; export s; \
5062 CC="$(CC)"; export CC; \
5063 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5064 CXX="$(CXX)"; export CXX; \
5065 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5066 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
5067 AR="$(AR)"; export AR; \
5068 AS="$(AS)"; export AS; \
5069 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5070 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5071 LD="$(LD)"; export LD; \
5072 NM="$(NM)"; export NM; \
5073 RANLIB="$(RANLIB)"; export RANLIB; \
5074 WINDRES="$(WINDRES)"; export WINDRES; \
5075 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5076 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5077 fi; \
5078 echo Configuring in uudecode; \
5079 cd uudecode || exit 1; \
5080 case $(srcdir) in \
5081 \.) \
5082 srcdiroption="--srcdir=."; \
5083 libsrcdir=".";; \
5084 /* | [A-Za-z]:[\\/]*) \
5085 srcdiroption="--srcdir=$(srcdir)/uudecode"; \
5086 libsrcdir="$$s/uudecode";; \
5087 *) \
5088 srcdiroption="--srcdir=../$(srcdir)/uudecode"; \
5089 libsrcdir="$$s/uudecode";; \
5090 esac; \
5091 $(SHELL) $${libsrcdir}/configure \
5092 $(HOST_CONFIGARGS) $${srcdiroption} \
5093 || exit 1
5094
5095.PHONY: all-uudecode maybe-all-uudecode
5096maybe-all-uudecode:
5097all-uudecode: configure-uudecode
5098 @r=`${PWD}`; export r; \
5099 s=`cd $(srcdir); ${PWD}`; export s; \
5100 $(SET_LIB_PATH) \
88b5521b 5101 (cd uudecode && $(MAKE) $(FLAGS_TO_PASS) all)
4977bab6
ZW
5102
5103
5104.PHONY: check-uudecode
5105check-uudecode:
5106 @r=`${PWD}`; export r; \
5107 s=`cd $(srcdir); ${PWD}`; export s; \
5108 $(SET_LIB_PATH) \
88b5521b 5109 (cd uudecode && $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6
ZW
5110
5111
5112
5113.PHONY: install-uudecode maybe-install-uudecode
5114maybe-install-uudecode:
5115install-uudecode: installdirs
5116 @r=`${PWD}`; export r; \
5117 s=`cd $(srcdir); ${PWD}`; export s; \
5118 $(SET_LIB_PATH) \
88b5521b 5119 (cd uudecode && $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6
ZW
5120
5121
5122.PHONY: configure-wdiff maybe-configure-wdiff
5123maybe-configure-wdiff:
ade82b16
AO
5124configure-wdiff:
5125 @test ! -f wdiff/Makefile || exit 0; \
5126 [ -d wdiff ] || mkdir wdiff; \
4977bab6
ZW
5127 r=`${PWD}`; export r; \
5128 s=`cd $(srcdir); ${PWD}`; export s; \
5129 CC="$(CC)"; export CC; \
5130 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5131 CXX="$(CXX)"; export CXX; \
5132 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5133 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
5134 AR="$(AR)"; export AR; \
5135 AS="$(AS)"; export AS; \
5136 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5137 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5138 LD="$(LD)"; export LD; \
5139 NM="$(NM)"; export NM; \
5140 RANLIB="$(RANLIB)"; export RANLIB; \
5141 WINDRES="$(WINDRES)"; export WINDRES; \
5142 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5143 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5144 fi; \
5145 echo Configuring in wdiff; \
5146 cd wdiff || exit 1; \
5147 case $(srcdir) in \
5148 \.) \
5149 srcdiroption="--srcdir=."; \
5150 libsrcdir=".";; \
5151 /* | [A-Za-z]:[\\/]*) \
5152 srcdiroption="--srcdir=$(srcdir)/wdiff"; \
5153 libsrcdir="$$s/wdiff";; \
5154 *) \
5155 srcdiroption="--srcdir=../$(srcdir)/wdiff"; \
5156 libsrcdir="$$s/wdiff";; \
5157 esac; \
5158 $(SHELL) $${libsrcdir}/configure \
5159 $(HOST_CONFIGARGS) $${srcdiroption} \
5160 || exit 1
5161
5162.PHONY: all-wdiff maybe-all-wdiff
5163maybe-all-wdiff:
5164all-wdiff: configure-wdiff
5165 @r=`${PWD}`; export r; \
5166 s=`cd $(srcdir); ${PWD}`; export s; \
5167 $(SET_LIB_PATH) \
88b5521b 5168 (cd wdiff && $(MAKE) $(FLAGS_TO_PASS) all)
4977bab6
ZW
5169
5170
5171.PHONY: check-wdiff
5172check-wdiff:
5173 @r=`${PWD}`; export r; \
5174 s=`cd $(srcdir); ${PWD}`; export s; \
5175 $(SET_LIB_PATH) \
88b5521b 5176 (cd wdiff && $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6
ZW
5177
5178
5179
5180.PHONY: install-wdiff maybe-install-wdiff
5181maybe-install-wdiff:
5182install-wdiff: installdirs
5183 @r=`${PWD}`; export r; \
5184 s=`cd $(srcdir); ${PWD}`; export s; \
5185 $(SET_LIB_PATH) \
88b5521b 5186 (cd wdiff && $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6
ZW
5187
5188
5189.PHONY: configure-zip maybe-configure-zip
5190maybe-configure-zip:
ade82b16
AO
5191configure-zip:
5192 @test ! -f zip/Makefile || exit 0; \
5193 [ -d zip ] || mkdir zip; \
4977bab6
ZW
5194 r=`${PWD}`; export r; \
5195 s=`cd $(srcdir); ${PWD}`; export s; \
5196 CC="$(CC)"; export CC; \
5197 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5198 CXX="$(CXX)"; export CXX; \
5199 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5200 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
5201 AR="$(AR)"; export AR; \
5202 AS="$(AS)"; export AS; \
5203 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5204 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5205 LD="$(LD)"; export LD; \
5206 NM="$(NM)"; export NM; \
5207 RANLIB="$(RANLIB)"; export RANLIB; \
5208 WINDRES="$(WINDRES)"; export WINDRES; \
5209 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5210 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5211 fi; \
5212 echo Configuring in zip; \
5213 cd zip || exit 1; \
5214 case $(srcdir) in \
5215 \.) \
5216 srcdiroption="--srcdir=."; \
5217 libsrcdir=".";; \
5218 /* | [A-Za-z]:[\\/]*) \
5219 srcdiroption="--srcdir=$(srcdir)/zip"; \
5220 libsrcdir="$$s/zip";; \
5221 *) \
5222 srcdiroption="--srcdir=../$(srcdir)/zip"; \
5223 libsrcdir="$$s/zip";; \
5224 esac; \
5225 $(SHELL) $${libsrcdir}/configure \
5226 $(HOST_CONFIGARGS) $${srcdiroption} \
5227 || exit 1
5228
5229.PHONY: all-zip maybe-all-zip
5230maybe-all-zip:
5231all-zip: configure-zip
5232 @r=`${PWD}`; export r; \
5233 s=`cd $(srcdir); ${PWD}`; export s; \
5234 $(SET_LIB_PATH) \
88b5521b 5235 (cd zip && $(MAKE) $(FLAGS_TO_PASS) all)
4977bab6
ZW
5236
5237
5238.PHONY: check-zip
5239# This module is only tested in a native toolchain.
5240check-zip:
5241 @if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
5242 r=`${PWD}`; export r; \
5243 s=`cd $(srcdir); ${PWD}`; export s; \
5244 $(SET_LIB_PATH) \
88b5521b 5245 (cd zip && $(MAKE) $(FLAGS_TO_PASS) check); \
4977bab6
ZW
5246 fi
5247
5248
5249
5250.PHONY: install-zip maybe-install-zip
5251maybe-install-zip:
5252install-zip: installdirs
5253 @r=`${PWD}`; export r; \
5254 s=`cd $(srcdir); ${PWD}`; export s; \
5255 $(SET_LIB_PATH) \
88b5521b 5256 (cd zip && $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6
ZW
5257
5258
5259.PHONY: configure-zlib maybe-configure-zlib
5260maybe-configure-zlib:
ade82b16
AO
5261configure-zlib:
5262 @test ! -f zlib/Makefile || exit 0; \
5263 [ -d zlib ] || mkdir zlib; \
4977bab6
ZW
5264 r=`${PWD}`; export r; \
5265 s=`cd $(srcdir); ${PWD}`; export s; \
5266 CC="$(CC)"; export CC; \
5267 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5268 CXX="$(CXX)"; export CXX; \
5269 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5270 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
5271 AR="$(AR)"; export AR; \
5272 AS="$(AS)"; export AS; \
5273 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5274 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5275 LD="$(LD)"; export LD; \
5276 NM="$(NM)"; export NM; \
5277 RANLIB="$(RANLIB)"; export RANLIB; \
5278 WINDRES="$(WINDRES)"; export WINDRES; \
5279 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5280 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5281 fi; \
5282 echo Configuring in zlib; \
5283 cd zlib || exit 1; \
5284 case $(srcdir) in \
5285 \.) \
5286 srcdiroption="--srcdir=."; \
5287 libsrcdir=".";; \
5288 /* | [A-Za-z]:[\\/]*) \
5289 srcdiroption="--srcdir=$(srcdir)/zlib"; \
5290 libsrcdir="$$s/zlib";; \
5291 *) \
5292 srcdiroption="--srcdir=../$(srcdir)/zlib"; \
5293 libsrcdir="$$s/zlib";; \
5294 esac; \
5295 $(SHELL) $${libsrcdir}/configure \
5296 $(HOST_CONFIGARGS) $${srcdiroption} \
5297 || exit 1
5298
5299.PHONY: all-zlib maybe-all-zlib
5300maybe-all-zlib:
5301all-zlib: configure-zlib
5302 @r=`${PWD}`; export r; \
5303 s=`cd $(srcdir); ${PWD}`; export s; \
5304 $(SET_LIB_PATH) \
88b5521b 5305 (cd zlib && $(MAKE) $(FLAGS_TO_PASS) all)
4977bab6
ZW
5306
5307
5308.PHONY: check-zlib
5309check-zlib:
5310
5311
5312
5313.PHONY: install-zlib maybe-install-zlib
5314maybe-install-zlib:
5315install-zlib:
5316
5317
5318.PHONY: configure-gdb maybe-configure-gdb
5319maybe-configure-gdb:
ade82b16
AO
5320configure-gdb:
5321 @test ! -f gdb/Makefile || exit 0; \
5322 [ -d gdb ] || mkdir gdb; \
4977bab6
ZW
5323 r=`${PWD}`; export r; \
5324 s=`cd $(srcdir); ${PWD}`; export s; \
5325 CC="$(CC)"; export CC; \
5326 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5327 CXX="$(CXX)"; export CXX; \
5328 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5329 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
5330 AR="$(AR)"; export AR; \
5331 AS="$(AS)"; export AS; \
5332 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5333 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5334 LD="$(LD)"; export LD; \
5335 NM="$(NM)"; export NM; \
5336 RANLIB="$(RANLIB)"; export RANLIB; \
5337 WINDRES="$(WINDRES)"; export WINDRES; \
5338 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5339 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5340 fi; \
5341 echo Configuring in gdb; \
5342 cd gdb || exit 1; \
5343 case $(srcdir) in \
5344 \.) \
5345 srcdiroption="--srcdir=."; \
5346 libsrcdir=".";; \
5347 /* | [A-Za-z]:[\\/]*) \
5348 srcdiroption="--srcdir=$(srcdir)/gdb"; \
5349 libsrcdir="$$s/gdb";; \
5350 *) \
5351 srcdiroption="--srcdir=../$(srcdir)/gdb"; \
5352 libsrcdir="$$s/gdb";; \
5353 esac; \
5354 $(SHELL) $${libsrcdir}/configure \
5355 $(HOST_CONFIGARGS) $${srcdiroption} \
5356 || exit 1
5357
5358.PHONY: all-gdb maybe-all-gdb
5359maybe-all-gdb:
5360all-gdb: configure-gdb
5361 @r=`${PWD}`; export r; \
5362 s=`cd $(srcdir); ${PWD}`; export s; \
5363 $(SET_LIB_PATH) \
88b5521b 5364 (cd gdb && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all)
4977bab6
ZW
5365
5366
5367.PHONY: check-gdb
5368check-gdb:
5369 @r=`${PWD}`; export r; \
5370 s=`cd $(srcdir); ${PWD}`; export s; \
5371 $(SET_LIB_PATH) \
88b5521b 5372 (cd gdb && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
4977bab6
ZW
5373
5374
5375
5376.PHONY: install-gdb maybe-install-gdb
5377maybe-install-gdb:
5378install-gdb: installdirs
5379 @r=`${PWD}`; export r; \
5380 s=`cd $(srcdir); ${PWD}`; export s; \
5381 $(SET_LIB_PATH) \
88b5521b 5382 (cd gdb && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
4977bab6
ZW
5383
5384
5385.PHONY: configure-expect maybe-configure-expect
5386maybe-configure-expect:
ade82b16
AO
5387configure-expect:
5388 @test ! -f expect/Makefile || exit 0; \
5389 [ -d expect ] || mkdir expect; \
4977bab6
ZW
5390 r=`${PWD}`; export r; \
5391 s=`cd $(srcdir); ${PWD}`; export s; \
5392 CC="$(CC)"; export CC; \
5393 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5394 CXX="$(CXX)"; export CXX; \
5395 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5396 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
5397 AR="$(AR)"; export AR; \
5398 AS="$(AS)"; export AS; \
5399 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5400 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5401 LD="$(LD)"; export LD; \
5402 NM="$(NM)"; export NM; \
5403 RANLIB="$(RANLIB)"; export RANLIB; \
5404 WINDRES="$(WINDRES)"; export WINDRES; \
5405 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5406 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5407 fi; \
5408 echo Configuring in expect; \
5409 cd expect || exit 1; \
5410 case $(srcdir) in \
5411 \.) \
5412 srcdiroption="--srcdir=."; \
5413 libsrcdir=".";; \
5414 /* | [A-Za-z]:[\\/]*) \
5415 srcdiroption="--srcdir=$(srcdir)/expect"; \
5416 libsrcdir="$$s/expect";; \
5417 *) \
5418 srcdiroption="--srcdir=../$(srcdir)/expect"; \
5419 libsrcdir="$$s/expect";; \
5420 esac; \
5421 $(SHELL) $${libsrcdir}/configure \
5422 $(HOST_CONFIGARGS) $${srcdiroption} \
5423 || exit 1
5424
5425.PHONY: all-expect maybe-all-expect
5426maybe-all-expect:
5427all-expect: configure-expect
5428 @r=`${PWD}`; export r; \
5429 s=`cd $(srcdir); ${PWD}`; export s; \
5430 $(SET_LIB_PATH) \
88b5521b 5431 (cd expect && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all)
4977bab6
ZW
5432
5433
5434.PHONY: check-expect
5435check-expect:
5436 @r=`${PWD}`; export r; \
5437 s=`cd $(srcdir); ${PWD}`; export s; \
5438 $(SET_LIB_PATH) \
88b5521b 5439 (cd expect && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
4977bab6
ZW
5440
5441
5442
5443.PHONY: install-expect maybe-install-expect
5444maybe-install-expect:
5445install-expect: installdirs
5446 @r=`${PWD}`; export r; \
5447 s=`cd $(srcdir); ${PWD}`; export s; \
5448 $(SET_LIB_PATH) \
88b5521b 5449 (cd expect && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
4977bab6
ZW
5450
5451
5452.PHONY: configure-guile maybe-configure-guile
5453maybe-configure-guile:
ade82b16
AO
5454configure-guile:
5455 @test ! -f guile/Makefile || exit 0; \
5456 [ -d guile ] || mkdir guile; \
4977bab6
ZW
5457 r=`${PWD}`; export r; \
5458 s=`cd $(srcdir); ${PWD}`; export s; \
5459 CC="$(CC)"; export CC; \
5460 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5461 CXX="$(CXX)"; export CXX; \
5462 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5463 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
5464 AR="$(AR)"; export AR; \
5465 AS="$(AS)"; export AS; \
5466 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5467 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5468 LD="$(LD)"; export LD; \
5469 NM="$(NM)"; export NM; \
5470 RANLIB="$(RANLIB)"; export RANLIB; \
5471 WINDRES="$(WINDRES)"; export WINDRES; \
5472 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5473 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5474 fi; \
5475 echo Configuring in guile; \
5476 cd guile || exit 1; \
5477 case $(srcdir) in \
5478 \.) \
5479 srcdiroption="--srcdir=."; \
5480 libsrcdir=".";; \
5481 /* | [A-Za-z]:[\\/]*) \
5482 srcdiroption="--srcdir=$(srcdir)/guile"; \
5483 libsrcdir="$$s/guile";; \
5484 *) \
5485 srcdiroption="--srcdir=../$(srcdir)/guile"; \
5486 libsrcdir="$$s/guile";; \
5487 esac; \
5488 $(SHELL) $${libsrcdir}/configure \
5489 $(HOST_CONFIGARGS) $${srcdiroption} \
5490 || exit 1
5491
5492.PHONY: all-guile maybe-all-guile
5493maybe-all-guile:
5494all-guile: configure-guile
5495 @r=`${PWD}`; export r; \
5496 s=`cd $(srcdir); ${PWD}`; export s; \
5497 $(SET_LIB_PATH) \
88b5521b 5498 (cd guile && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all)
4977bab6
ZW
5499
5500
5501.PHONY: check-guile
5502check-guile:
5503 @r=`${PWD}`; export r; \
5504 s=`cd $(srcdir); ${PWD}`; export s; \
5505 $(SET_LIB_PATH) \
88b5521b 5506 (cd guile && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
4977bab6
ZW
5507
5508
5509
5510.PHONY: install-guile maybe-install-guile
5511maybe-install-guile:
5512install-guile: installdirs
5513 @r=`${PWD}`; export r; \
5514 s=`cd $(srcdir); ${PWD}`; export s; \
5515 $(SET_LIB_PATH) \
88b5521b 5516 (cd guile && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
4977bab6
ZW
5517
5518
5519.PHONY: configure-tk maybe-configure-tk
5520maybe-configure-tk:
ade82b16
AO
5521configure-tk:
5522 @test ! -f tk/Makefile || exit 0; \
5523 [ -d tk ] || mkdir tk; \
4977bab6
ZW
5524 r=`${PWD}`; export r; \
5525 s=`cd $(srcdir); ${PWD}`; export s; \
5526 CC="$(CC)"; export CC; \
5527 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5528 CXX="$(CXX)"; export CXX; \
5529 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5530 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
5531 AR="$(AR)"; export AR; \
5532 AS="$(AS)"; export AS; \
5533 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5534 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5535 LD="$(LD)"; export LD; \
5536 NM="$(NM)"; export NM; \
5537 RANLIB="$(RANLIB)"; export RANLIB; \
5538 WINDRES="$(WINDRES)"; export WINDRES; \
5539 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5540 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5541 fi; \
5542 echo Configuring in tk; \
5543 cd tk || exit 1; \
5544 case $(srcdir) in \
5545 \.) \
5546 srcdiroption="--srcdir=."; \
5547 libsrcdir=".";; \
5548 /* | [A-Za-z]:[\\/]*) \
5549 srcdiroption="--srcdir=$(srcdir)/tk"; \
5550 libsrcdir="$$s/tk";; \
5551 *) \
5552 srcdiroption="--srcdir=../$(srcdir)/tk"; \
5553 libsrcdir="$$s/tk";; \
5554 esac; \
5555 $(SHELL) $${libsrcdir}/configure \
5556 $(HOST_CONFIGARGS) $${srcdiroption} \
5557 || exit 1
5558
5559.PHONY: all-tk maybe-all-tk
5560maybe-all-tk:
5561all-tk: configure-tk
5562 @r=`${PWD}`; export r; \
5563 s=`cd $(srcdir); ${PWD}`; export s; \
5564 $(SET_LIB_PATH) \
88b5521b 5565 (cd tk && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all)
4977bab6
ZW
5566
5567
5568.PHONY: check-tk
5569check-tk:
5570 @r=`${PWD}`; export r; \
5571 s=`cd $(srcdir); ${PWD}`; export s; \
5572 $(SET_LIB_PATH) \
88b5521b 5573 (cd tk && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
4977bab6
ZW
5574
5575
5576
5577.PHONY: install-tk maybe-install-tk
5578maybe-install-tk:
5579install-tk: installdirs
5580 @r=`${PWD}`; export r; \
5581 s=`cd $(srcdir); ${PWD}`; export s; \
5582 $(SET_LIB_PATH) \
88b5521b 5583 (cd tk && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
4977bab6
ZW
5584
5585
5586.PHONY: configure-tix maybe-configure-tix
5587maybe-configure-tix:
ade82b16
AO
5588configure-tix:
5589 @test ! -f tix/Makefile || exit 0; \
5590 [ -d tix ] || mkdir tix; \
4977bab6
ZW
5591 r=`${PWD}`; export r; \
5592 s=`cd $(srcdir); ${PWD}`; export s; \
5593 CC="$(CC)"; export CC; \
5594 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5595 CXX="$(CXX)"; export CXX; \
5596 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5597 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
5598 AR="$(AR)"; export AR; \
5599 AS="$(AS)"; export AS; \
5600 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5601 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5602 LD="$(LD)"; export LD; \
5603 NM="$(NM)"; export NM; \
5604 RANLIB="$(RANLIB)"; export RANLIB; \
5605 WINDRES="$(WINDRES)"; export WINDRES; \
5606 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5607 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5608 fi; \
5609 echo Configuring in tix; \
5610 cd tix || exit 1; \
5611 case $(srcdir) in \
5612 \.) \
5613 srcdiroption="--srcdir=."; \
5614 libsrcdir=".";; \
5615 /* | [A-Za-z]:[\\/]*) \
5616 srcdiroption="--srcdir=$(srcdir)/tix"; \
5617 libsrcdir="$$s/tix";; \
5618 *) \
5619 srcdiroption="--srcdir=../$(srcdir)/tix"; \
5620 libsrcdir="$$s/tix";; \
5621 esac; \
5622 $(SHELL) $${libsrcdir}/configure \
5623 $(HOST_CONFIGARGS) $${srcdiroption} \
5624 || exit 1
5625
5626.PHONY: all-tix maybe-all-tix
5627maybe-all-tix:
5628all-tix: configure-tix
5629 @r=`${PWD}`; export r; \
5630 s=`cd $(srcdir); ${PWD}`; export s; \
5631 $(SET_LIB_PATH) \
88b5521b 5632 (cd tix && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all)
4977bab6
ZW
5633
5634
5635.PHONY: check-tix
5636check-tix:
5637 @r=`${PWD}`; export r; \
5638 s=`cd $(srcdir); ${PWD}`; export s; \
5639 $(SET_LIB_PATH) \
88b5521b 5640 (cd tix && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
4977bab6
ZW
5641
5642
5643
5644.PHONY: install-tix maybe-install-tix
5645maybe-install-tix:
5646install-tix: installdirs
5647 @r=`${PWD}`; export r; \
5648 s=`cd $(srcdir); ${PWD}`; export s; \
5649 $(SET_LIB_PATH) \
88b5521b 5650 (cd tix && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
4977bab6
ZW
5651
5652
5653.PHONY: configure-libtermcap maybe-configure-libtermcap
5654maybe-configure-libtermcap:
ade82b16
AO
5655configure-libtermcap:
5656 @test ! -f libtermcap/Makefile || exit 0; \
5657 [ -d libtermcap ] || mkdir libtermcap; \
4977bab6
ZW
5658 r=`${PWD}`; export r; \
5659 s=`cd $(srcdir); ${PWD}`; export s; \
5660 CC="$(CC)"; export CC; \
5661 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5662 CXX="$(CXX)"; export CXX; \
5663 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5664 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
5665 AR="$(AR)"; export AR; \
5666 AS="$(AS)"; export AS; \
5667 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5668 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5669 LD="$(LD)"; export LD; \
5670 NM="$(NM)"; export NM; \
5671 RANLIB="$(RANLIB)"; export RANLIB; \
5672 WINDRES="$(WINDRES)"; export WINDRES; \
5673 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5674 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5675 fi; \
5676 echo Configuring in libtermcap; \
5677 cd libtermcap || exit 1; \
5678 case $(srcdir) in \
5679 \.) \
5680 srcdiroption="--srcdir=."; \
5681 libsrcdir=".";; \
5682 /* | [A-Za-z]:[\\/]*) \
5683 srcdiroption="--srcdir=$(srcdir)/libtermcap"; \
5684 libsrcdir="$$s/libtermcap";; \
5685 *) \
5686 srcdiroption="--srcdir=../$(srcdir)/libtermcap"; \
5687 libsrcdir="$$s/libtermcap";; \
5688 esac; \
5689 $(SHELL) $${libsrcdir}/configure \
5690 $(HOST_CONFIGARGS) $${srcdiroption} \
5691 || exit 1
5692
5693.PHONY: all-libtermcap maybe-all-libtermcap
5694maybe-all-libtermcap:
5695all-libtermcap: configure-libtermcap
5696 @r=`${PWD}`; export r; \
5697 s=`cd $(srcdir); ${PWD}`; export s; \
5698 $(SET_LIB_PATH) \
88b5521b 5699 (cd libtermcap && $(MAKE) $(FLAGS_TO_PASS) all)
4977bab6
ZW
5700
5701
5702.PHONY: check-libtermcap
5703check-libtermcap:
5704
5705
5706
5707.PHONY: install-libtermcap maybe-install-libtermcap
5708maybe-install-libtermcap:
5709install-libtermcap: installdirs
5710 @r=`${PWD}`; export r; \
5711 s=`cd $(srcdir); ${PWD}`; export s; \
5712 $(SET_LIB_PATH) \
88b5521b 5713 (cd libtermcap && $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6
ZW
5714
5715
5716.PHONY: configure-utils maybe-configure-utils
5717maybe-configure-utils:
ade82b16
AO
5718configure-utils:
5719 @test ! -f utils/Makefile || exit 0; \
5720 [ -d utils ] || mkdir utils; \
4977bab6
ZW
5721 r=`${PWD}`; export r; \
5722 s=`cd $(srcdir); ${PWD}`; export s; \
5723 CC="$(CC)"; export CC; \
5724 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5725 CXX="$(CXX)"; export CXX; \
5726 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5727 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
5728 AR="$(AR)"; export AR; \
5729 AS="$(AS)"; export AS; \
5730 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5731 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5732 LD="$(LD)"; export LD; \
5733 NM="$(NM)"; export NM; \
5734 RANLIB="$(RANLIB)"; export RANLIB; \
5735 WINDRES="$(WINDRES)"; export WINDRES; \
5736 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5737 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5738 fi; \
5739 echo Configuring in utils; \
5740 cd utils || exit 1; \
5741 case $(srcdir) in \
5742 \.) \
5743 srcdiroption="--srcdir=."; \
5744 libsrcdir=".";; \
5745 /* | [A-Za-z]:[\\/]*) \
5746 srcdiroption="--srcdir=$(srcdir)/utils"; \
5747 libsrcdir="$$s/utils";; \
5748 *) \
5749 srcdiroption="--srcdir=../$(srcdir)/utils"; \
5750 libsrcdir="$$s/utils";; \
5751 esac; \
5752 $(SHELL) $${libsrcdir}/configure \
5753 $(HOST_CONFIGARGS) $${srcdiroption} \
5754 || exit 1
5755
5756.PHONY: all-utils maybe-all-utils
5757maybe-all-utils:
5758all-utils: configure-utils
5759 @r=`${PWD}`; export r; \
5760 s=`cd $(srcdir); ${PWD}`; export s; \
5761 $(SET_LIB_PATH) \
88b5521b 5762 (cd utils && $(MAKE) $(FLAGS_TO_PASS) all)
4977bab6
ZW
5763
5764
5765.PHONY: check-utils
5766check-utils:
5767
5768
5769
5770.PHONY: install-utils maybe-install-utils
5771maybe-install-utils:
5772install-utils: installdirs
5773 @r=`${PWD}`; export r; \
5774 s=`cd $(srcdir); ${PWD}`; export s; \
5775 $(SET_LIB_PATH) \
88b5521b 5776 (cd utils && $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6
ZW
5777
5778
5779
5780# ---------------------------------------
5781# Modules which run on the target machine
5782# ---------------------------------------
5783
5784.PHONY: configure-target-libstdc++-v3 maybe-configure-target-libstdc++-v3
5785maybe-configure-target-libstdc++-v3:
4977bab6 5786
88b5521b
NN
5787# There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
5788$(TARGET_SUBDIR)/libstdc++-v3/multilib.out: multilib.out
ade82b16
AO
5789 @[ -d $(TARGET_SUBDIR)/libstdc++-v3 ] || \
5790 mkdir $(TARGET_SUBDIR)/libstdc++-v3; \
5791 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || : ; \
88b5521b 5792 cp multilib.out $(TARGET_SUBDIR)/libstdc++-v3/multilib.out
4977bab6 5793
ade82b16
AO
5794configure-target-libstdc++-v3: $(TARGET_SUBDIR)/libstdc++-v3/multilib.out
5795 @test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
5796 [ -d $(TARGET_SUBDIR)/libstdc++-v3 ] || \
5797 mkdir $(TARGET_SUBDIR)/libstdc++-v3;\
4977bab6
ZW
5798 r=`${PWD}`; export r; \
5799 s=`cd $(srcdir); ${PWD}`; export s; \
5800 $(SET_LIB_PATH) \
5801 AR="$(AR_FOR_TARGET)"; export AR; \
5802 AS="$(AS_FOR_TARGET)"; export AS; \
5803 CC="$(CC_FOR_TARGET)"; export CC; \
5804 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
5805 CXX_FOR_TARGET="$(RAW_CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \
5806 CXX="$(RAW_CXX_FOR_TARGET)"; export CXX; \
5807 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
5808 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
5809 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
5810 LD="$(LD_FOR_TARGET)"; export LD; \
5811 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
5812 NM="$(NM_FOR_TARGET)"; export NM; \
5813 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
5814 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
5815 echo Configuring in $(TARGET_SUBDIR)/libstdc++-v3; \
5816 cd "$(TARGET_SUBDIR)/libstdc++-v3" || exit 1; \
5817 case $(srcdir) in \
5818 /* | [A-Za-z]:[\\/]*) \
5819 topdir=$(srcdir) ;; \
5820 *) \
5821 case "$(TARGET_SUBDIR)" in \
5822 .) topdir="../$(srcdir)" ;; \
5823 *) topdir="../../$(srcdir)" ;; \
5824 esac ;; \
5825 esac; \
5826 if [ "$(srcdir)" = "." ] ; then \
5827 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
5828 if $(SHELL) $$s/symlink-tree $${topdir}/libstdc++-v3 "no-such-file" ; then \
5829 if [ -f Makefile ]; then \
5830 if $(MAKE) distclean; then \
5831 true; \
5832 else \
5833 exit 1; \
5834 fi; \
5835 else \
5836 true; \
5837 fi; \
5838 else \
5839 exit 1; \
5840 fi; \
5841 else \
5842 true; \
5843 fi; \
5844 srcdiroption="--srcdir=."; \
5845 libsrcdir="."; \
5846 else \
5847 srcdiroption="--srcdir=$${topdir}/libstdc++-v3"; \
5848 libsrcdir="$$s/libstdc++-v3"; \
5849 fi; \
5850 rm -f no-such-file || : ; \
5851 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
5852 $(TARGET_CONFIGARGS) $${srcdiroption} \
5853 --with-target-subdir="$(TARGET_SUBDIR)" \
5854 || exit 1
5855
5856.PHONY: all-target-libstdc++-v3 maybe-all-target-libstdc++-v3
5857maybe-all-target-libstdc++-v3:
5858all-target-libstdc++-v3: configure-target-libstdc++-v3
5859 @r=`${PWD}`; export r; \
5860 s=`cd $(srcdir); ${PWD}`; export s; \
5861 $(SET_LIB_PATH) \
88b5521b 5862 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
4977bab6
ZW
5863 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' all)
5864
5865.PHONY: check-target-libstdc++-v3
5866check-target-libstdc++-v3:
5867 @r=`${PWD}`; export r; \
5868 s=`cd $(srcdir); ${PWD}`; export s; \
5869 $(SET_LIB_PATH) \
88b5521b 5870 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
4977bab6
ZW
5871 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
5872
5873
5874.PHONY: install-target-libstdc++-v3 maybe-install-target-libstdc++-v3
5875maybe-install-target-libstdc++-v3:
5876install-target-libstdc++-v3: installdirs
5877 @r=`${PWD}`; export r; \
5878 s=`cd $(srcdir); ${PWD}`; export s; \
5879 $(SET_LIB_PATH) \
88b5521b 5880 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
4977bab6
ZW
5881 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
5882
5883
5884.PHONY: configure-target-newlib maybe-configure-target-newlib
5885maybe-configure-target-newlib:
4977bab6 5886
88b5521b
NN
5887# There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
5888$(TARGET_SUBDIR)/newlib/multilib.out: multilib.out
ade82b16
AO
5889 @[ -d $(TARGET_SUBDIR)/newlib ] || \
5890 mkdir $(TARGET_SUBDIR)/newlib; \
5891 rm -f $(TARGET_SUBDIR)/newlib/Makefile || : ; \
88b5521b 5892 cp multilib.out $(TARGET_SUBDIR)/newlib/multilib.out
4977bab6 5893
ade82b16
AO
5894configure-target-newlib: $(TARGET_SUBDIR)/newlib/multilib.out
5895 @test ! -f $(TARGET_SUBDIR)/newlib/Makefile || exit 0; \
5896 [ -d $(TARGET_SUBDIR)/newlib ] || \
5897 mkdir $(TARGET_SUBDIR)/newlib;\
4977bab6
ZW
5898 r=`${PWD}`; export r; \
5899 s=`cd $(srcdir); ${PWD}`; export s; \
5900 $(SET_LIB_PATH) \
5901 AR="$(AR_FOR_TARGET)"; export AR; \
5902 AS="$(AS_FOR_TARGET)"; export AS; \
5903 CC="$(CC_FOR_TARGET)"; export CC; \
5904 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
5905 CXX="$(CXX_FOR_TARGET)"; export CXX; \
5906 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
5907 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
5908 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
5909 LD="$(LD_FOR_TARGET)"; export LD; \
5910 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
5911 NM="$(NM_FOR_TARGET)"; export NM; \
5912 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
5913 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
5914 echo Configuring in $(TARGET_SUBDIR)/newlib; \
5915 cd "$(TARGET_SUBDIR)/newlib" || exit 1; \
5916 case $(srcdir) in \
5917 /* | [A-Za-z]:[\\/]*) \
5918 topdir=$(srcdir) ;; \
5919 *) \
5920 case "$(TARGET_SUBDIR)" in \
5921 .) topdir="../$(srcdir)" ;; \
5922 *) topdir="../../$(srcdir)" ;; \
5923 esac ;; \
5924 esac; \
5925 if [ "$(srcdir)" = "." ] ; then \
5926 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
5927 if $(SHELL) $$s/symlink-tree $${topdir}/newlib "no-such-file" ; then \
5928 if [ -f Makefile ]; then \
5929 if $(MAKE) distclean; then \
5930 true; \
5931 else \
5932 exit 1; \
5933 fi; \
5934 else \
5935 true; \
5936 fi; \
5937 else \
5938 exit 1; \
5939 fi; \
5940 else \
5941 true; \
5942 fi; \
5943 srcdiroption="--srcdir=."; \
5944 libsrcdir="."; \
5945 else \
5946 srcdiroption="--srcdir=$${topdir}/newlib"; \
5947 libsrcdir="$$s/newlib"; \
5948 fi; \
5949 rm -f no-such-file || : ; \
5950 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
5951 $(TARGET_CONFIGARGS) $${srcdiroption} \
5952 --with-target-subdir="$(TARGET_SUBDIR)" \
5953 || exit 1
5954
5955.PHONY: all-target-newlib maybe-all-target-newlib
5956maybe-all-target-newlib:
5957all-target-newlib: configure-target-newlib
5958 @r=`${PWD}`; export r; \
5959 s=`cd $(srcdir); ${PWD}`; export s; \
5960 $(SET_LIB_PATH) \
88b5521b 5961 (cd $(TARGET_SUBDIR)/newlib && \
4977bab6
ZW
5962 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
5963
5964.PHONY: check-target-newlib
5965check-target-newlib:
5966 @r=`${PWD}`; export r; \
5967 s=`cd $(srcdir); ${PWD}`; export s; \
5968 $(SET_LIB_PATH) \
88b5521b 5969 (cd $(TARGET_SUBDIR)/newlib && \
4977bab6
ZW
5970 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
5971
5972
5973.PHONY: install-target-newlib maybe-install-target-newlib
5974maybe-install-target-newlib:
5975install-target-newlib: installdirs
5976 @r=`${PWD}`; export r; \
5977 s=`cd $(srcdir); ${PWD}`; export s; \
5978 $(SET_LIB_PATH) \
88b5521b 5979 (cd $(TARGET_SUBDIR)/newlib && \
4977bab6
ZW
5980 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
5981
5982
5983.PHONY: configure-target-libf2c maybe-configure-target-libf2c
5984maybe-configure-target-libf2c:
4977bab6 5985
88b5521b
NN
5986# There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
5987$(TARGET_SUBDIR)/libf2c/multilib.out: multilib.out
ade82b16
AO
5988 @[ -d $(TARGET_SUBDIR)/libf2c ] || \
5989 mkdir $(TARGET_SUBDIR)/libf2c; \
5990 rm -f $(TARGET_SUBDIR)/libf2c/Makefile || : ; \
88b5521b 5991 cp multilib.out $(TARGET_SUBDIR)/libf2c/multilib.out
4977bab6 5992
ade82b16
AO
5993configure-target-libf2c: $(TARGET_SUBDIR)/libf2c/multilib.out
5994 @test ! -f $(TARGET_SUBDIR)/libf2c/Makefile || exit 0; \
5995 [ -d $(TARGET_SUBDIR)/libf2c ] || \
5996 mkdir $(TARGET_SUBDIR)/libf2c;\
4977bab6
ZW
5997 r=`${PWD}`; export r; \
5998 s=`cd $(srcdir); ${PWD}`; export s; \
5999 $(SET_LIB_PATH) \
6000 AR="$(AR_FOR_TARGET)"; export AR; \
6001 AS="$(AS_FOR_TARGET)"; export AS; \
6002 CC="$(CC_FOR_TARGET)"; export CC; \
6003 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
6004 CXX="$(CXX_FOR_TARGET)"; export CXX; \
6005 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
6006 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
6007 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
6008 LD="$(LD_FOR_TARGET)"; export LD; \
6009 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
6010 NM="$(NM_FOR_TARGET)"; export NM; \
6011 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
6012 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
6013 echo Configuring in $(TARGET_SUBDIR)/libf2c; \
6014 cd "$(TARGET_SUBDIR)/libf2c" || exit 1; \
6015 case $(srcdir) in \
6016 /* | [A-Za-z]:[\\/]*) \
6017 topdir=$(srcdir) ;; \
6018 *) \
6019 case "$(TARGET_SUBDIR)" in \
6020 .) topdir="../$(srcdir)" ;; \
6021 *) topdir="../../$(srcdir)" ;; \
6022 esac ;; \
6023 esac; \
6024 if [ "$(srcdir)" = "." ] ; then \
6025 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
6026 if $(SHELL) $$s/symlink-tree $${topdir}/libf2c "no-such-file" ; then \
6027 if [ -f Makefile ]; then \
6028 if $(MAKE) distclean; then \
6029 true; \
6030 else \
6031 exit 1; \
6032 fi; \
6033 else \
6034 true; \
6035 fi; \
6036 else \
6037 exit 1; \
6038 fi; \
6039 else \
6040 true; \
6041 fi; \
6042 srcdiroption="--srcdir=."; \
6043 libsrcdir="."; \
6044 else \
6045 srcdiroption="--srcdir=$${topdir}/libf2c"; \
6046 libsrcdir="$$s/libf2c"; \
6047 fi; \
6048 rm -f no-such-file || : ; \
6049 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
6050 $(TARGET_CONFIGARGS) $${srcdiroption} \
6051 --with-target-subdir="$(TARGET_SUBDIR)" \
6052 || exit 1
6053
6054.PHONY: all-target-libf2c maybe-all-target-libf2c
6055maybe-all-target-libf2c:
6056all-target-libf2c: configure-target-libf2c
6057 @r=`${PWD}`; export r; \
6058 s=`cd $(srcdir); ${PWD}`; export s; \
6059 $(SET_LIB_PATH) \
88b5521b 6060 (cd $(TARGET_SUBDIR)/libf2c && \
4977bab6
ZW
6061 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
6062
6063.PHONY: check-target-libf2c
6064check-target-libf2c:
6065 @r=`${PWD}`; export r; \
6066 s=`cd $(srcdir); ${PWD}`; export s; \
6067 $(SET_LIB_PATH) \
88b5521b 6068 (cd $(TARGET_SUBDIR)/libf2c && \
4977bab6
ZW
6069 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
6070
6071
6072.PHONY: install-target-libf2c maybe-install-target-libf2c
6073maybe-install-target-libf2c:
6074install-target-libf2c: installdirs
6075 @r=`${PWD}`; export r; \
6076 s=`cd $(srcdir); ${PWD}`; export s; \
6077 $(SET_LIB_PATH) \
88b5521b 6078 (cd $(TARGET_SUBDIR)/libf2c && \
4977bab6
ZW
6079 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6080
6081
6082.PHONY: configure-target-libobjc maybe-configure-target-libobjc
6083maybe-configure-target-libobjc:
4977bab6 6084
88b5521b
NN
6085# There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
6086$(TARGET_SUBDIR)/libobjc/multilib.out: multilib.out
ade82b16
AO
6087 @[ -d $(TARGET_SUBDIR)/libobjc ] || \
6088 mkdir $(TARGET_SUBDIR)/libobjc; \
6089 rm -f $(TARGET_SUBDIR)/libobjc/Makefile || : ; \
88b5521b 6090 cp multilib.out $(TARGET_SUBDIR)/libobjc/multilib.out
4977bab6 6091
ade82b16
AO
6092configure-target-libobjc: $(TARGET_SUBDIR)/libobjc/multilib.out
6093 @test ! -f $(TARGET_SUBDIR)/libobjc/Makefile || exit 0; \
6094 [ -d $(TARGET_SUBDIR)/libobjc ] || \
6095 mkdir $(TARGET_SUBDIR)/libobjc;\
4977bab6
ZW
6096 r=`${PWD}`; export r; \
6097 s=`cd $(srcdir); ${PWD}`; export s; \
6098 $(SET_LIB_PATH) \
6099 AR="$(AR_FOR_TARGET)"; export AR; \
6100 AS="$(AS_FOR_TARGET)"; export AS; \
6101 CC="$(CC_FOR_TARGET)"; export CC; \
6102 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
6103 CXX="$(CXX_FOR_TARGET)"; export CXX; \
6104 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
6105 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
6106 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
6107 LD="$(LD_FOR_TARGET)"; export LD; \
6108 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
6109 NM="$(NM_FOR_TARGET)"; export NM; \
6110 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
6111 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
6112 echo Configuring in $(TARGET_SUBDIR)/libobjc; \
6113 cd "$(TARGET_SUBDIR)/libobjc" || exit 1; \
6114 case $(srcdir) in \
6115 /* | [A-Za-z]:[\\/]*) \
6116 topdir=$(srcdir) ;; \
6117 *) \
6118 case "$(TARGET_SUBDIR)" in \
6119 .) topdir="../$(srcdir)" ;; \
6120 *) topdir="../../$(srcdir)" ;; \
6121 esac ;; \
6122 esac; \
6123 if [ "$(srcdir)" = "." ] ; then \
6124 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
6125 if $(SHELL) $$s/symlink-tree $${topdir}/libobjc "no-such-file" ; then \
6126 if [ -f Makefile ]; then \
6127 if $(MAKE) distclean; then \
6128 true; \
6129 else \
6130 exit 1; \
6131 fi; \
6132 else \
6133 true; \
6134 fi; \
6135 else \
6136 exit 1; \
6137 fi; \
6138 else \
6139 true; \
6140 fi; \
6141 srcdiroption="--srcdir=."; \
6142 libsrcdir="."; \
6143 else \
6144 srcdiroption="--srcdir=$${topdir}/libobjc"; \
6145 libsrcdir="$$s/libobjc"; \
6146 fi; \
6147 rm -f no-such-file || : ; \
6148 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
6149 $(TARGET_CONFIGARGS) $${srcdiroption} \
6150 --with-target-subdir="$(TARGET_SUBDIR)" \
6151 || exit 1
6152
6153.PHONY: all-target-libobjc maybe-all-target-libobjc
6154maybe-all-target-libobjc:
6155all-target-libobjc: configure-target-libobjc
6156 @r=`${PWD}`; export r; \
6157 s=`cd $(srcdir); ${PWD}`; export s; \
6158 $(SET_LIB_PATH) \
88b5521b 6159 (cd $(TARGET_SUBDIR)/libobjc && \
4977bab6
ZW
6160 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
6161
6162.PHONY: check-target-libobjc
6163check-target-libobjc:
6164 @r=`${PWD}`; export r; \
6165 s=`cd $(srcdir); ${PWD}`; export s; \
6166 $(SET_LIB_PATH) \
88b5521b 6167 (cd $(TARGET_SUBDIR)/libobjc && \
4977bab6
ZW
6168 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
6169
6170
6171.PHONY: install-target-libobjc maybe-install-target-libobjc
6172maybe-install-target-libobjc:
6173install-target-libobjc: installdirs
6174 @r=`${PWD}`; export r; \
6175 s=`cd $(srcdir); ${PWD}`; export s; \
6176 $(SET_LIB_PATH) \
88b5521b 6177 (cd $(TARGET_SUBDIR)/libobjc && \
4977bab6
ZW
6178 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6179
6180
6181.PHONY: configure-target-libtermcap maybe-configure-target-libtermcap
6182maybe-configure-target-libtermcap:
4977bab6 6183
88b5521b
NN
6184# There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
6185$(TARGET_SUBDIR)/libtermcap/multilib.out: multilib.out
ade82b16
AO
6186 @[ -d $(TARGET_SUBDIR)/libtermcap ] || \
6187 mkdir $(TARGET_SUBDIR)/libtermcap; \
6188 rm -f $(TARGET_SUBDIR)/libtermcap/Makefile || : ; \
88b5521b 6189 cp multilib.out $(TARGET_SUBDIR)/libtermcap/multilib.out
4977bab6 6190
ade82b16
AO
6191configure-target-libtermcap: $(TARGET_SUBDIR)/libtermcap/multilib.out
6192 @test ! -f $(TARGET_SUBDIR)/libtermcap/Makefile || exit 0; \
6193 [ -d $(TARGET_SUBDIR)/libtermcap ] || \
6194 mkdir $(TARGET_SUBDIR)/libtermcap;\
4977bab6
ZW
6195 r=`${PWD}`; export r; \
6196 s=`cd $(srcdir); ${PWD}`; export s; \
6197 $(SET_LIB_PATH) \
6198 AR="$(AR_FOR_TARGET)"; export AR; \
6199 AS="$(AS_FOR_TARGET)"; export AS; \
6200 CC="$(CC_FOR_TARGET)"; export CC; \
6201 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
6202 CXX="$(CXX_FOR_TARGET)"; export CXX; \
6203 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
6204 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
6205 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
6206 LD="$(LD_FOR_TARGET)"; export LD; \
6207 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
6208 NM="$(NM_FOR_TARGET)"; export NM; \
6209 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
6210 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
6211 echo Configuring in $(TARGET_SUBDIR)/libtermcap; \
6212 cd "$(TARGET_SUBDIR)/libtermcap" || exit 1; \
6213 case $(srcdir) in \
6214 /* | [A-Za-z]:[\\/]*) \
6215 topdir=$(srcdir) ;; \
6216 *) \
6217 case "$(TARGET_SUBDIR)" in \
6218 .) topdir="../$(srcdir)" ;; \
6219 *) topdir="../../$(srcdir)" ;; \
6220 esac ;; \
6221 esac; \
6222 if [ "$(srcdir)" = "." ] ; then \
6223 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
6224 if $(SHELL) $$s/symlink-tree $${topdir}/libtermcap "no-such-file" ; then \
6225 if [ -f Makefile ]; then \
6226 if $(MAKE) distclean; then \
6227 true; \
6228 else \
6229 exit 1; \
6230 fi; \
6231 else \
6232 true; \
6233 fi; \
6234 else \
6235 exit 1; \
6236 fi; \
6237 else \
6238 true; \
6239 fi; \
6240 srcdiroption="--srcdir=."; \
6241 libsrcdir="."; \
6242 else \
6243 srcdiroption="--srcdir=$${topdir}/libtermcap"; \
6244 libsrcdir="$$s/libtermcap"; \
6245 fi; \
6246 rm -f no-such-file || : ; \
6247 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
6248 $(TARGET_CONFIGARGS) $${srcdiroption} \
6249 --with-target-subdir="$(TARGET_SUBDIR)" \
6250 || exit 1
6251
6252.PHONY: all-target-libtermcap maybe-all-target-libtermcap
6253maybe-all-target-libtermcap:
6254all-target-libtermcap: configure-target-libtermcap
6255 @r=`${PWD}`; export r; \
6256 s=`cd $(srcdir); ${PWD}`; export s; \
6257 $(SET_LIB_PATH) \
88b5521b 6258 (cd $(TARGET_SUBDIR)/libtermcap && \
4977bab6
ZW
6259 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
6260
6261# Dummy target for uncheckable module.
6262.PHONY: check-target-libtermcap
6263check-target-libtermcap:
6264
6265
6266.PHONY: install-target-libtermcap maybe-install-target-libtermcap
6267maybe-install-target-libtermcap:
6268install-target-libtermcap: installdirs
6269 @r=`${PWD}`; export r; \
6270 s=`cd $(srcdir); ${PWD}`; export s; \
6271 $(SET_LIB_PATH) \
88b5521b 6272 (cd $(TARGET_SUBDIR)/libtermcap && \
4977bab6
ZW
6273 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6274
6275
6276.PHONY: configure-target-winsup maybe-configure-target-winsup
6277maybe-configure-target-winsup:
4977bab6 6278
88b5521b
NN
6279# There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
6280$(TARGET_SUBDIR)/winsup/multilib.out: multilib.out
ade82b16
AO
6281 @[ -d $(TARGET_SUBDIR)/winsup ] || \
6282 mkdir $(TARGET_SUBDIR)/winsup; \
6283 rm -f $(TARGET_SUBDIR)/winsup/Makefile || : ; \
88b5521b 6284 cp multilib.out $(TARGET_SUBDIR)/winsup/multilib.out
4977bab6 6285
ade82b16
AO
6286configure-target-winsup: $(TARGET_SUBDIR)/winsup/multilib.out
6287 @test ! -f $(TARGET_SUBDIR)/winsup/Makefile || exit 0; \
6288 [ -d $(TARGET_SUBDIR)/winsup ] || \
6289 mkdir $(TARGET_SUBDIR)/winsup;\
4977bab6
ZW
6290 r=`${PWD}`; export r; \
6291 s=`cd $(srcdir); ${PWD}`; export s; \
6292 $(SET_LIB_PATH) \
6293 AR="$(AR_FOR_TARGET)"; export AR; \
6294 AS="$(AS_FOR_TARGET)"; export AS; \
6295 CC="$(CC_FOR_TARGET)"; export CC; \
6296 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
6297 CXX="$(CXX_FOR_TARGET)"; export CXX; \
6298 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
6299 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
6300 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
6301 LD="$(LD_FOR_TARGET)"; export LD; \
6302 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
6303 NM="$(NM_FOR_TARGET)"; export NM; \
6304 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
6305 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
6306 echo Configuring in $(TARGET_SUBDIR)/winsup; \
6307 cd "$(TARGET_SUBDIR)/winsup" || exit 1; \
6308 case $(srcdir) in \
6309 /* | [A-Za-z]:[\\/]*) \
6310 topdir=$(srcdir) ;; \
6311 *) \
6312 case "$(TARGET_SUBDIR)" in \
6313 .) topdir="../$(srcdir)" ;; \
6314 *) topdir="../../$(srcdir)" ;; \
6315 esac ;; \
6316 esac; \
6317 if [ "$(srcdir)" = "." ] ; then \
6318 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
6319 if $(SHELL) $$s/symlink-tree $${topdir}/winsup "no-such-file" ; then \
6320 if [ -f Makefile ]; then \
6321 if $(MAKE) distclean; then \
6322 true; \
6323 else \
6324 exit 1; \
6325 fi; \
6326 else \
6327 true; \
6328 fi; \
6329 else \
6330 exit 1; \
6331 fi; \
6332 else \
6333 true; \
6334 fi; \
6335 srcdiroption="--srcdir=."; \
6336 libsrcdir="."; \
6337 else \
6338 srcdiroption="--srcdir=$${topdir}/winsup"; \
6339 libsrcdir="$$s/winsup"; \
6340 fi; \
6341 rm -f no-such-file || : ; \
6342 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
6343 $(TARGET_CONFIGARGS) $${srcdiroption} \
6344 --with-target-subdir="$(TARGET_SUBDIR)" \
6345 || exit 1
6346
6347.PHONY: all-target-winsup maybe-all-target-winsup
6348maybe-all-target-winsup:
6349all-target-winsup: configure-target-winsup
6350 @r=`${PWD}`; export r; \
6351 s=`cd $(srcdir); ${PWD}`; export s; \
6352 $(SET_LIB_PATH) \
88b5521b 6353 (cd $(TARGET_SUBDIR)/winsup && \
4977bab6
ZW
6354 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
6355
6356.PHONY: check-target-winsup
6357check-target-winsup:
6358 @r=`${PWD}`; export r; \
6359 s=`cd $(srcdir); ${PWD}`; export s; \
6360 $(SET_LIB_PATH) \
88b5521b 6361 (cd $(TARGET_SUBDIR)/winsup && \
4977bab6
ZW
6362 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
6363
6364
6365.PHONY: install-target-winsup maybe-install-target-winsup
6366maybe-install-target-winsup:
6367install-target-winsup: installdirs
6368 @r=`${PWD}`; export r; \
6369 s=`cd $(srcdir); ${PWD}`; export s; \
6370 $(SET_LIB_PATH) \
88b5521b 6371 (cd $(TARGET_SUBDIR)/winsup && \
4977bab6
ZW
6372 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6373
6374
6375.PHONY: configure-target-libgloss maybe-configure-target-libgloss
6376maybe-configure-target-libgloss:
4977bab6 6377
88b5521b
NN
6378# There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
6379$(TARGET_SUBDIR)/libgloss/multilib.out: multilib.out
ade82b16
AO
6380 @[ -d $(TARGET_SUBDIR)/libgloss ] || \
6381 mkdir $(TARGET_SUBDIR)/libgloss; \
6382 rm -f $(TARGET_SUBDIR)/libgloss/Makefile || : ; \
88b5521b 6383 cp multilib.out $(TARGET_SUBDIR)/libgloss/multilib.out
4977bab6 6384
ade82b16
AO
6385configure-target-libgloss: $(TARGET_SUBDIR)/libgloss/multilib.out
6386 @test ! -f $(TARGET_SUBDIR)/libgloss/Makefile || exit 0; \
6387 [ -d $(TARGET_SUBDIR)/libgloss ] || \
6388 mkdir $(TARGET_SUBDIR)/libgloss;\
4977bab6
ZW
6389 r=`${PWD}`; export r; \
6390 s=`cd $(srcdir); ${PWD}`; export s; \
6391 $(SET_LIB_PATH) \
6392 AR="$(AR_FOR_TARGET)"; export AR; \
6393 AS="$(AS_FOR_TARGET)"; export AS; \
6394 CC="$(CC_FOR_TARGET)"; export CC; \
6395 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
6396 CXX="$(CXX_FOR_TARGET)"; export CXX; \
6397 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
6398 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
6399 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
6400 LD="$(LD_FOR_TARGET)"; export LD; \
6401 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
6402 NM="$(NM_FOR_TARGET)"; export NM; \
6403 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
6404 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
6405 echo Configuring in $(TARGET_SUBDIR)/libgloss; \
6406 cd "$(TARGET_SUBDIR)/libgloss" || exit 1; \
6407 case $(srcdir) in \
6408 /* | [A-Za-z]:[\\/]*) \
6409 topdir=$(srcdir) ;; \
6410 *) \
6411 case "$(TARGET_SUBDIR)" in \
6412 .) topdir="../$(srcdir)" ;; \
6413 *) topdir="../../$(srcdir)" ;; \
6414 esac ;; \
6415 esac; \
6416 if [ "$(srcdir)" = "." ] ; then \
6417 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
6418 if $(SHELL) $$s/symlink-tree $${topdir}/libgloss "no-such-file" ; then \
6419 if [ -f Makefile ]; then \
6420 if $(MAKE) distclean; then \
6421 true; \
6422 else \
6423 exit 1; \
6424 fi; \
6425 else \
6426 true; \
6427 fi; \
6428 else \
6429 exit 1; \
6430 fi; \
6431 else \
6432 true; \
6433 fi; \
6434 srcdiroption="--srcdir=."; \
6435 libsrcdir="."; \
6436 else \
6437 srcdiroption="--srcdir=$${topdir}/libgloss"; \
6438 libsrcdir="$$s/libgloss"; \
6439 fi; \
6440 rm -f no-such-file || : ; \
6441 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
6442 $(TARGET_CONFIGARGS) $${srcdiroption} \
6443 --with-target-subdir="$(TARGET_SUBDIR)" \
6444 || exit 1
6445
6446.PHONY: all-target-libgloss maybe-all-target-libgloss
6447maybe-all-target-libgloss:
6448all-target-libgloss: configure-target-libgloss
6449 @r=`${PWD}`; export r; \
6450 s=`cd $(srcdir); ${PWD}`; export s; \
6451 $(SET_LIB_PATH) \
88b5521b 6452 (cd $(TARGET_SUBDIR)/libgloss && \
4977bab6
ZW
6453 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
6454
6455# Dummy target for uncheckable module.
6456.PHONY: check-target-libgloss
6457check-target-libgloss:
6458
6459
6460.PHONY: install-target-libgloss maybe-install-target-libgloss
6461maybe-install-target-libgloss:
6462install-target-libgloss: installdirs
6463 @r=`${PWD}`; export r; \
6464 s=`cd $(srcdir); ${PWD}`; export s; \
6465 $(SET_LIB_PATH) \
88b5521b 6466 (cd $(TARGET_SUBDIR)/libgloss && \
4977bab6
ZW
6467 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6468
6469
6470.PHONY: configure-target-libiberty maybe-configure-target-libiberty
6471maybe-configure-target-libiberty:
4977bab6 6472
88b5521b
NN
6473# There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
6474$(TARGET_SUBDIR)/libiberty/multilib.out: multilib.out
ade82b16
AO
6475 @[ -d $(TARGET_SUBDIR)/libiberty ] || \
6476 mkdir $(TARGET_SUBDIR)/libiberty; \
6477 rm -f $(TARGET_SUBDIR)/libiberty/Makefile || : ; \
88b5521b 6478 cp multilib.out $(TARGET_SUBDIR)/libiberty/multilib.out
4977bab6 6479
ade82b16
AO
6480configure-target-libiberty: $(TARGET_SUBDIR)/libiberty/multilib.out
6481 @test ! -f $(TARGET_SUBDIR)/libiberty/Makefile || exit 0; \
6482 [ -d $(TARGET_SUBDIR)/libiberty ] || \
6483 mkdir $(TARGET_SUBDIR)/libiberty;\
4977bab6
ZW
6484 r=`${PWD}`; export r; \
6485 s=`cd $(srcdir); ${PWD}`; export s; \
6486 $(SET_LIB_PATH) \
6487 AR="$(AR_FOR_TARGET)"; export AR; \
6488 AS="$(AS_FOR_TARGET)"; export AS; \
6489 CC="$(CC_FOR_TARGET)"; export CC; \
6490 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
6491 CXX="$(CXX_FOR_TARGET)"; export CXX; \
6492 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
6493 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
6494 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
6495 LD="$(LD_FOR_TARGET)"; export LD; \
6496 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
6497 NM="$(NM_FOR_TARGET)"; export NM; \
6498 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
6499 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
6500 echo Configuring in $(TARGET_SUBDIR)/libiberty; \
6501 cd "$(TARGET_SUBDIR)/libiberty" || exit 1; \
6502 case $(srcdir) in \
6503 /* | [A-Za-z]:[\\/]*) \
6504 topdir=$(srcdir) ;; \
6505 *) \
6506 case "$(TARGET_SUBDIR)" in \
6507 .) topdir="../$(srcdir)" ;; \
6508 *) topdir="../../$(srcdir)" ;; \
6509 esac ;; \
6510 esac; \
6511 if [ "$(srcdir)" = "." ] ; then \
6512 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
6513 if $(SHELL) $$s/symlink-tree $${topdir}/libiberty "no-such-file" ; then \
6514 if [ -f Makefile ]; then \
6515 if $(MAKE) distclean; then \
6516 true; \
6517 else \
6518 exit 1; \
6519 fi; \
6520 else \
6521 true; \
6522 fi; \
6523 else \
6524 exit 1; \
6525 fi; \
6526 else \
6527 true; \
6528 fi; \
6529 srcdiroption="--srcdir=."; \
6530 libsrcdir="."; \
6531 else \
6532 srcdiroption="--srcdir=$${topdir}/libiberty"; \
6533 libsrcdir="$$s/libiberty"; \
6534 fi; \
6535 rm -f no-such-file || : ; \
6536 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
6537 $(TARGET_CONFIGARGS) $${srcdiroption} \
6538 --with-target-subdir="$(TARGET_SUBDIR)" \
6539 || exit 1
6540
6541.PHONY: all-target-libiberty maybe-all-target-libiberty
6542maybe-all-target-libiberty:
6543all-target-libiberty: configure-target-libiberty
6544 @r=`${PWD}`; export r; \
6545 s=`cd $(srcdir); ${PWD}`; export s; \
6546 $(SET_LIB_PATH) \
88b5521b 6547 (cd $(TARGET_SUBDIR)/libiberty && \
4977bab6
ZW
6548 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
6549
6550.PHONY: check-target-libiberty
6551check-target-libiberty:
6552 @r=`${PWD}`; export r; \
6553 s=`cd $(srcdir); ${PWD}`; export s; \
6554 $(SET_LIB_PATH) \
88b5521b 6555 (cd $(TARGET_SUBDIR)/libiberty && \
4977bab6
ZW
6556 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
6557
6558
6559.PHONY: install-target-libiberty maybe-install-target-libiberty
6560maybe-install-target-libiberty:
6561install-target-libiberty: installdirs
6562 @r=`${PWD}`; export r; \
6563 s=`cd $(srcdir); ${PWD}`; export s; \
6564 $(SET_LIB_PATH) \
88b5521b 6565 (cd $(TARGET_SUBDIR)/libiberty && \
4977bab6
ZW
6566 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6567
6568
6569.PHONY: configure-target-gperf maybe-configure-target-gperf
6570maybe-configure-target-gperf:
4977bab6 6571
88b5521b
NN
6572# There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
6573$(TARGET_SUBDIR)/gperf/multilib.out: multilib.out
ade82b16
AO
6574 @[ -d $(TARGET_SUBDIR)/gperf ] || \
6575 mkdir $(TARGET_SUBDIR)/gperf; \
6576 rm -f $(TARGET_SUBDIR)/gperf/Makefile || : ; \
88b5521b 6577 cp multilib.out $(TARGET_SUBDIR)/gperf/multilib.out
4977bab6 6578
ade82b16
AO
6579configure-target-gperf: $(TARGET_SUBDIR)/gperf/multilib.out
6580 @test ! -f $(TARGET_SUBDIR)/gperf/Makefile || exit 0; \
6581 [ -d $(TARGET_SUBDIR)/gperf ] || \
6582 mkdir $(TARGET_SUBDIR)/gperf;\
4977bab6
ZW
6583 r=`${PWD}`; export r; \
6584 s=`cd $(srcdir); ${PWD}`; export s; \
6585 $(SET_LIB_PATH) \
6586 AR="$(AR_FOR_TARGET)"; export AR; \
6587 AS="$(AS_FOR_TARGET)"; export AS; \
6588 CC="$(CC_FOR_TARGET)"; export CC; \
6589 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
6590 CXX="$(CXX_FOR_TARGET)"; export CXX; \
6591 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
6592 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
6593 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
6594 LD="$(LD_FOR_TARGET)"; export LD; \
6595 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
6596 NM="$(NM_FOR_TARGET)"; export NM; \
6597 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
6598 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
6599 echo Configuring in $(TARGET_SUBDIR)/gperf; \
6600 cd "$(TARGET_SUBDIR)/gperf" || exit 1; \
6601 case $(srcdir) in \
6602 /* | [A-Za-z]:[\\/]*) \
6603 topdir=$(srcdir) ;; \
6604 *) \
6605 case "$(TARGET_SUBDIR)" in \
6606 .) topdir="../$(srcdir)" ;; \
6607 *) topdir="../../$(srcdir)" ;; \
6608 esac ;; \
6609 esac; \
6610 if [ "$(srcdir)" = "." ] ; then \
6611 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
6612 if $(SHELL) $$s/symlink-tree $${topdir}/gperf "no-such-file" ; then \
6613 if [ -f Makefile ]; then \
6614 if $(MAKE) distclean; then \
6615 true; \
6616 else \
6617 exit 1; \
6618 fi; \
6619 else \
6620 true; \
6621 fi; \
6622 else \
6623 exit 1; \
6624 fi; \
6625 else \
6626 true; \
6627 fi; \
6628 srcdiroption="--srcdir=."; \
6629 libsrcdir="."; \
6630 else \
6631 srcdiroption="--srcdir=$${topdir}/gperf"; \
6632 libsrcdir="$$s/gperf"; \
6633 fi; \
6634 rm -f no-such-file || : ; \
6635 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
6636 $(TARGET_CONFIGARGS) $${srcdiroption} \
6637 --with-target-subdir="$(TARGET_SUBDIR)" \
6638 || exit 1
6639
6640.PHONY: all-target-gperf maybe-all-target-gperf
6641maybe-all-target-gperf:
6642all-target-gperf: configure-target-gperf
6643 @r=`${PWD}`; export r; \
6644 s=`cd $(srcdir); ${PWD}`; export s; \
6645 $(SET_LIB_PATH) \
88b5521b 6646 (cd $(TARGET_SUBDIR)/gperf && \
4977bab6
ZW
6647 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
6648
6649.PHONY: check-target-gperf
6650check-target-gperf:
6651 @r=`${PWD}`; export r; \
6652 s=`cd $(srcdir); ${PWD}`; export s; \
6653 $(SET_LIB_PATH) \
88b5521b 6654 (cd $(TARGET_SUBDIR)/gperf && \
4977bab6
ZW
6655 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
6656
6657
6658.PHONY: install-target-gperf maybe-install-target-gperf
6659maybe-install-target-gperf:
6660install-target-gperf: installdirs
6661 @r=`${PWD}`; export r; \
6662 s=`cd $(srcdir); ${PWD}`; export s; \
6663 $(SET_LIB_PATH) \
88b5521b 6664 (cd $(TARGET_SUBDIR)/gperf && \
4977bab6
ZW
6665 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6666
6667
6668.PHONY: configure-target-examples maybe-configure-target-examples
6669maybe-configure-target-examples:
4977bab6 6670
88b5521b
NN
6671# There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
6672$(TARGET_SUBDIR)/examples/multilib.out: multilib.out
ade82b16
AO
6673 @[ -d $(TARGET_SUBDIR)/examples ] || \
6674 mkdir $(TARGET_SUBDIR)/examples; \
6675 rm -f $(TARGET_SUBDIR)/examples/Makefile || : ; \
88b5521b 6676 cp multilib.out $(TARGET_SUBDIR)/examples/multilib.out
4977bab6 6677
ade82b16
AO
6678configure-target-examples: $(TARGET_SUBDIR)/examples/multilib.out
6679 @test ! -f $(TARGET_SUBDIR)/examples/Makefile || exit 0; \
6680 [ -d $(TARGET_SUBDIR)/examples ] || \
6681 mkdir $(TARGET_SUBDIR)/examples;\
4977bab6
ZW
6682 r=`${PWD}`; export r; \
6683 s=`cd $(srcdir); ${PWD}`; export s; \
6684 $(SET_LIB_PATH) \
6685 AR="$(AR_FOR_TARGET)"; export AR; \
6686 AS="$(AS_FOR_TARGET)"; export AS; \
6687 CC="$(CC_FOR_TARGET)"; export CC; \
6688 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
6689 CXX="$(CXX_FOR_TARGET)"; export CXX; \
6690 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
6691 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
6692 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
6693 LD="$(LD_FOR_TARGET)"; export LD; \
6694 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
6695 NM="$(NM_FOR_TARGET)"; export NM; \
6696 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
6697 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
6698 echo Configuring in $(TARGET_SUBDIR)/examples; \
6699 cd "$(TARGET_SUBDIR)/examples" || exit 1; \
6700 case $(srcdir) in \
6701 /* | [A-Za-z]:[\\/]*) \
6702 topdir=$(srcdir) ;; \
6703 *) \
6704 case "$(TARGET_SUBDIR)" in \
6705 .) topdir="../$(srcdir)" ;; \
6706 *) topdir="../../$(srcdir)" ;; \
6707 esac ;; \
6708 esac; \
6709 if [ "$(srcdir)" = "." ] ; then \
6710 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
6711 if $(SHELL) $$s/symlink-tree $${topdir}/examples "no-such-file" ; then \
6712 if [ -f Makefile ]; then \
6713 if $(MAKE) distclean; then \
6714 true; \
6715 else \
6716 exit 1; \
6717 fi; \
6718 else \
6719 true; \
6720 fi; \
6721 else \
6722 exit 1; \
6723 fi; \
6724 else \
6725 true; \
6726 fi; \
6727 srcdiroption="--srcdir=."; \
6728 libsrcdir="."; \
6729 else \
6730 srcdiroption="--srcdir=$${topdir}/examples"; \
6731 libsrcdir="$$s/examples"; \
6732 fi; \
6733 rm -f no-such-file || : ; \
6734 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
6735 $(TARGET_CONFIGARGS) $${srcdiroption} \
6736 --with-target-subdir="$(TARGET_SUBDIR)" \
6737 || exit 1
6738
6739.PHONY: all-target-examples maybe-all-target-examples
6740maybe-all-target-examples:
6741all-target-examples: configure-target-examples
6742 @r=`${PWD}`; export r; \
6743 s=`cd $(srcdir); ${PWD}`; export s; \
6744 $(SET_LIB_PATH) \
88b5521b 6745 (cd $(TARGET_SUBDIR)/examples && \
4977bab6
ZW
6746 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
6747
6748# Dummy target for uncheckable module.
6749.PHONY: check-target-examples
6750check-target-examples:
6751
6752
6753.PHONY: install-target-examples maybe-install-target-examples
6754maybe-install-target-examples:
6755# Dummy target for uninstallable.
6756install-target-examples:
6757
6758
6759.PHONY: configure-target-libffi maybe-configure-target-libffi
6760maybe-configure-target-libffi:
4977bab6 6761
88b5521b
NN
6762# There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
6763$(TARGET_SUBDIR)/libffi/multilib.out: multilib.out
ade82b16
AO
6764 @[ -d $(TARGET_SUBDIR)/libffi ] || \
6765 mkdir $(TARGET_SUBDIR)/libffi; \
6766 rm -f $(TARGET_SUBDIR)/libffi/Makefile || : ; \
88b5521b 6767 cp multilib.out $(TARGET_SUBDIR)/libffi/multilib.out
4977bab6 6768
ade82b16
AO
6769configure-target-libffi: $(TARGET_SUBDIR)/libffi/multilib.out
6770 @test ! -f $(TARGET_SUBDIR)/libffi/Makefile || exit 0; \
6771 [ -d $(TARGET_SUBDIR)/libffi ] || \
6772 mkdir $(TARGET_SUBDIR)/libffi;\
4977bab6
ZW
6773 r=`${PWD}`; export r; \
6774 s=`cd $(srcdir); ${PWD}`; export s; \
6775 $(SET_LIB_PATH) \
6776 AR="$(AR_FOR_TARGET)"; export AR; \
6777 AS="$(AS_FOR_TARGET)"; export AS; \
6778 CC="$(CC_FOR_TARGET)"; export CC; \
6779 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
6780 CXX="$(CXX_FOR_TARGET)"; export CXX; \
6781 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
6782 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
6783 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
6784 LD="$(LD_FOR_TARGET)"; export LD; \
6785 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
6786 NM="$(NM_FOR_TARGET)"; export NM; \
6787 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
6788 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
6789 echo Configuring in $(TARGET_SUBDIR)/libffi; \
6790 cd "$(TARGET_SUBDIR)/libffi" || exit 1; \
6791 case $(srcdir) in \
6792 /* | [A-Za-z]:[\\/]*) \
6793 topdir=$(srcdir) ;; \
6794 *) \
6795 case "$(TARGET_SUBDIR)" in \
6796 .) topdir="../$(srcdir)" ;; \
6797 *) topdir="../../$(srcdir)" ;; \
6798 esac ;; \
6799 esac; \
6800 if [ "$(srcdir)" = "." ] ; then \
6801 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
6802 if $(SHELL) $$s/symlink-tree $${topdir}/libffi "no-such-file" ; then \
6803 if [ -f Makefile ]; then \
6804 if $(MAKE) distclean; then \
6805 true; \
6806 else \
6807 exit 1; \
6808 fi; \
6809 else \
6810 true; \
6811 fi; \
6812 else \
6813 exit 1; \
6814 fi; \
6815 else \
6816 true; \
6817 fi; \
6818 srcdiroption="--srcdir=."; \
6819 libsrcdir="."; \
6820 else \
6821 srcdiroption="--srcdir=$${topdir}/libffi"; \
6822 libsrcdir="$$s/libffi"; \
6823 fi; \
6824 rm -f no-such-file || : ; \
6825 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
6826 $(TARGET_CONFIGARGS) $${srcdiroption} \
6827 --with-target-subdir="$(TARGET_SUBDIR)" \
6828 || exit 1
6829
6830.PHONY: all-target-libffi maybe-all-target-libffi
6831maybe-all-target-libffi:
6832all-target-libffi: configure-target-libffi
6833 @r=`${PWD}`; export r; \
6834 s=`cd $(srcdir); ${PWD}`; export s; \
6835 $(SET_LIB_PATH) \
88b5521b 6836 (cd $(TARGET_SUBDIR)/libffi && \
4977bab6
ZW
6837 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
6838
6839.PHONY: check-target-libffi
6840check-target-libffi:
6841 @r=`${PWD}`; export r; \
6842 s=`cd $(srcdir); ${PWD}`; export s; \
6843 $(SET_LIB_PATH) \
88b5521b 6844 (cd $(TARGET_SUBDIR)/libffi && \
4977bab6
ZW
6845 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
6846
6847
6848.PHONY: install-target-libffi maybe-install-target-libffi
6849maybe-install-target-libffi:
89a7012a
TT
6850install-target-libffi: installdirs
6851 @r=`${PWD}`; export r; \
6852 s=`cd $(srcdir); ${PWD}`; export s; \
6853 $(SET_LIB_PATH) \
6854 (cd $(TARGET_SUBDIR)/libffi && \
6855 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4977bab6
ZW
6856
6857
6858.PHONY: configure-target-libjava maybe-configure-target-libjava
6859maybe-configure-target-libjava:
4977bab6 6860
88b5521b
NN
6861# There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
6862$(TARGET_SUBDIR)/libjava/multilib.out: multilib.out
ade82b16
AO
6863 @[ -d $(TARGET_SUBDIR)/libjava ] || \
6864 mkdir $(TARGET_SUBDIR)/libjava; \
6865 rm -f $(TARGET_SUBDIR)/libjava/Makefile || : ; \
88b5521b 6866 cp multilib.out $(TARGET_SUBDIR)/libjava/multilib.out
4977bab6 6867
ade82b16
AO
6868configure-target-libjava: $(TARGET_SUBDIR)/libjava/multilib.out
6869 @test ! -f $(TARGET_SUBDIR)/libjava/Makefile || exit 0; \
6870 [ -d $(TARGET_SUBDIR)/libjava ] || \
6871 mkdir $(TARGET_SUBDIR)/libjava;\
4977bab6
ZW
6872 r=`${PWD}`; export r; \
6873 s=`cd $(srcdir); ${PWD}`; export s; \
6874 $(SET_LIB_PATH) \
6875 AR="$(AR_FOR_TARGET)"; export AR; \
6876 AS="$(AS_FOR_TARGET)"; export AS; \
6877 CC="$(CC_FOR_TARGET)"; export CC; \
6878 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
6879 CXX_FOR_TARGET="$(RAW_CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \
6880 CXX="$(RAW_CXX_FOR_TARGET)"; export CXX; \
6881 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
6882 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
6883 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
6884 LD="$(LD_FOR_TARGET)"; export LD; \
6885 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
6886 NM="$(NM_FOR_TARGET)"; export NM; \
6887 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
6888 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
6889 echo Configuring in $(TARGET_SUBDIR)/libjava; \
6890 cd "$(TARGET_SUBDIR)/libjava" || exit 1; \
6891 case $(srcdir) in \
6892 /* | [A-Za-z]:[\\/]*) \
6893 topdir=$(srcdir) ;; \
6894 *) \
6895 case "$(TARGET_SUBDIR)" in \
6896 .) topdir="../$(srcdir)" ;; \
6897 *) topdir="../../$(srcdir)" ;; \
6898 esac ;; \
6899 esac; \
6900 if [ "$(srcdir)" = "." ] ; then \
6901 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
6902 if $(SHELL) $$s/symlink-tree $${topdir}/libjava "no-such-file" ; then \
6903 if [ -f Makefile ]; then \
6904 if $(MAKE) distclean; then \
6905 true; \
6906 else \
6907 exit 1; \
6908 fi; \
6909 else \
6910 true; \
6911 fi; \
6912 else \
6913 exit 1; \
6914 fi; \
6915 else \
6916 true; \
6917 fi; \
6918 srcdiroption="--srcdir=."; \
6919 libsrcdir="."; \
6920 else \
6921 srcdiroption="--srcdir=$${topdir}/libjava"; \
6922 libsrcdir="$$s/libjava"; \
6923 fi; \
6924 rm -f no-such-file || : ; \
6925 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
6926 $(TARGET_CONFIGARGS) $${srcdiroption} \
6927 --with-target-subdir="$(TARGET_SUBDIR)" \
6928 || exit 1
6929
6930.PHONY: all-target-libjava maybe-all-target-libjava
6931maybe-all-target-libjava:
6932all-target-libjava: configure-target-libjava
6933 @r=`${PWD}`; export r; \
6934 s=`cd $(srcdir); ${PWD}`; export s; \
6935 $(SET_LIB_PATH) \
88b5521b 6936 (cd $(TARGET_SUBDIR)/libjava && \
4977bab6
ZW
6937 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' all)
6938
6939.PHONY: check-target-libjava
6940check-target-libjava:
6941 @r=`${PWD}`; export r; \
6942 s=`cd $(srcdir); ${PWD}`; export s; \
6943 $(SET_LIB_PATH) \
88b5521b 6944 (cd $(TARGET_SUBDIR)/libjava && \
4977bab6
ZW
6945 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
6946
6947
6948.PHONY: install-target-libjava maybe-install-target-libjava
6949maybe-install-target-libjava:
6950install-target-libjava: installdirs
6951 @r=`${PWD}`; export r; \
6952 s=`cd $(srcdir); ${PWD}`; export s; \
6953 $(SET_LIB_PATH) \
88b5521b 6954 (cd $(TARGET_SUBDIR)/libjava && \
4977bab6
ZW
6955 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6956
6957
6958.PHONY: configure-target-zlib maybe-configure-target-zlib
6959maybe-configure-target-zlib:
4977bab6 6960
88b5521b
NN
6961# There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
6962$(TARGET_SUBDIR)/zlib/multilib.out: multilib.out
ade82b16
AO
6963 @[ -d $(TARGET_SUBDIR)/zlib ] || \
6964 mkdir $(TARGET_SUBDIR)/zlib; \
6965 rm -f $(TARGET_SUBDIR)/zlib/Makefile || : ; \
88b5521b 6966 cp multilib.out $(TARGET_SUBDIR)/zlib/multilib.out
4977bab6 6967
ade82b16
AO
6968configure-target-zlib: $(TARGET_SUBDIR)/zlib/multilib.out
6969 @test ! -f $(TARGET_SUBDIR)/zlib/Makefile || exit 0; \
6970 [ -d $(TARGET_SUBDIR)/zlib ] || \
6971 mkdir $(TARGET_SUBDIR)/zlib;\
4977bab6
ZW
6972 r=`${PWD}`; export r; \
6973 s=`cd $(srcdir); ${PWD}`; export s; \
6974 $(SET_LIB_PATH) \
6975 AR="$(AR_FOR_TARGET)"; export AR; \
6976 AS="$(AS_FOR_TARGET)"; export AS; \
6977 CC="$(CC_FOR_TARGET)"; export CC; \
6978 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
6979 CXX="$(CXX_FOR_TARGET)"; export CXX; \
6980 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
6981 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
6982 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
6983 LD="$(LD_FOR_TARGET)"; export LD; \
6984 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
6985 NM="$(NM_FOR_TARGET)"; export NM; \
6986 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
6987 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
6988 echo Configuring in $(TARGET_SUBDIR)/zlib; \
6989 cd "$(TARGET_SUBDIR)/zlib" || exit 1; \
6990 case $(srcdir) in \
6991 /* | [A-Za-z]:[\\/]*) \
6992 topdir=$(srcdir) ;; \
6993 *) \
6994 case "$(TARGET_SUBDIR)" in \
6995 .) topdir="../$(srcdir)" ;; \
6996 *) topdir="../../$(srcdir)" ;; \
6997 esac ;; \
6998 esac; \
6999 if [ "$(srcdir)" = "." ] ; then \
7000 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
7001 if $(SHELL) $$s/symlink-tree $${topdir}/zlib "no-such-file" ; then \
7002 if [ -f Makefile ]; then \
7003 if $(MAKE) distclean; then \
7004 true; \
7005 else \
7006 exit 1; \
7007 fi; \
7008 else \
7009 true; \
7010 fi; \
7011 else \
7012 exit 1; \
7013 fi; \
7014 else \
7015 true; \
7016 fi; \
7017 srcdiroption="--srcdir=."; \
7018 libsrcdir="."; \
7019 else \
7020 srcdiroption="--srcdir=$${topdir}/zlib"; \
7021 libsrcdir="$$s/zlib"; \
7022 fi; \
7023 rm -f no-such-file || : ; \
7024 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
7025 $(TARGET_CONFIGARGS) $${srcdiroption} \
7026 --with-target-subdir="$(TARGET_SUBDIR)" \
7027 || exit 1
7028
7029.PHONY: all-target-zlib maybe-all-target-zlib
7030maybe-all-target-zlib:
7031all-target-zlib: configure-target-zlib
7032 @r=`${PWD}`; export r; \
7033 s=`cd $(srcdir); ${PWD}`; export s; \
7034 $(SET_LIB_PATH) \
88b5521b 7035 (cd $(TARGET_SUBDIR)/zlib && \
4977bab6
ZW
7036 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
7037
7038.PHONY: check-target-zlib
7039check-target-zlib:
7040 @r=`${PWD}`; export r; \
7041 s=`cd $(srcdir); ${PWD}`; export s; \
7042 $(SET_LIB_PATH) \
88b5521b 7043 (cd $(TARGET_SUBDIR)/zlib && \
4977bab6
ZW
7044 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
7045
7046
7047.PHONY: install-target-zlib maybe-install-target-zlib
7048maybe-install-target-zlib:
7049install-target-zlib: installdirs
7050 @r=`${PWD}`; export r; \
7051 s=`cd $(srcdir); ${PWD}`; export s; \
7052 $(SET_LIB_PATH) \
88b5521b 7053 (cd $(TARGET_SUBDIR)/zlib && \
4977bab6
ZW
7054 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
7055
7056
7057.PHONY: configure-target-boehm-gc maybe-configure-target-boehm-gc
7058maybe-configure-target-boehm-gc:
4977bab6 7059
88b5521b
NN
7060# There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
7061$(TARGET_SUBDIR)/boehm-gc/multilib.out: multilib.out
ade82b16
AO
7062 @[ -d $(TARGET_SUBDIR)/boehm-gc ] || \
7063 mkdir $(TARGET_SUBDIR)/boehm-gc; \
7064 rm -f $(TARGET_SUBDIR)/boehm-gc/Makefile || : ; \
88b5521b 7065 cp multilib.out $(TARGET_SUBDIR)/boehm-gc/multilib.out
4977bab6 7066
ade82b16
AO
7067configure-target-boehm-gc: $(TARGET_SUBDIR)/boehm-gc/multilib.out
7068 @test ! -f $(TARGET_SUBDIR)/boehm-gc/Makefile || exit 0; \
7069 [ -d $(TARGET_SUBDIR)/boehm-gc ] || \
7070 mkdir $(TARGET_SUBDIR)/boehm-gc;\
4977bab6
ZW
7071 r=`${PWD}`; export r; \
7072 s=`cd $(srcdir); ${PWD}`; export s; \
7073 $(SET_LIB_PATH) \
7074 AR="$(AR_FOR_TARGET)"; export AR; \
7075 AS="$(AS_FOR_TARGET)"; export AS; \
7076 CC="$(CC_FOR_TARGET)"; export CC; \
7077 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
7078 CXX="$(CXX_FOR_TARGET)"; export CXX; \
7079 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
7080 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
7081 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
7082 LD="$(LD_FOR_TARGET)"; export LD; \
7083 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
7084 NM="$(NM_FOR_TARGET)"; export NM; \
7085 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
7086 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
7087 echo Configuring in $(TARGET_SUBDIR)/boehm-gc; \
7088 cd "$(TARGET_SUBDIR)/boehm-gc" || exit 1; \
7089 case $(srcdir) in \
7090 /* | [A-Za-z]:[\\/]*) \
7091 topdir=$(srcdir) ;; \
7092 *) \
7093 case "$(TARGET_SUBDIR)" in \
7094 .) topdir="../$(srcdir)" ;; \
7095 *) topdir="../../$(srcdir)" ;; \
7096 esac ;; \
7097 esac; \
7098 if [ "$(srcdir)" = "." ] ; then \
7099 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
7100 if $(SHELL) $$s/symlink-tree $${topdir}/boehm-gc "no-such-file" ; then \
7101 if [ -f Makefile ]; then \
7102 if $(MAKE) distclean; then \
7103 true; \
7104 else \
7105 exit 1; \
7106 fi; \
7107 else \
7108 true; \
7109 fi; \
7110 else \
7111 exit 1; \
7112 fi; \
7113 else \
7114 true; \
7115 fi; \
7116 srcdiroption="--srcdir=."; \
7117 libsrcdir="."; \
7118 else \
7119 srcdiroption="--srcdir=$${topdir}/boehm-gc"; \
7120 libsrcdir="$$s/boehm-gc"; \
7121 fi; \
7122 rm -f no-such-file || : ; \
7123 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
7124 $(TARGET_CONFIGARGS) $${srcdiroption} \
7125 --with-target-subdir="$(TARGET_SUBDIR)" \
7126 || exit 1
7127
7128.PHONY: all-target-boehm-gc maybe-all-target-boehm-gc
7129maybe-all-target-boehm-gc:
7130all-target-boehm-gc: configure-target-boehm-gc
7131 @r=`${PWD}`; export r; \
7132 s=`cd $(srcdir); ${PWD}`; export s; \
7133 $(SET_LIB_PATH) \
88b5521b 7134 (cd $(TARGET_SUBDIR)/boehm-gc && \
4977bab6
ZW
7135 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
7136
7137.PHONY: check-target-boehm-gc
7138check-target-boehm-gc:
7139 @r=`${PWD}`; export r; \
7140 s=`cd $(srcdir); ${PWD}`; export s; \
7141 $(SET_LIB_PATH) \
88b5521b 7142 (cd $(TARGET_SUBDIR)/boehm-gc && \
4977bab6 7143 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
6599da04 7144
4977bab6
ZW
7145
7146.PHONY: install-target-boehm-gc maybe-install-target-boehm-gc
7147maybe-install-target-boehm-gc:
7148install-target-boehm-gc: installdirs
7149 @r=`${PWD}`; export r; \
1e6347d8 7150 s=`cd $(srcdir); ${PWD}`; export s; \
4977bab6 7151 $(SET_LIB_PATH) \
88b5521b 7152 (cd $(TARGET_SUBDIR)/boehm-gc && \
4977bab6 7153 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e490616e 7154
4977bab6
ZW
7155
7156.PHONY: configure-target-qthreads maybe-configure-target-qthreads
7157maybe-configure-target-qthreads:
4977bab6 7158
88b5521b
NN
7159# There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
7160$(TARGET_SUBDIR)/qthreads/multilib.out: multilib.out
ade82b16
AO
7161 @[ -d $(TARGET_SUBDIR)/qthreads ] || \
7162 mkdir $(TARGET_SUBDIR)/qthreads; \
7163 rm -f $(TARGET_SUBDIR)/qthreads/Makefile || : ; \
88b5521b 7164 cp multilib.out $(TARGET_SUBDIR)/qthreads/multilib.out
4977bab6 7165
ade82b16
AO
7166configure-target-qthreads: $(TARGET_SUBDIR)/qthreads/multilib.out
7167 @test ! -f $(TARGET_SUBDIR)/qthreads/Makefile || exit 0; \
7168 [ -d $(TARGET_SUBDIR)/qthreads ] || \
7169 mkdir $(TARGET_SUBDIR)/qthreads;\
1e6347d8
RO
7170 r=`${PWD}`; export r; \
7171 s=`cd $(srcdir); ${PWD}`; export s; \
4977bab6
ZW
7172 $(SET_LIB_PATH) \
7173 AR="$(AR_FOR_TARGET)"; export AR; \
7174 AS="$(AS_FOR_TARGET)"; export AS; \
7175 CC="$(CC_FOR_TARGET)"; export CC; \
7176 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
7177 CXX="$(CXX_FOR_TARGET)"; export CXX; \
7178 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
7179 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
7180 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
7181 LD="$(LD_FOR_TARGET)"; export LD; \
7182 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
7183 NM="$(NM_FOR_TARGET)"; export NM; \
7184 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
7185 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
7186 echo Configuring in $(TARGET_SUBDIR)/qthreads; \
7187 cd "$(TARGET_SUBDIR)/qthreads" || exit 1; \
e490616e
ZW
7188 case $(srcdir) in \
7189 /* | [A-Za-z]:[\\/]*) \
7190 topdir=$(srcdir) ;; \
7191 *) \
4977bab6 7192 case "$(TARGET_SUBDIR)" in \
e490616e
ZW
7193 .) topdir="../$(srcdir)" ;; \
7194 *) topdir="../../$(srcdir)" ;; \
7195 esac ;; \
7196 esac; \
7197 if [ "$(srcdir)" = "." ] ; then \
4977bab6
ZW
7198 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
7199 if $(SHELL) $$s/symlink-tree $${topdir}/qthreads "no-such-file" ; then \
e490616e
ZW
7200 if [ -f Makefile ]; then \
7201 if $(MAKE) distclean; then \
7202 true; \
7203 else \
7204 exit 1; \
7205 fi; \
7206 else \
7207 true; \
7208 fi; \
7209 else \
7210 exit 1; \
7211 fi; \
7212 else \
7213 true; \
7214 fi; \
7215 srcdiroption="--srcdir=."; \
7216 libsrcdir="."; \
7217 else \
4977bab6
ZW
7218 srcdiroption="--srcdir=$${topdir}/qthreads"; \
7219 libsrcdir="$$s/qthreads"; \
e490616e 7220 fi; \
4977bab6
ZW
7221 rm -f no-such-file || : ; \
7222 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
7223 $(TARGET_CONFIGARGS) $${srcdiroption} \
7224 --with-target-subdir="$(TARGET_SUBDIR)" \
7225 || exit 1
7226
7227.PHONY: all-target-qthreads maybe-all-target-qthreads
7228maybe-all-target-qthreads:
7229all-target-qthreads: configure-target-qthreads
7230 @r=`${PWD}`; export r; \
1e6347d8 7231 s=`cd $(srcdir); ${PWD}`; export s; \
6599da04 7232 $(SET_LIB_PATH) \
88b5521b 7233 (cd $(TARGET_SUBDIR)/qthreads && \
4977bab6 7234 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
6599da04 7235
4977bab6
ZW
7236.PHONY: check-target-qthreads
7237check-target-qthreads:
7238 @r=`${PWD}`; export r; \
1e6347d8 7239 s=`cd $(srcdir); ${PWD}`; export s; \
6599da04 7240 $(SET_LIB_PATH) \
88b5521b 7241 (cd $(TARGET_SUBDIR)/qthreads && \
4977bab6 7242 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
6599da04 7243
4977bab6
ZW
7244
7245.PHONY: install-target-qthreads maybe-install-target-qthreads
7246maybe-install-target-qthreads:
7247install-target-qthreads: installdirs
7248 @r=`${PWD}`; export r; \
1e6347d8 7249 s=`cd $(srcdir); ${PWD}`; export s; \
6599da04 7250 $(SET_LIB_PATH) \
88b5521b 7251 (cd $(TARGET_SUBDIR)/qthreads && \
4977bab6 7252 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6599da04 7253
4977bab6
ZW
7254
7255.PHONY: configure-target-rda maybe-configure-target-rda
7256maybe-configure-target-rda:
4977bab6 7257
88b5521b
NN
7258# There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
7259$(TARGET_SUBDIR)/rda/multilib.out: multilib.out
ade82b16
AO
7260 @[ -d $(TARGET_SUBDIR)/rda ] || \
7261 mkdir $(TARGET_SUBDIR)/rda; \
7262 rm -f $(TARGET_SUBDIR)/rda/Makefile || : ; \
88b5521b 7263 cp multilib.out $(TARGET_SUBDIR)/rda/multilib.out
4977bab6 7264
ade82b16
AO
7265configure-target-rda: $(TARGET_SUBDIR)/rda/multilib.out
7266 @test ! -f $(TARGET_SUBDIR)/rda/Makefile || exit 0; \
7267 [ -d $(TARGET_SUBDIR)/rda ] || \
7268 mkdir $(TARGET_SUBDIR)/rda;\
1e6347d8
RO
7269 r=`${PWD}`; export r; \
7270 s=`cd $(srcdir); ${PWD}`; export s; \
6599da04
JM
7271 $(SET_LIB_PATH) \
7272 AR="$(AR_FOR_TARGET)"; export AR; \
7273 AS="$(AS_FOR_TARGET)"; export AS; \
7274 CC="$(CC_FOR_TARGET)"; export CC; \
7275 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
7276 CXX="$(CXX_FOR_TARGET)"; export CXX; \
7277 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
85b99cbe 7278 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
6599da04
JM
7279 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
7280 LD="$(LD_FOR_TARGET)"; export LD; \
7281 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
7282 NM="$(NM_FOR_TARGET)"; export NM; \
7283 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
7284 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
4977bab6
ZW
7285 echo Configuring in $(TARGET_SUBDIR)/rda; \
7286 cd "$(TARGET_SUBDIR)/rda" || exit 1; \
6599da04 7287 case $(srcdir) in \
fc26516b 7288 /* | [A-Za-z]:[\\/]*) \
6599da04
JM
7289 topdir=$(srcdir) ;; \
7290 *) \
7291 case "$(TARGET_SUBDIR)" in \
7292 .) topdir="../$(srcdir)" ;; \
7293 *) topdir="../../$(srcdir)" ;; \
7294 esac ;; \
7295 esac; \
7296 if [ "$(srcdir)" = "." ] ; then \
7297 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
4977bab6 7298 if $(SHELL) $$s/symlink-tree $${topdir}/rda "no-such-file" ; then \
6599da04
JM
7299 if [ -f Makefile ]; then \
7300 if $(MAKE) distclean; then \
7301 true; \
7302 else \
7303 exit 1; \
7304 fi; \
7305 else \
7306 true; \
7307 fi; \
7308 else \
7309 exit 1; \
7310 fi; \
7311 else \
7312 true; \
7313 fi; \
7314 srcdiroption="--srcdir=."; \
7315 libsrcdir="."; \
7316 else \
4977bab6
ZW
7317 srcdiroption="--srcdir=$${topdir}/rda"; \
7318 libsrcdir="$$s/rda"; \
71205e0b 7319 fi; \
4977bab6
ZW
7320 rm -f no-such-file || : ; \
7321 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
7322 $(TARGET_CONFIGARGS) $${srcdiroption} \
7323 --with-target-subdir="$(TARGET_SUBDIR)" \
7324 || exit 1
7325
7326.PHONY: all-target-rda maybe-all-target-rda
7327maybe-all-target-rda:
7328all-target-rda: configure-target-rda
7329 @r=`${PWD}`; export r; \
1e6347d8 7330 s=`cd $(srcdir); ${PWD}`; export s; \
6599da04 7331 $(SET_LIB_PATH) \
88b5521b 7332 (cd $(TARGET_SUBDIR)/rda && \
4977bab6 7333 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
6599da04 7334
4977bab6
ZW
7335.PHONY: check-target-rda
7336check-target-rda:
7337 @r=`${PWD}`; export r; \
1e6347d8 7338 s=`cd $(srcdir); ${PWD}`; export s; \
6599da04 7339 $(SET_LIB_PATH) \
88b5521b 7340 (cd $(TARGET_SUBDIR)/rda && \
4977bab6 7341 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
6599da04 7342
6599da04 7343
4977bab6
ZW
7344.PHONY: install-target-rda maybe-install-target-rda
7345maybe-install-target-rda:
7346install-target-rda: installdirs
7347 @r=`${PWD}`; export r; \
1e6347d8 7348 s=`cd $(srcdir); ${PWD}`; export s; \
6599da04 7349 $(SET_LIB_PATH) \
88b5521b 7350 (cd $(TARGET_SUBDIR)/rda && \
4977bab6 7351 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6599da04 7352
6599da04 7353
4977bab6
ZW
7354
7355# ----------
7356# GCC module
7357# ----------
7358
7359# Unfortunately, while gcc _should_ be a host module,
7360# libgcc is a target module, and gen* programs are
7361# build modules. So GCC is a sort of hybrid.
6599da04
JM
7362
7363# gcc is the only module which uses GCC_FLAGS_TO_PASS.
4977bab6
ZW
7364.PHONY: configure-gcc maybe-configure-gcc
7365maybe-configure-gcc:
ade82b16
AO
7366configure-gcc:
7367 @test ! -f gcc/Makefile || exit 0; \
7368 [ -d gcc ] || mkdir gcc; \
4977bab6
ZW
7369 r=`${PWD}`; export r; \
7370 s=`cd $(srcdir); ${PWD}`; export s; \
7371 CC="$(CC)"; export CC; \
7372 CFLAGS="$(CFLAGS)"; export CFLAGS; \
7373 CXX="$(CXX)"; export CXX; \
7374 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3dfabf63 7375 TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \
4977bab6
ZW
7376 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
7377 AR="$(AR)"; export AR; \
7378 AS="$(AS)"; export AS; \
7379 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
7380 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
7381 LD="$(LD)"; export LD; \
7382 NM="$(NM)"; export NM; \
7383 RANLIB="$(RANLIB)"; export RANLIB; \
7384 WINDRES="$(WINDRES)"; export WINDRES; \
7385 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
7386 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
7387 fi; \
7388 echo Configuring in gcc; \
7389 cd gcc || exit 1; \
7390 case $(srcdir) in \
7391 \.) \
7392 srcdiroption="--srcdir=."; \
7393 libsrcdir=".";; \
7394 /* | [A-Za-z]:[\\/]*) \
7395 srcdiroption="--srcdir=$(srcdir)/gcc"; \
7396 libsrcdir="$$s/gcc";; \
7397 *) \
7398 srcdiroption="--srcdir=../$(srcdir)/gcc"; \
7399 libsrcdir="$$s/gcc";; \
7400 esac; \
7401 $(SHELL) $${libsrcdir}/configure \
7402 $(HOST_CONFIGARGS) $${srcdiroption} \
7403 || exit 1
7404
5ecf91d1
JM
7405# Don't 'make all' in gcc if it's already been made by 'bootstrap'; that
7406# causes trouble. This wart will be fixed eventually by moving
4977bab6
ZW
7407# the bootstrap behavior to this file.
7408.PHONY: all-gcc maybe-all-gcc
7409maybe-all-gcc:
7410all-gcc: configure-gcc
5ecf91d1
JM
7411 @if [ -f gcc/stage_last ] ; then \
7412 r=`${PWD}`; export r; \
7413 s=`cd $(srcdir); ${PWD}`; export s; \
7414 $(SET_LIB_PATH) \
88b5521b 7415 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) quickstrap); \
4977bab6 7416 else \
1e6347d8
RO
7417 r=`${PWD}`; export r; \
7418 s=`cd $(srcdir); ${PWD}`; export s; \
6599da04 7419 $(SET_LIB_PATH) \
88b5521b 7420 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) all); \
6599da04
JM
7421 fi
7422
ec20b1b9
JL
7423# Building GCC uses some tools for rebuilding "source" files
7424# like texinfo, bison/byacc, etc. So we must depend on those.
7425#
7426# While building GCC, it may be necessary to run various target
7427# programs like the assembler, linker, etc. So we depend on
7428# those too.
7429#
7430# In theory, on an SMP all those dependencies can be resolved
7431# in parallel.
7432#
e004b81f 7433.PHONY: bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean bubblestrap quickstrap cleanstrap restrap
4977bab6 7434bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean bubblestrap quickstrap cleanstrap restrap: all-bootstrap configure-gcc
1e6347d8
RO
7435 @r=`${PWD}`; export r; \
7436 s=`cd $(srcdir); ${PWD}`; export s; \
ec20b1b9 7437 $(SET_LIB_PATH) \
339c9b00 7438 echo "Bootstrapping the compiler"; \
3a4fee66 7439 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $@
1e6347d8
RO
7440 @r=`${PWD}`; export r; \
7441 s=`cd $(srcdir); ${PWD}`; export s; \
cc71c0ca 7442 case "$@" in \
f0983958
AO
7443 *bootstrap4-lean ) \
7444 msg="Comparing stage3 and stage4 of the compiler"; \
7445 compare=compare3-lean ;; \
cc71c0ca
MH
7446 *bootstrap4 ) msg="Comparing stage3 and stage4 of the compiler"; \
7447 compare=compare3 ;; \
7448 *-lean ) msg="Comparing stage2 and stage3 of the compiler"; \
7449 compare=compare-lean ;; \
7450 * ) msg="Comparing stage2 and stage3 of the compiler"; \
7451 compare=compare ;; \
7452 esac; \
ec20b1b9 7453 $(SET_LIB_PATH) \
cc71c0ca 7454 echo "$$msg"; \
3a4fee66 7455 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $$compare
1e6347d8
RO
7456 @r=`${PWD}`; export r; \
7457 s=`cd $(srcdir); ${PWD}` ; export s; \
f6b58262
JW
7458 $(SET_LIB_PATH) \
7459 echo "Building runtime libraries"; \
a3406c06 7460 $(MAKE) $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS) all
b1e3ddfd 7461
09f97c1e
JL
7462.PHONY: cross
7463cross: all-texinfo all-bison all-byacc all-binutils all-gas all-ld
1e6347d8
RO
7464 @r=`${PWD}`; export r; \
7465 s=`cd $(srcdir); ${PWD}`; export s; \
09f97c1e
JL
7466 $(SET_LIB_PATH) \
7467 echo "Building the C and C++ compiler"; \
3a4fee66 7468 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++"
1e6347d8
RO
7469 @r=`${PWD}`; export r; \
7470 s=`cd $(srcdir); ${PWD}` ; export s; \
f6b58262
JW
7471 $(SET_LIB_PATH) \
7472 echo "Building runtime libraries"; \
a3406c06
AO
7473 $(MAKE) $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS) \
7474 LANGUAGES="c c++" all
09f97c1e 7475
6599da04
JM
7476.PHONY: check-gcc
7477check-gcc:
7478 @if [ -f ./gcc/Makefile ] ; then \
1e6347d8
RO
7479 r=`${PWD}`; export r; \
7480 s=`cd $(srcdir); ${PWD}`; export s; \
6599da04 7481 $(SET_LIB_PATH) \
88b5521b 7482 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check); \
6599da04
JM
7483 else \
7484 true; \
7485 fi
7486
0edcfdcb
JM
7487.PHONY: check-gcc-c++
7488check-gcc-c++:
f04885d3 7489 @if [ -f ./gcc/Makefile ] ; then \
1e6347d8
RO
7490 r=`${PWD}`; export r; \
7491 s=`cd $(srcdir); ${PWD}`; export s; \
f04885d3 7492 $(SET_LIB_PATH) \
88b5521b 7493 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-c++); \
f04885d3
BK
7494 else \
7495 true; \
0edcfdcb
JM
7496 fi
7497
7498.PHONY: check-c++
7499check-c++: check-target-libstdc++-v3 check-gcc-c++
3d55d2f8 7500
4977bab6
ZW
7501.PHONY: install-gcc maybe-install-gcc
7502maybe-install-gcc:
6599da04
JM
7503install-gcc:
7504 @if [ -f ./gcc/Makefile ] ; then \
1e6347d8
RO
7505 r=`${PWD}`; export r; \
7506 s=`cd $(srcdir); ${PWD}`; export s; \
6599da04 7507 $(SET_LIB_PATH) \
88b5521b 7508 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
6599da04
JM
7509 else \
7510 true; \
7511 fi
7512
4977bab6
ZW
7513# Install the gcc headers files, but not the fixed include files,
7514# which Cygnus is not allowed to distribute. This rule is very
7515# dependent on the workings of the gcc Makefile.in.
7516.PHONY: gcc-no-fixedincludes
7517gcc-no-fixedincludes:
7518 @if [ -f ./gcc/Makefile ]; then \
7519 rm -rf gcc/tmp-include; \
7520 mv gcc/include gcc/tmp-include 2>/dev/null; \
7521 mkdir gcc/include; \
7522 cp $(srcdir)/gcc/gsyslimits.h gcc/include/syslimits.h; \
7523 touch gcc/stmp-fixinc gcc/include/fixed; \
7524 rm -f gcc/stmp-headers gcc/stmp-int-hdrs; \
1e6347d8 7525 r=`${PWD}`; export r; \
4977bab6 7526 s=`cd $(srcdir); ${PWD}` ; export s; \
6599da04 7527 $(SET_LIB_PATH) \
88b5521b 7528 (cd ./gcc && \
4977bab6
ZW
7529 $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
7530 rm -rf gcc/include; \
7531 mv gcc/tmp-include gcc/include 2>/dev/null; \
7532 else true; fi
6599da04 7533
4977bab6
ZW
7534# --------------------------------------
7535# Dependencies between different modules
7536# --------------------------------------
7537
7538# There are two types of dependencies here: 'hard' dependencies, where one
7539# module simply won't build without the other; and 'soft' dependencies, where
7540# if the depended-on module is missing, the depending module will do without
7541# or find a substitute somewhere (perhaps installed). Soft dependencies
7542# are specified by depending on a 'maybe-' target. If you're not sure,
7543# it's safer to use a soft dependency.
7544
7545# Host modules specific to gcc.
7546# GCC needs to identify certain tools.
7547configure-gcc: maybe-configure-binutils maybe-configure-gas maybe-configure-ld maybe-configure-bison maybe-configure-flex
7548all-gcc: maybe-all-libiberty maybe-all-bison maybe-all-byacc maybe-all-binutils maybe-all-gas maybe-all-ld maybe-all-zlib
7549# This is a slightly kludgy method of getting dependencies on
7550# all-build-libiberty correct; it would be better to build it every time.
7551all-gcc: maybe-all-build-libiberty
7552all-bootstrap: maybe-all-libiberty maybe-all-texinfo maybe-all-bison maybe-all-byacc maybe-all-binutils maybe-all-gas maybe-all-ld maybe-all-zlib
7553
7554# Host modules specific to gdb.
7555# GDB needs to know that the simulator is being built.
7556configure-gdb: maybe-configure-tcl maybe-configure-tk maybe-configure-sim
0dffceed 7557GDB_TK = @GDB_TK@
4977bab6
ZW
7558all-gdb: maybe-all-libiberty maybe-all-opcodes maybe-all-bfd maybe-all-mmalloc maybe-all-readline maybe-all-bison maybe-all-byacc maybe-all-sim $(gdbnlmrequirements) $(GDB_TK)
7559install-gdb: maybe-install-tcl maybe-install-tk maybe-install-itcl maybe-install-tix maybe-install-libgui
79308c5d 7560configure-libgui: maybe-configure-tcl maybe-configure-tk
4977bab6
ZW
7561all-libgui: maybe-all-tcl maybe-all-tk maybe-all-itcl
7562
7563# Host modules specific to binutils.
7564configure-bfd: configure-libiberty
7565all-bfd: maybe-all-libiberty maybe-all-intl
7566all-binutils: maybe-all-libiberty maybe-all-opcodes maybe-all-bfd maybe-all-flex maybe-all-bison maybe-all-byacc maybe-all-intl
f5e0c73c
NN
7567# We put install-opcodes before install-binutils because the installed
7568# binutils might be on PATH, and they might need the shared opcodes
7569# library.
4977bab6
ZW
7570install-binutils: maybe-install-opcodes
7571all-gas: maybe-all-libiberty maybe-all-opcodes maybe-all-bfd maybe-all-intl
7572all-gprof: maybe-all-libiberty maybe-all-bfd maybe-all-opcodes maybe-all-intl
7573all-ld: maybe-all-libiberty maybe-all-bfd maybe-all-opcodes maybe-all-bison maybe-all-byacc maybe-all-flex maybe-all-intl
7574all-opcodes: maybe-all-bfd maybe-all-libiberty
7575
7576# Other host modules in the 'src' repository.
7577all-dejagnu: maybe-all-tcl maybe-all-expect maybe-all-tk
7578configure-expect: maybe-configure-tcl maybe-configure-tk
7579all-expect: maybe-all-tcl maybe-all-tk
7580configure-itcl: maybe-configure-tcl maybe-configure-tk
7581all-itcl: maybe-all-tcl maybe-all-tk
f5e0c73c
NN
7582# We put install-tcl before install-itcl because itcl wants to run a
7583# program on installation which uses the Tcl libraries.
4977bab6
ZW
7584install-itcl: maybe-install-tcl
7585all-sid: maybe-all-tcl maybe-all-tk
7586install-sid: maybe-install-tcl maybe-install-tk
7587all-sim: maybe-all-libiberty maybe-all-bfd maybe-all-opcodes maybe-all-readline maybe-configure-gdb
7588configure-tk: maybe-configure-tcl
7589all-tk: maybe-all-tcl
7590configure-tix: maybe-configure-tcl maybe-configure-tk
7591all-tix: maybe-all-tcl maybe-all-tk
7592all-texinfo: maybe-all-libiberty
7593
7594# Other host modules. Warning, these are not well tested.
7595all-autoconf: maybe-all-m4 maybe-all-texinfo
7596all-automake: maybe-all-m4 maybe-all-texinfo
7597all-bison: maybe-all-texinfo
7598all-diff: maybe-all-libiberty
7599all-fastjar: maybe-all-zlib maybe-all-libiberty
7600all-fileutils: maybe-all-libiberty
7601all-flex: maybe-all-libiberty maybe-all-bison maybe-all-byacc
7602all-grep: maybe-all-libiberty
7603all-gzip: maybe-all-libiberty
7604all-hello: maybe-all-libiberty
7605all-m4: maybe-all-libiberty maybe-all-texinfo
7606all-make: maybe-all-libiberty
7607all-patch: maybe-all-libiberty
7608all-prms: maybe-all-libiberty
7609all-recode: maybe-all-libiberty
7610all-sed: maybe-all-libiberty
7611all-send-pr: maybe-all-prms
7612all-snavigator: maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-tix maybe-all-db maybe-all-grep maybe-all-libgui
7613all-tar: maybe-all-libiberty
7614all-uudecode: maybe-all-libiberty
7615
7616ALL_GCC = maybe-all-gcc
7617ALL_GCC_C = $(ALL_GCC) maybe-all-target-newlib maybe-all-target-libgloss
7618ALL_GCC_CXX = $(ALL_GCC_C) maybe-all-target-libstdc++-v3
7619
7620# Target modules specific to gcc.
7621configure-target-boehm-gc: $(ALL_GCC_C) maybe-configure-target-qthreads
7622configure-target-fastjar: maybe-configure-target-zlib
7623all-target-fastjar: maybe-all-target-zlib maybe-all-target-libiberty
7624configure-target-libf2c: $(ALL_GCC_C)
7625all-target-libf2c: maybe-all-target-libiberty
7626configure-target-libffi: $(ALL_GCC_C)
7627configure-target-libjava: $(ALL_GCC_C) maybe-configure-target-zlib maybe-configure-target-boehm-gc maybe-configure-target-qthreads maybe-configure-target-libffi
7628all-target-libjava: maybe-all-fastjar maybe-all-target-zlib maybe-all-target-boehm-gc maybe-all-target-qthreads maybe-all-target-libffi
7629configure-target-libobjc: $(ALL_GCC_C)
7630all-target-libobjc: maybe-all-target-libiberty
7631configure-target-libstdc++-v3: $(ALL_GCC_C)
7632all-target-libstdc++-v3: maybe-all-target-libiberty
7633configure-target-zlib: $(ALL_GCC_C)
6599da04 7634
4977bab6
ZW
7635# Target modules in the 'src' repository.
7636configure-target-examples: $(ALL_GCC_C)
7637configure-target-libgloss: $(ALL_GCC)
7638all-target-libgloss: maybe-configure-target-newlib
7639configure-target-libiberty: $(ALL_GCC_C)
7640configure-target-libtermcap: $(ALL_GCC_C)
7641configure-target-newlib: $(ALL_GCC)
7642configure-target-rda: $(ALL_GCC_C)
7643configure-target-winsup: $(ALL_GCC_C)
7644all-target-winsup: maybe-all-target-libiberty maybe-all-target-libtermcap
6599da04 7645
4977bab6
ZW
7646# Other target modules. Warning, these are not well tested.
7647configure-target-gperf: $(ALL_GCC_CXX)
7648all-target-gperf: maybe-all-target-libiberty maybe-all-target-libstdc++-v3
7649configure-target-qthreads: $(ALL_GCC_C)
6599da04 7650
4977bab6
ZW
7651# Dependencies of maybe-foo on foo. These are used because, for example,
7652# all-gcc only depends on all-gas if gas is present and being configured.
7653@maybe_dependencies@
6599da04 7654
4977bab6
ZW
7655# Serialization dependencies. Host configures don't work well in parallel to
7656# each other, due to contention over config.cache. Target configures and
7657# build configures are similar.
7658@serialization_dependencies@
6599da04 7659
4977bab6
ZW
7660# --------------------------------
7661# Regenerating top level configury
7662# --------------------------------
6599da04 7663
88b5521b
NN
7664# Multilib.out tells target dirs what multilibs they should build.
7665# There is really only one copy. We use the 'timestamp' method to
7666# work around various timestamp bugs on some systems.
7667# We use move-if-change so that it's only considered updated when it
7668# actually changes, because it has to depend on a phony target.
ade82b16 7669multilib.out: maybe-all-gcc
88b5521b
NN
7670 @r=`${PWD}`; export r; \
7671 echo "Checking multilib configuration..."; \
7672 $(CC_FOR_TARGET) --print-multi-lib > multilib.tmp 2> /dev/null ; \
7673 $(SHELL) $(srcdir)/move-if-change multilib.tmp multilib.out ; \
88b5521b 7674
6f950405 7675# Rebuilding Makefile.in, using autogen.
e245b0ea 7676AUTOGEN = autogen
6f950405 7677$(srcdir)/Makefile.in: # $(srcdir)/Makefile.tpl $(srcdir)/Makefile.def
e245b0ea 7678 cd $(srcdir) && $(AUTOGEN) Makefile.def
6f950405 7679
671aa708 7680# Rebuilding Makefile.
e245b0ea
AO
7681Makefile: $(srcdir)/Makefile.in config.status
7682 CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
7683
7684config.status: configure $(gcc_version_trigger)
671aa708 7685 $(SHELL) ./config.status --recheck
6599da04 7686
671aa708 7687# Rebuilding configure.
e245b0ea
AO
7688AUTOCONF = autoconf
7689$(srcdir)/configure: $(srcdir)/configure.in $(srcdir)/config/acx.m4
7690 cd $(srcdir) && $(AUTOCONF)
6599da04 7691#
6599da04
JM
7692
7693.NOEXPORT:
7694MAKEOVERRIDES=
7695
e245b0ea
AO
7696# Tell GNU make 3.79 not to run the top level in parallel. This
7697# prevents contention for $builddir/$target/config.cache, as well
7698# as minimizing scatter in file system caches.
7699NOTPARALLEL = .NOTPARALLEL
7700$(NOTPARALLEL):
7701
6599da04 7702# end of Makefile.in
This page took 1.137182 seconds and 5 git commands to generate.