OSDN Git Service

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