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