47393b2ab31d71a4c6fa1bd8166d0d443a4bd1a7
[platform/upstream/binutils.git] / Makefile.in
1 #
2 # Makefile for directory with subdirs to build.
3 #   Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
4 #   1999, 2000, 2001 Free Software Foundation
5 #
6 # This file is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2 of the License, or
9 # (at your option) any later version.
10
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 # GNU General Public License for more details.
15
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19 #
20
21 # Tell GNU make 3.79 not to run the top level in parallel.  This 
22 # prevents contention for $builddir/$target/config.cache, as well
23 # as minimizing scatter in file system caches.
24 NOTPARALLEL = .NOTPARALLEL
25 $(NOTPARALLEL):
26
27 srcdir = .
28
29 prefix = /usr/local
30 exec_prefix = $(prefix)
31
32 bindir=${exec_prefix}/bin
33 sbindir=${exec_prefix}/sbin
34 libexecdir=${exec_prefix}/libexec
35 datadir=${prefix}/share
36 sysconfdir=${prefix}/etc
37 sharedstatedir=${prefix}/com
38 localstatedir=${prefix}/var
39 libdir=${exec_prefix}/lib
40 includedir=${prefix}/include
41 oldincludedir=/usr/include
42 infodir=${prefix}/info
43 mandir=${prefix}/man
44 gxx_include_dir=${includedir}/g++
45
46 tooldir = $(exec_prefix)/$(target_alias)
47 build_tooldir = $(exec_prefix)/$(target_alias)
48
49 program_transform_name =
50
51 man1dir = $(mandir)/man1
52 man2dir = $(mandir)/man2
53 man3dir = $(mandir)/man3
54 man4dir = $(mandir)/man4
55 man5dir = $(mandir)/man5
56 man6dir = $(mandir)/man6
57 man7dir = $(mandir)/man7
58 man8dir = $(mandir)/man8
59 man9dir = $(mandir)/man9
60 infodir = $(prefix)/info
61 includedir = $(prefix)/include
62 # Directory in which the compiler finds executables, libraries, etc.
63 libsubdir = $(libdir)/gcc-lib/$(target_alias)/$(gcc_version)
64 GDB_NLM_DEPS = 
65
66 SHELL = /bin/sh
67
68 # INSTALL_PROGRAM_ARGS is changed by configure.in to use -x for a
69 # cygwin host.
70 INSTALL_PROGRAM_ARGS =
71
72 INSTALL = $(SHELL) $$s/install-sh -c
73 INSTALL_PROGRAM = $(INSTALL) $(INSTALL_PROGRAM_ARGS)
74 INSTALL_SCRIPT = $(INSTALL)
75 INSTALL_DATA = $(INSTALL) -m 644
76
77 INSTALL_DOSREL = install-dosrel-fake
78
79 AS = as
80 AR = ar
81 AR_FLAGS = rc
82 CC = cc
83
84 # Special variables passed down in EXTRA_GCC_FLAGS.  They are defined
85 # here so that they can be overridden by Makefile fragments.
86 HOST_CC = $(CC_FOR_BUILD)
87 HOST_PREFIX = 
88 HOST_PREFIX_1 = loser-
89
90 # These flag values are normally overridden by the configure script.
91 CFLAGS = -g
92 CXXFLAGS = -g -O2
93
94 LDFLAGS = 
95 LIBCFLAGS = $(CFLAGS)
96 CFLAGS_FOR_TARGET = $(CFLAGS)
97 LDFLAGS_FOR_TARGET = 
98 LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
99 PICFLAG = 
100 PICFLAG_FOR_TARGET = 
101
102 CHILLFLAGS = $(CFLAGS)
103 CHILL_LIB = -lchill
104 CXX = c++
105
106 # Use -O2 to stress test the compiler.
107 LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates
108 CXXFLAGS_FOR_TARGET = $(CXXFLAGS)
109 LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
110
111 RANLIB = ranlib
112
113 DLLTOOL = dlltool
114 WINDRES = windres
115
116 NM = nm
117
118 LD = ld
119
120 BZIPPROG = bzip2
121 MD5PROG = md5sum
122
123 # These values are substituted by configure.
124 DEFAULT_YACC = yacc
125 DEFAULT_LEX = lex
126 DEFAULT_M4 = m4
127
128 BISON = `if [ -f $$r/bison/bison ] ; then \
129             echo $$r/bison/bison -L $$s/bison/ ; \
130          else \
131             echo bison ; \
132          fi`
133
134 YACC = `if [ -f $$r/bison/bison ] ; then \
135             echo $$r/bison/bison -y -L $$s/bison/ ; \
136         elif [ -f $$r/byacc/byacc ] ; then \
137             echo $$r/byacc/byacc ; \
138         else \
139             echo ${DEFAULT_YACC} ; \
140         fi`
141
142 LEX = `if [ -f $$r/flex/flex ] ; \
143         then echo $$r/flex/flex ; \
144         else echo ${DEFAULT_LEX} ; fi`
145
146 M4 = `if [ -f $$r/m4/m4 ] ; \
147         then echo $$r/m4/m4 ; \
148         else echo ${DEFAULT_M4} ; fi`
149
150 # For an installed makeinfo, we require it to be from texinfo 4 or
151 # higher, else we use the "missing" dummy.
152 MAKEINFO = `if [ -f $$r/texinfo/makeinfo/makeinfo ] ; \
153         then echo $$r/texinfo/makeinfo/makeinfo ; \
154         else if (makeinfo --version \
155           | egrep 'texinfo[^0-9]*([1-3][0-9]|[4-9])') >/dev/null 2>&1; \
156         then echo makeinfo; else echo $$s/missing makeinfo; fi; fi`
157
158 # This just becomes part of the MAKEINFO definition passed down to
159 # sub-makes.  It lets flags be given on the command line while still
160 # using the makeinfo from the object tree.
161 MAKEINFOFLAGS =
162
163 EXPECT = `if [ -f $$r/expect/expect ] ; \
164         then echo $$r/expect/expect ; \
165         else echo expect ; fi`
166
167 RUNTEST = `if [ -f $$s/dejagnu/runtest ] ; \
168         then echo $$s/dejagnu/runtest ; \
169         else echo runtest ; fi`
170
171
172 # compilers to use to create programs which must be run in the build
173 # environment.
174 CC_FOR_BUILD = $(CC)
175 CXX_FOR_BUILD = $(CXX)
176
177 SUBDIRS = "this is set via configure, don't edit this"
178 OTHERS = 
179
180 # This is set by the configure script to the list of directories which
181 # should be built using the target tools.
182 TARGET_CONFIGDIRS = libiberty libgloss $(SPECIAL_LIBS) newlib libio librx libstdc++ libg++ winsup opcodes bsp libstub cygmon libf2c libchill libobjc
183
184 # Target libraries are put under this directory:
185 # Changed by configure to $(target_alias) if cross.
186 TARGET_SUBDIR = .
187
188 BUILD_CONFIGDIRS = libiberty
189 BUILD_SUBDIR = .
190
191 # This is set by the configure script to the arguments to use when configuring
192 # directories built for the target.
193 TARGET_CONFIGARGS = 
194
195 # This is set by the configure script to the arguments to use when configuring
196 # directories built for the build system.
197 BUILD_CONFIGARGS =
198
199 # This is set by configure to REALLY_SET_LIB_PATH if --enable-shared
200 # was used.
201 SET_LIB_PATH =
202
203 # This is the name of the environment variable used for the path to
204 # the libraries.  This may be changed by configure.in.
205 RPATH_ENVVAR = LD_LIBRARY_PATH
206
207 # This is the list of directories that may be needed in RPATH_ENVVAR
208 # so that programs built for the host machine work.
209 HOST_LIB_PATH = $$r/bfd:$$r/opcodes
210
211 # This is the list of directories that may be needed in RPATH_ENVVAR
212 # so that prorgams built for the target machine work.
213 TARGET_LIB_PATH = $$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs:$$r/$(TARGET_SUBDIR)/libstdc++
214
215 # configure.in sets SET_LIB_PATH to this if --enable-shared was used.
216 # Some platforms don't like blank entries, so we remove duplicate,
217 # leading and trailing colons.
218 REALLY_SET_LIB_PATH = \
219   $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH):$(TARGET_LIB_PATH):$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR);
220
221 ALL = all.normal
222 INSTALL_TARGET = installdirs \
223         install-gcc \
224         $(INSTALL_MODULES) \
225         $(INSTALL_TARGET_MODULES) \
226         $(INSTALL_X11_MODULES) \
227         $(INSTALL_DOSREL)
228
229 INSTALL_TARGET_CROSS = installdirs \
230         install-gcc-cross \
231         $(INSTALL_MODULES) \
232         $(INSTALL_TARGET_MODULES) \
233         $(INSTALL_X11_MODULES) \
234         $(INSTALL_DOSREL)
235
236 # Should be substed by configure.in
237 FLAGS_FOR_TARGET =
238 CC_FOR_TARGET =
239 CHILL_FOR_TARGET =
240 CXX_FOR_TARGET =
241 CXX_FOR_TARGET_FOR_RECURSIVE_MAKE =
242
243 # If GCC_FOR_TARGET is not overriden on the command line, then this
244 # variable is passed down to the gcc Makefile, where it is used to
245 # build libgcc2.a.  We define it here so that it can itself be
246 # overridden on the command line.
247 GCC_FOR_TARGET = $$r/gcc/xgcc -B$$r/gcc/ $(FLAGS_FOR_TARGET)
248
249 AS_FOR_TARGET = ` \
250   if [ -f $$r/gas/as-new ] ; then \
251     echo $$r/gas/as-new ; \
252   elif [ -f $$r/gcc/xgcc ]; then \
253     $(CC_FOR_TARGET) -print-prog-name=as ; \
254   else \
255     if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
256       echo $(AS); \
257     else \
258        t='$(program_transform_name)'; echo as | sed -e 's/x/x/' $$t ; \
259     fi; \
260   fi`
261
262 LD_FOR_TARGET = ` \
263   if [ -f $$r/ld/ld-new ] ; then \
264     echo $$r/ld/ld-new ; \
265   elif [ -f $$r/gcc/xgcc ]; then \
266     $(CC_FOR_TARGET) -print-prog-name=ld ; \
267   else \
268     if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
269       echo $(LD); \
270     else \
271        t='$(program_transform_name)'; echo ld | sed -e 's/x/x/' $$t ; \
272     fi; \
273   fi`
274
275 DLLTOOL_FOR_TARGET = ` \
276   if [ -f $$r/binutils/dlltool ] ; then \
277     echo $$r/binutils/dlltool ; \
278   else \
279     if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
280       echo $(DLLTOOL); \
281     else \
282        t='$(program_transform_name)'; echo dlltool | sed -e 's/x/x/' $$t ; \
283     fi; \
284   fi`
285
286 WINDRES_FOR_TARGET = ` \
287   if [ -f $$r/binutils/windres ] ; then \
288     echo $$r/binutils/windres ; \
289   else \
290     if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
291       echo $(WINDRES); \
292     else \
293        t='$(program_transform_name)'; echo windres | sed -e 's/x/x/' $$t ; \
294     fi; \
295   fi`
296
297 AR_FOR_TARGET = ` \
298   if [ -f $$r/binutils/ar ] ; then \
299     echo $$r/binutils/ar ; \
300   else \
301     if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
302       echo $(AR); \
303     else \
304        t='$(program_transform_name)'; echo ar | sed -e 's/x/x/' $$t ; \
305     fi; \
306   fi`
307
308 RANLIB_FOR_TARGET = ` \
309   if [ -f $$r/binutils/ranlib ] ; then \
310     echo $$r/binutils/ranlib ; \
311   else \
312     if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
313       if [ x'$(RANLIB)' != x ]; then \
314          echo $(RANLIB); \
315       else \
316          echo ranlib; \
317       fi; \
318     else \
319        t='$(program_transform_name)'; echo ranlib | sed -e 's/x/x/' $$t ; \
320     fi; \
321   fi`
322
323 NM_FOR_TARGET = ` \
324   if [ -f $$r/binutils/nm-new ] ; then \
325     echo $$r/binutils/nm-new ; \
326   elif [ -f $$r/gcc/xgcc ]; then \
327     $(CC_FOR_TARGET) -print-prog-name=nm ; \
328   else \
329     if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
330       echo $(NM); \
331     else \
332        t='$(program_transform_name)'; echo nm | sed -e 's/x/x/' $$t ; \
333     fi; \
334   fi`
335
336 # The first rule in the file had better be this one.  Don't put any above it.
337 # This lives here to allow makefile fragments to contain dependencies.
338 all: all.normal
339 .PHONY: all
340
341 # These can be overridden by config/mt-*.
342 # The _TARGET_ is because they're specified in mt-foo.
343 # The _HOST_ is because they're programs that run on the host.
344 EXTRA_TARGET_HOST_ALL_MODULES =
345 EXTRA_TARGET_HOST_INSTALL_MODULES =
346 EXTRA_TARGET_HOST_CHECK_MODULES =
347
348 #### host and target specific makefile fragments come in here.
349 ###
350
351 # Flags to pass down to all sub-makes.
352 # Please keep these in alphabetical order.
353 BASE_FLAGS_TO_PASS = \
354         "AR_FLAGS=$(AR_FLAGS)" \
355         "AR_FOR_TARGET=$(AR_FOR_TARGET)" \
356         "AS_FOR_TARGET=$(AS_FOR_TARGET)" \
357         "BISON=$(BISON)" \
358         "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
359         "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
360         "CFLAGS=$(CFLAGS)" \
361         "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
362         "CHILLFLAGS=$(CHILLFLAGS)" \
363         "CHILL_FOR_TARGET=$(CHILL_FOR_TARGET)" \
364         "CHILL_LIB=$(CHILL_LIB)" \
365         "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
366         "CXXFLAGS=$(CXXFLAGS)" \
367         "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \
368         "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
369         "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \
370         "INSTALL=$(INSTALL)" \
371         "INSTALL_DATA=$(INSTALL_DATA)" \
372         "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
373         "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
374         "LDFLAGS=$(LDFLAGS)" \
375         "LEX=$(LEX)" \
376         "LD_FOR_TARGET=$(LD_FOR_TARGET)" \
377         "LIBCFLAGS=$(LIBCFLAGS)" \
378         "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
379         "LIBCXXFLAGS=$(LIBCXXFLAGS)" \
380         "LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \
381         "M4=$(M4)" \
382         "MAKE=$(MAKE)" \
383         "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
384         "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
385         "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
386         "RPATH_ENVVAR=$(RPATH_ENVVAR)" \
387         "SHELL=$(SHELL)" \
388         "EXPECT=$(EXPECT)" \
389         "RUNTEST=$(RUNTEST)" \
390         "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
391         "TARGET_SUBDIR=$(TARGET_SUBDIR)" \
392         "WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \
393         "YACC=$(YACC)" \
394         "bindir=$(bindir)" \
395         "datadir=$(datadir)" \
396         "exec_prefix=$(exec_prefix)" \
397         "includedir=$(includedir)" \
398         "infodir=$(infodir)" \
399         "libdir=$(libdir)" \
400         "libexecdir=$(libexecdir)" \
401         "lispdir=$(lispdir)" \
402         "localstatedir=$(localstatedir)" \
403         "mandir=$(mandir)" \
404         "oldincludedir=$(oldincludedir)" \
405         "prefix=$(prefix)" \
406         "sbindir=$(sbindir)" \
407         "sharedstatedir=$(sharedstatedir)" \
408         "sysconfdir=$(sysconfdir)" \
409         "tooldir=$(tooldir)" \
410         "build_tooldir=$(build_tooldir)" \
411         "gxx_include_dir=$(gxx_include_dir)" \
412         "gcc_version=$(gcc_version)" \
413         "gcc_version_trigger=$(gcc_version_trigger)" \
414         "target_alias=$(target_alias)" \
415         "libsubdir=$(libsubdir)"
416
417 # For any flags above that may contain shell code that varies from one
418 # target library to another.  When doing recursive invocations of the
419 # top-level Makefile, we don't want the outer make to evaluate them,
420 # so we pass these variables down unchanged.  They must not contain
421 # single nor double quotes.
422 RECURSE_FLAGS = \
423         CXX_FOR_TARGET='$(CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)'
424
425 # Flags to pass down to most sub-makes, in which we're building with
426 # the host environment.
427 # If any variables are added here, they must be added to do-*, below.
428 EXTRA_HOST_FLAGS = \
429         'AR=$(AR)' \
430         'AS=$(AS)' \
431         'CC=$(CC)' \
432         'CXX=$(CXX)' \
433         'DLLTOOL=$(DLLTOOL)' \
434         'LD=$(LD)' \
435         'NM=$(NM)' \
436         'RANLIB=$(RANLIB)' \
437         'WINDRES=$(WINDRES)'
438
439 FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)
440
441 # Flags that are concerned with the location of the X11 include files
442 # and library files
443 #
444 # NOTE: until the top-level is getting the values via autoconf, it only
445 # causes problems to have this top-level Makefile overriding the autoconf-set
446 # values in child directories.  Only variables that don't conflict with
447 # autoconf'ed ones should be passed by X11_FLAGS_TO_PASS for now.
448 #
449 X11_FLAGS_TO_PASS = \
450         'X11_EXTRA_CFLAGS=$(X11_EXTRA_CFLAGS)' \
451         'X11_EXTRA_LIBS=$(X11_EXTRA_LIBS)'
452
453 # Flags to pass down to makes which are built with the target environment.
454 # The double $ decreases the length of the command line; the variables
455 # are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them.
456 # If any variables are added here, they must be added to do-*, below.
457 EXTRA_TARGET_FLAGS = \
458         'AR=$$(AR_FOR_TARGET)' \
459         'AS=$$(AS_FOR_TARGET)' \
460         'CC=$$(CC_FOR_TARGET)' \
461         'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
462         'CXX=$$(CXX_FOR_TARGET)' \
463         'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
464         'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
465         'LD=$$(LD_FOR_TARGET)' \
466         'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
467         'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \
468         'NM=$$(NM_FOR_TARGET)' \
469         'RANLIB=$$(RANLIB_FOR_TARGET)' \
470         'WINDRES=$$(WINDRES_FOR_TARGET)'
471
472 TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)
473
474 # Flags to pass down to gcc.  gcc builds a library, libgcc.a, so it
475 # unfortunately needs the native compiler and the target ar and
476 # ranlib.
477 # If any variables are added here, they must be added to do-*, below.
478 # The HOST_* variables are a special case, which are used for the gcc
479 # cross-building scheme.
480 EXTRA_GCC_FLAGS = \
481         'AR=$(AR)' \
482         'AS=$(AS)' \
483         'CC=$(CC)' \
484         'CXX=$(CXX)' \
485         'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
486         'HOST_CC=$(CC_FOR_BUILD)' \
487         'HOST_PREFIX=$(HOST_PREFIX)' \
488         'HOST_PREFIX_1=$(HOST_PREFIX_1)' \
489         'NM=$(NM)' \
490         'RANLIB=$(RANLIB)' \
491         'WINDRES=$$(WINDRES_FOR_TARGET)' \
492         "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
493         "`echo 'LANGUAGES=$(LANGUAGES)' | sed -e s/.*=$$/XFOO=/`" \
494         "`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s/.*=$$/XFOO=/`" \
495         "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s/.*=$$/XFOO=/`" \
496         "`echo 'LIBGCC1_TEST=$(LIBGCC1_TEST)' | sed -e s/.*=$$/XFOO=/`" \
497         "`echo 'LIBGCC2_CFLAGS=$(LIBGCC2_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \
498         "`echo 'LIBGCC2_DEBUG_CFLAGS=$(LIBGCC2_DEBUG_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \
499         "`echo 'LIBGCC2_INCLUDES=$(LIBGCC2_INCLUDES)' | sed -e s/.*=$$/XFOO=/`" \
500         "`echo 'ENQUIRE=$(ENQUIRE)' | sed -e s/.*=$$/XFOO=/`" \
501         "`echo 'BOOT_CFLAGS=$(BOOT_CFLAGS)' | sed -e s/.*=$$/XFOO=/`"
502
503 GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS)
504
505 # This is a list of the targets for all of the modules which are compiled
506 # using the build machine's native compiler.  Configure edits the second
507 # macro for build!=host builds.
508 ALL_BUILD_MODULES_LIST = \
509         all-build-libiberty
510 ALL_BUILD_MODULES = 
511
512 # This is a list of the configure targets for all of the modules which
513 # are compiled using the native tools.
514 CONFIGURE_BUILD_MODULES = \
515         configure-build-libiberty
516
517 # This is a list of the targets for all of the modules which are compiled
518 # using $(FLAGS_TO_PASS).
519 ALL_MODULES = \
520         all-apache \
521         all-ash \
522         all-autoconf \
523         all-automake \
524         all-bash \
525         all-bfd \
526         all-binutils \
527         all-bison \
528         all-byacc \
529         all-bzip2 \
530         all-cgen \
531         all-cvssrc \
532         all-db \
533         all-dejagnu \
534         all-diff \
535         all-dosutils \
536         all-etc \
537         all-fileutils \
538         all-findutils \
539         all-find \
540         all-flex \
541         all-gas \
542         all-gawk \
543         all-gettext \
544         all-gnuserv \
545         all-gprof \
546         all-grep \
547         all-grez \
548         all-gzip \
549         all-hello \
550         all-indent \
551         all-inet \
552         all-intl \
553         all-ispell \
554         all-itcl \
555         all-ld \
556         all-libgui \
557         all-libiberty \
558         all-libtool \
559         all-m4 \
560         all-make \
561         all-mmalloc \
562         all-opcodes \
563         all-patch \
564         all-perl \
565         all-prms \
566         all-rcs \
567         all-readline \
568         all-release \
569         all-recode \
570         all-sed \
571         all-send-pr \
572         all-shellutils \
573         all-sid \
574         all-sim \
575         all-snavigator \
576         all-tar \
577         all-tcl \
578         all-tcl8.1 \
579         all-texinfo \
580         all-textutils \
581         all-tgas \
582         all-time \
583         all-uudecode \
584         all-wdiff \
585         all-zip \
586         all-zlib \
587         $(EXTRA_TARGET_HOST_ALL_MODULES)
588
589 # This is a list of the check targets for all of the modules which are
590 # compiled using $(FLAGS_TO_PASS).
591 #
592 # The list is in two parts.  The first lists those tools which
593 # are tested as part of the host's native tool-chain, and not
594 # tested in a cross configuration.
595 NATIVE_CHECK_MODULES = \
596         check-bison \
597         check-byacc \
598         check-flex \
599         check-zip
600
601 CROSS_CHECK_MODULES = \
602         check-apache \
603         check-ash \
604         check-autoconf \
605         check-automake \
606         check-bash \
607         check-bfd \
608         check-binutils \
609         check-bzip2 \
610         check-cgen \
611         check-cvssrc \
612         check-db \
613         check-dejagnu \
614         check-diff \
615         check-etc \
616         check-fileutils \
617         check-findutils \
618         check-find \
619         check-gas \
620         check-gawk \
621         check-gettext \
622         check-gnuserv \
623         check-gprof \
624         check-grep \
625         check-gzip \
626         check-hello \
627         check-indent \
628         check-inet \
629         check-intl \
630         check-ispell \
631         check-itcl \
632         check-ld \
633         check-libgui \
634         check-libiberty \
635         check-libtool \
636         check-m4 \
637         check-make \
638         check-mmcheckoc \
639         check-opcodes \
640         check-patch \
641         check-perl \
642         check-prms \
643         check-rcs \
644         check-readline \
645         check-recode \
646         check-sed \
647         check-send-pr \
648         check-shellutils \
649         check-snavigator \
650         check-sid \
651         check-sim \
652         check-tar \
653         check-tcl \
654         check-texinfo \
655         check-textutils \
656         check-tgas \
657         check-time \
658         check-uudecode \
659         check-wdiff \
660         $(EXTRA_TARGET_HOST_CHECK_MODULES)
661
662 CHECK_MODULES=$(NATIVE_CHECK_MODULES) $(CROSS_CHECK_MODULES)
663
664 # This is a list of the install targets for all of the modules which are
665 # compiled using $(FLAGS_TO_PASS).
666 # We put install-opcodes before install-binutils because the installed
667 # binutils might be on PATH, and they might need the shared opcodes
668 # library.
669 # We put install-tcl before install-itcl because itcl wants to run a
670 # program on installation which uses the Tcl libraries.
671 INSTALL_MODULES = \
672         install-apache \
673         install-ash \
674         install-autoconf \
675         install-automake \
676         install-bash \
677         install-bfd \
678         install-bzip2 \
679         install-opcodes \
680         install-binutils \
681         install-bison \
682         install-byacc \
683         install-cgen \
684         install-cvssrc \
685         install-db \
686         install-dejagnu \
687         install-diff \
688         install-dosutils \
689         install-etc \
690         install-fileutils \
691         install-findutils \
692         install-find \
693         install-flex \
694         install-gas \
695         install-gawk \
696         install-gettext \
697         install-gnuserv \
698         install-gprof \
699         install-grep \
700         install-grez \
701         install-gzip \
702         install-hello \
703         install-indent \
704         install-inet \
705         install-intl \
706         install-ispell \
707         install-tcl \
708         install-tcl8.1 \
709         install-itcl \
710         install-ld \
711         install-libgui \
712         install-libiberty \
713         install-libtool \
714         install-m4 \
715         install-make \
716         install-mmalloc \
717         install-patch \
718         install-perl \
719         install-prms \
720         install-rcs \
721         install-readline \
722         install-recode \
723         install-sed \
724         install-send-pr \
725         install-shellutils \
726         install-sid \
727         install-sim \
728         install-snavigator \
729         install-tar \
730         install-textutils \
731         install-tgas \
732         install-time \
733         install-uudecode \
734         install-wdiff \
735         install-zip \
736         $(EXTRA_TARGET_HOST_INSTALL_MODULES)
737
738 # This is a list of the targets for all of the modules which are compiled
739 # using $(X11_FLAGS_TO_PASS).
740 ALL_X11_MODULES = \
741         all-emacs \
742         all-emacs19 \
743         all-gdb \
744         all-expect \
745         all-gash \
746         all-guile \
747         all-tclX \
748         all-tk \
749         all-tk8.1 \
750         all-tix
751
752 # This is a list of the check targets for all of the modules which are
753 # compiled using $(X11_FLAGS_TO_PASS).
754 CHECK_X11_MODULES = \
755         check-emacs \
756         check-gdb \
757         check-guile \
758         check-expect \
759         check-gash \
760         check-tclX \
761         check-tk \
762         check-tix
763
764 # This is a list of the install targets for all the modules which are
765 # compiled using $(X11_FLAGS_TO_PASS).
766 INSTALL_X11_MODULES = \
767         install-emacs \
768         install-emacs19 \
769         install-gdb \
770         install-guile \
771         install-expect \
772         install-gash \
773         install-tclX \
774         install-tk \
775         install-tk8.1 \
776         install-tix
777
778 # This is a list of the targets for all of the modules which are compiled
779 # using $(TARGET_FLAGS_TO_PASS).
780 ALL_TARGET_MODULES = \
781         all-target-libio \
782         all-target-libstdc++ \
783         all-target-libstdc++-v3 \
784         all-target-librx \
785         all-target-libg++ \
786         all-target-newlib \
787         all-target-libf2c \
788         all-target-libchill \
789         all-target-libobjc \
790         all-target-libtermcap \
791         all-target-winsup \
792         all-target-libgloss \
793         all-target-libiberty \
794         all-target-gperf \
795         all-target-examples \
796         all-target-libstub \
797         all-target-libffi \
798         all-target-libjava \
799         all-target-zlib \
800         all-target-boehm-gc \
801         all-target-qthreads \
802         all-target-bsp \
803         all-target-cygmon
804
805 # This is a list of the configure targets for all of the modules which
806 # are compiled using the target tools.
807 CONFIGURE_TARGET_MODULES = \
808         configure-target-libio \
809         configure-target-libstdc++ \
810         configure-target-libstdc++-v3 \
811         configure-target-librx \
812         configure-target-libg++ \
813         configure-target-newlib \
814         configure-target-libf2c \
815         configure-target-libchill \
816         configure-target-libobjc \
817         configure-target-libtermcap \
818         configure-target-winsup \
819         configure-target-libgloss \
820         configure-target-libiberty \
821         configure-target-gperf \
822         configure-target-examples \
823         configure-target-libstub \
824         configure-target-libffi \
825         configure-target-libjava \
826         configure-target-zlib \
827         configure-target-boehm-gc \
828         configure-target-qthreads \
829         configure-target-bsp \
830         configure-target-cygmon
831
832 # This is a list of the check targets for all of the modules which are
833 # compiled using $(TARGET_FLAGS_TO_PASS).
834 CHECK_TARGET_MODULES = \
835         check-target-libio \
836         check-target-libstdc++ \
837         check-target-libstdc++-v3 \
838         check-target-libg++ \
839         check-target-newlib \
840         check-target-libf2c \
841         check-target-libchill \
842         check-target-libobjc \
843         check-target-winsup \
844         check-target-libiberty \
845         check-target-libffi \
846         check-target-libjava \
847         check-target-zlib \
848         check-target-boehm-gc \
849         check-target-qthreads \
850         check-target-gperf
851
852 # This is a list of the install targets for all of the modules which are
853 # compiled using $(TARGET_FLAGS_TO_PASS).
854 INSTALL_TARGET_MODULES = \
855         install-target-libio \
856         install-target-libstdc++ \
857         install-target-libstdc++-v3 \
858         install-target-libg++ \
859         install-target-newlib \
860         install-target-libf2c \
861         install-target-libchill \
862         install-target-libobjc \
863         install-target-libtermcap \
864         install-target-winsup \
865         install-target-libgloss \
866         install-target-libiberty \
867         install-target-bsp \
868         install-target-libjava \
869         install-target-zlib \
870         install-target-boehm-gc \
871         install-target-qthreads \
872         install-target-gperf
873
874 # This is a list of the targets for which we can do a clean-{target}.
875 CLEAN_MODULES = \
876         clean-apache \
877         clean-ash \
878         clean-autoconf \
879         clean-automake \
880         clean-bash \
881         clean-bfd \
882         clean-binutils \
883         clean-bison \
884         clean-byacc \
885         clean-bzip2 \
886         clean-cgen \
887         clean-cvssrc \
888         clean-db \
889         clean-dejagnu \
890         clean-diff \
891         clean-dosutils \
892         clean-etc \
893         clean-fileutils \
894         clean-findutils \
895         clean-find \
896         clean-flex \
897         clean-gas \
898         clean-gawk \
899         clean-gettext \
900         clean-gnuserv \
901         clean-gprof \
902         clean-grep \
903         clean-grez \
904         clean-gzip \
905         clean-hello \
906         clean-indent \
907         clean-inet \
908         clean-intl \
909         clean-ispell \
910         clean-itcl \
911         clean-ld \
912         clean-libgui \
913         clean-libiberty \
914         clean-libtool \
915         clean-m4 \
916         clean-make \
917         clean-mmalloc \
918         clean-opcodes \
919         clean-patch \
920         clean-perl \
921         clean-prms \
922         clean-rcs \
923         clean-readline \
924         clean-release \
925         clean-recode \
926         clean-sed \
927         clean-send-pr \
928         clean-shellutils \
929         clean-sid \
930         clean-sim \
931         clean-snavigator \
932         clean-tar \
933         clean-tcl \
934         clean-texinfo \
935         clean-textutils \
936         clean-tgas \
937         clean-time \
938         clean-uudecode \
939         clean-wdiff \
940         clean-zip \
941         clean-zlib
942
943 # All of the target modules that can be cleaned
944 CLEAN_TARGET_MODULES = \
945         clean-target-libio \
946         clean-target-libstdc++ \
947         clean-target-libstdc++-v3 \
948         clean-target-librx \
949         clean-target-libg++ \
950         clean-target-newlib \
951         clean-target-libf2c \
952         clean-target-libchill \
953         clean-target-libobjc \
954         clean-target-winsup \
955         clean-target-libgloss \
956         clean-target-libiberty \
957         clean-target-gperf \
958         clean-target-examples \
959         clean-target-libstub \
960         clean-target-libffi \
961         clean-target-libjava \
962         clean-target-zlib \
963         clean-target-boehm-gc \
964         clean-target-qthreads \
965         clean-target-bsp \
966         clean-target-cygmon
967
968 # All of the x11 modules that can be cleaned
969 CLEAN_X11_MODULES = \
970         clean-emacs \
971         clean-emacs19 \
972         clean-gdb \
973         clean-expect \
974         clean-gash \
975         clean-guile \
976         clean-tclX \
977         clean-tk \
978         clean-tix
979
980 # The target built for a native build.
981 .PHONY: all.normal
982 all.normal: \
983         $(ALL_BUILD_MODULES) \
984         $(ALL_MODULES) \
985         $(ALL_X11_MODULES) \
986         $(ALL_TARGET_MODULES) \
987         all-gcc
988
989 # Do a target for all the subdirectories.  A ``make do-X'' will do a
990 # ``make X'' in all subdirectories (because, in general, there is a
991 # dependency (below) of X upon do-X, a ``make X'' will also do this,
992 # but it may do additional work as well).
993 # This target ensures that $(BASE_FLAGS_TO_PASS) appears only once,
994 # because it is so large that it can easily overflow the command line
995 # length limit on some systems.
996 DO_X = \
997         do-clean \
998         do-distclean \
999         do-dvi \
1000         do-info \
1001         do-install-info \
1002         do-installcheck \
1003         do-mostlyclean \
1004         do-maintainer-clean \
1005         do-TAGS
1006 .PHONY: $(DO_X)
1007 $(DO_X):
1008         @target=`echo $@ | sed -e 's/^do-//'`; \
1009         r=`pwd`; export r; \
1010         s=`cd $(srcdir); pwd`; export s; \
1011         $(SET_LIB_PATH) \
1012         for i in $(SUBDIRS) -dummy-; do \
1013           if [ -f ./$$i/Makefile ]; then \
1014             case $$i in \
1015             gcc) \
1016               for flag in $(EXTRA_GCC_FLAGS); do \
1017                 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1018               done; \
1019               ;; \
1020             *) \
1021               for flag in $(EXTRA_HOST_FLAGS); do \
1022                 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1023               done; \
1024               ;; \
1025             esac ; \
1026             if (cd ./$$i; \
1027                 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
1028                         "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1029                         "RANLIB=$${RANLIB}" \
1030                         "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1031                         $${target}); \
1032             then true; else exit 1; fi; \
1033           else true; fi; \
1034         done
1035         @target=`echo $@ | sed -e 's/^do-//'`; \
1036         r=`pwd`; export r; \
1037         s=`cd $(srcdir); pwd`; export s; \
1038         $(SET_LIB_PATH) \
1039         for i in $(TARGET_CONFIGDIRS) -dummy-; do \
1040           if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
1041             for flag in $(EXTRA_TARGET_FLAGS); do \
1042                 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1043             done; \
1044             if (cd $(TARGET_SUBDIR)/$$i; \
1045                 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
1046                         "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1047                         "RANLIB=$${RANLIB}" \
1048                         "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1049                         $${target}); \
1050             then true; else exit 1; fi; \
1051           else true; fi; \
1052         done
1053
1054 # Here are the targets which correspond to the do-X targets.
1055
1056 .PHONY: info installcheck dvi install-info
1057 .PHONY: clean distclean mostlyclean maintainer-clean realclean
1058 .PHONY: local-clean local-distclean local-maintainer-clean
1059 info: do-info
1060 installcheck: do-installcheck
1061 dvi: do-dvi
1062
1063 # Make sure makeinfo is built before we do a `make info'.
1064 do-info: all-texinfo
1065
1066 install-info: do-install-info dir.info
1067         s=`cd $(srcdir); pwd`; export s; \
1068         if [ -f dir.info ] ; then \
1069           $(INSTALL_DATA) dir.info $(infodir)/dir.info ; \
1070         else true ; fi
1071
1072 local-clean:
1073         -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
1074
1075 local-distclean:
1076         -rm -f Makefile config.status config.cache mh-frag mt-frag
1077         -if [ "$(TARGET_SUBDIR)" != "." ]; then \
1078           rm -rf $(TARGET_SUBDIR); \
1079         else true; fi
1080
1081 local-maintainer-clean:
1082         @echo "This command is intended for maintainers to use;"
1083         @echo "it deletes files that may require special tools to rebuild."
1084
1085 clean: do-clean local-clean
1086 mostlyclean: do-mostlyclean local-clean
1087 distclean: do-distclean local-clean local-distclean
1088 maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean 
1089 maintainer-clean: local-distclean
1090 realclean: maintainer-clean
1091
1092 # This rule is used to clean specific modules.
1093 .PHONY: $(CLEAN_MODULES) $(CLEAN_X11_MODULES) clean-gcc
1094 $(CLEAN_MODULES) $(CLEAN_X11_MODULES) clean-gcc:
1095         @dir=`echo $@ | sed -e 's/clean-//'`; \
1096         if [ -f ./$${dir}/Makefile ] ; then \
1097           r=`pwd`; export r; \
1098           s=`cd $(srcdir); pwd`; export s; \
1099           $(SET_LIB_PATH) \
1100           (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) clean); \
1101         else \
1102           true; \
1103         fi
1104
1105 .PHONY: $(CLEAN_TARGET_MODULES)
1106 $(CLEAN_TARGET_MODULES):
1107         @dir=`echo $@ | sed -e 's/clean-target-//'`; \
1108         rm -f $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/tmpmulti.out; \
1109         if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1110           r=`pwd`; export r; \
1111           s=`cd $(srcdir); pwd`; export s; \
1112           $(SET_LIB_PATH) \
1113           (cd $(TARGET_SUBDIR)/$${dir}; $(MAKE) $(TARGET_FLAGS_TO_PASS) clean); \
1114         else \
1115           true; \
1116         fi
1117
1118 clean-target: $(CLEAN_TARGET_MODULES) clean-target-libgcc
1119 clean-target-libgcc:
1120         test ! -d gcc/libgcc || \
1121         (cd gcc/libgcc && find . -type d -print) | \
1122         while read d; do rm -f gcc/$$d/libgcc.a || : ; done
1123         -rm -rf gcc/libgcc
1124
1125 # Check target.
1126
1127 .PHONY: check do-check
1128 check:
1129         $(MAKE) do-check NOTPARALLEL=parallel-ok
1130
1131 do-check: $(CHECK_MODULES) \
1132         $(CHECK_TARGET_MODULES) \
1133         $(CHECK_X11_MODULES) \
1134         check-gcc
1135
1136 # Automated reporting of test results.
1137
1138 warning.log: build.log
1139         $(srcdir)/contrib/warn_summary build.log > $@
1140
1141 mail-report.log:
1142         if test x'$(BOOT_CFLAGS)' != x''; then \
1143             BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
1144         fi; \
1145         $(srcdir)/contrib/test_summary -t >$@
1146         chmod +x $@
1147         echo If you really want to send e-mail, run ./$@ now
1148
1149 mail-report-with-warnings.log: warning.log
1150         if test x'$(BOOT_CFLAGS)' != x''; then \
1151             BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
1152         fi; \
1153         $(srcdir)/contrib/test_summary -t -i warning.log >$@
1154         chmod +x $@
1155         echo If you really want to send e-mail, run ./$@ now
1156
1157 # Installation targets.
1158
1159 .PHONY: install install-cross uninstall source-vault binary-vault vault-install
1160 install: $(INSTALL_TARGET) 
1161 install-cross: $(INSTALL_TARGET_CROSS) 
1162
1163 uninstall:
1164         @echo "the uninstall target is not supported in this tree"
1165
1166 source-vault:
1167         $(MAKE) -f ./release/Build-A-Release \
1168                 host=$(host_alias) source-vault
1169
1170 binary-vault:
1171         $(MAKE) -f ./release/Build-A-Release \
1172                 host=$(host_alias) target=$(target_alias)
1173
1174 vault-install:
1175         @if [ -f ./release/vault-install ] ; then \
1176           ./release/vault-install $(host_alias) $(target_alias) ; \
1177         else \
1178           true ; \
1179         fi
1180
1181 .PHONY: install.all
1182 install.all: install-no-fixedincludes
1183         @if [ -f ./gcc/Makefile ] ; then \
1184                 r=`pwd` ; export r ; \
1185                 $(SET_LIB_PATH) \
1186                 (cd ./gcc; \
1187                 $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \
1188         else \
1189                 true ; \
1190         fi
1191
1192 # inet-install is used because the I*Net wants DejaGNU installed but
1193 # not built.  Similarly, gzip is built but not installed.
1194 inet-install:
1195         $(MAKE) INSTALL_MODULES="`echo $(INSTALL_MODULES) | sed -e 's/install-dejagnu//' -e 's/install-gzip//'`" install
1196
1197 # install-no-fixedincludes is used because Cygnus can not distribute
1198 # the fixed header files.
1199 .PHONY: install-no-fixedincludes
1200 install-no-fixedincludes: \
1201         installdirs \
1202         $(INSTALL_MODULES) \
1203         $(INSTALL_TARGET_MODULES) \
1204         $(INSTALL_X11_MODULES) \
1205         gcc-no-fixedincludes 
1206
1207 # Install the gcc headers files, but not the fixed include files,
1208 # which Cygnus is not allowed to distribute.  This rule is very
1209 # dependent on the workings of the gcc Makefile.in.
1210 .PHONY: gcc-no-fixedincludes
1211 gcc-no-fixedincludes:
1212         @if [ -f ./gcc/Makefile ]; then \
1213           rm -rf gcc/tmp-include; \
1214           mv gcc/include gcc/tmp-include 2>/dev/null; \
1215           mkdir gcc/include; \
1216           cp $(srcdir)/gcc/gsyslimits.h gcc/include/syslimits.h; \
1217           touch gcc/stmp-fixinc gcc/include/fixed; \
1218           rm -f gcc/stmp-headers gcc/stmp-int-hdrs; \
1219           r=`pwd`; export r; \
1220           s=`cd $(srcdir); pwd` ; export s; \
1221           $(SET_LIB_PATH) \
1222           (cd ./gcc; \
1223            $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
1224           rm -rf gcc/include; \
1225           mv gcc/tmp-include gcc/include 2>/dev/null; \
1226         else true; fi
1227
1228 # This rule is used to build the modules which are built with the
1229 # build machine's native compiler.
1230 .PHONY: $(ALL_BUILD_MODULES)
1231 $(ALL_BUILD_MODULES):
1232         dir=`echo $@ | sed -e 's/all-build-//'`; \
1233         if [ -f ./$${dir}/Makefile ] ; then \
1234           r=`pwd`; export r; \
1235           s=`cd $(srcdir); pwd`; export s; \
1236           (cd $(BUILD_SUBDIR)/$${dir} && $(MAKE) all); \
1237         else \
1238           true; \
1239         fi
1240
1241 # This rule is used to configure the modules which are built with the
1242 # native tools.
1243 .PHONY: $(CONFIGURE_BUILD_MODULES)
1244 $(CONFIGURE_BUILD_MODULES):
1245         @dir=`echo $@ | sed -e 's/configure-build-//'`; \
1246         if [ ! -d $(BUILD_SUBDIR) ]; then \
1247           true; \
1248         elif [ -f $(BUILD_SUBDIR)/$${dir}/Makefile ] ; then \
1249           true; \
1250         elif echo " $(BUILD_CONFIGDIRS) " | grep " $${dir} " >/dev/null 2>&1; then \
1251           if [ -d $(srcdir)/$${dir} ]; then \
1252             [ -d $(BUILD_SUBDIR)/$${dir} ] || mkdir $(BUILD_SUBDIR)/$${dir};\
1253             r=`pwd`; export r; \
1254             s=`cd $(srcdir); pwd`; export s; \
1255             AR="$(AR_FOR_BUILD)"; export AR; \
1256             AS="$(AS_FOR_BUILD)"; export AS; \
1257             CC="$(CC_FOR_BUILD)"; export CC; \
1258             CFLAGS="$(CFLAGS_FOR_BUILD)"; export CFLAGS; \
1259             CXX="$(CXX_FOR_BUILD)"; export CXX; \
1260             CXXFLAGS="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS; \
1261             GCJ="$(GCJ_FOR_BUILD)"; export GCJ; \
1262             DLLTOOL="$(DLLTOOL_FOR_BUILD)"; export DLLTOOL; \
1263             LD="$(LD_FOR_BUILD)"; export LD; \
1264             LDFLAGS="$(LDFLAGS_FOR_BUILD)"; export LDFLAGS; \
1265             NM="$(NM_FOR_BUILD)"; export NM; \
1266             RANLIB="$(RANLIB_FOR_BUILD)"; export RANLIB; \
1267             WINDRES="$(WINDRES_FOR_BUILD)"; export WINDRES; \
1268             echo Configuring in $(BUILD_SUBDIR)/$${dir}; \
1269             cd "$(BUILD_SUBDIR)/$${dir}" || exit 1; \
1270             case $(srcdir) in \
1271             /* | [A-Za-z]:[\\/]*) \
1272               topdir=$(srcdir) ;; \
1273             *) \
1274               case "$(BUILD_SUBDIR)" in \
1275               .) topdir="../$(srcdir)" ;; \
1276               *) topdir="../../$(srcdir)" ;; \
1277               esac ;; \
1278             esac; \
1279             if [ "$(srcdir)" = "." ] ; then \
1280               if [ "$(BUILD_SUBDIR)" != "." ] ; then \
1281                 if $(SHELL) $$s/symlink-tree $${topdir}/$${dir} "no-such-file" ; then \
1282                   if [ -f Makefile ]; then \
1283                     if $(MAKE) distclean; then \
1284                       true; \
1285                     else \
1286                       exit 1; \
1287                     fi; \
1288                   else \
1289                     true; \
1290                   fi; \
1291                 else \
1292                   exit 1; \
1293                 fi; \
1294               else \
1295                 true; \
1296               fi; \
1297               srcdiroption="--srcdir=."; \
1298               libsrcdir="."; \
1299             else \
1300               srcdiroption="--srcdir=$${topdir}/$${dir}"; \
1301               libsrcdir="$$s/$${dir}"; \
1302             fi; \
1303             if [ -f $${libsrcdir}/configure ] ; then \
1304               rm -f no-such-file skip-this-dir; \
1305               CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
1306                 $(BUILD_CONFIGARGS) $${srcdiroption} \
1307                 --with-build-subdir="$(BUILD_SUBDIR)"; \
1308             else \
1309               rm -f no-such-file skip-this-dir; \
1310               CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
1311                 $(BUILD_CONFIGARGS) $${srcdiroption} \
1312                 --with-build-subdir="$(BUILD_SUBDIR)"; \
1313             fi || exit 1; \
1314             if [ -f skip-this-dir ] ; then \
1315               sh skip-this-dir; \
1316               rm -f skip-this-dir; \
1317               cd ..; rmdir $${dir} || true; \
1318             else \
1319               true; \
1320             fi; \
1321           else \
1322             true; \
1323           fi; \
1324         else \
1325           true; \
1326         fi
1327
1328 # This rule is used to build the modules which use FLAGS_TO_PASS.  To
1329 # build a target all-X means to cd to X and make all.
1330 #
1331 # all-gui, and all-libproc are handled specially because
1332 # they are still experimental, and if they fail to build, that
1333 # shouldn't stop "make all".
1334 .PHONY: $(ALL_MODULES) all-gui all-libproc
1335 $(ALL_MODULES) all-gui all-libproc:
1336         @dir=`echo $@ | sed -e 's/all-//'`; \
1337         if [ -f ./$${dir}/Makefile ] ; then \
1338           r=`pwd`; export r; \
1339           s=`cd $(srcdir); pwd`; export s; \
1340           $(SET_LIB_PATH) \
1341           (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) all); \
1342         else \
1343           true; \
1344         fi
1345
1346 # These rules are used to check the modules which use FLAGS_TO_PASS.
1347 # To build a target check-X means to cd to X and make check.  Some
1348 # modules are only tested in a native toolchain.
1349
1350 .PHONY: $(CHECK_MODULES) $(NATIVE_CHECK_MODULES) $(CROSS_CHECK_MODULES)
1351 $(NATIVE_CHECK_MODULES):
1352         @if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
1353           dir=`echo $@ | sed -e 's/check-//'`; \
1354           if [ -f ./$${dir}/Makefile ] ; then \
1355             r=`pwd`; export r; \
1356             s=`cd $(srcdir); pwd`; export s; \
1357             $(SET_LIB_PATH) \
1358             (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) check); \
1359           else \
1360             true; \
1361           fi; \
1362         fi
1363
1364 $(CROSS_CHECK_MODULES):
1365         @dir=`echo $@ | sed -e 's/check-//'`; \
1366         if [ -f ./$${dir}/Makefile ] ; then \
1367           r=`pwd`; export r; \
1368           s=`cd $(srcdir); pwd`; export s; \
1369           $(SET_LIB_PATH) \
1370           (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) check); \
1371         else \
1372           true; \
1373         fi
1374
1375 # This rule is used to install the modules which use FLAGS_TO_PASS.
1376 # To build a target install-X means to cd to X and make install.
1377 .PHONY: $(INSTALL_MODULES)
1378 $(INSTALL_MODULES): installdirs
1379         @dir=`echo $@ | sed -e 's/install-//'`; \
1380         if [ -f ./$${dir}/Makefile ] ; then \
1381           r=`pwd`; export r; \
1382           s=`cd $(srcdir); pwd`; export s; \
1383           $(SET_LIB_PATH) \
1384           (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) install); \
1385         else \
1386           true; \
1387         fi
1388
1389 # This rule is used to configure the modules which are built with the
1390 # target tools.
1391 .PHONY: $(CONFIGURE_TARGET_MODULES)
1392 $(CONFIGURE_TARGET_MODULES):
1393         @dir=`echo $@ | sed -e 's/configure-target-//'`; \
1394         if [ -d $(TARGET_SUBDIR)/$${dir} ]; then \
1395           r=`pwd`; export r; \
1396           $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/$${dir}/tmpmulti.out 2> /dev/null; \
1397           if [ -s $(TARGET_SUBDIR)/$${dir}/tmpmulti.out ]; then \
1398             if [ -f $(TARGET_SUBDIR)/$${dir}/multilib.out ]; then \
1399               if cmp $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/tmpmulti.out > /dev/null; then \
1400                 rm -f $(TARGET_SUBDIR)/$${dir}/tmpmulti.out; \
1401               else \
1402                 echo "Multilibs changed for $${dir}, reconfiguring"; \
1403                 rm -f $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/Makefile; \
1404                 mv $(TARGET_SUBDIR)/$${dir}/tmpmulti.out $(TARGET_SUBDIR)/$${dir}/multilib.out; \
1405               fi; \
1406             else \
1407               mv $(TARGET_SUBDIR)/$${dir}/tmpmulti.out $(TARGET_SUBDIR)/$${dir}/multilib.out; \
1408             fi; \
1409           fi; \
1410         fi; exit 0      # break command into two pieces
1411         @dir=`echo $@ | sed -e 's/configure-target-//'`; \
1412         if [ ! -d $(TARGET_SUBDIR) ]; then \
1413           true; \
1414         elif [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1415           true; \
1416         elif echo " $(TARGET_CONFIGDIRS) " | grep " $${dir} " >/dev/null 2>&1; then \
1417           if [ -d $(srcdir)/$${dir} ]; then \
1418             [ -d $(TARGET_SUBDIR)/$${dir} ] || mkdir $(TARGET_SUBDIR)/$${dir};\
1419             r=`pwd`; export r; \
1420             s=`cd $(srcdir); pwd`; export s; \
1421             $(SET_LIB_PATH) \
1422             AR="$(AR_FOR_TARGET)"; export AR; \
1423             AS="$(AS_FOR_TARGET)"; export AS; \
1424             CC="$(CC_FOR_TARGET)"; export CC; \
1425             CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
1426             CXX="$(CXX_FOR_TARGET)"; export CXX; \
1427             CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
1428             DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
1429             LD="$(LD_FOR_TARGET)"; export LD; \
1430             LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
1431             NM="$(NM_FOR_TARGET)"; export NM; \
1432             RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
1433             WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
1434             echo Configuring in $(TARGET_SUBDIR)/$${dir}; \
1435             cd $(TARGET_SUBDIR)/$${dir}; \
1436             case $(srcdir) in \
1437             /*) \
1438               topdir=$(srcdir) ;; \
1439             *) \
1440               case "$(TARGET_SUBDIR)" in \
1441               .) topdir="../$(srcdir)" ;; \
1442               *) topdir="../../$(srcdir)" ;; \
1443               esac ;; \
1444             esac; \
1445             if [ "$(srcdir)" = "." ] ; then \
1446               if [ "$(TARGET_SUBDIR)" != "." ] ; then \
1447                 if $(SHELL) $$s/symlink-tree $${topdir}/$${dir} "no-such-file" ; then \
1448                   if [ -f Makefile ]; then \
1449                     if $(MAKE) distclean; then \
1450                       true; \
1451                     else \
1452                       exit 1; \
1453                     fi; \
1454                   else \
1455                     true; \
1456                   fi; \
1457                 else \
1458                   exit 1; \
1459                 fi; \
1460               else \
1461                 true; \
1462               fi; \
1463               srcdiroption="--srcdir=."; \
1464               libsrcdir="."; \
1465             else \
1466               srcdiroption="--srcdir=$${topdir}/$${dir}"; \
1467               libsrcdir="$$s/$${dir}"; \
1468             fi; \
1469             if [ -f $${libsrcdir}/configure ] ; then \
1470               rm -f no-such-file skip-this-dir; \
1471               CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
1472                 $(TARGET_CONFIGARGS) $${srcdiroption} \
1473                 --with-target-subdir="$(TARGET_SUBDIR)"; \
1474             else \
1475               rm -f no-such-file skip-this-dir; \
1476               CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
1477                 $(TARGET_CONFIGARGS) $${srcdiroption} \
1478                 --with-target-subdir="$(TARGET_SUBDIR)"; \
1479             fi; \
1480             if [ -f skip-this-dir ] ; then \
1481               sh skip-this-dir; \
1482               rm -f skip-this-dir; \
1483               cd ..; rmdir $${dir} || true; \
1484             else \
1485               true; \
1486             fi; \
1487           else \
1488             true; \
1489           fi; \
1490         else \
1491           true; \
1492         fi
1493
1494 # This rule is used to build the modules which use TARGET_FLAGS_TO_PASS.
1495 # To build a target all-X means to cd to X and make all.
1496 .PHONY: $(ALL_TARGET_MODULES)
1497 $(ALL_TARGET_MODULES):
1498         @dir=`echo $@ | sed -e 's/all-target-//'`; \
1499         if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1500           r=`pwd`; export r; \
1501           s=`cd $(srcdir); pwd`; export s; \
1502           $(SET_LIB_PATH) \
1503           (cd $(TARGET_SUBDIR)/$${dir}; \
1504             $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
1505         else \
1506           true; \
1507         fi
1508
1509 # This rule is used to check the modules which use TARGET_FLAGS_TO_PASS.
1510 # To build a target install-X means to cd to X and make install.
1511 .PHONY: $(CHECK_TARGET_MODULES)
1512 $(CHECK_TARGET_MODULES):
1513         @dir=`echo $@ | sed -e 's/check-target-//'`; \
1514         if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1515           r=`pwd`; export r; \
1516           s=`cd $(srcdir); pwd`; export s; \
1517           $(SET_LIB_PATH) \
1518           (cd $(TARGET_SUBDIR)/$${dir}; \
1519             $(MAKE) $(TARGET_FLAGS_TO_PASS) check);\
1520         else \
1521           true; \
1522         fi
1523
1524 # This rule is used to install the modules which use
1525 # TARGET_FLAGS_TO_PASS.  To build a target install-X means to cd to X
1526 # and make install.
1527 .PHONY: $(INSTALL_TARGET_MODULES)
1528 $(INSTALL_TARGET_MODULES): installdirs
1529         @dir=`echo $@ | sed -e 's/install-target-//'`; \
1530         if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1531           r=`pwd`; export r; \
1532           s=`cd $(srcdir); pwd`; export s; \
1533           $(SET_LIB_PATH) \
1534           (cd $(TARGET_SUBDIR)/$${dir}; \
1535             $(MAKE) $(TARGET_FLAGS_TO_PASS) install); \
1536         else \
1537           true; \
1538         fi
1539
1540 # This rule is used to build the modules which use X11_FLAGS_TO_PASS.
1541 # To build a target all-X means to cd to X and make all.
1542 .PHONY: $(ALL_X11_MODULES)
1543 $(ALL_X11_MODULES):
1544         @dir=`echo $@ | sed -e 's/all-//'`; \
1545         if [ -f ./$${dir}/Makefile ] ; then \
1546           r=`pwd`; export r; \
1547           s=`cd $(srcdir); pwd`; export s; \
1548           $(SET_LIB_PATH) \
1549           (cd $${dir}; \
1550            $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all); \
1551         else \
1552           true; \
1553         fi
1554
1555 # This rule is used to check the modules which use X11_FLAGS_TO_PASS.
1556 # To build a target check-X means to cd to X and make all.
1557 .PHONY: $(CHECK_X11_MODULES)
1558 $(CHECK_X11_MODULES):
1559         @dir=`echo $@ | sed -e 's/check-//'`; \
1560         if [ -f ./$${dir}/Makefile ] ; then \
1561           r=`pwd`; export r; \
1562           s=`cd $(srcdir); pwd`; export s; \
1563           $(SET_LIB_PATH) \
1564           (cd $${dir}; \
1565            $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check); \
1566         else \
1567           true; \
1568         fi
1569
1570 # This rule is used to install the modules which use X11_FLAGS_TO_PASS.
1571 # To build a target install-X means to cd to X and make install.
1572 .PHONY: $(INSTALL_X11_MODULES)
1573 $(INSTALL_X11_MODULES): installdirs
1574         @dir=`echo $@ | sed -e 's/install-//'`; \
1575         if [ -f ./$${dir}/Makefile ] ; then \
1576           r=`pwd`; export r; \
1577           s=`cd $(srcdir); pwd`; export s; \
1578           $(SET_LIB_PATH) \
1579           (cd $${dir}; \
1580            $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install); \
1581         else \
1582           true; \
1583         fi
1584
1585 # gcc is the only module which uses GCC_FLAGS_TO_PASS.
1586 .PHONY: all-gcc
1587 all-gcc:
1588         @if [ -f ./gcc/Makefile ] ; then \
1589           r=`pwd`; export r; \
1590           s=`cd $(srcdir); pwd`; export s; \
1591           $(SET_LIB_PATH) \
1592           (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) all); \
1593         else \
1594           true; \
1595         fi
1596
1597 # Building GCC uses some tools for rebuilding "source" files
1598 # like texinfo, bison/byacc, etc.  So we must depend on those.
1599 #
1600 # While building GCC, it may be necessary to run various target
1601 # programs like the assembler, linker, etc.  So we depend on
1602 # those too.
1603 #
1604 # In theory, on an SMP all those dependencies can be resolved
1605 # in parallel.
1606 #
1607 .PHONY: bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean
1608 bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean: all-bootstrap
1609         @r=`pwd`; export r; \
1610         s=`cd $(srcdir); pwd`; export s; \
1611         $(SET_LIB_PATH) \
1612         echo "Bootstrapping the compiler"; \
1613         cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $@
1614         @r=`pwd`; export r; \
1615         s=`cd $(srcdir); pwd`; export s; \
1616         case "$@" in \
1617           *bootstrap4-lean ) \
1618                         msg="Comparing stage3 and stage4 of the compiler"; \
1619                         compare=compare3-lean ;; \
1620           *bootstrap4 ) msg="Comparing stage3 and stage4 of the compiler"; \
1621                         compare=compare3 ;; \
1622           *-lean )      msg="Comparing stage2 and stage3 of the compiler"; \
1623                         compare=compare-lean ;; \
1624           * )           msg="Comparing stage2 and stage3 of the compiler"; \
1625                         compare=compare ;; \
1626         esac; \
1627         $(SET_LIB_PATH) \
1628         echo "$$msg"; \
1629         cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $$compare
1630         @r=`pwd`; export r; \
1631         s=`cd $(srcdir); pwd` ; export s; \
1632         $(SET_LIB_PATH) \
1633         echo "Building runtime libraries"; \
1634         $(MAKE) $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS) all
1635
1636 .PHONY: cross
1637 cross: all-texinfo all-bison all-byacc all-binutils all-gas all-ld
1638         @r=`pwd`; export r; \
1639         s=`cd $(srcdir); pwd`; export s; \
1640         $(SET_LIB_PATH) \
1641         echo "Building the C and C++ compiler"; \
1642         cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++"
1643         @r=`pwd`; export r; \
1644         s=`cd $(srcdir); pwd` ; export s; \
1645         $(SET_LIB_PATH) \
1646         echo "Building runtime libraries"; \
1647         $(MAKE) $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS) \
1648           LANGUAGES="c c++" all
1649
1650 .PHONY: check-gcc
1651 check-gcc:
1652         @if [ -f ./gcc/Makefile ] ; then \
1653           r=`pwd`; export r; \
1654           s=`cd $(srcdir); pwd`; export s; \
1655           $(SET_LIB_PATH) \
1656           (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) check); \
1657         else \
1658           true; \
1659         fi
1660
1661 .PHONY: install-gcc
1662 install-gcc:
1663         @if [ -f ./gcc/Makefile ] ; then \
1664           r=`pwd`; export r; \
1665           s=`cd $(srcdir); pwd`; export s; \
1666           $(SET_LIB_PATH) \
1667           (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
1668         else \
1669           true; \
1670         fi
1671
1672 .PHONY: install-gcc-cross
1673 install-gcc-cross:
1674         @if [ -f ./gcc/Makefile ] ; then \
1675           r=`pwd`; export r; \
1676           s=`cd $(srcdir); pwd`; export s; \
1677           $(SET_LIB_PATH) \
1678           (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++" install); \
1679         else \
1680           true; \
1681         fi
1682 # EXPERIMENTAL STUFF
1683 # This rule is used to install the modules which use FLAGS_TO_PASS.
1684 # To build a target install-X means to cd to X and make install.
1685 .PHONY: install-dosrel
1686 install-dosrel: installdirs info
1687         @dir=`echo $@ | sed -e 's/install-//'`; \
1688         if [ -f ./$${dir}/Makefile ] ; then \
1689           r=`pwd`; export r; \
1690           s=`cd $(srcdir); pwd`; export s; \
1691           $(SET_LIB_PATH) \
1692           (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) install); \
1693         else \
1694           true; \
1695         fi
1696
1697 install-dosrel-fake:
1698
1699 ALL_GCC = all-gcc
1700 ALL_GCC_C = $(ALL_GCC) all-target-newlib all-target-libgloss
1701 ALL_GCC_CXX = $(ALL_GCC_C) all-target-libstdc++ all-target-libstdc++-v3
1702
1703 # This is a list of inter-dependencies among modules.
1704 all-apache:
1705 all-ash:
1706 all-autoconf: all-m4 all-texinfo
1707 all-automake: all-m4 all-texinfo
1708 all-bash:
1709 all-bfd: all-libiberty all-intl
1710 all-binutils: all-libiberty all-opcodes all-bfd all-flex all-bison all-byacc all-intl
1711 all-bison: all-texinfo
1712 configure-target-boehm-gc: $(ALL_GCC_CXX) configure-target-qthreads
1713 all-target-boehm-gc: configure-target-boehm-gc
1714 configure-target-bsp: $(ALL_GCC_C)
1715 all-target-bsp: configure-target-bsp
1716 all-byacc:
1717 all-bzip2:
1718 all-cgen: all-libiberty
1719 all-cvssrc:
1720 configure-target-cygmon: $(ALL_GCC_C)
1721 all-target-cygmon: configure-target-cygmon all-target-libiberty all-target-libio all-target-libstub all-target-bsp
1722 all-db:
1723 all-dejagnu: all-tcl all-expect all-tk
1724 all-diff: all-libiberty
1725 all-emacs:
1726 all-emacs19: all-bison all-byacc
1727 all-etc:
1728 configure-target-examples: $(ALL_GCC_C)
1729 all-target-examples: configure-target-examples
1730 all-expect: all-tcl all-tk
1731 all-fileutils: all-libiberty
1732 all-findutils:
1733 all-find:
1734 all-flex: all-libiberty all-bison all-byacc
1735 all-gas: all-libiberty all-opcodes all-bfd all-intl
1736 all-gash: all-tcl
1737 all-gawk:
1738 all-gcc: all-bison all-byacc all-binutils all-gas all-ld all-zlib
1739 all-bootstrap: all-libiberty all-texinfo all-bison all-byacc all-binutils all-gas all-ld all-zlib
1740 GDB_TK = all-tk all-tcl all-itcl all-tix all-libgui
1741 all-gdb: all-libiberty all-opcodes all-bfd all-mmalloc all-readline all-bison all-byacc all-sim $(gdbnlmrequirements) $(GDB_TK)
1742 all-gettext:
1743 all-gnuserv:
1744 configure-target-gperf: $(ALL_GCC_CXX)
1745 all-target-gperf: configure-target-gperf all-target-libiberty all-target-libstdc++-v3
1746 all-gprof: all-libiberty all-bfd all-opcodes all-intl
1747 all-grep: all-libiberty
1748 all-grez: all-libiberty all-bfd all-opcodes
1749 all-gui: all-gdb all-libproc all-target-librx
1750 all-guile:
1751 all-gzip: all-libiberty
1752 all-hello: all-libiberty
1753 all-indent:
1754 all-inet: all-tcl all-send-pr all-perl
1755 all-intl:
1756 all-ispell: all-emacs19
1757 all-itcl: all-tcl all-tk all-tcl8.1 all-tk8.1
1758 all-ld: all-libiberty all-bfd all-opcodes all-bison all-byacc all-flex all-intl
1759 configure-target-libg++: $(ALL_GCC_CXX) configure-target-librx
1760 all-target-libg++: configure-target-libg++ all-target-libiberty all-target-librx
1761 configure-target-libgloss: $(ALL_GCC)
1762 all-target-libgloss: configure-target-libgloss configure-target-newlib
1763 configure-target-libio: $(ALL_GCC_C)
1764 all-target-libio: configure-target-libio all-gas all-ld all-gcc all-target-libiberty all-target-newlib
1765 check-target-libio: all-target-libstdc++
1766 all-libgui: all-tcl all-tk all-tcl8.1 all-tk8.1 all-itcl
1767 all-libiberty:
1768
1769 all-build-libiberty: configure-build-libiberty
1770
1771 configure-target-libffi: $(ALL_GCC_C) 
1772 all-target-libffi: configure-target-libffi
1773 configure-target-libjava: $(ALL_GCC_CXX) configure-target-zlib configure-target-boehm-gc configure-target-qthreads configure-target-libffi
1774 all-target-libjava: configure-target-libjava all-zip all-target-zlib all-target-boehm-gc all-target-qthreads all-target-libffi
1775 configure-target-librx: $(ALL_GCC_C)
1776 all-target-librx: configure-target-librx
1777 configure-target-libstdc++: $(ALL_GCC_C)
1778 all-target-libstdc++: configure-target-libstdc++ all-target-libiberty all-target-libio
1779 configure-target-libstdc++-v3: $(ALL_GCC_C)
1780 all-target-libstdc++-v3: configure-target-libstdc++-v3 all-target-libiberty
1781 configure-target-libstub: $(ALL_GCC_C)
1782 all-target-libstub: configure-target-libstub
1783 all-libtool:
1784 configure-target-libf2c: $(ALL_GCC_C)
1785 all-target-libf2c: configure-target-libf2c all-target-libiberty
1786 configure-target-libchill: $(ALL_GCC_C)
1787 all-target-libchill: configure-target-libchill all-target-libiberty
1788 configure-target-libobjc: $(ALL_GCC_C)
1789 all-target-libobjc: configure-target-libobjc all-target-libiberty
1790 all-m4: all-libiberty all-texinfo
1791 all-make: all-libiberty
1792 all-mmalloc:
1793 configure-target-newlib: $(ALL_GCC)
1794 all-target-newlib: configure-target-newlib
1795 configure-target-libtermcap: $(ALL_GCC_C)
1796 all-target-libtermcap: configure-target-libtermcap
1797 all-opcodes: all-bfd all-libiberty all-cgen
1798 all-patch: all-libiberty
1799 all-perl:
1800 all-prms: all-libiberty
1801 configure-target-qthreads: $(ALL_GCC_C)
1802 all-target-qthreads: configure-target-qthreads
1803 all-rcs:
1804 all-readline:
1805 all-recode: all-libiberty
1806 all-sed: all-libiberty
1807 all-send-pr: all-prms
1808 all-shellutils:
1809 all-sid: all-tcl all-tk
1810 all-sim: all-libiberty all-bfd all-opcodes all-readline all-cgen
1811 all-snavigator: all-tcl all-tk all-itcl all-tix all-db all-grep all-libgui
1812 all-tar: all-libiberty
1813 all-tcl:
1814 all-tcl8.1:
1815 all-tclX: all-tcl all-tk
1816 all-tk: all-tcl
1817 all-tk8.1: all-tcl8.1
1818 all-texinfo: all-libiberty
1819 all-textutils:
1820 all-tgas: all-libiberty all-bfd all-opcodes
1821 all-time:
1822 all-tix: all-tcl all-tk all-tcl8.1 all-tk8.1
1823 all-wdiff:
1824 configure-target-winsup: $(ALL_GCC_C)
1825 all-target-winsup: all-target-libiberty all-target-libtermcap configure-target-winsup
1826 all-uudecode: all-libiberty
1827 all-zip:
1828 all-zlib:
1829 configure-target-zlib: $(ALL_GCC_C)
1830 all-target-zlib: configure-target-zlib
1831 configure-target-libiberty: $(ALL_GCC_C)
1832 all-target-libiberty: configure-target-libiberty
1833 all-target: $(ALL_TARGET_MODULES)
1834 install-target: $(INSTALL_TARGET_MODULES)
1835 install-gdb: install-tcl install-tk install-itcl install-tix install-libgui
1836 install-sid: install-tcl install-tk
1837 ### other supporting targets
1838
1839 MAKEDIRS= \
1840         $(prefix) \
1841         $(exec_prefix)
1842 .PHONY: installdirs
1843 installdirs: mkinstalldirs
1844         $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS)
1845
1846 dir.info: do-install-info
1847         if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \
1848           $(srcdir)/texinfo/gen-info-dir $(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \
1849           mv -f dir.info.new dir.info ; \
1850         else true ; \
1851         fi
1852
1853 dist:
1854         @echo "Building a full distribution of this tree isn't done"
1855         @echo "via 'make dist'.  Check out the etc/ subdirectory" 
1856
1857 etags tags: TAGS
1858
1859 # Right now this just builds TAGS in each subdirectory.  emacs19 has the
1860 # ability to use several tags files at once, so there is probably no need
1861 # to combine them into one big TAGS file (like CVS 1.3 does).  We could
1862 # (if we felt like it) have this Makefile write a piece of elisp which
1863 # the user could load to tell emacs19 where all the TAGS files we just
1864 # built are.
1865 TAGS: do-TAGS
1866
1867 # with the gnu make, this is done automatically.
1868
1869 Makefile: Makefile.in configure.in $(host_makefile_frag) $(target_makefile_frag) $(gcc_version_trigger)
1870         $(SHELL) ./config.status
1871
1872 #
1873 # Support for building net releases
1874
1875 # Files in devo used in any net release.
1876 # ChangeLog omitted because it may refer to files which are not in this
1877 # distribution (perhaps it would be better to include it anyway).
1878 DEVO_SUPPORT= README Makefile.in configure configure.in \
1879         config.guess config.if config.sub config move-if-change \
1880         mpw-README mpw-build.in mpw-config.in mpw-configure mpw-install \
1881         COPYING COPYING.LIB install-sh config-ml.in symlink-tree \
1882         mkinstalldirs ltconfig ltmain.sh missing ylwrap \
1883         libtool.m4 gettext.m4 ltcf-c.sh ltcf-cxx.sh ltcf-gcj.sh
1884
1885 # Files in devo/etc used in any net release.
1886 # ChangeLog omitted because it may refer to files which are not in this
1887 # distribution (perhaps it would be better to include it anyway).
1888 ETC_SUPPORT= Makefile.in configure configure.in standards.texi \
1889         make-stds.texi standards.info* configure.texi configure.info* \
1890         configbuild.* configdev.*
1891
1892
1893 # When you use `make setup-dirs' or `make taz' you should always redefine
1894 # this macro.
1895 SUPPORT_FILES = list-of-support-files-for-tool-in-question
1896
1897 # NOTE: No double quotes in the below.  It is used within shell script
1898 # as VER="$(VER)"
1899 VER = ` if grep 'AM_INIT_AUTOMAKE.*BFD_VERSION' $(TOOL)/configure.in >/dev/null 2>&1; then \
1900           sed < bfd/configure.in -n 's/AM_INIT_AUTOMAKE[^,]*, *\([^)]*\))/\1/p'; \
1901         elif grep AM_INIT_AUTOMAKE $(TOOL)/configure.in >/dev/null 2>&1; then \
1902           sed < $(TOOL)/configure.in -n 's/AM_INIT_AUTOMAKE[^,]*, *\([^)]*\))/\1/p'; \
1903         elif test -f $(TOOL)/version.in; then \
1904           head -1 $(TOOL)/version.in; \
1905         elif grep VERSION $(TOOL)/Makefile.in > /dev/null 2>&1; then \
1906           sed < $(TOOL)/Makefile.in -n 's/^VERSION *= *//p'; \
1907         else \
1908           echo VERSION; \
1909         fi`
1910 PACKAGE = $(TOOL)
1911
1912 .PHONY: taz
1913 taz: $(DEVO_SUPPORT) $(SUPPORT_FILES) texinfo/texinfo.tex
1914         $(MAKE) -f Makefile.in do-proto-toplev \
1915                 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
1916                 MD5PROG="$(MD5PROG)" \
1917                 SUPPORT_FILES="$(SUPPORT_FILES)"
1918         $(MAKE) -f Makefile.in do-md5sum \
1919                 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
1920                 MD5PROG="$(MD5PROG)" \
1921                 SUPPORT_FILES="$(SUPPORT_FILES)"
1922         $(MAKE) -f Makefile.in do-tar \
1923                 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
1924                 MD5PROG="$(MD5PROG)" \
1925                 SUPPORT_FILES="$(SUPPORT_FILES)"
1926         $(MAKE) -f Makefile.in do-bz2 \
1927                 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
1928                 MD5PROG="$(MD5PROG)" \
1929                 SUPPORT_FILES="$(SUPPORT_FILES)"
1930
1931 .PHONY: gdb-tar
1932 gdb-tar: $(DEVO_SUPPORT) $(SUPPORT_FILES) texinfo/texinfo.tex
1933         $(MAKE) -f Makefile.in do-proto-toplev \
1934                 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
1935                 MD5PROG="$(MD5PROG)" \
1936                 SUPPORT_FILES="$(SUPPORT_FILES)"
1937         $(MAKE) -f Makefile.in do-md5sum \
1938                 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
1939                 MD5PROG="$(MD5PROG)" \
1940                 SUPPORT_FILES="$(SUPPORT_FILES)"
1941         $(MAKE) -f Makefile.in do-djunpack \
1942                 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
1943                 MD5PROG="$(MD5PROG)" \
1944                 SUPPORT_FILES="$(SUPPORT_FILES)"
1945         $(MAKE) -f Makefile.in do-tar \
1946                 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
1947                 MD5PROG="$(MD5PROG)" \
1948                 SUPPORT_FILES="$(SUPPORT_FILES)"
1949
1950 .PHONY: gdb-taz
1951 gdb-taz: gdb-tar $(DEVO_SUPPORT) $(SUPPORT_FILES) texinfo/texinfo.tex
1952         $(MAKE) -f Makefile.in gdb-tar \
1953                 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
1954                 MD5PROG="$(MD5PROG)" \
1955                 SUPPORT_FILES="$(SUPPORT_FILES)"
1956         $(MAKE) -f Makefile.in do-bz2 \
1957                 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
1958                 MD5PROG="$(MD5PROG)" \
1959                 SUPPORT_FILES="$(SUPPORT_FILES)"
1960
1961 .PHONY: do-proto-toplev
1962 do-proto-toplev: $(DEVO_SUPPORT) $(SUPPORT_FILES) texinfo/texinfo.tex
1963         echo "==> Making $(PACKAGE)-$(VER)/"
1964         # Take out texinfo from a few places.
1965         sed -e '/^all\.normal: /s/\all-texinfo //' \
1966             -e '/^      install-texinfo /d' \
1967         <Makefile.in >tmp
1968         mv -f tmp Makefile.in
1969         #
1970         ./configure sun4
1971         [ -z "$(CONFIGURE_TARGET_MODULES)" ] \
1972           || $(MAKE) $(CONFIGURE_TARGET_MODULES) \
1973             ALL_GCC="" ALL_GCC_C="" ALL_GCC_CXX="" \
1974             CC_FOR_TARGET="$(CC)" CXX_FOR_TARGET="$(CXX)"
1975         # Make links, and run "make diststuff" or "make info" when needed.
1976         rm -rf proto-toplev ; mkdir proto-toplev
1977         set -e ; dirs="$(TOOL) $(DEVO_SUPPORT) $(SUPPORT_FILES)" ; \
1978         for d in $$dirs ; do \
1979           if [ -d $$d ]; then \
1980             if [ ! -f $$d/Makefile ] ; then true ; \
1981             elif grep '^diststuff:' $$d/Makefile >/dev/null ; then \
1982                 (cd $$d ; $(MAKE) diststuff ) || exit 1 ; \
1983             elif grep '^info:' $$d/Makefile >/dev/null ; then \
1984                 (cd $$d ; $(MAKE) info ) || exit 1 ; \
1985             fi ; \
1986             if [ -d $$d/proto-$$d.dir ]; then \
1987               ln -s ../$$d/proto-$$d.dir proto-toplev/$$d ; \
1988             else \
1989               ln -s ../$$d proto-toplev/$$d ; \
1990             fi ; \
1991           else ln -s ../$$d proto-toplev/$$d ; fi ; \
1992         done
1993         cd etc && $(MAKE) info
1994         $(MAKE) distclean
1995         #
1996         mkdir proto-toplev/etc
1997         (cd proto-toplev/etc; \
1998          for i in $(ETC_SUPPORT); do \
1999                 ln -s ../../etc/$$i . ; \
2000          done)
2001         #
2002         # Take out texinfo from configurable dirs
2003         rm proto-toplev/configure.in
2004         sed -e '/^host_tools=/s/texinfo //' \
2005             <configure.in >proto-toplev/configure.in
2006         #
2007         mkdir proto-toplev/texinfo
2008         ln -s ../../texinfo/texinfo.tex         proto-toplev/texinfo/
2009         if test -r texinfo/util/tex3patch ; then \
2010           mkdir proto-toplev/texinfo/util && \
2011           ln -s ../../../texinfo/util/tex3patch proto-toplev/texinfo/util ; \
2012         else true; fi
2013         chmod -R og=u . || chmod og=u `find . -print`
2014         #
2015         # Create .gmo files from .po files.
2016         for f in `find . -name '*.po' -type f -print`; do \
2017              msgfmt -o `echo $$f | sed -e 's/\.po$$/.gmo/'` $$f ; \
2018         done
2019         #
2020         -rm -f $(PACKAGE)-$(VER)
2021         ln -s proto-toplev $(PACKAGE)-$(VER)
2022
2023 .PHONY: do-tar
2024 do-tar:
2025         echo "==> Making $(PACKAGE)-$(VER).tar"
2026         -rm -f $(PACKAGE)-$(VER).tar
2027         find $(PACKAGE)-$(VER) -follow -name CVS -prune -o -type f -print \
2028                 | tar cTfh - $(PACKAGE)-$(VER).tar
2029
2030 .PHONY: do-bz2
2031 do-bz2:
2032         echo "==> Bzipping $(PACKAGE)-$(VER).tar.bz2"
2033         -rm -f $(PACKAGE)-$(VER).tar.bz2
2034         $(BZIPPROG) -v -9 $(PACKAGE)-$(VER).tar
2035
2036 .PHONY: do-md5sum
2037 do-md5sum:
2038         echo "==> Adding md5 checksum to top-level directory"
2039         cd proto-toplev && find * -follow -name CVS -prune -o -type f -print \
2040                 | xargs $(MD5PROG) > ../md5.sum
2041         mv md5.sum proto-toplev
2042
2043 .PHONY: do-djunpack
2044 do-djunpack:
2045         echo "==> Adding updated djunpack.bat to top-level directory"
2046         echo - 's /gdb-[0-9\.]*/gdb-'"$(VER)"'/'
2047         sed < djunpack.bat > djunpack.new \
2048                 -e 's/gdb-[0-9][0-9\.]*/gdb-'"$(VER)"'/'
2049         mv djunpack.new djunpack.bat
2050         -rm -f proto-toplev/djunpack.bat
2051         ln -s ../djunpack.bat proto-toplev/djunpack.bat
2052
2053 TEXINFO_SUPPORT= texinfo/texinfo.tex
2054 DIST_SUPPORT= $(DEVO_SUPPORT) $(TEXINFO_SUPPORT)
2055
2056 .PHONY: gas.tar.bz2
2057 GAS_SUPPORT_DIRS= bfd include libiberty opcodes intl setup.com makefile.vms mkdep
2058 gas.tar.bz2: $(DIST_SUPPORT) $(GAS_SUPPORT_DIRS) gas
2059         $(MAKE) -f Makefile.in taz TOOL=gas \
2060                 MD5PROG="$(MD5PROG)" \
2061                 SUPPORT_FILES="$(GAS_SUPPORT_DIRS)"
2062
2063 # The FSF "binutils" release includes gprof and ld.
2064 .PHONY: binutils.tar.bz2
2065 BINUTILS_SUPPORT_DIRS= bfd gas include libiberty opcodes ld gprof intl setup.com makefile.vms mkdep
2066 binutils.tar.bz2: $(DIST_SUPPORT) $(BINUTILS_SUPPORT_DIRS) binutils
2067         $(MAKE) -f Makefile.in taz TOOL=binutils \
2068                 MD5PROG="$(MD5PROG)" \
2069                 SUPPORT_FILES="$(BINUTILS_SUPPORT_DIRS)"
2070
2071 .PHONY: gas+binutils.tar.bz2
2072 GASB_SUPPORT_DIRS= $(GAS_SUPPORT_DIRS) binutils ld gprof
2073 gas+binutils.tar.bz2: $(DIST_SUPPORT) $(GASB_SUPPORT_DIRS) gas
2074         $(MAKE) -f Makefile.in taz TOOL=gas \
2075                 MD5PROG="$(MD5PROG)" \
2076                 SUPPORT_FILES="$(GASB_SUPPORT_DIRS)"
2077
2078 .PHONY: libg++.tar.bz2
2079 LIBGXX_SUPPORT_DIRS=include libstdc++ libio librx libiberty
2080 libg++.tar.bz2: $(DIST_SUPPORT) libg++
2081         $(MAKE) -f Makefile.in taz TOOL=libg++ \
2082                 MD5PROG="$(MD5PROG)" \
2083                 SUPPORT_FILES="$(LIBGXX_SUPPORT_DIRS)"
2084
2085 GNATS_SUPPORT_DIRS=include libiberty send-pr
2086 gnats.tar.bz2: $(DIST_SUPPORT) $(GNATS_SUPPORT_DIRS) gnats
2087         $(MAKE) -f  Makefile.in taz TOOL=gnats \
2088                 MD5PROG="$(MD5PROG)" \
2089                 SUPPORT_FILES="$(GNATS_SUPPORT_DIRS)"
2090
2091 .PHONY: gdb.tar.bz2
2092 GDB_SUPPORT_DIRS= bfd include libiberty mmalloc opcodes readline sim utils intl
2093 gdb.tar.bz2: $(DIST_SUPPORT) $(GDB_SUPPORT_DIRS) gdb
2094         $(MAKE) -f Makefile.in gdb-taz TOOL=gdb \
2095                 MD5PROG="$(MD5PROG)" \
2096                 SUPPORT_FILES="$(GDB_SUPPORT_DIRS)"
2097 .PHONY: gdb.tar
2098 gdb.tar: $(DIST_SUPPORT) $(GDB_SUPPORT_DIRS) gdb
2099         $(MAKE) -f Makefile.in gdb-tar TOOL=gdb \
2100                 MD5PROG="$(MD5PROG)" \
2101                 SUPPORT_FILES="$(GDB_SUPPORT_DIRS)"
2102
2103 DEJAGNU_SUPPORT_DIRS=  tcl expect libiberty
2104 .PHONY: dejagnu.tar.bz2
2105 dejagnu.tar.bz2: $(DIST_SUPPORT) $(DEJAGNU_SUPPORT_DIRS) dejagnu
2106         $(MAKE) -f Makefile.in taz TOOL=dejagnu \
2107                 MD5PROG="$(MD5PROG)" \
2108                 SUPPORT_FILES="$(DEJAGNU_SUPPORT_DIRS)"
2109
2110 .PHONY: gdb+dejagnu.tar.bz2
2111 GDBD_SUPPORT_DIRS= $(GDB_SUPPORT_DIRS) tcl expect dejagnu
2112 gdb+dejagnu.tar.bz2: $(DIST_SUPPORT) $(GDBD_SUPPORT_DIRS) gdb
2113         $(MAKE) -f Makefile.in gdb-taz TOOL=gdb PACKAGE=gdb+dejagnu \
2114                 MD5PROG="$(MD5PROG)" \
2115                 SUPPORT_FILES="$(GDBD_SUPPORT_DIRS)"
2116 .PHONY: gdb+dejagnu.tar
2117 gdb+dejagnu.tar: $(DIST_SUPPORT) $(GDBD_SUPPORT_DIRS) gdb
2118         $(MAKE) -f Makefile.in gdb-tar TOOL=gdb PACKAGE=gdb+dejagnu \
2119                 MD5PROG="$(MD5PROG)" \
2120                 SUPPORT_FILES="$(GDBD_SUPPORT_DIRS)"
2121
2122 .PHONY: insight.tar.bz2
2123 INSIGHT_SUPPORT_DIRS= $(GDB_SUPPORT_DIRS) tcl tk itcl tix libgui
2124 insight.tar.bz2: $(DIST_SUPPORT) $(GDB_SUPPORT_DIRS) gdb
2125         $(MAKE) -f Makefile.in gdb-taz TOOL=gdb PACKAGE=insight \
2126                 MD5PROG="$(MD5PROG)" \
2127                 SUPPORT_FILES="$(INSIGHT_SUPPORT_DIRS)"
2128 .PHONY: insight.tar
2129 insight.tar: $(DIST_SUPPORT) $(GDB_SUPPORT_DIRS) gdb
2130         $(MAKE) -f Makefile.in gdb-tar TOOL=gdb PACKAGE=insight \
2131                 MD5PROG="$(MD5PROG)" \
2132                 SUPPORT_FILES="$(INSIGHT_SUPPORT_DIRS)"
2133
2134 .PHONY: insight+dejagnu.tar.bz2
2135 INSIGHTD_SUPPORT_DIRS= $(INSIGHT_SUPPORT_DIRS) expect dejagnu
2136 insight+dejagnu.tar.bz2: $(DIST_SUPPORT) $(INSIGHTD_SUPPORT_DIRS) gdb
2137         $(MAKE) -f Makefile.in gdb-taz TOOL=gdb PACKAGE="insight+dejagnu" \
2138                 MD5PROG="$(MD5PROG)" \
2139                 SUPPORT_FILES="$(INSIGHTD_SUPPORT_DIRS)"
2140 .PHONY: insight+dejagnu.tar
2141 insight+dejagnu.tar: $(DIST_SUPPORT) $(INSIGHTD_SUPPORT_DIRS) gdb
2142         $(MAKE) -f Makefile.in gdb-tar TOOL=gdb PACKAGE="insight+dejagnu" \
2143                 MD5PROG="$(MD5PROG)" \
2144                 SUPPORT_FILES="$(INSIGHTD_SUPPORT_DIRS)"
2145
2146 .PHONY: newlib.tar.bz2
2147 NEWLIB_SUPPORT_DIRS=libgloss
2148 # taz configures for the sun4 target which won't configure newlib.
2149 # We need newlib configured so that the .info files are made.
2150 # Unfortunately, it is not enough to just configure newlib separately:
2151 # taz will build the .info files but since SUBDIRS won't contain newlib,
2152 # distclean won't be run (leaving Makefile, config.status, and the tmp files
2153 # used in building the .info files, eg: *.def, *.ref).
2154 # The problem isn't solvable however without a lot of extra work because
2155 # target libraries are built in subdir $(target_alias) which gets nuked during
2156 # the make distclean.  For now punt on the issue of shipping newlib info files
2157 # with newlib net releases and wait for a day when some native target (sun4?)
2158 # supports newlib (if only minimally).
2159 newlib.tar.bz2: $(DIST_SUPPORT) $(NEWLIB_SUPPORT_DIRS) newlib
2160         $(MAKE) -f Makefile.in taz TOOL=newlib \
2161                 MD5PROG="$(MD5PROG)" \
2162                 SUPPORT_FILES="$(NEWLIB_SUPPORT_DIRS)" \
2163                 DEVO_SUPPORT="$(DEVO_SUPPORT) COPYING.NEWLIB" newlib
2164
2165 .NOEXPORT:
2166 MAKEOVERRIDES=
2167
2168 # end of Makefile.in