Must have copied the wrong message when creating this file...
[platform/upstream/binutils.git] / Makefile.in
1 #
2 # Makefile for directory with subdirs to build.
3 #   Copyright (C) 1990, 91, 92, 93, 94, 95, 96, 1997 Free Software Foundation
4 #
5 # This file is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU General Public License for more details.
14
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 #
19
20 srcdir = .
21
22 prefix = /usr/local
23 exec_prefix = $(prefix)
24
25 bindir=${exec_prefix}/bin
26 sbindir=${exec_prefix}/sbin
27 libexecdir=${exec_prefix}/libexec
28 datadir=${prefix}/share
29 sysconfdir=${prefix}/etc
30 sharedstatedir=${prefix}/com
31 localstatedir=${prefix}/var
32 libdir=${exec_prefix}/lib
33 includedir=${prefix}/include
34 oldincludedir=/usr/include
35 infodir=${prefix}/info
36 mandir=${prefix}/man
37
38 tooldir = $(exec_prefix)/$(target)
39
40 program_transform_name =
41
42 man1dir = $(mandir)/man1
43 man2dir = $(mandir)/man2
44 man3dir = $(mandir)/man3
45 man4dir = $(mandir)/man4
46 man5dir = $(mandir)/man5
47 man6dir = $(mandir)/man6
48 man7dir = $(mandir)/man7
49 man8dir = $(mandir)/man8
50 man9dir = $(mandir)/man9
51 GDB_NLM_DEPS = 
52
53 SHELL = /bin/sh
54
55 # INSTALL_PROGRAM_ARGS is changed by configure.in to use -x for a
56 # cygwin32 host.
57 INSTALL_PROGRAM_ARGS =
58
59 INSTALL = $(SHELL) $$s/install-sh -c
60 INSTALL_PROGRAM = $(INSTALL) $(INSTALL_PROGRAM_ARGS)
61 INSTALL_SCRIPT = $(INSTALL)
62 INSTALL_DATA = $(INSTALL) -m 644
63
64 INSTALL_DOSREL = install-dosrel-fake
65
66 AS = as
67 AR = ar
68 AR_FLAGS = rc
69 CC = cc
70
71 # Special variables passed down in EXTRA_GCC_FLAGS.  They are defined
72 # here so that they can be overridden by Makefile fragments.
73 HOST_CC = $(CC_FOR_BUILD)
74 HOST_PREFIX = 
75 HOST_PREFIX_1 = loser-
76
77 # These flag values are normally overridden by the configure script.
78 CFLAGS = -g
79 CXXFLAGS = -g -O2
80
81 LIBCFLAGS = $(CFLAGS)
82 CFLAGS_FOR_TARGET = $(CFLAGS)
83 LDFLAGS_FOR_TARGET = 
84 LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
85 PICFLAG = 
86 PICFLAG_FOR_TARGET = 
87
88 # start-sanitize-chill
89 CHILLFLAGS = $(CFLAGS)
90 CHILL_LIB = -lchill
91 # end-sanitize-chill
92 CXX = c++
93
94 # Use -O2 to stress test the compiler.
95 LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates
96 CXXFLAGS_FOR_TARGET = $(CXXFLAGS)
97 LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
98
99 RANLIB = ranlib
100
101 DLLTOOL = dlltool
102 WINDRES = windres
103
104 NM = nm
105
106 LD = ld
107
108 # Not plain GZIP, since gzip looks there for extra command-line options.
109 GZIPPROG = gzip
110
111 # These values are substituted by configure.
112 DEFAULT_YACC = yacc
113 DEFAULT_LEX = lex
114
115 BISON = `if [ -f $$r/bison/bison ] ; then \
116             echo $$r/bison/bison -L $$s/bison/ ; \
117          else \
118             echo bison ; \
119          fi`
120
121 YACC = `if [ -f $$r/bison/bison ] ; then \
122             echo $$r/bison/bison -y -L $$s/bison/ ; \
123         elif [ -f $$r/byacc/byacc ] ; then \
124             echo $$r/byacc/byacc ; \
125         else \
126             echo ${DEFAULT_YACC} ; \
127         fi`
128
129 LEX = `if [ -f $$r/flex/flex ] ; \
130         then echo $$r/flex/flex ; \
131         else echo ${DEFAULT_LEX} ; fi`
132
133 M4 = `if [ -f $$r/m4/m4 ] ; \
134         then echo $$r/m4/m4 ; \
135         else echo m4 ; fi`
136
137 MAKEINFO = `if [ -f $$r/texinfo/makeinfo/Makefile ] ; \
138         then echo $$r/texinfo/makeinfo/makeinfo ; \
139         else echo makeinfo ; fi`
140
141 # This just becomes part of the MAKEINFO definition passed down to
142 # sub-makes.  It lets flags be given on the command line while still
143 # using the makeinfo from the object tree.
144 MAKEINFOFLAGS =
145
146 EXPECT = `if [ -f $$r/expect/expect ] ; \
147         then echo $$r/expect/expect ; \
148         else echo expect ; fi`
149
150 RUNTEST = `if [ -f $$s/dejagnu/runtest ] ; \
151         then echo $$s/dejagnu/runtest ; \
152         else echo runtest ; fi`
153
154
155 # compilers to use to create programs which must be run in the build
156 # environment.
157 CC_FOR_BUILD = $(CC)
158 CXX_FOR_BUILD = $(CXX)
159
160 SUBDIRS = "this is set via configure, don't edit this"
161 OTHERS = 
162
163 # This is set by the configure script to the list of directories which
164 # should be built using the target tools.
165 TARGET_CONFIGDIRS = libiberty libgloss newlib libio librx libstdc++ libg++ winsup opcodes cygmon
166
167 # Target libraries are put under this directory:
168 # Changed by configure to $(target_alias) if cross.
169 TARGET_SUBDIR = .
170
171 # This is set by the configure script to the arguments passed to configure.
172 CONFIG_ARGUMENTS = 
173
174 # This is set by configure to REALLY_SET_LIB_PATH if --enable-shared
175 # was used.
176 SET_LIB_PATH =
177
178 # This is the name of the environment variable used for the path to
179 # the libraries.  This may be changed by configure.in.
180 RPATH_ENVVAR = LD_LIBRARY_PATH
181
182 # configure.in sets SET_LIB_PATH to this if --enable-shared was used.
183 REALLY_SET_LIB_PATH = \
184   $(RPATH_ENVVAR)=$$r/bfd:$$r/opcodes:$$$(RPATH_ENVVAR); \
185   export $(RPATH_ENVVAR);
186
187 ALL = all.normal
188 INSTALL_TARGET = installdirs \
189         install-gcc \
190         $(INSTALL_MODULES) \
191         $(INSTALL_TARGET_MODULES) \
192         $(INSTALL_X11_MODULES) \
193         $(INSTALL_DOSREL)
194
195
196 CC_FOR_TARGET = ` \
197   if [ -f $$r/gcc/xgcc ] ; then \
198     if [ -f $$r/$(TARGET_SUBDIR)/newlib/Makefile ] ; then \
199       if [ -f $$r/$(TARGET_SUBDIR)/winsup/Makefile ] ; then \
200         echo $$r/gcc/xgcc -B$$r/gcc/ -B$$r/newlib/ -L$$r/$(TARGET_SUBDIR)/winsup -idirafter $$r/$(TARGET_SUBDIR)/newlib/targ-include -idirafter $$s/newlib/libc/include -nostdinc; \
201       else \
202         echo $$r/gcc/xgcc -B$$r/gcc/ -idirafter $$r/$(TARGET_SUBDIR)/newlib/targ-include -idirafter $$s/newlib/libc/include -nostdinc; \
203       fi; \
204     else \
205       echo $$r/gcc/xgcc -B$$r/gcc/; \
206     fi; \
207   else \
208     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
209       echo $(CC); \
210     else \
211       t='$(program_transform_name)'; echo gcc | sed -e 's/x/x/' $$t; \
212     fi; \
213   fi`
214
215 # If CC_FOR_TARGET is not overriden on the command line, then this
216 # variable is passed down to the gcc Makefile, where it is used to
217 # build libgcc2.a.  We define it here so that it can itself be
218 # overridden on the command line.
219 GCC_FOR_TARGET = $$r/gcc/xgcc -B$$r/gcc/
220
221 # start-sanitize-chill
222 CHILL_FOR_TARGET = ` \
223   if [ -f $$r/gcc/xgcc ] ; then \
224     echo $$r/gcc/xgcc -B$$r/gcc/ -L$$r/gcc/ch/runtime/; \
225   else \
226     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
227       echo $(CC); \
228     else \
229       t='$(program_transform_name)'; echo gcc | sed -e 's/x/x/' $$t; \
230     fi; \
231   fi`
232
233 # end-sanitize-chill
234
235 CXX_FOR_TARGET = ` \
236   if [ -f $$r/gcc/xgcc ] ; then \
237     if [ -f $$r/$(TARGET_SUBDIR)/newlib/Makefile ] ; then \
238       if [ -f $$r/$(TARGET_SUBDIR)/winsup/Makefile ] ; then \
239         echo $$r/gcc/xgcc -B$$r/gcc/ -B$$r/newlib/ -L$$r/winsup -idirafter $$r/$(TARGET_SUBDIR)/newlib/targ-include -idirafter $$s/newlib/libc/include -nostdinc; \
240       else \
241         echo $$r/gcc/xgcc -B$$r/gcc/ -idirafter $$r/$(TARGET_SUBDIR)/newlib/targ-include -idirafter $$s/newlib/libc/include -nostdinc; \
242       fi; \
243     else \
244       echo $$r/gcc/xgcc -B$$r/gcc/; \
245     fi; \
246   else \
247     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
248       echo $(CXX); \
249     else \
250       t='$(program_transform_name)'; echo c++ | sed -e 's/x/x/' $$t; \
251     fi; \
252   fi`
253
254 AS_FOR_TARGET = ` \
255   if [ -f $$r/gas/as-new ] ; then \
256     echo $$r/gas/as-new ; \
257   else \
258     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
259       echo $(AS); \
260     else \
261        t='$(program_transform_name)'; echo as | sed -e 's/x/x/' $$t ; \
262     fi; \
263   fi`
264
265 LD_FOR_TARGET = ` \
266   if [ -f $$r/ld/ld-new ] ; then \
267     echo $$r/ld/ld-new ; \
268   else \
269     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
270       echo $(LD); \
271     else \
272        t='$(program_transform_name)'; echo ld | sed -e 's/x/x/' $$t ; \
273     fi; \
274   fi`
275
276 DLLTOOL_FOR_TARGET = ` \
277   if [ -f $$r/binutils/dlltool ] ; then \
278     echo $$r/binutils/dlltool ; \
279   else \
280     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
281       echo $(DLLTOOL); \
282     else \
283        t='$(program_transform_name)'; echo dlltool | sed -e 's/x/x/' $$t ; \
284     fi; \
285   fi`
286
287 WINDRES_FOR_TARGET = ` \
288   if [ -f $$r/binutils/windres ] ; then \
289     echo $$r/binutils/windres ; \
290   else \
291     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
292       echo $(WINDRES); \
293     else \
294        t='$(program_transform_name)'; echo windres | sed -e 's/x/x/' $$t ; \
295     fi; \
296   fi`
297
298 AR_FOR_TARGET = ` \
299   if [ -f $$r/binutils/ar ] ; then \
300     echo $$r/binutils/ar ; \
301   else \
302     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
303       echo $(AR); \
304     else \
305        t='$(program_transform_name)'; echo ar | sed -e 's/x/x/' $$t ; \
306     fi; \
307   fi`
308
309 RANLIB_FOR_TARGET = ` \
310   if [ -f $$r/binutils/ranlib ] ; then \
311     echo $$r/binutils/ranlib ; \
312   else \
313     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
314       echo $(RANLIB); \
315     else \
316        t='$(program_transform_name)'; echo ranlib | sed -e 's/x/x/' $$t ; \
317     fi; \
318   fi`
319
320 NM_FOR_TARGET = ` \
321   if [ -f $$r/binutils/nm-new ] ; then \
322     echo $$r/binutils/nm-new ; \
323   else \
324     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
325       echo $(NM); \
326     else \
327        t='$(program_transform_name)'; echo nm | sed -e 's/x/x/' $$t ; \
328     fi; \
329   fi`
330
331 #### host and target specific makefile fragments come in here.
332 ###
333
334 # Flags to pass down to all sub-makes.
335 # Please keep these in alphabetical order.
336 BASE_FLAGS_TO_PASS = \
337         "AR_FLAGS=$(AR_FLAGS)" \
338         "AR_FOR_TARGET=$(AR_FOR_TARGET)" \
339         "AS_FOR_TARGET=$(AS_FOR_TARGET)" \
340         "BISON=$(BISON)" \
341         "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
342         "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
343         "CFLAGS=$(CFLAGS)" \
344         "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
345         $(start-sanitize-chill)\
346         "CHILLFLAGS=$(CHILLFLAGS)" \
347         "CHILL_FOR_TARGET=$(CHILL_FOR_TARGET)" \
348         "CHILL_LIB=$(CHILL_LIB)" \
349         $(end-sanitize-chill)\
350         "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
351         "CXXFLAGS=$(CXXFLAGS)" \
352         "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \
353         "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
354         "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \
355         "gxx_include_dir=$(gxx_include_dir)" \
356         "INSTALL=$(INSTALL)" \
357         "INSTALL_DATA=$(INSTALL_DATA)" \
358         "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
359         "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
360         "LDFLAGS=$(LDFLAGS)" \
361         "LEX=$(LEX)" \
362         "LD_FOR_TARGET=$(LD_FOR_TARGET)" \
363         "LIBCFLAGS=$(LIBCFLAGS)" \
364         "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
365         "LIBCXXFLAGS=$(LIBCXXFLAGS)" \
366         "LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \
367         "local_prefix=$(local_prefix)" \
368         "M4=$(M4)" \
369         "MAKE=$(MAKE)" \
370         "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
371         "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
372         "PICFLAG=$(PICFLAG)" \
373         "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
374         "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
375         "RPATH_ENVVAR=$(RPATH_ENVVAR)" \
376         "SHELL=$(SHELL)" \
377         "EXPECT=$(EXPECT)" \
378         "RUNTEST=$(RUNTEST)" \
379         "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
380         "WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \
381         "YACC=$(YACC)" \
382         "bindir=$(bindir)" \
383         "datadir=$(datadir)" \
384         "exec_prefix=$(exec_prefix)" \
385         "includedir=$(includedir)" \
386         "infodir=$(infodir)" \
387         "libdir=$(libdir)" \
388         "libexecdir=$(libexecdir)" \
389         "localstatedir=$(localstatedir)" \
390         "mandir=$(mandir)" \
391         "oldincludedir=$(oldincludedir)" \
392         "prefix=$(prefix)" \
393         "sbindir=$(sbindir)" \
394         "sharedstatedir=$(sharedstatedir)" \
395         "sysconfdir=$(sysconfdir)" \
396         "tooldir=$(tooldir)"
397
398 # Flags to pass down to most sub-makes, in which we're building with
399 # the host environment.
400 # If any variables are added here, they must be added to do-*, below.
401 EXTRA_HOST_FLAGS = \
402         'AR=$(AR)' \
403         'AS=$(AS)' \
404         'CC=$(CC)' \
405         'CXX=$(CXX)' \
406         'DLLTOOL=$(DLLTOOL)' \
407         'LD=$(LD)' \
408         'NM=$(NM)' \
409         'RANLIB=$(RANLIB)' \
410         'WINDRES=$(WINDRES)'
411
412 FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)
413
414 # Flags that are concerned with the location of the X11 include files
415 # and library files
416 #
417 # NOTE: until the top-level is getting the values via autoconf, it only
418 # causes problems to have this top-level Makefile overriding the autoconf-set
419 # values in child directories.  Only variables that don't conflict with
420 # autoconf'ed ones should be passed by X11_FLAGS_TO_PASS for now.
421 #
422 X11_FLAGS_TO_PASS = \
423         'X11_EXTRA_CFLAGS=$(X11_EXTRA_CFLAGS)' \
424         'X11_EXTRA_LIBS=$(X11_EXTRA_LIBS)'
425
426 # Flags to pass down to makes which are built with the target environment.
427 # The double $ decreases the length of the command line; the variables
428 # are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them.
429 # If any variables are added here, they must be added to do-*, below.
430 EXTRA_TARGET_FLAGS = \
431         'AR=$$(AR_FOR_TARGET)' \
432         'AS=$$(AS_FOR_TARGET)' \
433         'CC=$$(CC_FOR_TARGET)' \
434         'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
435         'CXX=$$(CXX_FOR_TARGET)' \
436         'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
437         'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
438         'LD=$$(LD_FOR_TARGET)' \
439         'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
440         'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \
441         'NM=$$(NM_FOR_TARGET)' \
442         'PICFLAG=$$(PICFLAG_FOR_TARGET)' \
443         'RANLIB=$$(RANLIB_FOR_TARGET)' \
444         'WINDRES=$$(WINDRES_FOR_TARGET)'
445
446 TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)
447
448 # Flags to pass down to gcc.  gcc builds a library, libgcc.a, so it
449 # unfortunately needs the native compiler and the target ar and
450 # ranlib.
451 # If any variables are added here, they must be added to do-*, below.
452 # The HOST_* variables are a special case, which are used for the gcc
453 # cross-building scheme.
454 EXTRA_GCC_FLAGS = \
455         'AR=$$(AR_FOR_TARGET)' \
456         'AS=$(AS)' \
457         'CC=$(CC)' \
458         'CXX=$(CXX)' \
459         'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
460         'HOST_CC=$(CC_FOR_BUILD)' \
461         'HOST_PREFIX=$(HOST_PREFIX)' \
462         'HOST_PREFIX_1=$(HOST_PREFIX_1)' \
463         'NM=$(NM)' \
464         'RANLIB=$$(RANLIB_FOR_TARGET)' \
465         'WINDRES=$$(WINDRES_FOR_TARGET)' \
466         "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
467         "`if test x'$(LANGUAGES)' != x; then echo 'LANGUAGES=$(LANGUAGES)'; else echo 'XFOO=bar'; fi`" \
468         "`if test x'$(STMP_FIXPROTO)' != x; then echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)'; else echo 'XFOO=bar'; fi`" \
469         "`if test x'$(LIMITS_H_TEST)' != x; then echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)'; else echo 'XFOO=bar'; fi`" \
470         "`if test x'$(LIBGCC1_TEST)' != x; then echo 'LIBGCC1_TEST=$(LIBGCC1_TEST)'; else echo 'XFOO=bar'; fi`" \
471         "`if test x'$(LIBGCC2_CFLAGS)' != x; then echo 'LIBGCC2_CFLAGS=$(LIBGCC2_CFLAGS)'; else echo 'XFOO=bar'; fi`" \
472         "`if test x'$(LIBGCC2_DEBUG_CFLAGS)' != x; then echo 'LIBGCC2_DEBUG_CFLAGS=$(LIBGCC2_DEBUG_CFLAGS)'; else echo 'XFOO=bar'; fi`" \
473         "`if test x'$(LIBGCC2_INCLUDES)' != x; then echo 'LIBGCC2_INCLUDES=$(LIBGCC2_INCLUDES)'; else echo 'XFOO=bar'; fi`" \
474         "`if test x'$(ENQUIRE)' != x; then echo 'ENQUIRE=$(ENQUIRE)'; else echo 'XFOO=bar'; fi`" \
475         "`if test x'$(BOOT_CFLAGS)' != x; then echo 'BOOT_CFLAGS=$(BOOT_CFLAGS)'; else echo 'XFOO=bar'; fi`"
476
477 GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS)
478
479 # This is a list of the targets for all of the modules which are compiled
480 # using $(FLAGS_TO_PASS).
481 ALL_MODULES = \
482         all-apache \
483         all-autoconf \
484         all-automake \
485         all-bash \
486         all-bfd \
487         all-binutils \
488         all-bison \
489         all-byacc \
490         all-cvssrc \
491         all-db \
492         all-dejagnu \
493         all-diff \
494         all-dosutils \
495         all-etc \
496         all-fileutils \
497         all-findutils \
498         all-find \
499         all-flex \
500         all-gas \
501         all-gawk \
502         all-gnuserv \
503         all-gprof \
504         all-grep \
505         all-grez \
506         all-gzip \
507         all-hello \
508         $(start-sanitize-ide) \
509         all-ilu \
510         $(end-sanitize-ide) \
511         all-indent \
512         all-inet \
513         all-ispell \
514         all-itcl \
515         $(start-sanitize-ide) \
516         all-jstools \
517         $(end-sanitize-ide) \
518         all-ld \
519         all-libgui \
520         all-libiberty \
521         $(start-sanitize-ide) \
522         all-libide \
523         $(end-sanitize-ide) \
524         all-m4 \
525         all-make \
526         all-mmalloc \
527         all-opcodes \
528         all-patch \
529         all-perl \
530         all-prms \
531         all-rcs \
532         all-readline \
533         all-release \
534         all-recode \
535         all-sed \
536         all-send-pr \
537         all-shellutils \
538         all-sim \
539         all-sn \
540         all-tar \
541         all-tcl \
542         all-texinfo \
543         all-textutils \
544         all-tgas \
545         all-time \
546         all-uudecode \
547         $(start-sanitize-ide) \
548         all-vmake \
549         $(end-sanitize-ide) \
550         all-wdiff 
551
552 # This is a list of the check targets for all of the modules which are
553 # compiled using $(FLAGS_TO_PASS).
554 #
555 # The list is in two parts.  The first lists those tools which
556 # are tested as part of the host's native tool-chain, and not
557 # tested in a cross configuration.
558 NATIVE_CHECK_MODULES = \
559         check-bison \
560         check-byacc \
561         check-flex
562
563 CROSS_CHECK_MODULES = \
564         check-apache \
565         check-autoconf \
566         check-automake \
567         check-bash \
568         check-bfd \
569         check-binutils \
570         check-cvssrc \
571         check-db \
572         check-dejagnu \
573         check-diff \
574         check-etc \
575         check-fileutils \
576         check-findutils \
577         check-find \
578         check-gas \
579         check-gawk \
580         check-gnuserv \
581         check-gprof \
582         check-grep \
583         check-gzip \
584         check-hello \
585         $(start-sanitize-ide) \
586         check-ilu \
587         $(end-sanitize-ide) \
588         check-indent \
589         check-inet \
590         check-ispell \
591         check-itcl \
592         $(start-sanitize-ide) \
593         check-jstools \
594         $(end-sanitize-ide) \
595         check-ld \
596         check-libgui \
597         check-libiberty \
598         $(start-sanitize-ide) \
599         check-libide \
600         $(end-sanitize-ide) \
601         check-m4 \
602         check-make \
603         check-mmcheckoc \
604         check-opcodes \
605         check-patch \
606         check-perl \
607         check-prms \
608         check-rcs \
609         check-readline \
610         check-recode \
611         check-sed \
612         check-send-pr \
613         check-shellutils \
614         check-sn \
615         check-sim \
616         check-tar \
617         check-tcl \
618         check-texinfo \
619         check-textutils \
620         check-tgas \
621         check-time \
622         check-uudecode \
623         $(start-sanitize-ide) \
624         check-vmake \
625         $(end-sanitize-ide) \
626         check-wdiff
627
628 CHECK_MODULES=$(NATIVE_CHECK_MODULES) $(CROSS_CHECK_MODULES)
629
630 # This is a list of the install targets for all of the modules which are
631 # compiled using $(FLAGS_TO_PASS).
632 # We put install-opcodes before install-binutils because the installed
633 # binutils might be on PATH, and they might need the shared opcodes
634 # library.
635 INSTALL_MODULES = \
636         install-apache \
637         install-autoconf \
638         install-automake \
639         install-bash \
640         install-bfd \
641         install-opcodes \
642         install-binutils \
643         install-bison \
644         install-byacc \
645         install-cvssrc \
646         install-db \
647         install-dejagnu \
648         install-diff \
649         install-dosutils \
650         install-etc \
651         install-fileutils \
652         install-findutils \
653         install-find \
654         install-flex \
655         install-gas \
656         install-gawk \
657         install-gnuserv \
658         install-gprof \
659         install-grep \
660         install-grez \
661         install-gzip \
662         install-hello \
663         $(start-sanitize-ide) \
664         install-ilu \
665         $(end-sanitize-ide) \
666         install-indent \
667         install-inet \
668         install-ispell \
669         install-itcl \
670         $(start-sanitize-ide) \
671         install-jstools \
672         $(end-sanitize-ide) \
673         install-ld \
674         install-libgui \
675         install-libiberty \
676         $(start-sanitize-ide) \
677         install-libide \
678         $(end-sanitize-ide) \
679         install-m4 \
680         install-make \
681         install-mmalloc \
682         install-patch \
683         install-perl \
684         install-prms \
685         install-rcs \
686         install-readline \
687         install-recode \
688         install-sed \
689         install-send-pr \
690         install-shellutils \
691         install-sim \
692         install-sn \
693         install-tar \
694         install-tcl \
695         install-texinfo \
696         install-textutils \
697         install-tgas \
698         install-time \
699         install-uudecode \
700         $(start-sanitize-ide) \
701         install-vmake \
702         $(end-sanitize-ide) \
703         install-wdiff
704
705 # This is a list of the targets for all of the modules which are compiled
706 # using $(X11_FLAGS_TO_PASS).
707 ALL_X11_MODULES = \
708         all-emacs \
709         all-emacs19 \
710         all-gdb \
711         all-expect \
712         all-gash \
713         all-guile \
714         all-tclX \
715         all-tk \
716         all-tix
717
718 # This is a list of the check targets for all of the modules which are
719 # compiled using $(X11_FLAGS_TO_PASS).
720 CHECK_X11_MODULES = \
721         check-emacs \
722         check-gdb \
723         check-guile \
724         check-expect \
725         check-gash \
726         check-tclX \
727         check-tk \
728         check-tix
729
730 # This is a list of the install targets for all the modules which are
731 # compiled using $(X11_FLAGS_TO_PASS).
732 INSTALL_X11_MODULES = \
733         install-emacs \
734         install-emacs19 \
735         install-gdb \
736         install-guile \
737         install-expect \
738         install-gash \
739         install-tclX \
740         install-tk \
741         install-tix
742
743 # This is a list of the targets for all of the modules which are compiled
744 # using $(TARGET_FLAGS_TO_PASS).
745 ALL_TARGET_MODULES = \
746         all-target-libio \
747         all-target-libstdc++ \
748         all-target-librx \
749         all-target-libg++ \
750         all-target-newlib \
751         all-target-winsup \
752         all-target-libgloss \
753         all-target-libiberty \
754         all-target-gperf \
755         all-target-examples \
756         all-target-cygmon
757
758 # This is a list of the configure targets for all of the modules which
759 # are compiled using the target tools.
760 CONFIGURE_TARGET_MODULES = \
761         configure-target-libio \
762         configure-target-libstdc++ \
763         configure-target-librx \
764         configure-target-libg++ \
765         configure-target-newlib \
766         configure-target-winsup \
767         configure-target-libgloss \
768         configure-target-libiberty \
769         configure-target-gperf \
770         configure-target-examples \
771         configure-target-cygmon
772
773 # This is a list of the check targets for all of the modules which are
774 # compiled using $(TARGET_FLAGS_TO_PASS).
775 CHECK_TARGET_MODULES = \
776         check-target-libio \
777         check-target-libstdc++ \
778         check-target-libg++ \
779         check-target-newlib \
780         check-target-winsup \
781         check-target-libiberty \
782         check-target-gperf
783
784 # This is a list of the install targets for all of the modules which are
785 # compiled using $(TARGET_FLAGS_TO_PASS).
786 INSTALL_TARGET_MODULES = \
787         install-target-libio \
788         install-target-libstdc++ \
789         install-target-libg++ \
790         install-target-newlib \
791         install-target-winsup \
792         install-target-libgloss \
793         install-target-libiberty \
794         install-target-gperf
795
796 # This is a list of the targets for which we can do a clean-{target}.
797 CLEAN_MODULES = \
798         clean-apache \
799         clean-autoconf \
800         clean-automake \
801         clean-bash \
802         clean-bfd \
803         clean-binutils \
804         clean-bison \
805         clean-byacc \
806         clean-cvssrc \
807         clean-db \
808         clean-dejagnu \
809         clean-diff \
810         clean-dosutils \
811         clean-etc \
812         clean-fileutils \
813         clean-findutils \
814         clean-find \
815         clean-flex \
816         clean-gas \
817         clean-gawk \
818         clean-gnuserv \
819         clean-gprof \
820         clean-grep \
821         clean-grez \
822         clean-gzip \
823         clean-hello \
824         $(start-sanitize-ide) \
825         clean-ilu \
826         $(end-sanitize-ide) \
827         clean-indent \
828         clean-inet \
829         clean-ispell \
830         clean-itcl \
831         $(start-sanitize-ide) \
832         clean-jstools \
833         $(end-sanitize-ide) \
834         clean-ld \
835         clean-libgui \
836         clean-libiberty \
837         $(start-sanitize-ide) \
838         clean-libide \
839         $(end-sanitize-ide) \
840         clean-m4 \
841         clean-make \
842         clean-mmalloc \
843         clean-opcodes \
844         clean-patch \
845         clean-perl \
846         clean-prms \
847         clean-rcs \
848         clean-readline \
849         clean-release \
850         clean-recode \
851         clean-sed \
852         clean-send-pr \
853         clean-shellutils \
854         clean-sim \
855         clean-sn \
856         clean-tar \
857         clean-tcl \
858         clean-texinfo \
859         clean-textutils \
860         clean-tgas \
861         clean-time \
862         clean-uudecode \
863         $(start-sanitize-ide) \
864         clean-vmake \
865         $(end-sanitize-ide) \
866         clean-wdiff
867
868 # All of the target modules that can be cleaned
869 CLEAN_TARGET_MODULES = \
870         clean-target-libio \
871         clean-target-libstdc++ \
872         clean-target-librx \
873         clean-target-libg++ \
874         clean-target-newlib \
875         clean-target-winsup \
876         clean-target-libgloss \
877         clean-target-libiberty \
878         clean-target-gperf \
879         clean-target-examples \
880         clean-target-cygmon
881
882 # All of the x11 modules that can be cleaned
883 CLEAN_X11_MODULES = \
884         clean-emacs \
885         clean-emacs19 \
886         clean-gdb \
887         clean-expect \
888         clean-gash \
889         clean-guile \
890         clean-tclX \
891         clean-tk \
892         clean-tix
893
894 # The first rule in the file had better be this one.  Don't put any above it.
895 all: all.normal
896 .PHONY: all
897
898 # The target built for a native build.
899 .PHONY: all.normal
900 all.normal: \
901         $(ALL_MODULES) \
902         $(ALL_X11_MODULES) \
903         $(ALL_TARGET_MODULES) \
904         all-gcc
905
906 # Do a target for all the subdirectories.  A ``make do-X'' will do a
907 # ``make X'' in all subdirectories (because, in general, there is a
908 # dependency (below) of X upon do-X, a ``make X'' will also do this,
909 # but it may do additional work as well).
910 # This target ensures that $(BASE_FLAGS_TO_PASS) appears only once,
911 # because it is so large that it can easily overflow the command line
912 # length limit on some systems.
913 DO_X = \
914         do-clean \
915         do-distclean \
916         do-dvi \
917         do-info \
918         do-install-info \
919         do-installcheck \
920         do-mostlyclean \
921         do-maintainer-clean \
922         do-TAGS
923 .PHONY: $(DO_X)
924 $(DO_X):
925         @target=`echo $@ | sed -e 's/^do-//'`; \
926         r=`pwd`; export r; \
927         s=`cd $(srcdir); pwd`; export s; \
928         $(SET_LIB_PATH) \
929         for i in $(SUBDIRS) -dummy-; do \
930           if [ -f ./$$i/Makefile ]; then \
931             case $$i in \
932             gcc) \
933               for flag in $(EXTRA_GCC_FLAGS); do \
934                 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'|"`; \
935               done; \
936               ;; \
937             *) \
938               for flag in $(EXTRA_HOST_FLAGS); do \
939                 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'|"`; \
940               done; \
941               ;; \
942             esac ; \
943             export AR AS CC CXX LD NM RANLIB DLLTOOL WINDRES; \
944             if (cd ./$$i; \
945                 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
946                         "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
947                         "RANLIB=$${RANLIB}" \
948                         "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
949                         $${target}); \
950             then true; else exit 1; fi; \
951           else true; fi; \
952         done
953         @target=`echo $@ | sed -e 's/^do-//'`; \
954         r=`pwd`; export r; \
955         s=`cd $(srcdir); pwd`; export s; \
956         $(SET_LIB_PATH) \
957         for i in $(TARGET_CONFIGDIRS) -dummy-; do \
958           if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
959             for flag in $(EXTRA_TARGET_FLAGS); do \
960                 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'|"`; \
961             done; \
962             export AR AS CC CXX LD NM RANLIB DLLTOOL WINDRES; \
963             if (cd $(TARGET_SUBDIR)/$$i; \
964                 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
965                         "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
966                         "RANLIB=$${RANLIB}" \
967                         "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
968                         $${target}); \
969             then true; else exit 1; fi; \
970           else true; fi; \
971         done
972
973 # Here are the targets which correspond to the do-X targets.
974
975 .PHONY: info installcheck dvi install-info
976 .PHONY: clean distclean mostlyclean maintainer-clean realclean
977 .PHONY: local-clean local-distclean local-maintainer-clean
978 info: do-info
979 installcheck: do-installcheck
980 dvi: do-dvi
981
982 # Make sure makeinfo is built before we do a `make info'.
983 do-info: all-texinfo
984
985 install-info: do-install-info dir.info
986         s=`cd $(srcdir); pwd`; export s; \
987         if [ -f dir.info ] ; then \
988           $(INSTALL_DATA) dir.info $(infodir)/dir.info ; \
989         else true ; fi
990
991 local-clean:
992         -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E
993
994 local-distclean:
995         -rm -f Makefile config.status config.cache
996         -if [ "$(TARGET_SUBDIR)" != "." ]; then \
997           rm -rf $(TARGET_SUBDIR); \
998         else true; fi
999
1000 local-maintainer-clean:
1001         @echo "This command is intended for maintainers to use;"
1002         @echo "it deletes files that may require special tools to rebuild."
1003
1004 clean: do-clean local-clean
1005 mostlyclean: do-mostlyclean local-clean
1006 distclean: do-distclean local-clean local-distclean
1007 maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean 
1008 maintainer-clean: local-distclean
1009 realclean: maintainer-clean
1010
1011 # This rule is used to clean specific modules.
1012 .PHONY: $(CLEAN_MODULES) $(CLEAN_X11_MODULES) clean-gcc
1013 $(CLEAN_MODULES) $(CLEAN_X11_MODULES) clean-gcc:
1014         @dir=`echo $@ | sed -e 's/clean-//'`; \
1015         if [ -f ./$${dir}/Makefile ] ; then \
1016           r=`pwd`; export r; \
1017           s=`cd $(srcdir); pwd`; export s; \
1018           $(SET_LIB_PATH) \
1019           (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) clean); \
1020         else \
1021           true; \
1022         fi
1023
1024 .PHONY: $(CLEAN_TARGET_MODULES)
1025 $(CLEAN_TARGET_MODULES):
1026         @dir=`echo $@ | sed -e 's/clean-target-//'`; \
1027         rm -f $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/tmpmulti.out; \
1028         if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1029           r=`pwd`; export r; \
1030           s=`cd $(srcdir); pwd`; export s; \
1031           $(SET_LIB_PATH) \
1032           (cd $(TARGET_SUBDIR)/$${dir}; $(MAKE) $(TARGET_FLAGS_TO_PASS) clean); \
1033         else \
1034           true; \
1035         fi
1036
1037 clean-target: $(CLEAN_TARGET_MODULES)
1038
1039 # Check target.
1040
1041 .PHONY: check
1042 check: $(CHECK_MODULES) \
1043         $(CHECK_TARGET_MODULES) \
1044         $(CHECK_X11_MODULES) \
1045         check-gcc
1046
1047 # Installation targets.
1048
1049 .PHONY: install uninstall source-vault binary-vault vault-install
1050 install: $(INSTALL_TARGET) 
1051
1052 uninstall:
1053         @echo "the uninstall target is not supported in this tree"
1054
1055 source-vault:
1056         $(MAKE) -f ./release/Build-A-Release \
1057                 host=$(host_alias) source-vault
1058
1059 binary-vault:
1060         $(MAKE) -f ./release/Build-A-Release \
1061                 host=$(host_alias) target=$(target_alias)
1062
1063 vault-install:
1064         @if [ -f ./release/vault-install ] ; then \
1065           ./release/vault-install $(host_alias) $(target_alias) ; \
1066         else \
1067           true ; \
1068         fi
1069
1070 .PHONY: install.all
1071 install.all: install-no-fixedincludes
1072         @if [ -f ./gcc/Makefile ] ; then \
1073                 r=`pwd` ; export r ; \
1074                 $(SET_LIB_PATH) \
1075                 (cd ./gcc; \
1076                 $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \
1077         else \
1078                 true ; \
1079         fi
1080
1081 # inet-install is used because the I*Net wants DejaGNU installed but
1082 # not built.  Similarly, gzip is built but not installed.
1083 inet-install:
1084         $(MAKE) INSTALL_MODULES="`echo $(INSTALL_MODULES) | sed -e 's/install-dejagnu//' -e 's/install-gzip//'`" install
1085
1086 # install-no-fixedincludes is used because Cygnus can not distribute
1087 # the fixed header files.
1088 .PHONY: install-no-fixedincludes
1089 install-no-fixedincludes: \
1090         installdirs \
1091         $(INSTALL_MODULES) \
1092         $(INSTALL_TARGET_MODULES) \
1093         $(INSTALL_X11_MODULES) \
1094         gcc-no-fixedincludes 
1095
1096 # Install the gcc headers files, but not the fixed include files,
1097 # which Cygnus is not allowed to distribute.  This rule is very
1098 # dependent on the workings of the gcc Makefile.in.
1099 .PHONY: gcc-no-fixedincludes
1100 gcc-no-fixedincludes:
1101         @if [ -f ./gcc/Makefile ]; then \
1102           rm -rf gcc/tmp-include; \
1103           mv gcc/include gcc/tmp-include 2>/dev/null; \
1104           mkdir gcc/include; \
1105           cp $(srcdir)/gcc/gsyslimits.h gcc/include/syslimits.h; \
1106           touch gcc/stmp-fixinc gcc/include/fixed; \
1107           rm -f gcc/stmp-headers gcc/stmp-int-hdrs; \
1108           r=`pwd`; export r; \
1109           s=`cd $(srcdir); pwd` ; export s; \
1110           $(SET_LIB_PATH) \
1111           (cd ./gcc; \
1112            $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
1113           rm -rf gcc/include; \
1114           mv gcc/tmp-include gcc/include 2>/dev/null; \
1115         else true; fi
1116
1117 # start-sanitize-ide
1118 # Install Foundry.  Avoid installing a bunch of stuff we don't need.
1119 install-foundry:
1120         mods="$(INSTALL_MODULES)"; \
1121         x11_mods="$(INSTALL_X11_MODULES)"; \
1122         for d in install-tcl install-tk install-itcl install-tix install-ilu; do \
1123           mods="`echo $${mods} | sed -e "s/$$d//"`"; \
1124           x11_mods="`echo $${x11_mods} | sed -e "s/$$d//"`"; \
1125         done; \
1126         $(MAKE) INSTALL_MODULES="$${mods}" INSTALL_X11_MODULES="$${x11_mods}" install
1127         for d in tcl tk itcl tix ilu; do \
1128           if [ -f $$d/Makefile ]; then \
1129             r=`pwd`; export r; \
1130             s=`cd $(srcdir); pwd`; export s; \
1131             $(SET_LIB_PATH) \
1132             (cd $$d; $(MAKE) $(FLAGS_TO_PASS) install-minimal); \
1133           else \
1134             true; \
1135           fi; \
1136         done
1137 # end-sanitize-ide
1138
1139 # This rule is used to build the modules which use FLAGS_TO_PASS.  To
1140 # build a target all-X means to cd to X and make all.
1141 #
1142 # all-gui, and all-libproc are handled specially because
1143 # they are still experimental, and if they fail to build, that
1144 # shouldn't stop "make all".
1145 .PHONY: $(ALL_MODULES) all-gui all-libproc
1146 $(ALL_MODULES) all-gui all-libproc:
1147         @dir=`echo $@ | sed -e 's/all-//'`; \
1148         if [ -f ./$${dir}/Makefile ] ; then \
1149           r=`pwd`; export r; \
1150           s=`cd $(srcdir); pwd`; export s; \
1151           $(SET_LIB_PATH) \
1152           (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) all); \
1153         else \
1154           true; \
1155         fi
1156
1157 # These rules are used to check the modules which use FLAGS_TO_PASS.
1158 # To build a target check-X means to cd to X and make check.  Some
1159 # modules are only tested in a native toolchain.
1160
1161 .PHONY: $(CHECK_MODULES) $(NATIVE_CHECK_MODULES) $(CROSS_CHECK_MODULES)
1162 $(NATIVE_CHECK_MODULES):
1163         @if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
1164           dir=`echo $@ | sed -e 's/check-//'`; \
1165           if [ -f ./$${dir}/Makefile ] ; then \
1166             r=`pwd`; export r; \
1167             s=`cd $(srcdir); pwd`; export s; \
1168             $(SET_LIB_PATH) \
1169             (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) check); \
1170           else \
1171             true; \
1172           fi; \
1173         fi
1174
1175 $(CROSS_CHECK_MODULES):
1176         @dir=`echo $@ | sed -e 's/check-//'`; \
1177         if [ -f ./$${dir}/Makefile ] ; then \
1178           r=`pwd`; export r; \
1179           s=`cd $(srcdir); pwd`; export s; \
1180           $(SET_LIB_PATH) \
1181           (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) check); \
1182         else \
1183           true; \
1184         fi
1185
1186 # This rule is used to install the modules which use FLAGS_TO_PASS.
1187 # To build a target install-X means to cd to X and make install.
1188 .PHONY: $(INSTALL_MODULES)
1189 $(INSTALL_MODULES): installdirs
1190         @dir=`echo $@ | sed -e 's/install-//'`; \
1191         if [ -f ./$${dir}/Makefile ] ; then \
1192           r=`pwd`; export r; \
1193           s=`cd $(srcdir); pwd`; export s; \
1194           $(SET_LIB_PATH) \
1195           (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) install); \
1196         else \
1197           true; \
1198         fi
1199
1200 # This rule is used to configure the modules which are built with the
1201 # target tools.
1202 .PHONY: $(CONFIGURE_TARGET_MODULES)
1203 $(CONFIGURE_TARGET_MODULES):
1204         @dir=`echo $@ | sed -e 's/configure-target-//'`; \
1205         if [ -d $(TARGET_SUBDIR)/$${dir} ]; then \
1206           r=`pwd`; export r; \
1207           $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/$${dir}/tmpmulti.out 2> /dev/null; \
1208           if [ -s $(TARGET_SUBDIR)/$${dir}/tmpmulti.out ]; then \
1209             if [ -f $(TARGET_SUBDIR)/$${dir}/multilib.out ]; then \
1210               if cmp $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/tmpmulti.out > /dev/null; then \
1211                 rm -f $(TARGET_SUBDIR)/$${dir}/tmpmulti.out; \
1212               else \
1213                 echo "Multilibs changed for $${dir}, reconfiguring"; \
1214                 rm -f $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/Makefile; \
1215                 mv $(TARGET_SUBDIR)/$${dir}/tmpmulti.out $(TARGET_SUBDIR)/$${dir}/multilib.out; \
1216               fi; \
1217             else \
1218               mv $(TARGET_SUBDIR)/$${dir}/tmpmulti.out $(TARGET_SUBDIR)/$${dir}/multilib.out; \
1219             fi; \
1220           fi; \
1221         fi; exit 0      # break command into two pieces
1222         @dir=`echo $@ | sed -e 's/configure-target-//'`; \
1223         if [ ! -d $(TARGET_SUBDIR) ]; then \
1224           true; \
1225         elif [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1226           true; \
1227         elif echo " $(TARGET_CONFIGDIRS) " | grep " $${dir} " >/dev/null 2>&1; then \
1228           if [ -d $(srcdir)/$${dir} ]; then \
1229             [ -d $(TARGET_SUBDIR)/$${dir} ] || mkdir $(TARGET_SUBDIR)/$${dir};\
1230             r=`pwd`; export r; \
1231             s=`cd $(srcdir); pwd`; export s; \
1232             $(SET_LIB_PATH) \
1233             AR="$(AR_FOR_TARGET)"; export AR; \
1234             AS="$(AS_FOR_TARGET)"; export AS; \
1235             CC="$(CC_FOR_TARGET)"; export CC; \
1236             CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
1237             CXX="$(CXX_FOR_TARGET)"; export CXX; \
1238             CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
1239             DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
1240             LD="$(LD_FOR_TARGET)"; export LD; \
1241             LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
1242             NM="$(NM_FOR_TARGET)"; export NM; \
1243             RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
1244             WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
1245             echo Configuring in $(TARGET_SUBDIR)/$${dir}; \
1246             cd $(TARGET_SUBDIR)/$${dir}; \
1247             case $(srcdir) in \
1248             /*) \
1249               topdir=$(srcdir) ;; \
1250             *) \
1251               case "$(TARGET_SUBDIR)" in \
1252               .) topdir="../$(srcdir)" ;; \
1253               *) topdir="../../$(srcdir)" ;; \
1254               esac ;; \
1255             esac; \
1256             if [ "$(srcdir)" = "." ] ; then \
1257               if [ "$(TARGET_SUBDIR)" != "." ] ; then \
1258                 if $(SHELL) $$s/symlink-tree $${topdir}/$${dir} "no-such-file" ; then \
1259                   if [ -f Makefile ]; then \
1260                     if $(MAKE) distclean; then \
1261                       true; \
1262                     else \
1263                       exit 1; \
1264                     fi; \
1265                   else \
1266                     true; \
1267                   fi; \
1268                 else \
1269                   exit 1; \
1270                 fi; \
1271               else \
1272                 true; \
1273               fi; \
1274               srcdiroption="--srcdir=."; \
1275               libsrcdir="."; \
1276             else \
1277               srcdiroption="--srcdir=$${topdir}/$${dir}"; \
1278               libsrcdir="$$s/$${dir}"; \
1279             fi; \
1280             if [ -f $${libsrcdir}/configure ] ; then \
1281               $(SHELL) $${libsrcdir}/configure \
1282                 $(CONFIG_ARGUMENTS) $${srcdiroption} \
1283                 --with-target-subdir="$(TARGET_SUBDIR)"; \
1284             else \
1285               $(SHELL) $$s/configure \
1286                 $(CONFIG_ARGUMENTS) $${srcdiroption} \
1287                 --with-target-subdir="$(TARGET_SUBDIR)"; \
1288             fi; \
1289           else \
1290             true; \
1291           fi; \
1292         else \
1293           true; \
1294         fi
1295
1296 # This rule is used to build the modules which use TARGET_FLAGS_TO_PASS.
1297 # To build a target all-X means to cd to X and make all.
1298 .PHONY: $(ALL_TARGET_MODULES)
1299 $(ALL_TARGET_MODULES):
1300         @dir=`echo $@ | sed -e 's/all-target-//'`; \
1301         if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1302           r=`pwd`; export r; \
1303           s=`cd $(srcdir); pwd`; export s; \
1304           $(SET_LIB_PATH) \
1305           (cd $(TARGET_SUBDIR)/$${dir}; $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
1306         else \
1307           true; \
1308         fi
1309
1310 # This rule is used to check the modules which use TARGET_FLAGS_TO_PASS.
1311 # To build a target install-X means to cd to X and make install.
1312 .PHONY: $(CHECK_TARGET_MODULES)
1313 $(CHECK_TARGET_MODULES):
1314         @dir=`echo $@ | sed -e 's/check-target-//'`; \
1315         if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1316           r=`pwd`; export r; \
1317           s=`cd $(srcdir); pwd`; export s; \
1318           $(SET_LIB_PATH) \
1319           (cd $(TARGET_SUBDIR)/$${dir};$(MAKE) $(TARGET_FLAGS_TO_PASS) check);\
1320         else \
1321           true; \
1322         fi
1323
1324 # This rule is used to install the modules which use
1325 # TARGET_FLAGS_TO_PASS.  To build a target install-X means to cd to X
1326 # and make install.
1327 .PHONY: $(INSTALL_TARGET_MODULES)
1328 $(INSTALL_TARGET_MODULES): installdirs
1329         @dir=`echo $@ | sed -e 's/install-target-//'`; \
1330         if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1331           r=`pwd`; export r; \
1332           s=`cd $(srcdir); pwd`; export s; \
1333           $(SET_LIB_PATH) \
1334           (cd $(TARGET_SUBDIR)/$${dir}; \
1335             $(MAKE) $(TARGET_FLAGS_TO_PASS) install); \
1336         else \
1337           true; \
1338         fi
1339
1340 # This rule is used to build the modules which use X11_FLAGS_TO_PASS.
1341 # To build a target all-X means to cd to X and make all.
1342 .PHONY: $(ALL_X11_MODULES)
1343 $(ALL_X11_MODULES):
1344         @dir=`echo $@ | sed -e 's/all-//'`; \
1345         if [ -f ./$${dir}/Makefile ] ; then \
1346           r=`pwd`; export r; \
1347           s=`cd $(srcdir); pwd`; export s; \
1348           $(SET_LIB_PATH) \
1349           (cd $${dir}; \
1350            $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all); \
1351         else \
1352           true; \
1353         fi
1354
1355 # This rule is used to check the modules which use X11_FLAGS_TO_PASS.
1356 # To build a target check-X means to cd to X and make all.
1357 .PHONY: $(CHECK_X11_MODULES)
1358 $(CHECK_X11_MODULES):
1359         @dir=`echo $@ | sed -e 's/check-//'`; \
1360         if [ -f ./$${dir}/Makefile ] ; then \
1361           r=`pwd`; export r; \
1362           s=`cd $(srcdir); pwd`; export s; \
1363           $(SET_LIB_PATH) \
1364           (cd $${dir}; \
1365            $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check); \
1366         else \
1367           true; \
1368         fi
1369
1370 # This rule is used to install the modules which use X11_FLAGS_TO_PASS.
1371 # To build a target install-X means to cd to X and make install.
1372 .PHONY: $(INSTALL_X11_MODULES)
1373 $(INSTALL_X11_MODULES): installdirs
1374         @dir=`echo $@ | sed -e 's/install-//'`; \
1375         if [ -f ./$${dir}/Makefile ] ; then \
1376           r=`pwd`; export r; \
1377           s=`cd $(srcdir); pwd`; export s; \
1378           $(SET_LIB_PATH) \
1379           (cd $${dir}; \
1380            $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install); \
1381         else \
1382           true; \
1383         fi
1384
1385 # gcc is the only module which uses GCC_FLAGS_TO_PASS.
1386 .PHONY: all-gcc
1387 all-gcc:
1388         @if [ -f ./gcc/Makefile ] ; then \
1389           r=`pwd`; export r; \
1390           s=`cd $(srcdir); pwd`; export s; \
1391           $(SET_LIB_PATH) \
1392           (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) all); \
1393         else \
1394           true; \
1395         fi
1396
1397 .PHONY: all-bootstrap
1398 all-bootstrap:
1399         @if [ -f ./gcc/Makefile ] ; then \
1400           r=`pwd`; export r; \
1401           s=`cd $(srcdir); pwd`; export s; \
1402           $(SET_LIB_PATH) \
1403           (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) bootstrap); \
1404         else \
1405           true; \
1406         fi
1407
1408 .PHONY: check-gcc
1409 check-gcc:
1410         @if [ -f ./gcc/Makefile ] ; then \
1411           r=`pwd`; export r; \
1412           s=`cd $(srcdir); pwd`; export s; \
1413           $(SET_LIB_PATH) \
1414           (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) check); \
1415         else \
1416           true; \
1417         fi
1418
1419 .PHONY: install-gcc
1420 install-gcc:
1421         @if [ -f ./gcc/Makefile ] ; then \
1422           r=`pwd`; export r; \
1423           s=`cd $(srcdir); pwd`; export s; \
1424           $(SET_LIB_PATH) \
1425           (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
1426         else \
1427           true; \
1428         fi
1429
1430
1431 # EXPERIMENTAL STUFF
1432 # This rule is used to install the modules which use FLAGS_TO_PASS.
1433 # To build a target install-X means to cd to X and make install.
1434 .PHONY: install-dosrel
1435 install-dosrel: installdirs info
1436         @dir=`echo $@ | sed -e 's/install-//'`; \
1437         if [ -f ./$${dir}/Makefile ] ; then \
1438           r=`pwd`; export r; \
1439           s=`cd $(srcdir); pwd`; export s; \
1440           $(SET_LIB_PATH) \
1441           (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) install); \
1442         else \
1443           true; \
1444         fi
1445
1446 install-dosrel-fake:
1447
1448
1449 # This is a list of inter-dependencies among modules.
1450 all-apache:
1451 all-autoconf: all-m4 all-texinfo
1452 all-automake:
1453 all-bash:
1454 all-bfd:
1455 all-binutils: all-libiberty all-opcodes all-bfd all-flex all-bison all-byacc
1456 all-bison: all-texinfo
1457 all-byacc:
1458 all-cvssrc:
1459 configure-target-cygmon: $(ALL_GCC)
1460 all-target-cygmon: configure-target-cygmon all-gas all-ld all-gcc all-target-libiberty all-target-newlib all-target-libio
1461 all-db:
1462 all-dejagnu: all-tcl all-expect all-tk
1463 all-diff: all-libiberty
1464 all-emacs:
1465 all-emacs19: all-bison all-byacc
1466 all-etc:
1467 configure-target-examples: $(ALL_GCC)
1468 all-target-examples: configure-target-examples
1469 all-expect: all-tcl all-tk
1470 all-fileutils: all-libiberty
1471 all-findutils:
1472 all-find:
1473 all-flex: all-libiberty all-bison all-byacc
1474 all-gas: all-libiberty all-opcodes all-bfd
1475 all-gash: all-tcl
1476 all-gawk:
1477 ALL_GCC = all-gcc
1478 all-gcc: all-bison all-byacc all-binutils all-gas all-ld
1479 all-bootstrap: all-libiberty all-bison all-byacc all-binutils all-gas all-ld
1480 GDB_TK = all-tk all-tcl all-itcl all-tix all-libgui
1481 # start-sanitize-ide
1482 GDB_TK = all-tk all-tcl all-itcl all-tix all-libgui all-libide
1483 # end-sanitize-ide
1484 all-gdb: all-libiberty all-opcodes all-bfd all-mmalloc all-readline all-bison all-byacc all-sim $(gdbnlmrequirements) $(GDB_TK)
1485 all-gnuserv:
1486 configure-target-gperf: $(ALL_GCC)
1487 all-target-gperf: configure-target-gperf all-target-libiberty all-target-libstdc++
1488 all-gprof: all-libiberty all-bfd all-opcodes
1489 all-grep: all-libiberty
1490 all-grez: all-libiberty all-bfd all-opcodes
1491 all-gui: all-gdb all-libproc all-target-librx
1492 all-guile:
1493 all-gzip: all-libiberty
1494 all-hello: all-libiberty
1495 # start-sanitize-ide
1496 all-ilu:
1497 # end-sanitize-ide
1498 all-indent:
1499 all-inet: all-tcl all-send-pr all-perl
1500 all-ispell: all-emacs19
1501 all-itcl: all-tcl all-tk
1502 # start-sanitize-ide
1503 all-jstools: all-tcl all-tk all-tix all-libgui all-libide
1504 # end-sanitize-ide
1505 all-ld: all-libiberty all-bfd all-opcodes all-bison all-byacc all-flex
1506 configure-target-libg++: $(ALL_GCC) configure-target-librx
1507 all-target-libg++: configure-target-libg++ all-gas all-ld all-gcc all-target-libiberty all-target-newlib all-target-libio all-target-librx all-target-libstdc++
1508 configure-target-libgloss: $(ALL_GCC)
1509 all-target-libgloss: configure-target-libgloss configure-target-newlib
1510 configure-target-libio: $(ALL_GCC)
1511 all-target-libio: configure-target-libio all-gas all-ld all-gcc all-target-libiberty all-target-newlib
1512 check-target-libio: all-target-libstdc++
1513 all-libgui: all-tcl all-tk all-itcl
1514 all-libiberty:
1515 # start-sanitize-ide
1516 all-libide: all-tcl all-tk all-itcl all-ilu all-libgui
1517 # end-sanitize-ide
1518 configure-target-librx: $(ALL_GCC) configure-target-newlib
1519 all-target-librx: configure-target-librx
1520 configure-target-libstdc++: $(ALL_GCC)
1521 all-target-libstdc++: configure-target-libstdc++ all-gas all-ld all-gcc all-target-libiberty all-target-newlib all-target-libio
1522 all-m4: all-libiberty
1523 all-make: all-libiberty
1524 all-mmalloc:
1525 configure-target-newlib: $(ALL_GCC)
1526 all-target-newlib: configure-target-newlib all-binutils all-gas all-gcc
1527 all-opcodes: all-bfd all-libiberty
1528 all-patch: all-libiberty
1529 all-perl:
1530 all-prms: all-libiberty
1531 all-rcs:
1532 all-readline:
1533 all-recode: all-libiberty
1534 all-sed: all-libiberty
1535 all-send-pr: all-prms
1536 all-shellutils:
1537 all-sim: all-libiberty all-bfd all-opcodes all-readline
1538 all-sn: all-tcl all-tk all-tix all-itcl all-db all-grep
1539 all-tar: all-libiberty
1540 all-tcl:
1541 all-tclX: all-tcl all-tk
1542 all-tk: all-tcl
1543 all-texinfo: all-libiberty
1544 all-textutils:
1545 all-tgas: all-libiberty all-bfd all-opcodes
1546 all-time:
1547 all-tix: all-tcl all-tk
1548 # start-sanitize-ide
1549 all-vmake: all-tcl all-tk all-itcl all-tix all-libgui all-libide
1550 # end-sanitize-ide
1551 all-wdiff:
1552 all-target-winsup: all-target-newlib all-target-libiberty all-target-librx all-target-libio configure-target-winsup 
1553 configure-target-winsup: configure-target-newlib
1554 all-uudecode: all-libiberty
1555 configure-target-libiberty: $(ALL_GCC)
1556 all-target-libiberty: configure-target-libiberty all-gcc all-ld all-target-newlib
1557 all-target: $(ALL_TARGET_MODULES)
1558 install-itcl: install-tcl
1559 install-target: $(INSTALL_TARGET_MODULES)
1560
1561 ### other supporting targets
1562
1563 MAKEDIRS= \
1564         $(prefix) \
1565         $(exec_prefix)
1566 .PHONY: installdirs
1567 installdirs: mkinstalldirs
1568         $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS)
1569
1570 dir.info: do-install-info
1571         if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \
1572           $(srcdir)/texinfo/gen-info-dir $(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \
1573           mv -f dir.info.new dir.info ; \
1574         else true ; \
1575         fi
1576
1577 dist:
1578         @echo "Building a full distribution of this tree isn't done"
1579         @echo "via 'make dist'.  Check out the etc/ subdirectory" 
1580
1581 etags tags: TAGS
1582
1583 # Right now this just builds TAGS in each subdirectory.  emacs19 has the
1584 # ability to use several tags files at once, so there is probably no need
1585 # to combine them into one big TAGS file (like CVS 1.3 does).  We could
1586 # (if we felt like it) have this Makefile write a piece of elisp which
1587 # the user could load to tell emacs19 where all the TAGS files we just
1588 # built are.
1589 TAGS: do-TAGS
1590
1591 # with the gnu make, this is done automatically.
1592
1593 Makefile: Makefile.in configure.in $(host_makefile_frag) $(target_makefile_frag)
1594         $(SHELL) ./config.status
1595
1596 #
1597 # Support for building net releases
1598
1599 # Files in devo used in any net release.
1600 # ChangeLog omitted because it may refer to files which are not in this
1601 # distribution (perhaps it would be better to include it anyway).
1602 DEVO_SUPPORT= README Makefile.in configure configure.in \
1603         config.guess config.sub config move-if-change \
1604         mpw-README mpw-build.in mpw-config.in mpw-configure mpw-install \
1605         COPYING COPYING.LIB install-sh config-ml.in symlink-tree \
1606         mkinstalldirs ltconfig ltmain.sh missing ylwrap
1607
1608 # Files in devo/etc used in any net release.
1609 # ChangeLog omitted because it may refer to files which are not in this
1610 # distribution (perhaps it would be better to include it anyway).
1611 ETC_SUPPORT= Makefile.in configure configure.in standards.texi \
1612         make-stds.texi standards.info*
1613
1614 # When you use `make setup-dirs' or `make taz' you should always redefine
1615 # this macro.
1616 SUPPORT_FILES = list-of-support-files-for-tool-in-question
1617
1618 .PHONY: taz
1619
1620 taz: $(DEVO_SUPPORT) $(SUPPORT_FILES) \
1621   texinfo/texinfo.tex texinfo/gpl.texinfo texinfo/lgpl.texinfo
1622         # Take out texinfo from a few places; make simple BISON=bison line.
1623         sed -e '/^all\.normal: /s/\all-texinfo //' \
1624             -e '/^      install-texinfo /d' \
1625         <Makefile.in >tmp
1626         mv -f tmp Makefile.in
1627         #
1628         $(start-sanitize-Sanitize)
1629         @if [ -f .Sanitize ] ; then echo "RUN Sanitize FIRST!" ; false ; fi ;
1630         $(end-sanitize-Sanitize)
1631         ./configure sun4
1632         [ -z "$(CONFIGURE_TARGET_MODULES)" ] \
1633           || $(MAKE) $(CONFIGURE_TARGET_MODULES) ALL_GCC="" \
1634             CC_FOR_TARGET="$(CC)" CXX_FOR_TARGET="$(CXX)"
1635         # Make links, and run "make diststuff" or "make info" when needed.
1636         rm -rf proto-toplev ; mkdir proto-toplev
1637         set -e ; dirs="$(TOOL) $(DEVO_SUPPORT) $(SUPPORT_FILES)" ; \
1638         for d in $$dirs ; do \
1639           if [ -d $$d ]; then \
1640             if [ ! -f $$d/Makefile ] ; then true ; \
1641             elif grep '^diststuff:' $$d/Makefile >/dev/null ; then \
1642                 (cd $$d ; $(MAKE) diststuff ) || exit 1 ; \
1643             elif grep '^info:' $$d/Makefile >/dev/null ; then \
1644                 (cd $$d ; $(MAKE) info ) || exit 1 ; \
1645             fi ; \
1646             if [ -d $$d/proto-$$d.dir ]; then \
1647               ln -s ../$$d/proto-$$d.dir proto-toplev/$$d ; \
1648             else \
1649               ln -s ../$$d proto-toplev/$$d ; \
1650             fi ; \
1651           else ln -s ../$$d proto-toplev/$$d ; fi ; \
1652         done
1653         cd etc ; $(MAKE) info
1654         $(MAKE) distclean
1655         #
1656         mkdir proto-toplev/etc
1657         (cd proto-toplev/etc; \
1658          for i in $(ETC_SUPPORT); do \
1659                 ln -s ../../etc/$$i . ; \
1660          done)
1661         #
1662         # Take out texinfo from configurable dirs
1663         rm proto-toplev/configure.in
1664         sed -e '/^host_tools=/s/texinfo //' \
1665             <configure.in >proto-toplev/configure.in
1666         #
1667         mkdir proto-toplev/texinfo
1668         ln -s ../../texinfo/texinfo.tex         proto-toplev/texinfo/
1669         ln -s ../../texinfo/gpl.texinfo         proto-toplev/texinfo/
1670         ln -s ../../texinfo/lgpl.texinfo        proto-toplev/texinfo/
1671         if test -r texinfo/util/tex3patch ; then \
1672           mkdir proto-toplev/texinfo/util && \
1673           ln -s ../../../texinfo/util/tex3patch proto-toplev/texinfo/util ; \
1674         else true; fi
1675         chmod og=u `find . -print`
1676         if grep AM_INIT_AUTOMAKE $(TOOL)/configure.in >/dev/null 2>&1; then \
1677           ver=`sed < $(TOOL)/configure.in -n 's/AM_INIT_AUTOMAKE[^,]*, *\([^)]*\))/\1/p'`; \
1678         else \
1679           ver=`sed <$(TOOL)/Makefile.in -n 's/^VERSION *= *//p'`; \
1680         fi; \
1681         $(MAKE) -f Makefile.in do-tar-gz TOOL=$(TOOL) VER=$$ver
1682
1683 do-tar-gz:
1684         echo "==> Making $(TOOL)-$(VER).tar.gz"
1685         -rm -f $(TOOL)-$(VER)
1686         ln -s proto-toplev $(TOOL)-$(VER)
1687         tar cfh $(TOOL)-$(VER).tar $(TOOL)-$(VER)
1688         $(GZIPPROG) -v -9 $(TOOL)-$(VER).tar
1689
1690 TEXINFO_SUPPORT= texinfo/texinfo.tex texinfo/gpl.texinfo texinfo/lgpl.texinfo
1691 DIST_SUPPORT= $(DEVO_SUPPORT) $(TEXINFO_SUPPORT)
1692
1693 .PHONY: gas.tar.gz
1694 GAS_SUPPORT_DIRS= bfd include libiberty opcodes setup.com makefile.vms
1695 gas.tar.gz: $(DIST_SUPPORT) $(GAS_SUPPORT_DIRS) gas
1696         $(MAKE) -f Makefile.in taz TOOL=gas \
1697                 SUPPORT_FILES="$(GAS_SUPPORT_DIRS)"
1698
1699 # The FSF "binutils" release includes gprof and ld.
1700 .PHONY: binutils.tar.gz
1701 BINUTILS_SUPPORT_DIRS= bfd gas include libiberty opcodes ld gprof setup.com makefile.vms
1702 binutils.tar.gz: $(DIST_SUPPORT) $(BINUTILS_SUPPORT_DIRS) binutils
1703         $(MAKE) -f Makefile.in taz TOOL=binutils \
1704                 SUPPORT_FILES="$(BINUTILS_SUPPORT_DIRS) makeall.bat configure.bat"
1705
1706 .PHONY: gas+binutils.tar.gz
1707 GASB_SUPPORT_DIRS= $(GAS_SUPPORT_DIRS) binutils ld gprof
1708 gas+binutils.tar.gz: $(DIST_SUPPORT) $(GASB_SUPPORT_DIRS) gas
1709         $(MAKE) -f Makefile.in taz TOOL=gas \
1710                 SUPPORT_FILES="$(GASB_SUPPORT_DIRS) makeall.bat configure.bat"
1711
1712 .PHONY: libg++.tar.gz
1713 LIBGXX_SUPPORT_DIRS=include libstdc++ libio librx libiberty
1714 libg++.tar.gz: $(DIST_SUPPORT) libg++
1715         $(MAKE) -f Makefile.in taz TOOL=libg++ \
1716                 SUPPORT_FILES="$(LIBGXX_SUPPORT_DIRS)"
1717
1718 GNATS_SUPPORT_DIRS=include libiberty send-pr
1719 gnats.tar.gz: $(DIST_SUPPORT) $(GNATS_SUPPORT_DIRS) gnats
1720         $(MAKE) -f  Makefile.in taz TOOL=gnats \
1721                 SUPPORT_FILES="$(GNATS_SUPPORT_DIRS)"
1722
1723 .PHONY: gdb.tar.gz
1724 GDB_SUPPORT_DIRS= bfd include libiberty mmalloc opcodes readline sim utils
1725 GDBTK_SUPPORT_DIRS= `if [ -d tcl -a -d tk ] ; then echo tcl tk ; fi`
1726 gdb.tar.gz: $(DIST_SUPPORT) $(GDB_SUPPORT_DIRS) gdb
1727         $(MAKE) -f Makefile.in taz TOOL=gdb \
1728                 SUPPORT_FILES="$(GDB_SUPPORT_DIRS) $(GDBTK_SUPPORT_DIRS)"
1729
1730 .PHONY: newlib.tar.gz
1731 NEWLIB_SUPPORT_DIRS=libgloss
1732 # taz configures for the sun4 target which won't configure newlib.
1733 # We need newlib configured so that the .info files are made.
1734 # Unfortunately, it is not enough to just configure newlib separately:
1735 # taz will build the .info files but since SUBDIRS won't contain newlib,
1736 # distclean won't be run (leaving Makefile, config.status, and the tmp files
1737 # used in building the .info files, eg: *.def, *.ref).
1738 # The problem isn't solvable however without a lot of extra work because
1739 # target libraries are built in subdir $(target_alias) which gets nuked during
1740 # the make distclean.  For now punt on the issue of shipping newlib info files
1741 # with newlib net releases and wait for a day when some native target (sun4?)
1742 # supports newlib (if only minimally).
1743 newlib.tar.gz: $(DIST_SUPPORT) $(NEWLIB_SUPPORT_DIRS) newlib
1744         $(MAKE) -f Makefile.in taz TOOL=newlib \
1745                 SUPPORT_FILES="$(NEWLIB_SUPPORT_DIRS)" \
1746                 DEVO_SUPPORT="$(DEVO_SUPPORT) COPYING.NEWLIB" newlib
1747
1748 .NOEXPORT:
1749 MAKEOVERRIDES=
1750
1751 # start-sanitize-chill
1752 ## This is ugly, but I don't want GNU make to put these variables in
1753 ## the environment.  Older makes will see this as a set of targets
1754 ## with no dependencies and no actions.
1755 unexport CHILLFLAGS CHILL_LIB CHILL_FOR_TARGET :
1756 # end-sanitize-chill
1757
1758 # end of Makefile.in