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