OSDN Git Service

PR c/10175
[pf3gnuchains/gcc-fork.git] / Makefile.in
1
2 # Makefile.in is generated from Makefile.tpl by 'autogen Makefile.def'.
3 #
4 # Makefile for directory with subdirs to build.
5 #   Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
6 #   1999, 2000, 2001, 2002, 2003 Free Software Foundation
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
23 # -------------------------------
24 # Standard Autoconf-set variables
25 # -------------------------------
26 VPATH=@srcdir@
27
28 build_alias=@build_alias@
29 build_cpu=@build_cpu@
30 build_vendor=@build_vendor@
31 build_os=@build_os@
32 build_canonical=@build_cpu@-@build_vendor@-@build_os@
33 host_alias=@host_alias@
34 host_cpu=@host_cpu@
35 host_vendor=@host_vendor@
36 host_os=@host_os@
37 host_canonical=@host_cpu@-@host_vendor@-@host_os@
38 target_alias=@target_alias@
39 target_cpu=@target_cpu@
40 target_vendor=@target_vendor@
41 target_os=@target_os@
42 target_canonical=@target_cpu@-@target_vendor@-@target_os@
43
44 program_transform_name = @program_transform_name@
45
46 prefix = @prefix@
47 exec_prefix = @exec_prefix@
48
49 srcdir = @srcdir@
50
51 bindir = @bindir@
52 sbindir = @sbindir@
53 libexecdir = @libexecdir@
54 datadir = @datadir@
55 sysconfdir = @sysconfdir@
56 sharedstatedir = @sharedstatedir@
57 localstatedir = @localstatedir@
58 libdir = @libdir@
59 includedir = @includedir@
60 oldincludedir = @oldincludedir@
61 infodir = @infodir@
62 mandir = @mandir@
63 man1dir = $(mandir)/man1
64 man2dir = $(mandir)/man2
65 man3dir = $(mandir)/man3
66 man4dir = $(mandir)/man4
67 man5dir = $(mandir)/man5
68 man6dir = $(mandir)/man6
69 man7dir = $(mandir)/man7
70 man8dir = $(mandir)/man8
71 man9dir = $(mandir)/man9
72
73 # INSTALL_PROGRAM_ARGS is changed by configure.in to use -x for a
74 # cygwin host.
75 INSTALL_PROGRAM_ARGS =
76
77 INSTALL = $(SHELL) $$s/install-sh -c
78 INSTALL_PROGRAM = $(INSTALL) $(INSTALL_PROGRAM_ARGS)
79 INSTALL_SCRIPT = $(INSTALL)
80 INSTALL_DATA = $(INSTALL) -m 644
81
82 # -------------------------------------------------
83 # Miscellaneous non-standard autoconf-set variables
84 # -------------------------------------------------
85
86 links=@configlinks@
87 # The file containing GCC's version number.
88 gcc_version_trigger = @gcc_version_trigger@
89 gcc_version = @gcc_version@
90
91 # The gcc driver likes to know the arguments it was configured with.
92 TOPLEVEL_CONFIGURE_ARGUMENTS=@TOPLEVEL_CONFIGURE_ARGUMENTS@
93
94 gxx_include_dir = @gxx_include_dir@
95 libstdcxx_incdir = @libstdcxx_incdir@
96
97 tooldir = @tooldir@
98 build_tooldir = @build_tooldir@
99
100 # Directory in which the compiler finds executables, libraries, etc.
101 libsubdir = $(libdir)/gcc-lib/$(target_alias)/$(gcc_version)
102 GDB_NLM_DEPS = 
103
104 # This is the name of the environment variable used for the path to
105 # the libraries.
106 RPATH_ENVVAR = @RPATH_ENVVAR@
107
108 # This is set by configure to REALLY_SET_LIB_PATH if --enable-shared
109 # was used.
110 SET_LIB_PATH = @SET_LIB_PATH@
111
112 # configure.in sets SET_LIB_PATH to this if --enable-shared was used.
113 # Some platforms don't like blank entries, so we remove duplicate,
114 # leading and trailing colons.
115 REALLY_SET_LIB_PATH = \
116   $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH):$(TARGET_LIB_PATH):$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR);
117
118 # This is the list of directories to be built for the build system.
119 BUILD_CONFIGDIRS = libiberty
120 # Build programs are put under this directory.
121 BUILD_SUBDIR = @build_subdir@
122 # This is set by the configure script to the arguments to use when configuring
123 # directories built for the build system.
124 BUILD_CONFIGARGS = @build_configargs@
125
126 # This is the list of directories to built for the host system.
127 SUBDIRS = @configdirs@
128 # This is set by the configure script to the arguments to use when configuring
129 # directories built for the host system.
130 HOST_CONFIGARGS = @host_configargs@
131
132 # This is set by the configure script to the list of directories which
133 # should be built using the target tools.
134 TARGET_CONFIGDIRS = @target_configdirs@
135 # Target libraries are put under this directory:
136 TARGET_SUBDIR = @target_subdir@
137 # This is set by the configure script to the arguments to use when configuring
138 # directories built for the target.
139 TARGET_CONFIGARGS = @target_configargs@
140
141 # ----------------------------------------------
142 # Programs producing files for the BUILD machine
143 # ----------------------------------------------
144
145 SHELL = @config_shell@
146
147 # pwd command to use.  Allow user to override default by setting PWDCMD in
148 # the environment to account for automounters.  The make variable must not
149 # be called PWDCMD, otherwise the value set here is passed to make
150 # subprocesses and overrides the setting from the user's environment.
151 PWD = $${PWDCMD-pwd}
152
153 # compilers to use to create programs which must be run in the build
154 # environment.
155 CC_FOR_BUILD = @CC_FOR_BUILD@
156 CFLAGS_FOR_BUILD = $(CFLAGS)
157
158 CXX_FOR_BUILD = $(CXX)
159
160 # Special variables passed down in EXTRA_GCC_FLAGS.  They are defined
161 # here so that they can be overridden by Makefile fragments.
162 BUILD_CC = $(CC_FOR_BUILD)
163 BUILD_PREFIX = @BUILD_PREFIX@
164 BUILD_PREFIX_1 = @BUILD_PREFIX_1@
165
166 BISON=@BISON@
167 USUAL_BISON = `if [ -f $$r/bison/bison ] ; then \
168             echo $$r/bison/bison -L $$s/bison/ ; \
169          else \
170             echo bison ; \
171          fi`
172
173 DEFAULT_YACC = @DEFAULT_YACC@
174 YACC=@YACC@
175 USUAL_YACC = `if [ -f $$r/bison/bison ] ; then \
176             echo $$r/bison/bison -y -L $$s/bison/ ; \
177         elif [ -f $$r/byacc/byacc ] ; then \
178             echo $$r/byacc/byacc ; \
179         else \
180             echo ${DEFAULT_YACC} ; \
181         fi`
182
183 DEFAULT_LEX = @DEFAULT_LEX@
184 LEX=@LEX@
185 USUAL_LEX = `if [ -f $$r/flex/flex ] ; \
186         then echo $$r/flex/flex ; \
187         else echo ${DEFAULT_LEX} ; fi`
188
189 DEFAULT_M4 = @DEFAULT_M4@
190 M4 = `if [ -f $$r/m4/m4 ] ; \
191         then echo $$r/m4/m4 ; \
192         else echo ${DEFAULT_M4} ; fi`
193
194 # For an installed makeinfo, we require it to be from texinfo 4 or
195 # higher, else we use the "missing" dummy.
196 MAKEINFO=@MAKEINFO@
197 USUAL_MAKEINFO = `if [ -f $$r/texinfo/makeinfo/makeinfo ] ; \
198         then echo $$r/texinfo/makeinfo/makeinfo ; \
199         else if (makeinfo --version \
200           | egrep 'texinfo[^0-9]*([1-3][0-9]|[4-9])') >/dev/null 2>&1; \
201         then echo makeinfo; else echo $$s/missing makeinfo; fi; fi`
202
203 # This just becomes part of the MAKEINFO definition passed down to
204 # sub-makes.  It lets flags be given on the command line while still
205 # using the makeinfo from the object tree.
206 MAKEINFOFLAGS =
207
208 EXPECT = `if [ -f $$r/expect/expect ] ; \
209         then echo $$r/expect/expect ; \
210         else echo expect ; fi`
211
212 RUNTEST = `if [ -f $$s/dejagnu/runtest ] ; \
213         then echo $$s/dejagnu/runtest ; \
214         else echo runtest ; fi`
215
216 # ---------------------------------------------
217 # Programs producing files for the HOST machine
218 # ---------------------------------------------
219
220 # This is the list of directories that may be needed in RPATH_ENVVAR
221 # so that programs built for the host machine work.
222 HOST_LIB_PATH = $$r/bfd:$$r/opcodes
223
224 AS = @AS@
225
226 AR = @AR@
227 AR_FLAGS = rc
228
229 CC = @CC@
230 CFLAGS = @CFLAGS@
231 LIBCFLAGS = $(CFLAGS)
232
233 CXX = @CXX@
234 CXXFLAGS = @CXXFLAGS@
235 LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates
236
237 DLLTOOL = @DLLTOOL@
238
239 NM = @NM@
240
241 LD = @LD@
242 LDFLAGS = 
243
244 RANLIB = @RANLIB@
245
246 WINDRES = @WINDRES@
247
248 PICFLAG = 
249
250 # -----------------------------------------------
251 # Programs producing files for the TARGET machine
252 # -----------------------------------------------
253
254 # This is the list of directories that may be needed in RPATH_ENVVAR
255 # so that prorgams built for the target machine work.
256 TARGET_LIB_PATH = $$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs:
257
258 FLAGS_FOR_TARGET = @FLAGS_FOR_TARGET@
259
260 AR_FOR_TARGET=@AR_FOR_TARGET@
261 USUAL_AR_FOR_TARGET = ` \
262   if [ -f $$r/binutils/ar ] ; then \
263     echo $$r/binutils/ar ; \
264   else \
265     if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
266       echo $(AR); \
267     else \
268        echo ar | sed '$(program_transform_name)' ; \
269     fi; \
270   fi`
271
272 AS_FOR_TARGET=@AS_FOR_TARGET@
273 USUAL_AS_FOR_TARGET = ` \
274   if [ -f $$r/gas/as-new ] ; then \
275     echo $$r/gas/as-new ; \
276   elif [ -f $$r/gcc/xgcc ]; then \
277     $(CC_FOR_TARGET) -print-prog-name=as ; \
278   else \
279     if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
280       echo $(AS); \
281     else \
282        echo as | sed '$(program_transform_name)' ; \
283     fi; \
284   fi`
285
286 CC_FOR_TARGET = @CC_FOR_TARGET@
287 # During gcc bootstrap, if we use some random cc for stage1 then
288 # CFLAGS will be just -g.  We want to ensure that TARGET libraries
289 # (which we know are built with gcc) are built with optimizations so
290 # prepend -O2 when setting CFLAGS_FOR_TARGET.
291 CFLAGS_FOR_TARGET = -O2 $(CFLAGS)
292 # If GCC_FOR_TARGET is not overriden on the command line, then this
293 # variable is passed down to the gcc Makefile, where it is used to
294 # build libgcc2.a.  We define it here so that it can itself be
295 # overridden on the command line.
296 GCC_FOR_TARGET=@GCC_FOR_TARGET@
297 USUAL_GCC_FOR_TARGET = $(STAGE_CC_WRAPPER) $$r/gcc/xgcc -B$$r/gcc/ $(FLAGS_FOR_TARGET)
298 LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
299
300 CXX_FOR_TARGET = @CXX_FOR_TARGET@
301 RAW_CXX_FOR_TARGET = @RAW_CXX_FOR_TARGET@
302 CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = @CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@
303 RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = @RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@
304 CXXFLAGS_FOR_TARGET = $(CXXFLAGS)
305 LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
306
307 DLLTOOL_FOR_TARGET=@DLLTOOL_FOR_TARGET@
308 USUAL_DLLTOOL_FOR_TARGET = ` \
309   if [ -f $$r/binutils/dlltool ] ; then \
310     echo $$r/binutils/dlltool ; \
311   else \
312     if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
313       echo $(DLLTOOL); \
314     else \
315        echo dlltool | sed '$(program_transform_name)' ; \
316     fi; \
317   fi`
318
319 GCJ_FOR_TARGET = @GCJ_FOR_TARGET@
320
321 LD_FOR_TARGET=@LD_FOR_TARGET@
322 USUAL_LD_FOR_TARGET = ` \
323   if [ -f $$r/ld/ld-new ] ; then \
324     echo $$r/ld/ld-new ; \
325   elif [ -f $$r/gcc/xgcc ]; then \
326     $(CC_FOR_TARGET) -print-prog-name=ld ; \
327   else \
328     if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
329       echo $(LD); \
330     else \
331        echo ld | sed '$(program_transform_name)' ; \
332     fi; \
333   fi`
334
335 LDFLAGS_FOR_TARGET = 
336
337 NM_FOR_TARGET=@NM_FOR_TARGET@
338 USUAL_NM_FOR_TARGET = ` \
339   if [ -f $$r/binutils/nm-new ] ; then \
340     echo $$r/binutils/nm-new ; \
341   elif [ -f $$r/gcc/xgcc ]; then \
342     $(CC_FOR_TARGET) -print-prog-name=nm ; \
343   else \
344     if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
345       echo $(NM); \
346     else \
347        echo nm | sed '$(program_transform_name)' ; \
348     fi; \
349   fi`
350
351 RANLIB_FOR_TARGET=@RANLIB_FOR_TARGET@
352 USUAL_RANLIB_FOR_TARGET = ` \
353   if [ -f $$r/binutils/ranlib ] ; then \
354     echo $$r/binutils/ranlib ; \
355   else \
356     if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
357       if [ x'$(RANLIB)' != x ]; then \
358          echo $(RANLIB); \
359       else \
360          echo ranlib; \
361       fi; \
362     else \
363        echo ranlib | sed '$(program_transform_name)' ; \
364     fi; \
365   fi`
366
367 WINDRES_FOR_TARGET=@WINDRES_FOR_TARGET@
368 USUAL_WINDRES_FOR_TARGET = ` \
369   if [ -f $$r/binutils/windres ] ; then \
370     echo $$r/binutils/windres ; \
371   else \
372     if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
373       echo $(WINDRES); \
374     else \
375        echo windres | sed '$(program_transform_name)' ; \
376     fi; \
377   fi`
378
379 PICFLAG_FOR_TARGET = 
380
381 # ------------------------------------
382 # Miscellaneous targets and flag lists
383 # ------------------------------------
384
385 # The first rule in the file had better be this one.  Don't put any above it.
386 # This lives here to allow makefile fragments to contain dependencies.
387 all: all.normal
388 .PHONY: all
389
390 #### host and target specific makefile fragments come in here.
391 @target_makefile_frag@
392 @alphaieee_frag@
393 @ospace_frag@
394 @host_makefile_frag@
395 ###
396
397 # Flags to pass down to all sub-makes.
398 # Please keep these in alphabetical order.
399 BASE_FLAGS_TO_PASS = \
400         "AR_FLAGS=$(AR_FLAGS)" \
401         "AR_FOR_TARGET=$(AR_FOR_TARGET)" \
402         "AS_FOR_TARGET=$(AS_FOR_TARGET)" \
403         "BISON=$(BISON)" \
404         "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
405         "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
406         "CFLAGS=$(CFLAGS)" \
407         "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
408         "GCJ_FOR_TARGET=$(GCJ_FOR_TARGET)" \
409         "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
410         "CXXFLAGS=$(CXXFLAGS)" \
411         "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \
412         "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
413         "DESTDIR=$(DESTDIR)" \
414         "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \
415         "INSTALL=$(INSTALL)" \
416         "INSTALL_DATA=$(INSTALL_DATA)" \
417         "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
418         "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
419         "LDFLAGS=$(LDFLAGS)" \
420         "LEX=$(LEX)" \
421         "LD_FOR_TARGET=$(LD_FOR_TARGET)" \
422         "LIBCFLAGS=$(LIBCFLAGS)" \
423         "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
424         "LIBCXXFLAGS=$(LIBCXXFLAGS)" \
425         "LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \
426         "M4=$(M4)" \
427         "MAKE=$(MAKE)" \
428         "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
429         "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
430         "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
431         "RPATH_ENVVAR=$(RPATH_ENVVAR)" \
432         "SHELL=$(SHELL)" \
433         "EXPECT=$(EXPECT)" \
434         "RUNTEST=$(RUNTEST)" \
435         "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
436         "TARGET_SUBDIR=$(TARGET_SUBDIR)" \
437         "WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \
438         "YACC=$(YACC)" \
439         "bindir=$(bindir)" \
440         "datadir=$(datadir)" \
441         "exec_prefix=$(exec_prefix)" \
442         "includedir=$(includedir)" \
443         "infodir=$(infodir)" \
444         "libdir=$(libdir)" \
445         "libexecdir=$(libexecdir)" \
446         "lispdir=$(lispdir)" \
447         "libstdcxx_incdir=$(libstdcxx_incdir)" \
448         "libsubdir=$(libsubdir)" \
449         "localstatedir=$(localstatedir)" \
450         "mandir=$(mandir)" \
451         "oldincludedir=$(oldincludedir)" \
452         "prefix=$(prefix)" \
453         "sbindir=$(sbindir)" \
454         "sharedstatedir=$(sharedstatedir)" \
455         "sysconfdir=$(sysconfdir)" \
456         "tooldir=$(tooldir)" \
457         "build_tooldir=$(build_tooldir)" \
458         "gxx_include_dir=$(gxx_include_dir)" \
459         "gcc_version=$(gcc_version)" \
460         "gcc_version_trigger=$(gcc_version_trigger)" \
461         "target_alias=$(target_alias)" 
462
463 # For any flags above that may contain shell code that varies from one
464 # target library to another.  When doing recursive invocations of the
465 # top-level Makefile, we don't want the outer make to evaluate them,
466 # so we pass these variables down unchanged.  They must not contain
467 # single nor double quotes.
468 RECURSE_FLAGS = \
469         CXX_FOR_TARGET='$(CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)' \
470         RAW_CXX_FOR_TARGET='$(RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)' \
471
472 # Flags to pass down to most sub-makes, in which we're building with
473 # the host environment.
474 # If any variables are added here, they must be added to do-*, below.
475 EXTRA_HOST_FLAGS = \
476         'AR=$(AR)' \
477         'AS=$(AS)' \
478         'CC=$(CC)' \
479         'CXX=$(CXX)' \
480         'DLLTOOL=$(DLLTOOL)' \
481         'LD=$(LD)' \
482         'NM=$(NM)' \
483         'RANLIB=$(RANLIB)' \
484         'WINDRES=$(WINDRES)'
485
486 FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)
487
488 # Flags that are concerned with the location of the X11 include files
489 # and library files
490 #
491 # NOTE: until the top-level is getting the values via autoconf, it only
492 # causes problems to have this top-level Makefile overriding the autoconf-set
493 # values in child directories.  Only variables that don't conflict with
494 # autoconf'ed ones should be passed by X11_FLAGS_TO_PASS for now.
495 #
496 X11_FLAGS_TO_PASS = \
497         'X11_EXTRA_CFLAGS=$(X11_EXTRA_CFLAGS)' \
498         'X11_EXTRA_LIBS=$(X11_EXTRA_LIBS)'
499
500 # Flags to pass down to makes which are built with the target environment.
501 # The double $ decreases the length of the command line; the variables
502 # are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them.
503 # If any variables are added here, they must be added to do-*, below.
504 EXTRA_TARGET_FLAGS = \
505         'AR=$$(AR_FOR_TARGET)' \
506         'AS=$$(AS_FOR_TARGET)' \
507         'CC=$$(CC_FOR_TARGET)' \
508         'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
509         'CXX=$$(CXX_FOR_TARGET)' \
510         'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
511         'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
512         'LD=$$(LD_FOR_TARGET)' \
513         'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
514         'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \
515         'NM=$$(NM_FOR_TARGET)' \
516         'RANLIB=$$(RANLIB_FOR_TARGET)' \
517         'WINDRES=$$(WINDRES_FOR_TARGET)'
518
519 TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)
520
521 # Flags to pass down to gcc.  gcc builds a library, libgcc.a, so it
522 # unfortunately needs the native compiler and the target ar and
523 # ranlib.
524 # If any variables are added here, they must be added to do-*, below.
525 # The HOST_* variables are a special case, which are used for the gcc
526 # cross-building scheme.
527 EXTRA_GCC_FLAGS = \
528         'AR=$(AR)' \
529         'AS=$(AS)' \
530         'CC=$(CC)' \
531         'CXX=$(CXX)' \
532         'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
533         'BUILD_CC=$(CC_FOR_BUILD)' \
534         'BUILD_PREFIX=$(BUILD_PREFIX)' \
535         'BUILD_PREFIX_1=$(BUILD_PREFIX_1)' \
536         'NM=$(NM)' \
537         'RANLIB=$(RANLIB)' \
538         'WINDRES=$$(WINDRES_FOR_TARGET)' \
539         "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
540         "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
541         "`echo 'LANGUAGES=$(LANGUAGES)' | sed -e s/.*=$$/XFOO=/`" \
542         "`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s/.*=$$/XFOO=/`" \
543         "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s/.*=$$/XFOO=/`" \
544         "`echo 'LIBGCC2_CFLAGS=$(LIBGCC2_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \
545         "`echo 'LIBGCC2_DEBUG_CFLAGS=$(LIBGCC2_DEBUG_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \
546         "`echo 'LIBGCC2_INCLUDES=$(LIBGCC2_INCLUDES)' | sed -e s/.*=$$/XFOO=/`" \
547         "`echo 'ENQUIRE=$(ENQUIRE)' | sed -e s/.*=$$/XFOO=/`" \
548         "`echo 'STAGE1_CFLAGS=$(STAGE1_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \
549         "`echo 'BOOT_CFLAGS=$(BOOT_CFLAGS)' | sed -e s/.*=$$/XFOO=/`"
550
551 GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS)
552
553 configure-host: @configure_host_modules@
554 configure-target: @configure_target_modules@
555
556 # This is a list of the targets for which we can do a clean-{target}.
557 CLEAN_MODULES = \
558         clean-ash \
559         clean-autoconf \
560         clean-automake \
561         clean-bash \
562         clean-bfd \
563         clean-opcodes \
564         clean-binutils \
565         clean-bison \
566         clean-byacc \
567         clean-bzip2 \
568         clean-dejagnu \
569         clean-diff \
570         clean-dosutils \
571         clean-etc \
572         clean-fastjar \
573         clean-fileutils \
574         clean-findutils \
575         clean-find \
576         clean-flex \
577         clean-gas \
578         clean-gawk \
579         clean-gettext \
580         clean-gnuserv \
581         clean-gprof \
582         clean-gzip \
583         clean-hello \
584         clean-indent \
585         clean-intl \
586         clean-tcl \
587         clean-itcl \
588         clean-ld \
589         clean-libgui \
590         clean-libiberty \
591         clean-libtool \
592         clean-m4 \
593         clean-make \
594         clean-mmalloc \
595         clean-patch \
596         clean-perl \
597         clean-prms \
598         clean-rcs \
599         clean-readline \
600         clean-release \
601         clean-recode \
602         clean-sed \
603         clean-send-pr \
604         clean-shellutils \
605         clean-sid \
606         clean-sim \
607         clean-tar \
608         clean-texinfo \
609         clean-textutils \
610         clean-time \
611         clean-uudecode \
612         clean-wdiff \
613         clean-zip \
614         clean-zlib \
615         clean-utils
616
617 # All of the target modules that can be cleaned
618 CLEAN_TARGET_MODULES = \
619         clean-target-libstdc++-v3 \
620         clean-target-newlib \
621         clean-target-libf2c \
622         clean-target-libobjc \
623         clean-target-winsup \
624         clean-target-libgloss \
625         clean-target-libiberty \
626         clean-target-gperf \
627         clean-target-examples \
628         clean-target-libffi \
629         clean-target-libjava \
630         clean-target-zlib \
631         clean-target-boehm-gc \
632         clean-target-qthreads \
633         clean-target-rda
634
635 # All of the x11 modules that can be cleaned
636 CLEAN_X11_MODULES = \
637         clean-gdb \
638         clean-expect \
639         clean-guile \
640         clean-tk \
641         clean-tix 
642
643 # The target built for a native build.
644 # This list only includes modules actually being configured and built.
645 .PHONY: all.normal
646 all.normal: @all_build_modules@ \
647         @all_host_modules@ \
648         @all_target_modules@
649
650 all-host: @all_host_modules@
651 all-target: @all_target_modules@
652
653 # Do a target for all the subdirectories.  A ``make do-X'' will do a
654 # ``make X'' in all subdirectories (because, in general, there is a
655 # dependency (below) of X upon do-X, a ``make X'' will also do this,
656 # but it may do additional work as well).
657 # This target ensures that $(BASE_FLAGS_TO_PASS) appears only once,
658 # because it is so large that it can easily overflow the command line
659 # length limit on some systems.
660
661 .PHONY: do-clean
662 do-clean:
663         @r=`${PWD}`; export r; \
664         s=`cd $(srcdir); ${PWD}`; export s; \
665         $(SET_LIB_PATH) \
666         for i in $(SUBDIRS) -dummy-; do \
667           if [ -f ./$$i/Makefile ]; then \
668             case $$i in \
669             gcc) \
670               for flag in $(EXTRA_GCC_FLAGS); do \
671                 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
672               done; \
673               ;; \
674             *) \
675               for flag in $(EXTRA_HOST_FLAGS); do \
676                 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
677               done; \
678               ;; \
679             esac ; \
680             (cd ./$$i && \
681                 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
682                         "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
683                         "RANLIB=$${RANLIB}" \
684                         "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
685                         clean) \
686             || exit 1; \
687           else true; fi; \
688         done
689         # Break into two pieces
690         r=`${PWD}`; export r; \
691         s=`cd $(srcdir); ${PWD}`; export s; \
692         $(SET_LIB_PATH) \
693         for i in $(TARGET_CONFIGDIRS) -dummy-; do \
694           if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
695             for flag in $(EXTRA_TARGET_FLAGS); do \
696                 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
697             done; \
698             (cd $(TARGET_SUBDIR)/$$i && \
699                 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
700                         "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
701                         "RANLIB=$${RANLIB}" \
702                         "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
703                         clean) \
704             || exit 1; \
705           else true; fi; \
706         done
707
708 .PHONY: do-distclean
709 do-distclean:
710         @r=`${PWD}`; export r; \
711         s=`cd $(srcdir); ${PWD}`; export s; \
712         $(SET_LIB_PATH) \
713         for i in $(SUBDIRS) -dummy-; do \
714           if [ -f ./$$i/Makefile ]; then \
715             case $$i in \
716             gcc) \
717               for flag in $(EXTRA_GCC_FLAGS); do \
718                 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
719               done; \
720               ;; \
721             *) \
722               for flag in $(EXTRA_HOST_FLAGS); do \
723                 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
724               done; \
725               ;; \
726             esac ; \
727             (cd ./$$i && \
728                 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
729                         "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
730                         "RANLIB=$${RANLIB}" \
731                         "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
732                         distclean) \
733             || exit 1; \
734           else true; fi; \
735         done
736         # Break into two pieces
737         r=`${PWD}`; export r; \
738         s=`cd $(srcdir); ${PWD}`; export s; \
739         $(SET_LIB_PATH) \
740         for i in $(TARGET_CONFIGDIRS) -dummy-; do \
741           if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
742             for flag in $(EXTRA_TARGET_FLAGS); do \
743                 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
744             done; \
745             (cd $(TARGET_SUBDIR)/$$i && \
746                 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
747                         "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
748                         "RANLIB=$${RANLIB}" \
749                         "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
750                         distclean) \
751             || exit 1; \
752           else true; fi; \
753         done
754
755 .PHONY: do-dvi
756 do-dvi:
757         @r=`${PWD}`; export r; \
758         s=`cd $(srcdir); ${PWD}`; export s; \
759         $(SET_LIB_PATH) \
760         for i in $(SUBDIRS) -dummy-; do \
761           if [ -f ./$$i/Makefile ]; then \
762             case $$i in \
763             gcc) \
764               for flag in $(EXTRA_GCC_FLAGS); do \
765                 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
766               done; \
767               ;; \
768             *) \
769               for flag in $(EXTRA_HOST_FLAGS); do \
770                 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
771               done; \
772               ;; \
773             esac ; \
774             (cd ./$$i && \
775                 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
776                         "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
777                         "RANLIB=$${RANLIB}" \
778                         "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
779                         dvi) \
780             || exit 1; \
781           else true; fi; \
782         done
783         # Break into two pieces
784         r=`${PWD}`; export r; \
785         s=`cd $(srcdir); ${PWD}`; export s; \
786         $(SET_LIB_PATH) \
787         for i in $(TARGET_CONFIGDIRS) -dummy-; do \
788           if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
789             for flag in $(EXTRA_TARGET_FLAGS); do \
790                 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
791             done; \
792             (cd $(TARGET_SUBDIR)/$$i && \
793                 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
794                         "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
795                         "RANLIB=$${RANLIB}" \
796                         "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
797                         dvi) \
798             || exit 1; \
799           else true; fi; \
800         done
801
802 .PHONY: do-info
803 do-info:
804         @r=`${PWD}`; export r; \
805         s=`cd $(srcdir); ${PWD}`; export s; \
806         $(SET_LIB_PATH) \
807         for i in $(SUBDIRS) -dummy-; do \
808           if [ -f ./$$i/Makefile ]; then \
809             case $$i in \
810             gcc) \
811               for flag in $(EXTRA_GCC_FLAGS); do \
812                 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
813               done; \
814               ;; \
815             *) \
816               for flag in $(EXTRA_HOST_FLAGS); do \
817                 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
818               done; \
819               ;; \
820             esac ; \
821             (cd ./$$i && \
822                 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
823                         "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
824                         "RANLIB=$${RANLIB}" \
825                         "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
826                         info) \
827             || exit 1; \
828           else true; fi; \
829         done
830         # Break into two pieces
831         r=`${PWD}`; export r; \
832         s=`cd $(srcdir); ${PWD}`; export s; \
833         $(SET_LIB_PATH) \
834         for i in $(TARGET_CONFIGDIRS) -dummy-; do \
835           if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
836             for flag in $(EXTRA_TARGET_FLAGS); do \
837                 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
838             done; \
839             (cd $(TARGET_SUBDIR)/$$i && \
840                 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
841                         "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
842                         "RANLIB=$${RANLIB}" \
843                         "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
844                         info) \
845             || exit 1; \
846           else true; fi; \
847         done
848
849 .PHONY: do-install-info
850 do-install-info:
851         @r=`${PWD}`; export r; \
852         s=`cd $(srcdir); ${PWD}`; export s; \
853         $(SET_LIB_PATH) \
854         for i in $(SUBDIRS) -dummy-; do \
855           if [ -f ./$$i/Makefile ]; then \
856             case $$i in \
857             gcc) \
858               for flag in $(EXTRA_GCC_FLAGS); do \
859                 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
860               done; \
861               ;; \
862             *) \
863               for flag in $(EXTRA_HOST_FLAGS); do \
864                 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
865               done; \
866               ;; \
867             esac ; \
868             (cd ./$$i && \
869                 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
870                         "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
871                         "RANLIB=$${RANLIB}" \
872                         "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
873                         install-info) \
874             || exit 1; \
875           else true; fi; \
876         done
877         # Break into two pieces
878         r=`${PWD}`; export r; \
879         s=`cd $(srcdir); ${PWD}`; export s; \
880         $(SET_LIB_PATH) \
881         for i in $(TARGET_CONFIGDIRS) -dummy-; do \
882           if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
883             for flag in $(EXTRA_TARGET_FLAGS); do \
884                 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
885             done; \
886             (cd $(TARGET_SUBDIR)/$$i && \
887                 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
888                         "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
889                         "RANLIB=$${RANLIB}" \
890                         "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
891                         install-info) \
892             || exit 1; \
893           else true; fi; \
894         done
895
896 .PHONY: do-installcheck
897 do-installcheck:
898         @r=`${PWD}`; export r; \
899         s=`cd $(srcdir); ${PWD}`; export s; \
900         $(SET_LIB_PATH) \
901         for i in $(SUBDIRS) -dummy-; do \
902           if [ -f ./$$i/Makefile ]; then \
903             case $$i in \
904             gcc) \
905               for flag in $(EXTRA_GCC_FLAGS); do \
906                 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
907               done; \
908               ;; \
909             *) \
910               for flag in $(EXTRA_HOST_FLAGS); do \
911                 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
912               done; \
913               ;; \
914             esac ; \
915             (cd ./$$i && \
916                 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
917                         "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
918                         "RANLIB=$${RANLIB}" \
919                         "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
920                         installcheck) \
921             || exit 1; \
922           else true; fi; \
923         done
924         # Break into two pieces
925         r=`${PWD}`; export r; \
926         s=`cd $(srcdir); ${PWD}`; export s; \
927         $(SET_LIB_PATH) \
928         for i in $(TARGET_CONFIGDIRS) -dummy-; do \
929           if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
930             for flag in $(EXTRA_TARGET_FLAGS); do \
931                 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
932             done; \
933             (cd $(TARGET_SUBDIR)/$$i && \
934                 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
935                         "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
936                         "RANLIB=$${RANLIB}" \
937                         "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
938                         installcheck) \
939             || exit 1; \
940           else true; fi; \
941         done
942
943 .PHONY: do-mostlyclean
944 do-mostlyclean:
945         @r=`${PWD}`; export r; \
946         s=`cd $(srcdir); ${PWD}`; export s; \
947         $(SET_LIB_PATH) \
948         for i in $(SUBDIRS) -dummy-; do \
949           if [ -f ./$$i/Makefile ]; then \
950             case $$i in \
951             gcc) \
952               for flag in $(EXTRA_GCC_FLAGS); do \
953                 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
954               done; \
955               ;; \
956             *) \
957               for flag in $(EXTRA_HOST_FLAGS); do \
958                 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
959               done; \
960               ;; \
961             esac ; \
962             (cd ./$$i && \
963                 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
964                         "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
965                         "RANLIB=$${RANLIB}" \
966                         "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
967                         mostlyclean) \
968             || exit 1; \
969           else true; fi; \
970         done
971         # Break into two pieces
972         r=`${PWD}`; export r; \
973         s=`cd $(srcdir); ${PWD}`; export s; \
974         $(SET_LIB_PATH) \
975         for i in $(TARGET_CONFIGDIRS) -dummy-; do \
976           if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
977             for flag in $(EXTRA_TARGET_FLAGS); do \
978                 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
979             done; \
980             (cd $(TARGET_SUBDIR)/$$i && \
981                 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
982                         "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
983                         "RANLIB=$${RANLIB}" \
984                         "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
985                         mostlyclean) \
986             || exit 1; \
987           else true; fi; \
988         done
989
990 .PHONY: do-maintainer-clean
991 do-maintainer-clean:
992         @r=`${PWD}`; export r; \
993         s=`cd $(srcdir); ${PWD}`; export s; \
994         $(SET_LIB_PATH) \
995         for i in $(SUBDIRS) -dummy-; do \
996           if [ -f ./$$i/Makefile ]; then \
997             case $$i in \
998             gcc) \
999               for flag in $(EXTRA_GCC_FLAGS); do \
1000                 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1001               done; \
1002               ;; \
1003             *) \
1004               for flag in $(EXTRA_HOST_FLAGS); do \
1005                 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1006               done; \
1007               ;; \
1008             esac ; \
1009             (cd ./$$i && \
1010                 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
1011                         "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1012                         "RANLIB=$${RANLIB}" \
1013                         "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1014                         maintainer-clean) \
1015             || exit 1; \
1016           else true; fi; \
1017         done
1018         # Break into two pieces
1019         r=`${PWD}`; export r; \
1020         s=`cd $(srcdir); ${PWD}`; export s; \
1021         $(SET_LIB_PATH) \
1022         for i in $(TARGET_CONFIGDIRS) -dummy-; do \
1023           if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
1024             for flag in $(EXTRA_TARGET_FLAGS); do \
1025                 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1026             done; \
1027             (cd $(TARGET_SUBDIR)/$$i && \
1028                 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
1029                         "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1030                         "RANLIB=$${RANLIB}" \
1031                         "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1032                         maintainer-clean) \
1033             || exit 1; \
1034           else true; fi; \
1035         done
1036
1037 .PHONY: do-TAGS
1038 do-TAGS:
1039         @r=`${PWD}`; export r; \
1040         s=`cd $(srcdir); ${PWD}`; export s; \
1041         $(SET_LIB_PATH) \
1042         for i in $(SUBDIRS) -dummy-; do \
1043           if [ -f ./$$i/Makefile ]; then \
1044             case $$i in \
1045             gcc) \
1046               for flag in $(EXTRA_GCC_FLAGS); do \
1047                 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1048               done; \
1049               ;; \
1050             *) \
1051               for flag in $(EXTRA_HOST_FLAGS); do \
1052                 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1053               done; \
1054               ;; \
1055             esac ; \
1056             (cd ./$$i && \
1057                 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
1058                         "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1059                         "RANLIB=$${RANLIB}" \
1060                         "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1061                         TAGS) \
1062             || exit 1; \
1063           else true; fi; \
1064         done
1065         # Break into two pieces
1066         r=`${PWD}`; export r; \
1067         s=`cd $(srcdir); ${PWD}`; export s; \
1068         $(SET_LIB_PATH) \
1069         for i in $(TARGET_CONFIGDIRS) -dummy-; do \
1070           if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
1071             for flag in $(EXTRA_TARGET_FLAGS); do \
1072                 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1073             done; \
1074             (cd $(TARGET_SUBDIR)/$$i && \
1075                 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
1076                         "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1077                         "RANLIB=$${RANLIB}" \
1078                         "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1079                         TAGS) \
1080             || exit 1; \
1081           else true; fi; \
1082         done
1083
1084
1085
1086 # Here are the targets which correspond to the do-X targets.
1087
1088 .PHONY: info installcheck dvi install-info
1089 .PHONY: clean distclean mostlyclean maintainer-clean realclean
1090 .PHONY: local-clean local-distclean local-maintainer-clean
1091 info: do-info
1092 installcheck: do-installcheck
1093 dvi: do-dvi
1094
1095 # Make sure makeinfo is built before we do a `make info', if we're
1096 # in fact building texinfo.
1097 do-info: maybe-all-texinfo
1098
1099 install-info: do-install-info dir.info
1100         s=`cd $(srcdir); ${PWD}`; export s; \
1101         if [ -f dir.info ] ; then \
1102           $(INSTALL_DATA) dir.info $(DESTDIR)$(infodir)/dir.info ; \
1103         else true ; fi
1104
1105 local-clean:
1106         -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
1107
1108 local-distclean:
1109         -rm -f Makefile config.status config.cache mh-frag mt-frag
1110         -rm -f multilib.out multilib.tmp maybedep.tmp serdep.tmp
1111         -if [ "$(TARGET_SUBDIR)" != "." ]; then \
1112           rm -rf $(TARGET_SUBDIR); \
1113         else true; fi
1114         -rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile
1115         -rm -f texinfo/doc/Makefile texinfo/po/POTFILES
1116         -rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null
1117         -rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null
1118         -rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null
1119
1120 local-maintainer-clean:
1121         @echo "This command is intended for maintainers to use;"
1122         @echo "it deletes files that may require special tools to rebuild."
1123
1124 clean: do-clean local-clean
1125 mostlyclean: do-mostlyclean local-clean
1126 distclean: do-distclean local-clean local-distclean
1127 maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean 
1128 maintainer-clean: local-distclean
1129 realclean: maintainer-clean
1130
1131 # This rule is used to clean specific modules.
1132 .PHONY: $(CLEAN_MODULES) $(CLEAN_X11_MODULES) clean-gcc
1133 $(CLEAN_MODULES) $(CLEAN_X11_MODULES) clean-gcc:
1134         @dir=`echo $@ | sed -e 's/clean-//'`; \
1135         if [ -f ./$${dir}/Makefile ] ; then \
1136           r=`${PWD}`; export r; \
1137           s=`cd $(srcdir); ${PWD}`; export s; \
1138           $(SET_LIB_PATH) \
1139           (cd $${dir} && $(MAKE) $(FLAGS_TO_PASS) clean); \
1140         else \
1141           true; \
1142         fi
1143
1144 .PHONY: $(CLEAN_TARGET_MODULES)
1145 $(CLEAN_TARGET_MODULES):
1146         @dir=`echo $@ | sed -e 's/clean-target-//'`; \
1147         rm -f $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/tmpmulti.out; \
1148         if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1149           r=`${PWD}`; export r; \
1150           s=`cd $(srcdir); ${PWD}`; export s; \
1151           $(SET_LIB_PATH) \
1152           (cd $(TARGET_SUBDIR)/$${dir} && $(MAKE) $(TARGET_FLAGS_TO_PASS) clean); \
1153         else \
1154           true; \
1155         fi
1156
1157 clean-target: $(CLEAN_TARGET_MODULES) clean-target-libgcc
1158 clean-target-libgcc:
1159         test ! -d gcc/libgcc || \
1160         (cd gcc/libgcc && find . -type d -print) | \
1161         while read d; do rm -f gcc/$$d/libgcc.a || : ; done
1162         -rm -rf gcc/libgcc
1163
1164 # Check target.
1165
1166 .PHONY: check do-check
1167 check:
1168         $(MAKE) do-check NOTPARALLEL=parallel-ok
1169
1170 # Only include modules actually being configured and built.
1171 do-check: @check_host_modules@ \
1172         @check_target_modules@
1173
1174 # Automated reporting of test results.
1175
1176 warning.log: build.log
1177         $(srcdir)/contrib/warn_summary build.log > $@
1178
1179 mail-report.log:
1180         if test x'$(BOOT_CFLAGS)' != x''; then \
1181             BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
1182         fi; \
1183         $(srcdir)/contrib/test_summary -t >$@
1184         chmod +x $@
1185         echo If you really want to send e-mail, run ./$@ now
1186
1187 mail-report-with-warnings.log: warning.log
1188         if test x'$(BOOT_CFLAGS)' != x''; then \
1189             BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
1190         fi; \
1191         $(srcdir)/contrib/test_summary -t -i warning.log >$@
1192         chmod +x $@
1193         echo If you really want to send e-mail, run ./$@ now
1194
1195 # Installation targets.
1196
1197 .PHONY: install uninstall
1198 install: installdirs @install_host_modules@ @install_target_modules@
1199
1200 install-target: @install_target_modules@
1201
1202 uninstall:
1203         @echo "the uninstall target is not supported in this tree"
1204
1205 .PHONY: install.all
1206 install.all: install-no-fixedincludes
1207         @if [ -f ./gcc/Makefile ] ; then \
1208                 r=`${PWD}` ; export r ; \
1209                 $(SET_LIB_PATH) \
1210                 (cd ./gcc && \
1211                 $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \
1212         else \
1213                 true ; \
1214         fi
1215
1216 # install-no-fixedincludes is used because Cygnus can not distribute
1217 # the fixed header files.
1218 .PHONY: install-no-fixedincludes
1219 install-no-fixedincludes: installdirs @install_host_modules_nogcc@ \
1220         @install_target_modules@ gcc-no-fixedincludes
1221
1222 ### other supporting targets
1223
1224 MAKEDIRS= \
1225         $(DESTDIR)$(prefix) \
1226         $(DESTDIR)$(exec_prefix)
1227 .PHONY: installdirs
1228 installdirs: mkinstalldirs
1229         $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS)
1230
1231 dir.info: do-install-info
1232         if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \
1233           $(srcdir)/texinfo/gen-info-dir $(DESTDIR)$(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \
1234           mv -f dir.info.new dir.info ; \
1235         else true ; \
1236         fi
1237
1238 dist:
1239         @echo "Building a full distribution of this tree isn't done"
1240         @echo "via 'make dist'.  Check out the etc/ subdirectory" 
1241
1242 etags tags: TAGS
1243
1244 # Right now this just builds TAGS in each subdirectory.  emacs19 has the
1245 # ability to use several tags files at once, so there is probably no need
1246 # to combine them into one big TAGS file (like CVS 1.3 does).  We could
1247 # (if we felt like it) have this Makefile write a piece of elisp which
1248 # the user could load to tell emacs19 where all the TAGS files we just
1249 # built are.
1250 TAGS: do-TAGS
1251
1252 # --------------------------------------
1253 # Modules which run on the build machine
1254 # --------------------------------------
1255
1256 .PHONY: configure-build-libiberty maybe-configure-build-libiberty
1257 maybe-configure-build-libiberty:
1258 configure-build-libiberty:
1259         @test ! -f $(BUILD_SUBDIR)/libiberty/Makefile || exit 0; \
1260         [ -d $(BUILD_SUBDIR)/libiberty ] || \
1261           mkdir $(BUILD_SUBDIR)/libiberty;\
1262         r=`${PWD}`; export r; \
1263         s=`cd $(srcdir); ${PWD}`; export s; \
1264         AR="$(AR_FOR_BUILD)"; export AR; \
1265         AS="$(AS_FOR_BUILD)"; export AS; \
1266         CC="$(CC_FOR_BUILD)"; export CC; \
1267         CFLAGS="$(CFLAGS_FOR_BUILD)"; export CFLAGS; \
1268         CXX="$(CXX_FOR_BUILD)"; export CXX; \
1269         CXXFLAGS="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS; \
1270         GCJ="$(GCJ_FOR_BUILD)"; export GCJ; \
1271         DLLTOOL="$(DLLTOOL_FOR_BUILD)"; export DLLTOOL; \
1272         LD="$(LD_FOR_BUILD)"; export LD; \
1273         LDFLAGS="$(LDFLAGS_FOR_BUILD)"; export LDFLAGS; \
1274         NM="$(NM_FOR_BUILD)"; export NM; \
1275         RANLIB="$(RANLIB_FOR_BUILD)"; export RANLIB; \
1276         WINDRES="$(WINDRES_FOR_BUILD)"; export WINDRES; \
1277         echo Configuring in $(BUILD_SUBDIR)/libiberty; \
1278         cd "$(BUILD_SUBDIR)/libiberty" || exit 1; \
1279         case $(srcdir) in \
1280           /* | [A-Za-z]:[\\/]*) \
1281             topdir=$(srcdir) ;; \
1282           *) \
1283             case "$(BUILD_SUBDIR)" in \
1284               .) topdir="../$(srcdir)" ;; \
1285               *) topdir="../../$(srcdir)" ;; \
1286             esac ;; \
1287         esac; \
1288         if [ "$(srcdir)" = "." ] ; then \
1289           if [ "$(BUILD_SUBDIR)" != "." ] ; then \
1290             if $(SHELL) $$s/symlink-tree $${topdir}/libiberty "no-such-file" ; then \
1291               if [ -f Makefile ]; then \
1292                 if $(MAKE) distclean; then \
1293                   true; \
1294                 else \
1295                   exit 1; \
1296                 fi; \
1297               else \
1298                 true; \
1299               fi; \
1300             else \
1301               exit 1; \
1302             fi; \
1303           else \
1304             true; \
1305           fi; \
1306           srcdiroption="--srcdir=."; \
1307           libsrcdir="."; \
1308         else \
1309           srcdiroption="--srcdir=$${topdir}/libiberty"; \
1310           libsrcdir="$$s/libiberty"; \
1311         fi; \
1312         rm -f no-such-file || : ; \
1313         CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
1314           $(BUILD_CONFIGARGS) $${srcdiroption} \
1315           --with-build-subdir="$(BUILD_SUBDIR)" \
1316           || exit 1
1317
1318 .PHONY: all-build-libiberty maybe-all-build-libiberty
1319 maybe-all-build-libiberty:
1320 all-build-libiberty: configure-build-libiberty
1321         @r=`${PWD}`; export r; \
1322         s=`cd $(srcdir); ${PWD}`; export s; \
1323         (cd $(BUILD_SUBDIR)/libiberty && $(MAKE) all)
1324
1325
1326 # --------------------------------------
1327 # Modules which run on the host machine
1328 # --------------------------------------
1329
1330 .PHONY: configure-ash maybe-configure-ash
1331 maybe-configure-ash:
1332 configure-ash:
1333         @test ! -f ash/Makefile || exit 0; \
1334         [ -d ash ] || mkdir ash; \
1335         r=`${PWD}`; export r; \
1336         s=`cd $(srcdir); ${PWD}`; export s; \
1337         CC="$(CC)"; export CC; \
1338         CFLAGS="$(CFLAGS)"; export CFLAGS; \
1339         CXX="$(CXX)"; export CXX; \
1340         CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1341         if [ z$(build_canonical) !=  z$(host_canoncial) ] ; then \
1342           AR="$(AR)"; export AR; \
1343           AS="$(AS)"; export AS; \
1344           CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
1345           DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
1346           LD="$(LD)"; export LD; \
1347           NM="$(NM)"; export NM; \
1348           RANLIB="$(RANLIB)"; export RANLIB; \
1349           WINDRES="$(WINDRES)"; export WINDRES; \
1350           OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
1351           OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
1352         fi; \
1353         echo Configuring in ash; \
1354         cd ash || exit 1; \
1355         case $(srcdir) in \
1356           \.) \
1357             srcdiroption="--srcdir=."; \
1358             libsrcdir=".";; \
1359           /* | [A-Za-z]:[\\/]*) \
1360             srcdiroption="--srcdir=$(srcdir)/ash"; \
1361             libsrcdir="$$s/ash";; \
1362           *) \
1363             srcdiroption="--srcdir=../$(srcdir)/ash"; \
1364             libsrcdir="$$s/ash";; \
1365         esac; \
1366         $(SHELL) $${libsrcdir}/configure \
1367           $(HOST_CONFIGARGS) $${srcdiroption} \
1368           || exit 1
1369
1370 .PHONY: all-ash maybe-all-ash
1371 maybe-all-ash:
1372 all-ash: configure-ash
1373         @r=`${PWD}`; export r; \
1374         s=`cd $(srcdir); ${PWD}`; export s; \
1375         $(SET_LIB_PATH) \
1376         (cd ash && $(MAKE) $(FLAGS_TO_PASS) all)
1377
1378
1379 .PHONY: check-ash
1380 check-ash:
1381         @r=`${PWD}`; export r; \
1382         s=`cd $(srcdir); ${PWD}`; export s; \
1383         $(SET_LIB_PATH) \
1384         (cd ash && $(MAKE) $(FLAGS_TO_PASS) check)
1385
1386
1387
1388 .PHONY: install-ash maybe-install-ash
1389 maybe-install-ash:
1390 install-ash: installdirs
1391         @r=`${PWD}`; export r; \
1392         s=`cd $(srcdir); ${PWD}`; export s; \
1393         $(SET_LIB_PATH) \
1394         (cd ash && $(MAKE) $(FLAGS_TO_PASS) install)
1395
1396
1397 .PHONY: configure-autoconf maybe-configure-autoconf
1398 maybe-configure-autoconf:
1399 configure-autoconf:
1400         @test ! -f autoconf/Makefile || exit 0; \
1401         [ -d autoconf ] || mkdir autoconf; \
1402         r=`${PWD}`; export r; \
1403         s=`cd $(srcdir); ${PWD}`; export s; \
1404         CC="$(CC)"; export CC; \
1405         CFLAGS="$(CFLAGS)"; export CFLAGS; \
1406         CXX="$(CXX)"; export CXX; \
1407         CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1408         if [ z$(build_canonical) !=  z$(host_canoncial) ] ; then \
1409           AR="$(AR)"; export AR; \
1410           AS="$(AS)"; export AS; \
1411           CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
1412           DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
1413           LD="$(LD)"; export LD; \
1414           NM="$(NM)"; export NM; \
1415           RANLIB="$(RANLIB)"; export RANLIB; \
1416           WINDRES="$(WINDRES)"; export WINDRES; \
1417           OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
1418           OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
1419         fi; \
1420         echo Configuring in autoconf; \
1421         cd autoconf || exit 1; \
1422         case $(srcdir) in \
1423           \.) \
1424             srcdiroption="--srcdir=."; \
1425             libsrcdir=".";; \
1426           /* | [A-Za-z]:[\\/]*) \
1427             srcdiroption="--srcdir=$(srcdir)/autoconf"; \
1428             libsrcdir="$$s/autoconf";; \
1429           *) \
1430             srcdiroption="--srcdir=../$(srcdir)/autoconf"; \
1431             libsrcdir="$$s/autoconf";; \
1432         esac; \
1433         $(SHELL) $${libsrcdir}/configure \
1434           $(HOST_CONFIGARGS) $${srcdiroption} \
1435           || exit 1
1436
1437 .PHONY: all-autoconf maybe-all-autoconf
1438 maybe-all-autoconf:
1439 all-autoconf: configure-autoconf
1440         @r=`${PWD}`; export r; \
1441         s=`cd $(srcdir); ${PWD}`; export s; \
1442         $(SET_LIB_PATH) \
1443         (cd autoconf && $(MAKE) $(FLAGS_TO_PASS) all)
1444
1445
1446 .PHONY: check-autoconf
1447 check-autoconf:
1448         @r=`${PWD}`; export r; \
1449         s=`cd $(srcdir); ${PWD}`; export s; \
1450         $(SET_LIB_PATH) \
1451         (cd autoconf && $(MAKE) $(FLAGS_TO_PASS) check)
1452
1453
1454
1455 .PHONY: install-autoconf maybe-install-autoconf
1456 maybe-install-autoconf:
1457 install-autoconf: installdirs
1458         @r=`${PWD}`; export r; \
1459         s=`cd $(srcdir); ${PWD}`; export s; \
1460         $(SET_LIB_PATH) \
1461         (cd autoconf && $(MAKE) $(FLAGS_TO_PASS) install)
1462
1463
1464 .PHONY: configure-automake maybe-configure-automake
1465 maybe-configure-automake:
1466 configure-automake:
1467         @test ! -f automake/Makefile || exit 0; \
1468         [ -d automake ] || mkdir automake; \
1469         r=`${PWD}`; export r; \
1470         s=`cd $(srcdir); ${PWD}`; export s; \
1471         CC="$(CC)"; export CC; \
1472         CFLAGS="$(CFLAGS)"; export CFLAGS; \
1473         CXX="$(CXX)"; export CXX; \
1474         CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1475         if [ z$(build_canonical) !=  z$(host_canoncial) ] ; then \
1476           AR="$(AR)"; export AR; \
1477           AS="$(AS)"; export AS; \
1478           CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
1479           DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
1480           LD="$(LD)"; export LD; \
1481           NM="$(NM)"; export NM; \
1482           RANLIB="$(RANLIB)"; export RANLIB; \
1483           WINDRES="$(WINDRES)"; export WINDRES; \
1484           OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
1485           OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
1486         fi; \
1487         echo Configuring in automake; \
1488         cd automake || exit 1; \
1489         case $(srcdir) in \
1490           \.) \
1491             srcdiroption="--srcdir=."; \
1492             libsrcdir=".";; \
1493           /* | [A-Za-z]:[\\/]*) \
1494             srcdiroption="--srcdir=$(srcdir)/automake"; \
1495             libsrcdir="$$s/automake";; \
1496           *) \
1497             srcdiroption="--srcdir=../$(srcdir)/automake"; \
1498             libsrcdir="$$s/automake";; \
1499         esac; \
1500         $(SHELL) $${libsrcdir}/configure \
1501           $(HOST_CONFIGARGS) $${srcdiroption} \
1502           || exit 1
1503
1504 .PHONY: all-automake maybe-all-automake
1505 maybe-all-automake:
1506 all-automake: configure-automake
1507         @r=`${PWD}`; export r; \
1508         s=`cd $(srcdir); ${PWD}`; export s; \
1509         $(SET_LIB_PATH) \
1510         (cd automake && $(MAKE) $(FLAGS_TO_PASS) all)
1511
1512
1513 .PHONY: check-automake
1514 check-automake:
1515         @r=`${PWD}`; export r; \
1516         s=`cd $(srcdir); ${PWD}`; export s; \
1517         $(SET_LIB_PATH) \
1518         (cd automake && $(MAKE) $(FLAGS_TO_PASS) check)
1519
1520
1521
1522 .PHONY: install-automake maybe-install-automake
1523 maybe-install-automake:
1524 install-automake: installdirs
1525         @r=`${PWD}`; export r; \
1526         s=`cd $(srcdir); ${PWD}`; export s; \
1527         $(SET_LIB_PATH) \
1528         (cd automake && $(MAKE) $(FLAGS_TO_PASS) install)
1529
1530
1531 .PHONY: configure-bash maybe-configure-bash
1532 maybe-configure-bash:
1533 configure-bash:
1534         @test ! -f bash/Makefile || exit 0; \
1535         [ -d bash ] || mkdir bash; \
1536         r=`${PWD}`; export r; \
1537         s=`cd $(srcdir); ${PWD}`; export s; \
1538         CC="$(CC)"; export CC; \
1539         CFLAGS="$(CFLAGS)"; export CFLAGS; \
1540         CXX="$(CXX)"; export CXX; \
1541         CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1542         if [ z$(build_canonical) !=  z$(host_canoncial) ] ; then \
1543           AR="$(AR)"; export AR; \
1544           AS="$(AS)"; export AS; \
1545           CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
1546           DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
1547           LD="$(LD)"; export LD; \
1548           NM="$(NM)"; export NM; \
1549           RANLIB="$(RANLIB)"; export RANLIB; \
1550           WINDRES="$(WINDRES)"; export WINDRES; \
1551           OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
1552           OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
1553         fi; \
1554         echo Configuring in bash; \
1555         cd bash || exit 1; \
1556         case $(srcdir) in \
1557           \.) \
1558             srcdiroption="--srcdir=."; \
1559             libsrcdir=".";; \
1560           /* | [A-Za-z]:[\\/]*) \
1561             srcdiroption="--srcdir=$(srcdir)/bash"; \
1562             libsrcdir="$$s/bash";; \
1563           *) \
1564             srcdiroption="--srcdir=../$(srcdir)/bash"; \
1565             libsrcdir="$$s/bash";; \
1566         esac; \
1567         $(SHELL) $${libsrcdir}/configure \
1568           $(HOST_CONFIGARGS) $${srcdiroption} \
1569           || exit 1
1570
1571 .PHONY: all-bash maybe-all-bash
1572 maybe-all-bash:
1573 all-bash: configure-bash
1574         @r=`${PWD}`; export r; \
1575         s=`cd $(srcdir); ${PWD}`; export s; \
1576         $(SET_LIB_PATH) \
1577         (cd bash && $(MAKE) $(FLAGS_TO_PASS) all)
1578
1579
1580 .PHONY: check-bash
1581 check-bash:
1582         @r=`${PWD}`; export r; \
1583         s=`cd $(srcdir); ${PWD}`; export s; \
1584         $(SET_LIB_PATH) \
1585         (cd bash && $(MAKE) $(FLAGS_TO_PASS) check)
1586
1587
1588
1589 .PHONY: install-bash maybe-install-bash
1590 maybe-install-bash:
1591 install-bash: installdirs
1592         @r=`${PWD}`; export r; \
1593         s=`cd $(srcdir); ${PWD}`; export s; \
1594         $(SET_LIB_PATH) \
1595         (cd bash && $(MAKE) $(FLAGS_TO_PASS) install)
1596
1597
1598 .PHONY: configure-bfd maybe-configure-bfd
1599 maybe-configure-bfd:
1600 configure-bfd:
1601         @test ! -f bfd/Makefile || exit 0; \
1602         [ -d bfd ] || mkdir bfd; \
1603         r=`${PWD}`; export r; \
1604         s=`cd $(srcdir); ${PWD}`; export s; \
1605         CC="$(CC)"; export CC; \
1606         CFLAGS="$(CFLAGS)"; export CFLAGS; \
1607         CXX="$(CXX)"; export CXX; \
1608         CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1609         if [ z$(build_canonical) !=  z$(host_canoncial) ] ; then \
1610           AR="$(AR)"; export AR; \
1611           AS="$(AS)"; export AS; \
1612           CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
1613           DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
1614           LD="$(LD)"; export LD; \
1615           NM="$(NM)"; export NM; \
1616           RANLIB="$(RANLIB)"; export RANLIB; \
1617           WINDRES="$(WINDRES)"; export WINDRES; \
1618           OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
1619           OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
1620         fi; \
1621         echo Configuring in bfd; \
1622         cd bfd || exit 1; \
1623         case $(srcdir) in \
1624           \.) \
1625             srcdiroption="--srcdir=."; \
1626             libsrcdir=".";; \
1627           /* | [A-Za-z]:[\\/]*) \
1628             srcdiroption="--srcdir=$(srcdir)/bfd"; \
1629             libsrcdir="$$s/bfd";; \
1630           *) \
1631             srcdiroption="--srcdir=../$(srcdir)/bfd"; \
1632             libsrcdir="$$s/bfd";; \
1633         esac; \
1634         $(SHELL) $${libsrcdir}/configure \
1635           $(HOST_CONFIGARGS) $${srcdiroption} \
1636           || exit 1
1637
1638 .PHONY: all-bfd maybe-all-bfd
1639 maybe-all-bfd:
1640 all-bfd: configure-bfd
1641         @r=`${PWD}`; export r; \
1642         s=`cd $(srcdir); ${PWD}`; export s; \
1643         $(SET_LIB_PATH) \
1644         (cd bfd && $(MAKE) $(FLAGS_TO_PASS) all)
1645
1646
1647 .PHONY: check-bfd
1648 check-bfd:
1649         @r=`${PWD}`; export r; \
1650         s=`cd $(srcdir); ${PWD}`; export s; \
1651         $(SET_LIB_PATH) \
1652         (cd bfd && $(MAKE) $(FLAGS_TO_PASS) check)
1653
1654
1655
1656 .PHONY: install-bfd maybe-install-bfd
1657 maybe-install-bfd:
1658 install-bfd: installdirs
1659         @r=`${PWD}`; export r; \
1660         s=`cd $(srcdir); ${PWD}`; export s; \
1661         $(SET_LIB_PATH) \
1662         (cd bfd && $(MAKE) $(FLAGS_TO_PASS) install)
1663
1664
1665 .PHONY: configure-opcodes maybe-configure-opcodes
1666 maybe-configure-opcodes:
1667 configure-opcodes:
1668         @test ! -f opcodes/Makefile || exit 0; \
1669         [ -d opcodes ] || mkdir opcodes; \
1670         r=`${PWD}`; export r; \
1671         s=`cd $(srcdir); ${PWD}`; export s; \
1672         CC="$(CC)"; export CC; \
1673         CFLAGS="$(CFLAGS)"; export CFLAGS; \
1674         CXX="$(CXX)"; export CXX; \
1675         CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1676         if [ z$(build_canonical) !=  z$(host_canoncial) ] ; then \
1677           AR="$(AR)"; export AR; \
1678           AS="$(AS)"; export AS; \
1679           CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
1680           DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
1681           LD="$(LD)"; export LD; \
1682           NM="$(NM)"; export NM; \
1683           RANLIB="$(RANLIB)"; export RANLIB; \
1684           WINDRES="$(WINDRES)"; export WINDRES; \
1685           OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
1686           OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
1687         fi; \
1688         echo Configuring in opcodes; \
1689         cd opcodes || exit 1; \
1690         case $(srcdir) in \
1691           \.) \
1692             srcdiroption="--srcdir=."; \
1693             libsrcdir=".";; \
1694           /* | [A-Za-z]:[\\/]*) \
1695             srcdiroption="--srcdir=$(srcdir)/opcodes"; \
1696             libsrcdir="$$s/opcodes";; \
1697           *) \
1698             srcdiroption="--srcdir=../$(srcdir)/opcodes"; \
1699             libsrcdir="$$s/opcodes";; \
1700         esac; \
1701         $(SHELL) $${libsrcdir}/configure \
1702           $(HOST_CONFIGARGS) $${srcdiroption} \
1703           || exit 1
1704
1705 .PHONY: all-opcodes maybe-all-opcodes
1706 maybe-all-opcodes:
1707 all-opcodes: configure-opcodes
1708         @r=`${PWD}`; export r; \
1709         s=`cd $(srcdir); ${PWD}`; export s; \
1710         $(SET_LIB_PATH) \
1711         (cd opcodes && $(MAKE) $(FLAGS_TO_PASS) all)
1712
1713
1714 .PHONY: check-opcodes
1715 check-opcodes:
1716         @r=`${PWD}`; export r; \
1717         s=`cd $(srcdir); ${PWD}`; export s; \
1718         $(SET_LIB_PATH) \
1719         (cd opcodes && $(MAKE) $(FLAGS_TO_PASS) check)
1720
1721
1722
1723 .PHONY: install-opcodes maybe-install-opcodes
1724 maybe-install-opcodes:
1725 install-opcodes: installdirs
1726         @r=`${PWD}`; export r; \
1727         s=`cd $(srcdir); ${PWD}`; export s; \
1728         $(SET_LIB_PATH) \
1729         (cd opcodes && $(MAKE) $(FLAGS_TO_PASS) install)
1730
1731
1732 .PHONY: configure-binutils maybe-configure-binutils
1733 maybe-configure-binutils:
1734 configure-binutils:
1735         @test ! -f binutils/Makefile || exit 0; \
1736         [ -d binutils ] || mkdir binutils; \
1737         r=`${PWD}`; export r; \
1738         s=`cd $(srcdir); ${PWD}`; export s; \
1739         CC="$(CC)"; export CC; \
1740         CFLAGS="$(CFLAGS)"; export CFLAGS; \
1741         CXX="$(CXX)"; export CXX; \
1742         CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1743         if [ z$(build_canonical) !=  z$(host_canoncial) ] ; then \
1744           AR="$(AR)"; export AR; \
1745           AS="$(AS)"; export AS; \
1746           CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
1747           DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
1748           LD="$(LD)"; export LD; \
1749           NM="$(NM)"; export NM; \
1750           RANLIB="$(RANLIB)"; export RANLIB; \
1751           WINDRES="$(WINDRES)"; export WINDRES; \
1752           OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
1753           OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
1754         fi; \
1755         echo Configuring in binutils; \
1756         cd binutils || exit 1; \
1757         case $(srcdir) in \
1758           \.) \
1759             srcdiroption="--srcdir=."; \
1760             libsrcdir=".";; \
1761           /* | [A-Za-z]:[\\/]*) \
1762             srcdiroption="--srcdir=$(srcdir)/binutils"; \
1763             libsrcdir="$$s/binutils";; \
1764           *) \
1765             srcdiroption="--srcdir=../$(srcdir)/binutils"; \
1766             libsrcdir="$$s/binutils";; \
1767         esac; \
1768         $(SHELL) $${libsrcdir}/configure \
1769           $(HOST_CONFIGARGS) $${srcdiroption} \
1770           || exit 1
1771
1772 .PHONY: all-binutils maybe-all-binutils
1773 maybe-all-binutils:
1774 all-binutils: configure-binutils
1775         @r=`${PWD}`; export r; \
1776         s=`cd $(srcdir); ${PWD}`; export s; \
1777         $(SET_LIB_PATH) \
1778         (cd binutils && $(MAKE) $(FLAGS_TO_PASS) all)
1779
1780
1781 .PHONY: check-binutils
1782 check-binutils:
1783         @r=`${PWD}`; export r; \
1784         s=`cd $(srcdir); ${PWD}`; export s; \
1785         $(SET_LIB_PATH) \
1786         (cd binutils && $(MAKE) $(FLAGS_TO_PASS) check)
1787
1788
1789
1790 .PHONY: install-binutils maybe-install-binutils
1791 maybe-install-binutils:
1792 install-binutils: installdirs
1793         @r=`${PWD}`; export r; \
1794         s=`cd $(srcdir); ${PWD}`; export s; \
1795         $(SET_LIB_PATH) \
1796         (cd binutils && $(MAKE) $(FLAGS_TO_PASS) install)
1797
1798
1799 .PHONY: configure-bison maybe-configure-bison
1800 maybe-configure-bison:
1801 configure-bison:
1802         @test ! -f bison/Makefile || exit 0; \
1803         [ -d bison ] || mkdir bison; \
1804         r=`${PWD}`; export r; \
1805         s=`cd $(srcdir); ${PWD}`; export s; \
1806         CC="$(CC)"; export CC; \
1807         CFLAGS="$(CFLAGS)"; export CFLAGS; \
1808         CXX="$(CXX)"; export CXX; \
1809         CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1810         if [ z$(build_canonical) !=  z$(host_canoncial) ] ; then \
1811           AR="$(AR)"; export AR; \
1812           AS="$(AS)"; export AS; \
1813           CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
1814           DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
1815           LD="$(LD)"; export LD; \
1816           NM="$(NM)"; export NM; \
1817           RANLIB="$(RANLIB)"; export RANLIB; \
1818           WINDRES="$(WINDRES)"; export WINDRES; \
1819           OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
1820           OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
1821         fi; \
1822         echo Configuring in bison; \
1823         cd bison || exit 1; \
1824         case $(srcdir) in \
1825           \.) \
1826             srcdiroption="--srcdir=."; \
1827             libsrcdir=".";; \
1828           /* | [A-Za-z]:[\\/]*) \
1829             srcdiroption="--srcdir=$(srcdir)/bison"; \
1830             libsrcdir="$$s/bison";; \
1831           *) \
1832             srcdiroption="--srcdir=../$(srcdir)/bison"; \
1833             libsrcdir="$$s/bison";; \
1834         esac; \
1835         $(SHELL) $${libsrcdir}/configure \
1836           $(HOST_CONFIGARGS) $${srcdiroption} \
1837           || exit 1
1838
1839 .PHONY: all-bison maybe-all-bison
1840 maybe-all-bison:
1841 all-bison: configure-bison
1842         @r=`${PWD}`; export r; \
1843         s=`cd $(srcdir); ${PWD}`; export s; \
1844         $(SET_LIB_PATH) \
1845         (cd bison && $(MAKE) $(FLAGS_TO_PASS) all)
1846
1847
1848 .PHONY: check-bison
1849 # This module is only tested in a native toolchain.
1850 check-bison:
1851         @if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
1852           r=`${PWD}`; export r; \
1853           s=`cd $(srcdir); ${PWD}`; export s; \
1854           $(SET_LIB_PATH) \
1855           (cd bison && $(MAKE) $(FLAGS_TO_PASS) check); \
1856         fi
1857
1858
1859
1860 .PHONY: install-bison maybe-install-bison
1861 maybe-install-bison:
1862 install-bison: installdirs
1863         @r=`${PWD}`; export r; \
1864         s=`cd $(srcdir); ${PWD}`; export s; \
1865         $(SET_LIB_PATH) \
1866         (cd bison && $(MAKE) $(FLAGS_TO_PASS) install)
1867
1868
1869 .PHONY: configure-byacc maybe-configure-byacc
1870 maybe-configure-byacc:
1871 configure-byacc:
1872         @test ! -f byacc/Makefile || exit 0; \
1873         [ -d byacc ] || mkdir byacc; \
1874         r=`${PWD}`; export r; \
1875         s=`cd $(srcdir); ${PWD}`; export s; \
1876         CC="$(CC)"; export CC; \
1877         CFLAGS="$(CFLAGS)"; export CFLAGS; \
1878         CXX="$(CXX)"; export CXX; \
1879         CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1880         if [ z$(build_canonical) !=  z$(host_canoncial) ] ; then \
1881           AR="$(AR)"; export AR; \
1882           AS="$(AS)"; export AS; \
1883           CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
1884           DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
1885           LD="$(LD)"; export LD; \
1886           NM="$(NM)"; export NM; \
1887           RANLIB="$(RANLIB)"; export RANLIB; \
1888           WINDRES="$(WINDRES)"; export WINDRES; \
1889           OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
1890           OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
1891         fi; \
1892         echo Configuring in byacc; \
1893         cd byacc || exit 1; \
1894         case $(srcdir) in \
1895           \.) \
1896             srcdiroption="--srcdir=."; \
1897             libsrcdir=".";; \
1898           /* | [A-Za-z]:[\\/]*) \
1899             srcdiroption="--srcdir=$(srcdir)/byacc"; \
1900             libsrcdir="$$s/byacc";; \
1901           *) \
1902             srcdiroption="--srcdir=../$(srcdir)/byacc"; \
1903             libsrcdir="$$s/byacc";; \
1904         esac; \
1905         $(SHELL) $${libsrcdir}/configure \
1906           $(HOST_CONFIGARGS) $${srcdiroption} \
1907           || exit 1
1908
1909 .PHONY: all-byacc maybe-all-byacc
1910 maybe-all-byacc:
1911 all-byacc: configure-byacc
1912         @r=`${PWD}`; export r; \
1913         s=`cd $(srcdir); ${PWD}`; export s; \
1914         $(SET_LIB_PATH) \
1915         (cd byacc && $(MAKE) $(FLAGS_TO_PASS) all)
1916
1917
1918 .PHONY: check-byacc
1919 # This module is only tested in a native toolchain.
1920 check-byacc:
1921         @if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
1922           r=`${PWD}`; export r; \
1923           s=`cd $(srcdir); ${PWD}`; export s; \
1924           $(SET_LIB_PATH) \
1925           (cd byacc && $(MAKE) $(FLAGS_TO_PASS) check); \
1926         fi
1927
1928
1929
1930 .PHONY: install-byacc maybe-install-byacc
1931 maybe-install-byacc:
1932 install-byacc: installdirs
1933         @r=`${PWD}`; export r; \
1934         s=`cd $(srcdir); ${PWD}`; export s; \
1935         $(SET_LIB_PATH) \
1936         (cd byacc && $(MAKE) $(FLAGS_TO_PASS) install)
1937
1938
1939 .PHONY: configure-bzip2 maybe-configure-bzip2
1940 maybe-configure-bzip2:
1941 configure-bzip2:
1942         @test ! -f bzip2/Makefile || exit 0; \
1943         [ -d bzip2 ] || mkdir bzip2; \
1944         r=`${PWD}`; export r; \
1945         s=`cd $(srcdir); ${PWD}`; export s; \
1946         CC="$(CC)"; export CC; \
1947         CFLAGS="$(CFLAGS)"; export CFLAGS; \
1948         CXX="$(CXX)"; export CXX; \
1949         CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1950         if [ z$(build_canonical) !=  z$(host_canoncial) ] ; then \
1951           AR="$(AR)"; export AR; \
1952           AS="$(AS)"; export AS; \
1953           CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
1954           DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
1955           LD="$(LD)"; export LD; \
1956           NM="$(NM)"; export NM; \
1957           RANLIB="$(RANLIB)"; export RANLIB; \
1958           WINDRES="$(WINDRES)"; export WINDRES; \
1959           OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
1960           OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
1961         fi; \
1962         echo Configuring in bzip2; \
1963         cd bzip2 || exit 1; \
1964         case $(srcdir) in \
1965           \.) \
1966             srcdiroption="--srcdir=."; \
1967             libsrcdir=".";; \
1968           /* | [A-Za-z]:[\\/]*) \
1969             srcdiroption="--srcdir=$(srcdir)/bzip2"; \
1970             libsrcdir="$$s/bzip2";; \
1971           *) \
1972             srcdiroption="--srcdir=../$(srcdir)/bzip2"; \
1973             libsrcdir="$$s/bzip2";; \
1974         esac; \
1975         $(SHELL) $${libsrcdir}/configure \
1976           $(HOST_CONFIGARGS) $${srcdiroption} \
1977           || exit 1
1978
1979 .PHONY: all-bzip2 maybe-all-bzip2
1980 maybe-all-bzip2:
1981 all-bzip2: configure-bzip2
1982         @r=`${PWD}`; export r; \
1983         s=`cd $(srcdir); ${PWD}`; export s; \
1984         $(SET_LIB_PATH) \
1985         (cd bzip2 && $(MAKE) $(FLAGS_TO_PASS) all)
1986
1987
1988 .PHONY: check-bzip2
1989 check-bzip2:
1990         @r=`${PWD}`; export r; \
1991         s=`cd $(srcdir); ${PWD}`; export s; \
1992         $(SET_LIB_PATH) \
1993         (cd bzip2 && $(MAKE) $(FLAGS_TO_PASS) check)
1994
1995
1996
1997 .PHONY: install-bzip2 maybe-install-bzip2
1998 maybe-install-bzip2:
1999 install-bzip2: installdirs
2000         @r=`${PWD}`; export r; \
2001         s=`cd $(srcdir); ${PWD}`; export s; \
2002         $(SET_LIB_PATH) \
2003         (cd bzip2 && $(MAKE) $(FLAGS_TO_PASS) install)
2004
2005
2006 .PHONY: configure-dejagnu maybe-configure-dejagnu
2007 maybe-configure-dejagnu:
2008 configure-dejagnu:
2009         @test ! -f dejagnu/Makefile || exit 0; \
2010         [ -d dejagnu ] || mkdir dejagnu; \
2011         r=`${PWD}`; export r; \
2012         s=`cd $(srcdir); ${PWD}`; export s; \
2013         CC="$(CC)"; export CC; \
2014         CFLAGS="$(CFLAGS)"; export CFLAGS; \
2015         CXX="$(CXX)"; export CXX; \
2016         CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2017         if [ z$(build_canonical) !=  z$(host_canoncial) ] ; then \
2018           AR="$(AR)"; export AR; \
2019           AS="$(AS)"; export AS; \
2020           CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2021           DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2022           LD="$(LD)"; export LD; \
2023           NM="$(NM)"; export NM; \
2024           RANLIB="$(RANLIB)"; export RANLIB; \
2025           WINDRES="$(WINDRES)"; export WINDRES; \
2026           OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2027           OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2028         fi; \
2029         echo Configuring in dejagnu; \
2030         cd dejagnu || exit 1; \
2031         case $(srcdir) in \
2032           \.) \
2033             srcdiroption="--srcdir=."; \
2034             libsrcdir=".";; \
2035           /* | [A-Za-z]:[\\/]*) \
2036             srcdiroption="--srcdir=$(srcdir)/dejagnu"; \
2037             libsrcdir="$$s/dejagnu";; \
2038           *) \
2039             srcdiroption="--srcdir=../$(srcdir)/dejagnu"; \
2040             libsrcdir="$$s/dejagnu";; \
2041         esac; \
2042         $(SHELL) $${libsrcdir}/configure \
2043           $(HOST_CONFIGARGS) $${srcdiroption} \
2044           || exit 1
2045
2046 .PHONY: all-dejagnu maybe-all-dejagnu
2047 maybe-all-dejagnu:
2048 all-dejagnu: configure-dejagnu
2049         @r=`${PWD}`; export r; \
2050         s=`cd $(srcdir); ${PWD}`; export s; \
2051         $(SET_LIB_PATH) \
2052         (cd dejagnu && $(MAKE) $(FLAGS_TO_PASS) all)
2053
2054
2055 .PHONY: check-dejagnu
2056 check-dejagnu:
2057         @r=`${PWD}`; export r; \
2058         s=`cd $(srcdir); ${PWD}`; export s; \
2059         $(SET_LIB_PATH) \
2060         (cd dejagnu && $(MAKE) $(FLAGS_TO_PASS) check)
2061
2062
2063
2064 .PHONY: install-dejagnu maybe-install-dejagnu
2065 maybe-install-dejagnu:
2066 install-dejagnu: installdirs
2067         @r=`${PWD}`; export r; \
2068         s=`cd $(srcdir); ${PWD}`; export s; \
2069         $(SET_LIB_PATH) \
2070         (cd dejagnu && $(MAKE) $(FLAGS_TO_PASS) install)
2071
2072
2073 .PHONY: configure-diff maybe-configure-diff
2074 maybe-configure-diff:
2075 configure-diff:
2076         @test ! -f diff/Makefile || exit 0; \
2077         [ -d diff ] || mkdir diff; \
2078         r=`${PWD}`; export r; \
2079         s=`cd $(srcdir); ${PWD}`; export s; \
2080         CC="$(CC)"; export CC; \
2081         CFLAGS="$(CFLAGS)"; export CFLAGS; \
2082         CXX="$(CXX)"; export CXX; \
2083         CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2084         if [ z$(build_canonical) !=  z$(host_canoncial) ] ; then \
2085           AR="$(AR)"; export AR; \
2086           AS="$(AS)"; export AS; \
2087           CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2088           DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2089           LD="$(LD)"; export LD; \
2090           NM="$(NM)"; export NM; \
2091           RANLIB="$(RANLIB)"; export RANLIB; \
2092           WINDRES="$(WINDRES)"; export WINDRES; \
2093           OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2094           OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2095         fi; \
2096         echo Configuring in diff; \
2097         cd diff || exit 1; \
2098         case $(srcdir) in \
2099           \.) \
2100             srcdiroption="--srcdir=."; \
2101             libsrcdir=".";; \
2102           /* | [A-Za-z]:[\\/]*) \
2103             srcdiroption="--srcdir=$(srcdir)/diff"; \
2104             libsrcdir="$$s/diff";; \
2105           *) \
2106             srcdiroption="--srcdir=../$(srcdir)/diff"; \
2107             libsrcdir="$$s/diff";; \
2108         esac; \
2109         $(SHELL) $${libsrcdir}/configure \
2110           $(HOST_CONFIGARGS) $${srcdiroption} \
2111           || exit 1
2112
2113 .PHONY: all-diff maybe-all-diff
2114 maybe-all-diff:
2115 all-diff: configure-diff
2116         @r=`${PWD}`; export r; \
2117         s=`cd $(srcdir); ${PWD}`; export s; \
2118         $(SET_LIB_PATH) \
2119         (cd diff && $(MAKE) $(FLAGS_TO_PASS) all)
2120
2121
2122 .PHONY: check-diff
2123 check-diff:
2124         @r=`${PWD}`; export r; \
2125         s=`cd $(srcdir); ${PWD}`; export s; \
2126         $(SET_LIB_PATH) \
2127         (cd diff && $(MAKE) $(FLAGS_TO_PASS) check)
2128
2129
2130
2131 .PHONY: install-diff maybe-install-diff
2132 maybe-install-diff:
2133 install-diff: installdirs
2134         @r=`${PWD}`; export r; \
2135         s=`cd $(srcdir); ${PWD}`; export s; \
2136         $(SET_LIB_PATH) \
2137         (cd diff && $(MAKE) $(FLAGS_TO_PASS) install)
2138
2139
2140 .PHONY: configure-dosutils maybe-configure-dosutils
2141 maybe-configure-dosutils:
2142 configure-dosutils:
2143         @test ! -f dosutils/Makefile || exit 0; \
2144         [ -d dosutils ] || mkdir dosutils; \
2145         r=`${PWD}`; export r; \
2146         s=`cd $(srcdir); ${PWD}`; export s; \
2147         CC="$(CC)"; export CC; \
2148         CFLAGS="$(CFLAGS)"; export CFLAGS; \
2149         CXX="$(CXX)"; export CXX; \
2150         CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2151         if [ z$(build_canonical) !=  z$(host_canoncial) ] ; then \
2152           AR="$(AR)"; export AR; \
2153           AS="$(AS)"; export AS; \
2154           CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2155           DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2156           LD="$(LD)"; export LD; \
2157           NM="$(NM)"; export NM; \
2158           RANLIB="$(RANLIB)"; export RANLIB; \
2159           WINDRES="$(WINDRES)"; export WINDRES; \
2160           OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2161           OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2162         fi; \
2163         echo Configuring in dosutils; \
2164         cd dosutils || exit 1; \
2165         case $(srcdir) in \
2166           \.) \
2167             srcdiroption="--srcdir=."; \
2168             libsrcdir=".";; \
2169           /* | [A-Za-z]:[\\/]*) \
2170             srcdiroption="--srcdir=$(srcdir)/dosutils"; \
2171             libsrcdir="$$s/dosutils";; \
2172           *) \
2173             srcdiroption="--srcdir=../$(srcdir)/dosutils"; \
2174             libsrcdir="$$s/dosutils";; \
2175         esac; \
2176         $(SHELL) $${libsrcdir}/configure \
2177           $(HOST_CONFIGARGS) $${srcdiroption} \
2178           || exit 1
2179
2180 .PHONY: all-dosutils maybe-all-dosutils
2181 maybe-all-dosutils:
2182 all-dosutils: configure-dosutils
2183         @r=`${PWD}`; export r; \
2184         s=`cd $(srcdir); ${PWD}`; export s; \
2185         $(SET_LIB_PATH) \
2186         (cd dosutils && $(MAKE) $(FLAGS_TO_PASS) all)
2187
2188
2189 .PHONY: check-dosutils
2190 check-dosutils:
2191
2192
2193
2194 .PHONY: install-dosutils maybe-install-dosutils
2195 maybe-install-dosutils:
2196 install-dosutils: installdirs
2197         @r=`${PWD}`; export r; \
2198         s=`cd $(srcdir); ${PWD}`; export s; \
2199         $(SET_LIB_PATH) \
2200         (cd dosutils && $(MAKE) $(FLAGS_TO_PASS) install)
2201
2202
2203 .PHONY: configure-etc maybe-configure-etc
2204 maybe-configure-etc:
2205 configure-etc:
2206         @test ! -f etc/Makefile || exit 0; \
2207         [ -d etc ] || mkdir etc; \
2208         r=`${PWD}`; export r; \
2209         s=`cd $(srcdir); ${PWD}`; export s; \
2210         CC="$(CC)"; export CC; \
2211         CFLAGS="$(CFLAGS)"; export CFLAGS; \
2212         CXX="$(CXX)"; export CXX; \
2213         CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2214         if [ z$(build_canonical) !=  z$(host_canoncial) ] ; then \
2215           AR="$(AR)"; export AR; \
2216           AS="$(AS)"; export AS; \
2217           CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2218           DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2219           LD="$(LD)"; export LD; \
2220           NM="$(NM)"; export NM; \
2221           RANLIB="$(RANLIB)"; export RANLIB; \
2222           WINDRES="$(WINDRES)"; export WINDRES; \
2223           OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2224           OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2225         fi; \
2226         echo Configuring in etc; \
2227         cd etc || exit 1; \
2228         case $(srcdir) in \
2229           \.) \
2230             srcdiroption="--srcdir=."; \
2231             libsrcdir=".";; \
2232           /* | [A-Za-z]:[\\/]*) \
2233             srcdiroption="--srcdir=$(srcdir)/etc"; \
2234             libsrcdir="$$s/etc";; \
2235           *) \
2236             srcdiroption="--srcdir=../$(srcdir)/etc"; \
2237             libsrcdir="$$s/etc";; \
2238         esac; \
2239         $(SHELL) $${libsrcdir}/configure \
2240           $(HOST_CONFIGARGS) $${srcdiroption} \
2241           || exit 1
2242
2243 .PHONY: all-etc maybe-all-etc
2244 maybe-all-etc:
2245 all-etc: configure-etc
2246         @r=`${PWD}`; export r; \
2247         s=`cd $(srcdir); ${PWD}`; export s; \
2248         $(SET_LIB_PATH) \
2249         (cd etc && $(MAKE) $(FLAGS_TO_PASS) all)
2250
2251
2252 .PHONY: check-etc
2253 check-etc:
2254         @r=`${PWD}`; export r; \
2255         s=`cd $(srcdir); ${PWD}`; export s; \
2256         $(SET_LIB_PATH) \
2257         (cd etc && $(MAKE) $(FLAGS_TO_PASS) check)
2258
2259
2260
2261 .PHONY: install-etc maybe-install-etc
2262 maybe-install-etc:
2263 install-etc: installdirs
2264         @r=`${PWD}`; export r; \
2265         s=`cd $(srcdir); ${PWD}`; export s; \
2266         $(SET_LIB_PATH) \
2267         (cd etc && $(MAKE) $(FLAGS_TO_PASS) install)
2268
2269
2270 .PHONY: configure-fastjar maybe-configure-fastjar
2271 maybe-configure-fastjar:
2272 configure-fastjar:
2273         @test ! -f fastjar/Makefile || exit 0; \
2274         [ -d fastjar ] || mkdir fastjar; \
2275         r=`${PWD}`; export r; \
2276         s=`cd $(srcdir); ${PWD}`; export s; \
2277         CC="$(CC)"; export CC; \
2278         CFLAGS="$(CFLAGS)"; export CFLAGS; \
2279         CXX="$(CXX)"; export CXX; \
2280         CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2281         if [ z$(build_canonical) !=  z$(host_canoncial) ] ; then \
2282           AR="$(AR)"; export AR; \
2283           AS="$(AS)"; export AS; \
2284           CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2285           DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2286           LD="$(LD)"; export LD; \
2287           NM="$(NM)"; export NM; \
2288           RANLIB="$(RANLIB)"; export RANLIB; \
2289           WINDRES="$(WINDRES)"; export WINDRES; \
2290           OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2291           OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2292         fi; \
2293         echo Configuring in fastjar; \
2294         cd fastjar || exit 1; \
2295         case $(srcdir) in \
2296           \.) \
2297             srcdiroption="--srcdir=."; \
2298             libsrcdir=".";; \
2299           /* | [A-Za-z]:[\\/]*) \
2300             srcdiroption="--srcdir=$(srcdir)/fastjar"; \
2301             libsrcdir="$$s/fastjar";; \
2302           *) \
2303             srcdiroption="--srcdir=../$(srcdir)/fastjar"; \
2304             libsrcdir="$$s/fastjar";; \
2305         esac; \
2306         $(SHELL) $${libsrcdir}/configure \
2307           $(HOST_CONFIGARGS) $${srcdiroption} \
2308           || exit 1
2309
2310 .PHONY: all-fastjar maybe-all-fastjar
2311 maybe-all-fastjar:
2312 all-fastjar: configure-fastjar
2313         @r=`${PWD}`; export r; \
2314         s=`cd $(srcdir); ${PWD}`; export s; \
2315         $(SET_LIB_PATH) \
2316         (cd fastjar && $(MAKE) $(FLAGS_TO_PASS) all)
2317
2318
2319 .PHONY: check-fastjar
2320 # This module is only tested in a native toolchain.
2321 check-fastjar:
2322         @if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
2323           r=`${PWD}`; export r; \
2324           s=`cd $(srcdir); ${PWD}`; export s; \
2325           $(SET_LIB_PATH) \
2326           (cd fastjar && $(MAKE) $(FLAGS_TO_PASS) check); \
2327         fi
2328
2329
2330
2331 .PHONY: install-fastjar maybe-install-fastjar
2332 maybe-install-fastjar:
2333 install-fastjar: installdirs
2334         @r=`${PWD}`; export r; \
2335         s=`cd $(srcdir); ${PWD}`; export s; \
2336         $(SET_LIB_PATH) \
2337         (cd fastjar && $(MAKE) $(FLAGS_TO_PASS) install)
2338
2339
2340 .PHONY: configure-fileutils maybe-configure-fileutils
2341 maybe-configure-fileutils:
2342 configure-fileutils:
2343         @test ! -f fileutils/Makefile || exit 0; \
2344         [ -d fileutils ] || mkdir fileutils; \
2345         r=`${PWD}`; export r; \
2346         s=`cd $(srcdir); ${PWD}`; export s; \
2347         CC="$(CC)"; export CC; \
2348         CFLAGS="$(CFLAGS)"; export CFLAGS; \
2349         CXX="$(CXX)"; export CXX; \
2350         CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2351         if [ z$(build_canonical) !=  z$(host_canoncial) ] ; then \
2352           AR="$(AR)"; export AR; \
2353           AS="$(AS)"; export AS; \
2354           CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2355           DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2356           LD="$(LD)"; export LD; \
2357           NM="$(NM)"; export NM; \
2358           RANLIB="$(RANLIB)"; export RANLIB; \
2359           WINDRES="$(WINDRES)"; export WINDRES; \
2360           OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2361           OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2362         fi; \
2363         echo Configuring in fileutils; \
2364         cd fileutils || exit 1; \
2365         case $(srcdir) in \
2366           \.) \
2367             srcdiroption="--srcdir=."; \
2368             libsrcdir=".";; \
2369           /* | [A-Za-z]:[\\/]*) \
2370             srcdiroption="--srcdir=$(srcdir)/fileutils"; \
2371             libsrcdir="$$s/fileutils";; \
2372           *) \
2373             srcdiroption="--srcdir=../$(srcdir)/fileutils"; \
2374             libsrcdir="$$s/fileutils";; \
2375         esac; \
2376         $(SHELL) $${libsrcdir}/configure \
2377           $(HOST_CONFIGARGS) $${srcdiroption} \
2378           || exit 1
2379
2380 .PHONY: all-fileutils maybe-all-fileutils
2381 maybe-all-fileutils:
2382 all-fileutils: configure-fileutils
2383         @r=`${PWD}`; export r; \
2384         s=`cd $(srcdir); ${PWD}`; export s; \
2385         $(SET_LIB_PATH) \
2386         (cd fileutils && $(MAKE) $(FLAGS_TO_PASS) all)
2387
2388
2389 .PHONY: check-fileutils
2390 check-fileutils:
2391         @r=`${PWD}`; export r; \
2392         s=`cd $(srcdir); ${PWD}`; export s; \
2393         $(SET_LIB_PATH) \
2394         (cd fileutils && $(MAKE) $(FLAGS_TO_PASS) check)
2395
2396
2397
2398 .PHONY: install-fileutils maybe-install-fileutils
2399 maybe-install-fileutils:
2400 install-fileutils: installdirs
2401         @r=`${PWD}`; export r; \
2402         s=`cd $(srcdir); ${PWD}`; export s; \
2403         $(SET_LIB_PATH) \
2404         (cd fileutils && $(MAKE) $(FLAGS_TO_PASS) install)
2405
2406
2407 .PHONY: configure-findutils maybe-configure-findutils
2408 maybe-configure-findutils:
2409 configure-findutils:
2410         @test ! -f findutils/Makefile || exit 0; \
2411         [ -d findutils ] || mkdir findutils; \
2412         r=`${PWD}`; export r; \
2413         s=`cd $(srcdir); ${PWD}`; export s; \
2414         CC="$(CC)"; export CC; \
2415         CFLAGS="$(CFLAGS)"; export CFLAGS; \
2416         CXX="$(CXX)"; export CXX; \
2417         CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2418         if [ z$(build_canonical) !=  z$(host_canoncial) ] ; then \
2419           AR="$(AR)"; export AR; \
2420           AS="$(AS)"; export AS; \
2421           CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2422           DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2423           LD="$(LD)"; export LD; \
2424           NM="$(NM)"; export NM; \
2425           RANLIB="$(RANLIB)"; export RANLIB; \
2426           WINDRES="$(WINDRES)"; export WINDRES; \
2427           OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2428           OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2429         fi; \
2430         echo Configuring in findutils; \
2431         cd findutils || exit 1; \
2432         case $(srcdir) in \
2433           \.) \
2434             srcdiroption="--srcdir=."; \
2435             libsrcdir=".";; \
2436           /* | [A-Za-z]:[\\/]*) \
2437             srcdiroption="--srcdir=$(srcdir)/findutils"; \
2438             libsrcdir="$$s/findutils";; \
2439           *) \
2440             srcdiroption="--srcdir=../$(srcdir)/findutils"; \
2441             libsrcdir="$$s/findutils";; \
2442         esac; \
2443         $(SHELL) $${libsrcdir}/configure \
2444           $(HOST_CONFIGARGS) $${srcdiroption} \
2445           || exit 1
2446
2447 .PHONY: all-findutils maybe-all-findutils
2448 maybe-all-findutils:
2449 all-findutils: configure-findutils
2450         @r=`${PWD}`; export r; \
2451         s=`cd $(srcdir); ${PWD}`; export s; \
2452         $(SET_LIB_PATH) \
2453         (cd findutils && $(MAKE) $(FLAGS_TO_PASS) all)
2454
2455
2456 .PHONY: check-findutils
2457 check-findutils:
2458         @r=`${PWD}`; export r; \
2459         s=`cd $(srcdir); ${PWD}`; export s; \
2460         $(SET_LIB_PATH) \
2461         (cd findutils && $(MAKE) $(FLAGS_TO_PASS) check)
2462
2463
2464
2465 .PHONY: install-findutils maybe-install-findutils
2466 maybe-install-findutils:
2467 install-findutils: installdirs
2468         @r=`${PWD}`; export r; \
2469         s=`cd $(srcdir); ${PWD}`; export s; \
2470         $(SET_LIB_PATH) \
2471         (cd findutils && $(MAKE) $(FLAGS_TO_PASS) install)
2472
2473
2474 .PHONY: configure-find maybe-configure-find
2475 maybe-configure-find:
2476 configure-find:
2477         @test ! -f find/Makefile || exit 0; \
2478         [ -d find ] || mkdir find; \
2479         r=`${PWD}`; export r; \
2480         s=`cd $(srcdir); ${PWD}`; export s; \
2481         CC="$(CC)"; export CC; \
2482         CFLAGS="$(CFLAGS)"; export CFLAGS; \
2483         CXX="$(CXX)"; export CXX; \
2484         CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2485         if [ z$(build_canonical) !=  z$(host_canoncial) ] ; then \
2486           AR="$(AR)"; export AR; \
2487           AS="$(AS)"; export AS; \
2488           CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2489           DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2490           LD="$(LD)"; export LD; \
2491           NM="$(NM)"; export NM; \
2492           RANLIB="$(RANLIB)"; export RANLIB; \
2493           WINDRES="$(WINDRES)"; export WINDRES; \
2494           OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2495           OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2496         fi; \
2497         echo Configuring in find; \
2498         cd find || exit 1; \
2499         case $(srcdir) in \
2500           \.) \
2501             srcdiroption="--srcdir=."; \
2502             libsrcdir=".";; \
2503           /* | [A-Za-z]:[\\/]*) \
2504             srcdiroption="--srcdir=$(srcdir)/find"; \
2505             libsrcdir="$$s/find";; \
2506           *) \
2507             srcdiroption="--srcdir=../$(srcdir)/find"; \
2508             libsrcdir="$$s/find";; \
2509         esac; \
2510         $(SHELL) $${libsrcdir}/configure \
2511           $(HOST_CONFIGARGS) $${srcdiroption} \
2512           || exit 1
2513
2514 .PHONY: all-find maybe-all-find
2515 maybe-all-find:
2516 all-find: configure-find
2517         @r=`${PWD}`; export r; \
2518         s=`cd $(srcdir); ${PWD}`; export s; \
2519         $(SET_LIB_PATH) \
2520         (cd find && $(MAKE) $(FLAGS_TO_PASS) all)
2521
2522
2523 .PHONY: check-find
2524 check-find:
2525         @r=`${PWD}`; export r; \
2526         s=`cd $(srcdir); ${PWD}`; export s; \
2527         $(SET_LIB_PATH) \
2528         (cd find && $(MAKE) $(FLAGS_TO_PASS) check)
2529
2530
2531
2532 .PHONY: install-find maybe-install-find
2533 maybe-install-find:
2534 install-find: installdirs
2535         @r=`${PWD}`; export r; \
2536         s=`cd $(srcdir); ${PWD}`; export s; \
2537         $(SET_LIB_PATH) \
2538         (cd find && $(MAKE) $(FLAGS_TO_PASS) install)
2539
2540
2541 .PHONY: configure-flex maybe-configure-flex
2542 maybe-configure-flex:
2543 configure-flex:
2544         @test ! -f flex/Makefile || exit 0; \
2545         [ -d flex ] || mkdir flex; \
2546         r=`${PWD}`; export r; \
2547         s=`cd $(srcdir); ${PWD}`; export s; \
2548         CC="$(CC)"; export CC; \
2549         CFLAGS="$(CFLAGS)"; export CFLAGS; \
2550         CXX="$(CXX)"; export CXX; \
2551         CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2552         if [ z$(build_canonical) !=  z$(host_canoncial) ] ; then \
2553           AR="$(AR)"; export AR; \
2554           AS="$(AS)"; export AS; \
2555           CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2556           DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2557           LD="$(LD)"; export LD; \
2558           NM="$(NM)"; export NM; \
2559           RANLIB="$(RANLIB)"; export RANLIB; \
2560           WINDRES="$(WINDRES)"; export WINDRES; \
2561           OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2562           OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2563         fi; \
2564         echo Configuring in flex; \
2565         cd flex || exit 1; \
2566         case $(srcdir) in \
2567           \.) \
2568             srcdiroption="--srcdir=."; \
2569             libsrcdir=".";; \
2570           /* | [A-Za-z]:[\\/]*) \
2571             srcdiroption="--srcdir=$(srcdir)/flex"; \
2572             libsrcdir="$$s/flex";; \
2573           *) \
2574             srcdiroption="--srcdir=../$(srcdir)/flex"; \
2575             libsrcdir="$$s/flex";; \
2576         esac; \
2577         $(SHELL) $${libsrcdir}/configure \
2578           $(HOST_CONFIGARGS) $${srcdiroption} \
2579           || exit 1
2580
2581 .PHONY: all-flex maybe-all-flex
2582 maybe-all-flex:
2583 all-flex: configure-flex
2584         @r=`${PWD}`; export r; \
2585         s=`cd $(srcdir); ${PWD}`; export s; \
2586         $(SET_LIB_PATH) \
2587         (cd flex && $(MAKE) $(FLAGS_TO_PASS) all)
2588
2589
2590 .PHONY: check-flex
2591 # This module is only tested in a native toolchain.
2592 check-flex:
2593         @if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
2594           r=`${PWD}`; export r; \
2595           s=`cd $(srcdir); ${PWD}`; export s; \
2596           $(SET_LIB_PATH) \
2597           (cd flex && $(MAKE) $(FLAGS_TO_PASS) check); \
2598         fi
2599
2600
2601
2602 .PHONY: install-flex maybe-install-flex
2603 maybe-install-flex:
2604 install-flex: installdirs
2605         @r=`${PWD}`; export r; \
2606         s=`cd $(srcdir); ${PWD}`; export s; \
2607         $(SET_LIB_PATH) \
2608         (cd flex && $(MAKE) $(FLAGS_TO_PASS) install)
2609
2610
2611 .PHONY: configure-gas maybe-configure-gas
2612 maybe-configure-gas:
2613 configure-gas:
2614         @test ! -f gas/Makefile || exit 0; \
2615         [ -d gas ] || mkdir gas; \
2616         r=`${PWD}`; export r; \
2617         s=`cd $(srcdir); ${PWD}`; export s; \
2618         CC="$(CC)"; export CC; \
2619         CFLAGS="$(CFLAGS)"; export CFLAGS; \
2620         CXX="$(CXX)"; export CXX; \
2621         CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2622         if [ z$(build_canonical) !=  z$(host_canoncial) ] ; then \
2623           AR="$(AR)"; export AR; \
2624           AS="$(AS)"; export AS; \
2625           CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2626           DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2627           LD="$(LD)"; export LD; \
2628           NM="$(NM)"; export NM; \
2629           RANLIB="$(RANLIB)"; export RANLIB; \
2630           WINDRES="$(WINDRES)"; export WINDRES; \
2631           OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2632           OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2633         fi; \
2634         echo Configuring in gas; \
2635         cd gas || exit 1; \
2636         case $(srcdir) in \
2637           \.) \
2638             srcdiroption="--srcdir=."; \
2639             libsrcdir=".";; \
2640           /* | [A-Za-z]:[\\/]*) \
2641             srcdiroption="--srcdir=$(srcdir)/gas"; \
2642             libsrcdir="$$s/gas";; \
2643           *) \
2644             srcdiroption="--srcdir=../$(srcdir)/gas"; \
2645             libsrcdir="$$s/gas";; \
2646         esac; \
2647         $(SHELL) $${libsrcdir}/configure \
2648           $(HOST_CONFIGARGS) $${srcdiroption} \
2649           || exit 1
2650
2651 .PHONY: all-gas maybe-all-gas
2652 maybe-all-gas:
2653 all-gas: configure-gas
2654         @r=`${PWD}`; export r; \
2655         s=`cd $(srcdir); ${PWD}`; export s; \
2656         $(SET_LIB_PATH) \
2657         (cd gas && $(MAKE) $(FLAGS_TO_PASS) all)
2658
2659
2660 .PHONY: check-gas
2661 check-gas:
2662         @r=`${PWD}`; export r; \
2663         s=`cd $(srcdir); ${PWD}`; export s; \
2664         $(SET_LIB_PATH) \
2665         (cd gas && $(MAKE) $(FLAGS_TO_PASS) check)
2666
2667
2668
2669 .PHONY: install-gas maybe-install-gas
2670 maybe-install-gas:
2671 install-gas: installdirs
2672         @r=`${PWD}`; export r; \
2673         s=`cd $(srcdir); ${PWD}`; export s; \
2674         $(SET_LIB_PATH) \
2675         (cd gas && $(MAKE) $(FLAGS_TO_PASS) install)
2676
2677
2678 .PHONY: configure-gawk maybe-configure-gawk
2679 maybe-configure-gawk:
2680 configure-gawk:
2681         @test ! -f gawk/Makefile || exit 0; \
2682         [ -d gawk ] || mkdir gawk; \
2683         r=`${PWD}`; export r; \
2684         s=`cd $(srcdir); ${PWD}`; export s; \
2685         CC="$(CC)"; export CC; \
2686         CFLAGS="$(CFLAGS)"; export CFLAGS; \
2687         CXX="$(CXX)"; export CXX; \
2688         CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2689         if [ z$(build_canonical) !=  z$(host_canoncial) ] ; then \
2690           AR="$(AR)"; export AR; \
2691           AS="$(AS)"; export AS; \
2692           CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2693           DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2694           LD="$(LD)"; export LD; \
2695           NM="$(NM)"; export NM; \
2696           RANLIB="$(RANLIB)"; export RANLIB; \
2697           WINDRES="$(WINDRES)"; export WINDRES; \
2698           OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2699           OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2700         fi; \
2701         echo Configuring in gawk; \
2702         cd gawk || exit 1; \
2703         case $(srcdir) in \
2704           \.) \
2705             srcdiroption="--srcdir=."; \
2706             libsrcdir=".";; \
2707           /* | [A-Za-z]:[\\/]*) \
2708             srcdiroption="--srcdir=$(srcdir)/gawk"; \
2709             libsrcdir="$$s/gawk";; \
2710           *) \
2711             srcdiroption="--srcdir=../$(srcdir)/gawk"; \
2712             libsrcdir="$$s/gawk";; \
2713         esac; \
2714         $(SHELL) $${libsrcdir}/configure \
2715           $(HOST_CONFIGARGS) $${srcdiroption} \
2716           || exit 1
2717
2718 .PHONY: all-gawk maybe-all-gawk
2719 maybe-all-gawk:
2720 all-gawk: configure-gawk
2721         @r=`${PWD}`; export r; \
2722         s=`cd $(srcdir); ${PWD}`; export s; \
2723         $(SET_LIB_PATH) \
2724         (cd gawk && $(MAKE) $(FLAGS_TO_PASS) all)
2725
2726
2727 .PHONY: check-gawk
2728 check-gawk:
2729         @r=`${PWD}`; export r; \
2730         s=`cd $(srcdir); ${PWD}`; export s; \
2731         $(SET_LIB_PATH) \
2732         (cd gawk && $(MAKE) $(FLAGS_TO_PASS) check)
2733
2734
2735
2736 .PHONY: install-gawk maybe-install-gawk
2737 maybe-install-gawk:
2738 install-gawk: installdirs
2739         @r=`${PWD}`; export r; \
2740         s=`cd $(srcdir); ${PWD}`; export s; \
2741         $(SET_LIB_PATH) \
2742         (cd gawk && $(MAKE) $(FLAGS_TO_PASS) install)
2743
2744
2745 .PHONY: configure-gettext maybe-configure-gettext
2746 maybe-configure-gettext:
2747 configure-gettext:
2748         @test ! -f gettext/Makefile || exit 0; \
2749         [ -d gettext ] || mkdir gettext; \
2750         r=`${PWD}`; export r; \
2751         s=`cd $(srcdir); ${PWD}`; export s; \
2752         CC="$(CC)"; export CC; \
2753         CFLAGS="$(CFLAGS)"; export CFLAGS; \
2754         CXX="$(CXX)"; export CXX; \
2755         CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2756         if [ z$(build_canonical) !=  z$(host_canoncial) ] ; then \
2757           AR="$(AR)"; export AR; \
2758           AS="$(AS)"; export AS; \
2759           CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2760           DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2761           LD="$(LD)"; export LD; \
2762           NM="$(NM)"; export NM; \
2763           RANLIB="$(RANLIB)"; export RANLIB; \
2764           WINDRES="$(WINDRES)"; export WINDRES; \
2765           OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2766           OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2767         fi; \
2768         echo Configuring in gettext; \
2769         cd gettext || exit 1; \
2770         case $(srcdir) in \
2771           \.) \
2772             srcdiroption="--srcdir=."; \
2773             libsrcdir=".";; \
2774           /* | [A-Za-z]:[\\/]*) \
2775             srcdiroption="--srcdir=$(srcdir)/gettext"; \
2776             libsrcdir="$$s/gettext";; \
2777           *) \
2778             srcdiroption="--srcdir=../$(srcdir)/gettext"; \
2779             libsrcdir="$$s/gettext";; \
2780         esac; \
2781         $(SHELL) $${libsrcdir}/configure \
2782           $(HOST_CONFIGARGS) $${srcdiroption} \
2783           || exit 1
2784
2785 .PHONY: all-gettext maybe-all-gettext
2786 maybe-all-gettext:
2787 all-gettext: configure-gettext
2788         @r=`${PWD}`; export r; \
2789         s=`cd $(srcdir); ${PWD}`; export s; \
2790         $(SET_LIB_PATH) \
2791         (cd gettext && $(MAKE) $(FLAGS_TO_PASS) all)
2792
2793
2794 .PHONY: check-gettext
2795 check-gettext:
2796         @r=`${PWD}`; export r; \
2797         s=`cd $(srcdir); ${PWD}`; export s; \
2798         $(SET_LIB_PATH) \
2799         (cd gettext && $(MAKE) $(FLAGS_TO_PASS) check)
2800
2801
2802
2803 .PHONY: install-gettext maybe-install-gettext
2804 maybe-install-gettext:
2805 install-gettext: installdirs
2806         @r=`${PWD}`; export r; \
2807         s=`cd $(srcdir); ${PWD}`; export s; \
2808         $(SET_LIB_PATH) \
2809         (cd gettext && $(MAKE) $(FLAGS_TO_PASS) install)
2810
2811
2812 .PHONY: configure-gnuserv maybe-configure-gnuserv
2813 maybe-configure-gnuserv:
2814 configure-gnuserv:
2815         @test ! -f gnuserv/Makefile || exit 0; \
2816         [ -d gnuserv ] || mkdir gnuserv; \
2817         r=`${PWD}`; export r; \
2818         s=`cd $(srcdir); ${PWD}`; export s; \
2819         CC="$(CC)"; export CC; \
2820         CFLAGS="$(CFLAGS)"; export CFLAGS; \
2821         CXX="$(CXX)"; export CXX; \
2822         CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2823         if [ z$(build_canonical) !=  z$(host_canoncial) ] ; then \
2824           AR="$(AR)"; export AR; \
2825           AS="$(AS)"; export AS; \
2826           CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2827           DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2828           LD="$(LD)"; export LD; \
2829           NM="$(NM)"; export NM; \
2830           RANLIB="$(RANLIB)"; export RANLIB; \
2831           WINDRES="$(WINDRES)"; export WINDRES; \
2832           OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2833           OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2834         fi; \
2835         echo Configuring in gnuserv; \
2836         cd gnuserv || exit 1; \
2837         case $(srcdir) in \
2838           \.) \
2839             srcdiroption="--srcdir=."; \
2840             libsrcdir=".";; \
2841           /* | [A-Za-z]:[\\/]*) \
2842             srcdiroption="--srcdir=$(srcdir)/gnuserv"; \
2843             libsrcdir="$$s/gnuserv";; \
2844           *) \
2845             srcdiroption="--srcdir=../$(srcdir)/gnuserv"; \
2846             libsrcdir="$$s/gnuserv";; \
2847         esac; \
2848         $(SHELL) $${libsrcdir}/configure \
2849           $(HOST_CONFIGARGS) $${srcdiroption} \
2850           || exit 1
2851
2852 .PHONY: all-gnuserv maybe-all-gnuserv
2853 maybe-all-gnuserv:
2854 all-gnuserv: configure-gnuserv
2855         @r=`${PWD}`; export r; \
2856         s=`cd $(srcdir); ${PWD}`; export s; \
2857         $(SET_LIB_PATH) \
2858         (cd gnuserv && $(MAKE) $(FLAGS_TO_PASS) all)
2859
2860
2861 .PHONY: check-gnuserv
2862 check-gnuserv:
2863         @r=`${PWD}`; export r; \
2864         s=`cd $(srcdir); ${PWD}`; export s; \
2865         $(SET_LIB_PATH) \
2866         (cd gnuserv && $(MAKE) $(FLAGS_TO_PASS) check)
2867
2868
2869
2870 .PHONY: install-gnuserv maybe-install-gnuserv
2871 maybe-install-gnuserv:
2872 install-gnuserv: installdirs
2873         @r=`${PWD}`; export r; \
2874         s=`cd $(srcdir); ${PWD}`; export s; \
2875         $(SET_LIB_PATH) \
2876         (cd gnuserv && $(MAKE) $(FLAGS_TO_PASS) install)
2877
2878
2879 .PHONY: configure-gprof maybe-configure-gprof
2880 maybe-configure-gprof:
2881 configure-gprof:
2882         @test ! -f gprof/Makefile || exit 0; \
2883         [ -d gprof ] || mkdir gprof; \
2884         r=`${PWD}`; export r; \
2885         s=`cd $(srcdir); ${PWD}`; export s; \
2886         CC="$(CC)"; export CC; \
2887         CFLAGS="$(CFLAGS)"; export CFLAGS; \
2888         CXX="$(CXX)"; export CXX; \
2889         CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2890         if [ z$(build_canonical) !=  z$(host_canoncial) ] ; then \
2891           AR="$(AR)"; export AR; \
2892           AS="$(AS)"; export AS; \
2893           CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2894           DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2895           LD="$(LD)"; export LD; \
2896           NM="$(NM)"; export NM; \
2897           RANLIB="$(RANLIB)"; export RANLIB; \
2898           WINDRES="$(WINDRES)"; export WINDRES; \
2899           OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2900           OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2901         fi; \
2902         echo Configuring in gprof; \
2903         cd gprof || exit 1; \
2904         case $(srcdir) in \
2905           \.) \
2906             srcdiroption="--srcdir=."; \
2907             libsrcdir=".";; \
2908           /* | [A-Za-z]:[\\/]*) \
2909             srcdiroption="--srcdir=$(srcdir)/gprof"; \
2910             libsrcdir="$$s/gprof";; \
2911           *) \
2912             srcdiroption="--srcdir=../$(srcdir)/gprof"; \
2913             libsrcdir="$$s/gprof";; \
2914         esac; \
2915         $(SHELL) $${libsrcdir}/configure \
2916           $(HOST_CONFIGARGS) $${srcdiroption} \
2917           || exit 1
2918
2919 .PHONY: all-gprof maybe-all-gprof
2920 maybe-all-gprof:
2921 all-gprof: configure-gprof
2922         @r=`${PWD}`; export r; \
2923         s=`cd $(srcdir); ${PWD}`; export s; \
2924         $(SET_LIB_PATH) \
2925         (cd gprof && $(MAKE) $(FLAGS_TO_PASS) all)
2926
2927
2928 .PHONY: check-gprof
2929 check-gprof:
2930         @r=`${PWD}`; export r; \
2931         s=`cd $(srcdir); ${PWD}`; export s; \
2932         $(SET_LIB_PATH) \
2933         (cd gprof && $(MAKE) $(FLAGS_TO_PASS) check)
2934
2935
2936
2937 .PHONY: install-gprof maybe-install-gprof
2938 maybe-install-gprof:
2939 install-gprof: installdirs
2940         @r=`${PWD}`; export r; \
2941         s=`cd $(srcdir); ${PWD}`; export s; \
2942         $(SET_LIB_PATH) \
2943         (cd gprof && $(MAKE) $(FLAGS_TO_PASS) install)
2944
2945
2946 .PHONY: configure-gzip maybe-configure-gzip
2947 maybe-configure-gzip:
2948 configure-gzip:
2949         @test ! -f gzip/Makefile || exit 0; \
2950         [ -d gzip ] || mkdir gzip; \
2951         r=`${PWD}`; export r; \
2952         s=`cd $(srcdir); ${PWD}`; export s; \
2953         CC="$(CC)"; export CC; \
2954         CFLAGS="$(CFLAGS)"; export CFLAGS; \
2955         CXX="$(CXX)"; export CXX; \
2956         CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2957         if [ z$(build_canonical) !=  z$(host_canoncial) ] ; then \
2958           AR="$(AR)"; export AR; \
2959           AS="$(AS)"; export AS; \
2960           CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2961           DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2962           LD="$(LD)"; export LD; \
2963           NM="$(NM)"; export NM; \
2964           RANLIB="$(RANLIB)"; export RANLIB; \
2965           WINDRES="$(WINDRES)"; export WINDRES; \
2966           OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2967           OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2968         fi; \
2969         echo Configuring in gzip; \
2970         cd gzip || exit 1; \
2971         case $(srcdir) in \
2972           \.) \
2973             srcdiroption="--srcdir=."; \
2974             libsrcdir=".";; \
2975           /* | [A-Za-z]:[\\/]*) \
2976             srcdiroption="--srcdir=$(srcdir)/gzip"; \
2977             libsrcdir="$$s/gzip";; \
2978           *) \
2979             srcdiroption="--srcdir=../$(srcdir)/gzip"; \
2980             libsrcdir="$$s/gzip";; \
2981         esac; \
2982         $(SHELL) $${libsrcdir}/configure \
2983           $(HOST_CONFIGARGS) $${srcdiroption} \
2984           || exit 1
2985
2986 .PHONY: all-gzip maybe-all-gzip
2987 maybe-all-gzip:
2988 all-gzip: configure-gzip
2989         @r=`${PWD}`; export r; \
2990         s=`cd $(srcdir); ${PWD}`; export s; \
2991         $(SET_LIB_PATH) \
2992         (cd gzip && $(MAKE) $(FLAGS_TO_PASS) all)
2993
2994
2995 .PHONY: check-gzip
2996 check-gzip:
2997         @r=`${PWD}`; export r; \
2998         s=`cd $(srcdir); ${PWD}`; export s; \
2999         $(SET_LIB_PATH) \
3000         (cd gzip && $(MAKE) $(FLAGS_TO_PASS) check)
3001
3002
3003
3004 .PHONY: install-gzip maybe-install-gzip
3005 maybe-install-gzip:
3006 install-gzip: installdirs
3007         @r=`${PWD}`; export r; \
3008         s=`cd $(srcdir); ${PWD}`; export s; \
3009         $(SET_LIB_PATH) \
3010         (cd gzip && $(MAKE) $(FLAGS_TO_PASS) install)
3011
3012
3013 .PHONY: configure-hello maybe-configure-hello
3014 maybe-configure-hello:
3015 configure-hello:
3016         @test ! -f hello/Makefile || exit 0; \
3017         [ -d hello ] || mkdir hello; \
3018         r=`${PWD}`; export r; \
3019         s=`cd $(srcdir); ${PWD}`; export s; \
3020         CC="$(CC)"; export CC; \
3021         CFLAGS="$(CFLAGS)"; export CFLAGS; \
3022         CXX="$(CXX)"; export CXX; \
3023         CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3024         if [ z$(build_canonical) !=  z$(host_canoncial) ] ; then \
3025           AR="$(AR)"; export AR; \
3026           AS="$(AS)"; export AS; \
3027           CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3028           DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3029           LD="$(LD)"; export LD; \
3030           NM="$(NM)"; export NM; \
3031           RANLIB="$(RANLIB)"; export RANLIB; \
3032           WINDRES="$(WINDRES)"; export WINDRES; \
3033           OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3034           OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3035         fi; \
3036         echo Configuring in hello; \
3037         cd hello || exit 1; \
3038         case $(srcdir) in \
3039           \.) \
3040             srcdiroption="--srcdir=."; \
3041             libsrcdir=".";; \
3042           /* | [A-Za-z]:[\\/]*) \
3043             srcdiroption="--srcdir=$(srcdir)/hello"; \
3044             libsrcdir="$$s/hello";; \
3045           *) \
3046             srcdiroption="--srcdir=../$(srcdir)/hello"; \
3047             libsrcdir="$$s/hello";; \
3048         esac; \
3049         $(SHELL) $${libsrcdir}/configure \
3050           $(HOST_CONFIGARGS) $${srcdiroption} \
3051           || exit 1
3052
3053 .PHONY: all-hello maybe-all-hello
3054 maybe-all-hello:
3055 all-hello: configure-hello
3056         @r=`${PWD}`; export r; \
3057         s=`cd $(srcdir); ${PWD}`; export s; \
3058         $(SET_LIB_PATH) \
3059         (cd hello && $(MAKE) $(FLAGS_TO_PASS) all)
3060
3061
3062 .PHONY: check-hello
3063 check-hello:
3064         @r=`${PWD}`; export r; \
3065         s=`cd $(srcdir); ${PWD}`; export s; \
3066         $(SET_LIB_PATH) \
3067         (cd hello && $(MAKE) $(FLAGS_TO_PASS) check)
3068
3069
3070
3071 .PHONY: install-hello maybe-install-hello
3072 maybe-install-hello:
3073 install-hello: installdirs
3074         @r=`${PWD}`; export r; \
3075         s=`cd $(srcdir); ${PWD}`; export s; \
3076         $(SET_LIB_PATH) \
3077         (cd hello && $(MAKE) $(FLAGS_TO_PASS) install)
3078
3079
3080 .PHONY: configure-indent maybe-configure-indent
3081 maybe-configure-indent:
3082 configure-indent:
3083         @test ! -f indent/Makefile || exit 0; \
3084         [ -d indent ] || mkdir indent; \
3085         r=`${PWD}`; export r; \
3086         s=`cd $(srcdir); ${PWD}`; export s; \
3087         CC="$(CC)"; export CC; \
3088         CFLAGS="$(CFLAGS)"; export CFLAGS; \
3089         CXX="$(CXX)"; export CXX; \
3090         CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3091         if [ z$(build_canonical) !=  z$(host_canoncial) ] ; then \
3092           AR="$(AR)"; export AR; \
3093           AS="$(AS)"; export AS; \
3094           CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3095           DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3096           LD="$(LD)"; export LD; \
3097           NM="$(NM)"; export NM; \
3098           RANLIB="$(RANLIB)"; export RANLIB; \
3099           WINDRES="$(WINDRES)"; export WINDRES; \
3100           OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3101           OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3102         fi; \
3103         echo Configuring in indent; \
3104         cd indent || exit 1; \
3105         case $(srcdir) in \
3106           \.) \
3107             srcdiroption="--srcdir=."; \
3108             libsrcdir=".";; \
3109           /* | [A-Za-z]:[\\/]*) \
3110             srcdiroption="--srcdir=$(srcdir)/indent"; \
3111             libsrcdir="$$s/indent";; \
3112           *) \
3113             srcdiroption="--srcdir=../$(srcdir)/indent"; \
3114             libsrcdir="$$s/indent";; \
3115         esac; \
3116         $(SHELL) $${libsrcdir}/configure \
3117           $(HOST_CONFIGARGS) $${srcdiroption} \
3118           || exit 1
3119
3120 .PHONY: all-indent maybe-all-indent
3121 maybe-all-indent:
3122 all-indent: configure-indent
3123         @r=`${PWD}`; export r; \
3124         s=`cd $(srcdir); ${PWD}`; export s; \
3125         $(SET_LIB_PATH) \
3126         (cd indent && $(MAKE) $(FLAGS_TO_PASS) all)
3127
3128
3129 .PHONY: check-indent
3130 check-indent:
3131         @r=`${PWD}`; export r; \
3132         s=`cd $(srcdir); ${PWD}`; export s; \
3133         $(SET_LIB_PATH) \
3134         (cd indent && $(MAKE) $(FLAGS_TO_PASS) check)
3135
3136
3137
3138 .PHONY: install-indent maybe-install-indent
3139 maybe-install-indent:
3140 install-indent: installdirs
3141         @r=`${PWD}`; export r; \
3142         s=`cd $(srcdir); ${PWD}`; export s; \
3143         $(SET_LIB_PATH) \
3144         (cd indent && $(MAKE) $(FLAGS_TO_PASS) install)
3145
3146
3147 .PHONY: configure-intl maybe-configure-intl
3148 maybe-configure-intl:
3149 configure-intl:
3150         @test ! -f intl/Makefile || exit 0; \
3151         [ -d intl ] || mkdir intl; \
3152         r=`${PWD}`; export r; \
3153         s=`cd $(srcdir); ${PWD}`; export s; \
3154         CC="$(CC)"; export CC; \
3155         CFLAGS="$(CFLAGS)"; export CFLAGS; \
3156         CXX="$(CXX)"; export CXX; \
3157         CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3158         if [ z$(build_canonical) !=  z$(host_canoncial) ] ; then \
3159           AR="$(AR)"; export AR; \
3160           AS="$(AS)"; export AS; \
3161           CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3162           DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3163           LD="$(LD)"; export LD; \
3164           NM="$(NM)"; export NM; \
3165           RANLIB="$(RANLIB)"; export RANLIB; \
3166           WINDRES="$(WINDRES)"; export WINDRES; \
3167           OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3168           OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3169         fi; \
3170         echo Configuring in intl; \
3171         cd intl || exit 1; \
3172         case $(srcdir) in \
3173           \.) \
3174             srcdiroption="--srcdir=."; \
3175             libsrcdir=".";; \
3176           /* | [A-Za-z]:[\\/]*) \
3177             srcdiroption="--srcdir=$(srcdir)/intl"; \
3178             libsrcdir="$$s/intl";; \
3179           *) \
3180             srcdiroption="--srcdir=../$(srcdir)/intl"; \
3181             libsrcdir="$$s/intl";; \
3182         esac; \
3183         $(SHELL) $${libsrcdir}/configure \
3184           $(HOST_CONFIGARGS) $${srcdiroption} \
3185           || exit 1
3186
3187 .PHONY: all-intl maybe-all-intl
3188 maybe-all-intl:
3189 all-intl: configure-intl
3190         @r=`${PWD}`; export r; \
3191         s=`cd $(srcdir); ${PWD}`; export s; \
3192         $(SET_LIB_PATH) \
3193         (cd intl && $(MAKE) $(FLAGS_TO_PASS) all)
3194
3195
3196 .PHONY: check-intl
3197 check-intl:
3198         @r=`${PWD}`; export r; \
3199         s=`cd $(srcdir); ${PWD}`; export s; \
3200         $(SET_LIB_PATH) \
3201         (cd intl && $(MAKE) $(FLAGS_TO_PASS) check)
3202
3203
3204
3205 .PHONY: install-intl maybe-install-intl
3206 maybe-install-intl:
3207 install-intl: installdirs
3208         @r=`${PWD}`; export r; \
3209         s=`cd $(srcdir); ${PWD}`; export s; \
3210         $(SET_LIB_PATH) \
3211         (cd intl && $(MAKE) $(FLAGS_TO_PASS) install)
3212
3213
3214 .PHONY: configure-tcl maybe-configure-tcl
3215 maybe-configure-tcl:
3216 configure-tcl:
3217         @test ! -f tcl/Makefile || exit 0; \
3218         [ -d tcl ] || mkdir tcl; \
3219         r=`${PWD}`; export r; \
3220         s=`cd $(srcdir); ${PWD}`; export s; \
3221         CC="$(CC)"; export CC; \
3222         CFLAGS="$(CFLAGS)"; export CFLAGS; \
3223         CXX="$(CXX)"; export CXX; \
3224         CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3225         if [ z$(build_canonical) !=  z$(host_canoncial) ] ; then \
3226           AR="$(AR)"; export AR; \
3227           AS="$(AS)"; export AS; \
3228           CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3229           DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3230           LD="$(LD)"; export LD; \
3231           NM="$(NM)"; export NM; \
3232           RANLIB="$(RANLIB)"; export RANLIB; \
3233           WINDRES="$(WINDRES)"; export WINDRES; \
3234           OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3235           OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3236         fi; \
3237         echo Configuring in tcl; \
3238         cd tcl || exit 1; \
3239         case $(srcdir) in \
3240           \.) \
3241             srcdiroption="--srcdir=."; \
3242             libsrcdir=".";; \
3243           /* | [A-Za-z]:[\\/]*) \
3244             srcdiroption="--srcdir=$(srcdir)/tcl"; \
3245             libsrcdir="$$s/tcl";; \
3246           *) \
3247             srcdiroption="--srcdir=../$(srcdir)/tcl"; \
3248             libsrcdir="$$s/tcl";; \
3249         esac; \
3250         $(SHELL) $${libsrcdir}/configure \
3251           $(HOST_CONFIGARGS) $${srcdiroption} \
3252           || exit 1
3253
3254 .PHONY: all-tcl maybe-all-tcl
3255 maybe-all-tcl:
3256 all-tcl: configure-tcl
3257         @r=`${PWD}`; export r; \
3258         s=`cd $(srcdir); ${PWD}`; export s; \
3259         $(SET_LIB_PATH) \
3260         (cd tcl && $(MAKE) $(FLAGS_TO_PASS) all)
3261
3262
3263 .PHONY: check-tcl
3264 check-tcl:
3265         @r=`${PWD}`; export r; \
3266         s=`cd $(srcdir); ${PWD}`; export s; \
3267         $(SET_LIB_PATH) \
3268         (cd tcl && $(MAKE) $(FLAGS_TO_PASS) check)
3269
3270
3271
3272 .PHONY: install-tcl maybe-install-tcl
3273 maybe-install-tcl:
3274 install-tcl: installdirs
3275         @r=`${PWD}`; export r; \
3276         s=`cd $(srcdir); ${PWD}`; export s; \
3277         $(SET_LIB_PATH) \
3278         (cd tcl && $(MAKE) $(FLAGS_TO_PASS) install)
3279
3280
3281 .PHONY: configure-itcl maybe-configure-itcl
3282 maybe-configure-itcl:
3283 configure-itcl:
3284         @test ! -f itcl/Makefile || exit 0; \
3285         [ -d itcl ] || mkdir itcl; \
3286         r=`${PWD}`; export r; \
3287         s=`cd $(srcdir); ${PWD}`; export s; \
3288         CC="$(CC)"; export CC; \
3289         CFLAGS="$(CFLAGS)"; export CFLAGS; \
3290         CXX="$(CXX)"; export CXX; \
3291         CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3292         if [ z$(build_canonical) !=  z$(host_canoncial) ] ; then \
3293           AR="$(AR)"; export AR; \
3294           AS="$(AS)"; export AS; \
3295           CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3296           DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3297           LD="$(LD)"; export LD; \
3298           NM="$(NM)"; export NM; \
3299           RANLIB="$(RANLIB)"; export RANLIB; \
3300           WINDRES="$(WINDRES)"; export WINDRES; \
3301           OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3302           OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3303         fi; \
3304         echo Configuring in itcl; \
3305         cd itcl || exit 1; \
3306         case $(srcdir) in \
3307           \.) \
3308             srcdiroption="--srcdir=."; \
3309             libsrcdir=".";; \
3310           /* | [A-Za-z]:[\\/]*) \
3311             srcdiroption="--srcdir=$(srcdir)/itcl"; \
3312             libsrcdir="$$s/itcl";; \
3313           *) \
3314             srcdiroption="--srcdir=../$(srcdir)/itcl"; \
3315             libsrcdir="$$s/itcl";; \
3316         esac; \
3317         $(SHELL) $${libsrcdir}/configure \
3318           $(HOST_CONFIGARGS) $${srcdiroption} \
3319           || exit 1
3320
3321 .PHONY: all-itcl maybe-all-itcl
3322 maybe-all-itcl:
3323 all-itcl: configure-itcl
3324         @r=`${PWD}`; export r; \
3325         s=`cd $(srcdir); ${PWD}`; export s; \
3326         $(SET_LIB_PATH) \
3327         (cd itcl && $(MAKE) $(FLAGS_TO_PASS) all)
3328
3329
3330 .PHONY: check-itcl
3331 check-itcl:
3332         @r=`${PWD}`; export r; \
3333         s=`cd $(srcdir); ${PWD}`; export s; \
3334         $(SET_LIB_PATH) \
3335         (cd itcl && $(MAKE) $(FLAGS_TO_PASS) check)
3336
3337
3338
3339 .PHONY: install-itcl maybe-install-itcl
3340 maybe-install-itcl:
3341 install-itcl: installdirs
3342         @r=`${PWD}`; export r; \
3343         s=`cd $(srcdir); ${PWD}`; export s; \
3344         $(SET_LIB_PATH) \
3345         (cd itcl && $(MAKE) $(FLAGS_TO_PASS) install)
3346
3347
3348 .PHONY: configure-ld maybe-configure-ld
3349 maybe-configure-ld:
3350 configure-ld:
3351         @test ! -f ld/Makefile || exit 0; \
3352         [ -d ld ] || mkdir ld; \
3353         r=`${PWD}`; export r; \
3354         s=`cd $(srcdir); ${PWD}`; export s; \
3355         CC="$(CC)"; export CC; \
3356         CFLAGS="$(CFLAGS)"; export CFLAGS; \
3357         CXX="$(CXX)"; export CXX; \
3358         CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3359         if [ z$(build_canonical) !=  z$(host_canoncial) ] ; then \
3360           AR="$(AR)"; export AR; \
3361           AS="$(AS)"; export AS; \
3362           CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3363           DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3364           LD="$(LD)"; export LD; \
3365           NM="$(NM)"; export NM; \
3366           RANLIB="$(RANLIB)"; export RANLIB; \
3367           WINDRES="$(WINDRES)"; export WINDRES; \
3368           OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3369           OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3370         fi; \
3371         echo Configuring in ld; \
3372         cd ld || exit 1; \
3373         case $(srcdir) in \
3374           \.) \
3375             srcdiroption="--srcdir=."; \
3376             libsrcdir=".";; \
3377           /* | [A-Za-z]:[\\/]*) \
3378             srcdiroption="--srcdir=$(srcdir)/ld"; \
3379             libsrcdir="$$s/ld";; \
3380           *) \
3381             srcdiroption="--srcdir=../$(srcdir)/ld"; \
3382             libsrcdir="$$s/ld";; \
3383         esac; \
3384         $(SHELL) $${libsrcdir}/configure \
3385           $(HOST_CONFIGARGS) $${srcdiroption} \
3386           || exit 1
3387
3388 .PHONY: all-ld maybe-all-ld
3389 maybe-all-ld:
3390 all-ld: configure-ld
3391         @r=`${PWD}`; export r; \
3392         s=`cd $(srcdir); ${PWD}`; export s; \
3393         $(SET_LIB_PATH) \
3394         (cd ld && $(MAKE) $(FLAGS_TO_PASS) all)
3395
3396
3397 .PHONY: check-ld
3398 check-ld:
3399         @r=`${PWD}`; export r; \
3400         s=`cd $(srcdir); ${PWD}`; export s; \
3401         $(SET_LIB_PATH) \
3402         (cd ld && $(MAKE) $(FLAGS_TO_PASS) check)
3403
3404
3405
3406 .PHONY: install-ld maybe-install-ld
3407 maybe-install-ld:
3408 install-ld: installdirs
3409         @r=`${PWD}`; export r; \
3410         s=`cd $(srcdir); ${PWD}`; export s; \
3411         $(SET_LIB_PATH) \
3412         (cd ld && $(MAKE) $(FLAGS_TO_PASS) install)
3413
3414
3415 .PHONY: configure-libgui maybe-configure-libgui
3416 maybe-configure-libgui:
3417 configure-libgui:
3418         @test ! -f libgui/Makefile || exit 0; \
3419         [ -d libgui ] || mkdir libgui; \
3420         r=`${PWD}`; export r; \
3421         s=`cd $(srcdir); ${PWD}`; export s; \
3422         CC="$(CC)"; export CC; \
3423         CFLAGS="$(CFLAGS)"; export CFLAGS; \
3424         CXX="$(CXX)"; export CXX; \
3425         CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3426         if [ z$(build_canonical) !=  z$(host_canoncial) ] ; then \
3427           AR="$(AR)"; export AR; \
3428           AS="$(AS)"; export AS; \
3429           CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3430           DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3431           LD="$(LD)"; export LD; \
3432           NM="$(NM)"; export NM; \
3433           RANLIB="$(RANLIB)"; export RANLIB; \
3434           WINDRES="$(WINDRES)"; export WINDRES; \
3435           OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3436           OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3437         fi; \
3438         echo Configuring in libgui; \
3439         cd libgui || exit 1; \
3440         case $(srcdir) in \
3441           \.) \
3442             srcdiroption="--srcdir=."; \
3443             libsrcdir=".";; \
3444           /* | [A-Za-z]:[\\/]*) \
3445             srcdiroption="--srcdir=$(srcdir)/libgui"; \
3446             libsrcdir="$$s/libgui";; \
3447           *) \
3448             srcdiroption="--srcdir=../$(srcdir)/libgui"; \
3449             libsrcdir="$$s/libgui";; \
3450         esac; \
3451         $(SHELL) $${libsrcdir}/configure \
3452           $(HOST_CONFIGARGS) $${srcdiroption} \
3453           || exit 1
3454
3455 .PHONY: all-libgui maybe-all-libgui
3456 maybe-all-libgui:
3457 all-libgui: configure-libgui
3458         @r=`${PWD}`; export r; \
3459         s=`cd $(srcdir); ${PWD}`; export s; \
3460         $(SET_LIB_PATH) \
3461         (cd libgui && $(MAKE) $(FLAGS_TO_PASS) all)
3462
3463
3464 .PHONY: check-libgui
3465 check-libgui:
3466         @r=`${PWD}`; export r; \
3467         s=`cd $(srcdir); ${PWD}`; export s; \
3468         $(SET_LIB_PATH) \
3469         (cd libgui && $(MAKE) $(FLAGS_TO_PASS) check)
3470
3471
3472
3473 .PHONY: install-libgui maybe-install-libgui
3474 maybe-install-libgui:
3475 install-libgui: installdirs
3476         @r=`${PWD}`; export r; \
3477         s=`cd $(srcdir); ${PWD}`; export s; \
3478         $(SET_LIB_PATH) \
3479         (cd libgui && $(MAKE) $(FLAGS_TO_PASS) install)
3480
3481
3482 .PHONY: configure-libiberty maybe-configure-libiberty
3483 maybe-configure-libiberty:
3484 configure-libiberty:
3485         @test ! -f libiberty/Makefile || exit 0; \
3486         [ -d libiberty ] || mkdir libiberty; \
3487         r=`${PWD}`; export r; \
3488         s=`cd $(srcdir); ${PWD}`; export s; \
3489         CC="$(CC)"; export CC; \
3490         CFLAGS="$(CFLAGS)"; export CFLAGS; \
3491         CXX="$(CXX)"; export CXX; \
3492         CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3493         if [ z$(build_canonical) !=  z$(host_canoncial) ] ; then \
3494           AR="$(AR)"; export AR; \
3495           AS="$(AS)"; export AS; \
3496           CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3497           DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3498           LD="$(LD)"; export LD; \
3499           NM="$(NM)"; export NM; \
3500           RANLIB="$(RANLIB)"; export RANLIB; \
3501        &nbs