Don't check flex when cross building.
[platform/upstream/binutils.git] / Makefile.in
1 #
2 # Makefile for directory with subdirs to build.
3 #   Copyright (C) 1990, 1991, 1992, 1993 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., 675 Mass Ave, Cambridge, MA 02139, USA.  */
18 #
19
20 srcdir = .
21
22 prefix = /usr/local
23
24 exec_prefix = $(prefix)
25 bindir = $(exec_prefix)/bin
26 libdir = $(exec_prefix)/lib
27 tooldir = $(exec_prefix)/$(target)
28
29 program_transform_name =
30
31 datadir = $(prefix)/lib
32 mandir = $(prefix)/man
33 man1dir = $(mandir)/man1
34 man2dir = $(mandir)/man2
35 man3dir = $(mandir)/man3
36 man4dir = $(mandir)/man4
37 man5dir = $(mandir)/man5
38 man6dir = $(mandir)/man6
39 man7dir = $(mandir)/man7
40 man8dir = $(mandir)/man8
41 man9dir = $(mandir)/man9
42 infodir = $(prefix)/info
43 includedir = $(prefix)/include
44 docdir = $(datadir)/doc
45
46 SHELL = /bin/sh
47
48 INSTALL = $${srcroot}/install.sh -c
49 INSTALL_PROGRAM = $(INSTALL)
50 INSTALL_DATA = $(INSTALL) -m 644
51 INSTALL_XFORM = $(INSTALL) -t='$(program_transform_name)'
52
53 INSTALL_DOSREL = install-dosrel-fake
54
55 AS = as
56 AR = ar
57 AR_FLAGS = rc
58 CC = cc
59
60 # Special variables passed down in EXTRA_GCC_FLAGS.  They are defined
61 # here so that they can be overridden by Makefile fragments.
62 HOST_CC = $(CC_FOR_BUILD)
63 HOST_PREFIX = 
64 HOST_PREFIX_1 = loser-
65
66 # We don't specify -g -O because many compilers don't support -g -O,
67 # and/or -O is broken in and of itself.
68 CFLAGS = -g
69
70 # start-sanitize-chill
71 CHILLFLAGS = $(CFLAGS)
72 CHILL_LIB = -lchill
73 # end-sanitize-chill
74 CXX = gcc
75
76 # Use -O to stress test the compiler.
77 CXXFLAGS = -g -O -fexternal-templates
78
79 RANLIB = ranlib
80 NM = nm
81 # Not plain GZIP, since gzip looks there for extra command-line options.
82 GZIPPROG = gzip
83
84 # BISON: This line sed'ed to BISON = bison -y for FSF releases, don't remove.
85 BISON = `if [ -f $$r/byacc/byacc ] ; \
86             then echo $$r/byacc/byacc ; \
87             else echo byacc ; \
88         fi`
89
90 LEX = `if [ -f $$r/flex/flex ] ; \
91         then echo $$r/flex/flex ; \
92         else echo flex ; fi`
93
94 M4 = `if [ -f $$r/m4/m4 ] ; \
95         then echo $$r/m4/m4 ; \
96         else echo m4 ; fi`
97
98 MAKEINFO = `if [ -f $$r/texinfo/makeinfo/makeinfo ] ; \
99         then echo $$r/texinfo/makeinfo/makeinfo ; \
100         else echo makeinfo ; fi`
101
102 # This just becomes part of the MAKEINFO definition passed down to
103 # sub-makes.  It lets flags be given on the command line while still
104 # using the makeinfo from the object tree.
105 MAKEINFOFLAGS =
106
107 EXPECT = `if [ -f $$r/expect/expect ] ; \
108         then echo $$r/expect/expect ; \
109         else echo expect ; fi`
110
111 RUNTEST = `if [ -f $${srcroot}/dejagnu/runtest ] ; \
112         then echo $${srcroot}/dejagnu/runtest ; \
113         else echo runtest ; fi`
114
115
116 # libraries that may need to be augmented on a system-by-system basis
117 X11_LIB = -lX11
118
119 # compilers to use to create programs which must be run in the build
120 # environment.
121 CC_FOR_BUILD = $(CC)
122 CXX_FOR_BUILD = $(CXX)
123
124 SUBDIRS = "this is set via configure, don't edit this"
125 OTHERS = 
126
127 ALL = all.normal
128 INSTALL_TARGET = install-dirs \
129         $(INSTALL_MODULES) \
130         $(INSTALL_TARGET_MODULES) \
131         $(INSTALL_X11_MODULES) \
132         install-gcc \
133         $(INSTALL_DOSREL)
134
135
136 CC_FOR_TARGET = ` \
137   if [ -f $$r/gcc/Makefile ] ; then \
138     if [ -f $$r/newlib/Makefile ] ; then \
139       echo $$r/gcc/xgcc -B$$r/gcc/ -idirafter $$r/newlib/targ-include -idirafter $${srcroot}/newlib/libc/include -nostdinc; \
140     else \
141       echo $$r/gcc/xgcc -B$$r/gcc/; \
142     fi; \
143   else \
144     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
145       echo $(CC); \
146     else \
147       t='$(program_transform_name)'; echo gcc | sed -e 's/brokensed/brokensed/' $$t; \
148     fi; \
149   fi`
150
151 # start-sanitize-chill
152 CHILL_FOR_TARGET = ` \
153   if [ -f $$r/gcc/Makefile ] ; then \
154     echo $$r/gcc/xgcc -B$$r/gcc/ -L$$r/chillrt/; \
155   else \
156     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
157       echo $(CC); \
158     else \
159       t='$(program_transform_name)'; echo gcc | sed -e 's/brokensed/brokensed/' $$t; \
160     fi; \
161   fi`
162
163 # end-sanitize-chill
164
165 CXX_FOR_TARGET = ` \
166   if [ -f $$r/gcc/Makefile ] ; then \
167     if [ -f $$r/newlib/Makefile ] ; then \
168       echo $$r/gcc/xgcc -B$$r/gcc/ -idirafter $$r/newlib/targ-include -idirafter $${srcroot}/newlib/libc/include -nostdinc; \
169     else \
170       echo $$r/gcc/xgcc -B$$r/gcc/; \
171     fi; \
172   else \
173     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
174       echo $(CXX); \
175     else \
176       t='$(program_transform_name)'; echo gcc | sed -e 's/brokensed/brokensed/' $$t; \
177     fi; \
178   fi`
179
180 AS_FOR_TARGET = ` \
181   if [ -f $$r/gas/Makefile ] ; then \
182     echo $$r/gas/as.new ; \
183   else \
184     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
185       echo $(AS); \
186     else \
187        t='$(program_transform_name)'; echo as | sed -e 's/brokensed/brokensed/' $$t ; \
188     fi; \
189   fi`
190
191 AR_FOR_TARGET = ` \
192   if [ -f $$r/binutils/ar ] ; then \
193     echo $$r/binutils/ar ; \
194   else \
195     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
196       echo $(AR); \
197     else \
198        t='$(program_transform_name)'; echo ar | sed -e 's/brokensed/brokensed/' $$t ; \
199     fi; \
200   fi`
201
202 RANLIB_FOR_TARGET = ` \
203   if [ -f $$r/binutils/ranlib ] ; then \
204     echo $$r/binutils/ranlib ; \
205   else \
206     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
207       echo $(RANLIB); \
208     else \
209        t='$(program_transform_name)'; echo ranlib | sed -e 's/brokensed/brokensed/' $$t ; \
210     fi; \
211   fi`
212
213 NM_FOR_TARGET = ` \
214   if [ -f $$r/binutils/Makefile ] ; then \
215     echo $$r/binutils/nm.new ; \
216   else \
217     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
218       echo $(NM); \
219     else \
220        t='$(program_transform_name)'; echo nm | sed -e 's/brokensed/brokensed/' $$t ; \
221     fi; \
222   fi`
223
224
225 #### host and target specific makefile fragments come in here.
226 ###
227
228 # Flags to pass down to all sub-makes.
229 # Please keep these in alphabetical order.
230 BASE_FLAGS_TO_PASS = \
231         "AR_FLAGS=$(AR_FLAGS)" \
232         "AR_FOR_TARGET=$(AR_FOR_TARGET)" \
233         "AS_FOR_TARGET=$(AS_FOR_TARGET)" \
234         "BISON=$(BISON)" \
235         "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
236         "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
237         "CFLAGS=$(CFLAGS)" \
238         $(start-sanitize-chill)\
239         "CHILLFLAGS=$(CHILLFLAGS)" \
240         "CHILL_FOR_TARGET=$(CHILL_FOR_TARGET)" \
241         "CHILL_LIB=$(CHILL_LIB)" \
242         $(end-sanitize-chill)\
243         "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
244         "CXXFLAGS=$(CXXFLAGS)" \
245         "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
246         "GCC_FOR_TARGET=$(CC_FOR_TARGET)" \
247         "INSTALL=$(INSTALL)" \
248         "INSTALL_DATA=$(INSTALL_DATA)" \
249         "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
250         "INSTALL_XFORM=$(INSTALL_XFORM)" \
251         "LDFLAGS=$(LDFLAGS)" \
252         "LEX=$(LEX)" \
253         "M4=$(M4)" \
254         "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
255         "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
256         "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
257         "SHELL=$(SHELL)" \
258         "EXPECT=$(EXPECT)" \
259         "RUNTEST=$(RUNTEST)" \
260         "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
261         "YACC=$(BISON)" \
262         "exec_prefix=$(exec_prefix)" \
263         "prefix=$(prefix)" \
264         "tooldir=$(tooldir)" 
265
266 # Flags to pass down to most sub-makes, in which we're building with
267 # the host environment.
268 # If any variables are added here, they must be added to do-*, below.
269 EXTRA_HOST_FLAGS = \
270         'AR=$(AR)' \
271         'AS=$(AS)' \
272         'CC=$(CC)' \
273         'CXX=$(CXX)' \
274         'NM=$(NM)' \
275         'RANLIB=$(RANLIB)'
276
277 FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)
278
279 # Flags that are concerned with the location of the X11 include files
280 # and library files
281 X11_FLAGS_TO_PASS = \
282         "X11_INCLUDE_FLAGS=$(X11_INCLUDE_FLAGS)" \
283         "X11_LIB_FLAGS=$(X11_LIB_FLAGS)" \
284         "X11_LIB=$(X11_LIB)"
285
286 # Flags to pass down to makes which are built with the target environment.
287 # The double $ decreases the length of the command line; the variables
288 # are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them.
289 # If any variables are added here, they must be added to do-*, below.
290 EXTRA_TARGET_FLAGS = \
291         'AR=$$(AR_FOR_TARGET)' \
292         'AS=$$(AS_FOR_TARGET)' \
293         'CC=$$(CC_FOR_TARGET)' \
294         'CXX=$$(CXX_FOR_TARGET)' \
295         'NM=$$(NM_FOR_TARGET)' \
296         'RANLIB=$$(RANLIB_FOR_TARGET)'
297
298 TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)
299
300 # Flags to pass down to gcc.  gcc builds a library, libgcc.a, so it
301 # unfortunately needs the native compiler and the target ar and
302 # ranlib.
303 # If any variables are added here, they must be added to do-*, below.
304 # The HOST_* variables are a special case, which are used for the gcc
305 # cross-building scheme.
306 EXTRA_GCC_FLAGS = \
307         'AR=$$(AR_FOR_TARGET)' \
308         'AS=$(AS)' \
309         'CC=$(CC)' \
310         'CXX=$(CXX)' \
311         'HOST_CC=$(CC_FOR_BUILD)' \
312         'HOST_PREFIX=$(HOST_PREFIX)' \
313         'HOST_PREFIX_1=$(HOST_PREFIX_1)' \
314         'NM=$(NM)' \
315         'RANLIB=$$(RANLIB_FOR_TARGET)'
316
317 GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS)
318
319 # This is a list of the targets for all of the modules which are compiled
320 # using $(FLAGS_TO_PASS).
321 ALL_MODULES = \
322         all-autoconf \
323         all-bfd \
324         all-binutils \
325         all-byacc \
326         all-cvs \
327         all-dejagnu \
328         all-diff \
329         all-dosutils \
330         all-etc \
331         all-fileutils \
332         all-find \
333         all-flex \
334         all-gas \
335         all-gawk \
336         all-gdb \
337         all-gprof \
338         all-grep \
339         all-gzip \
340         all-hello \
341         all-indent \
342         all-ispell \
343         all-ld \
344         all-libiberty \
345         all-m4 \
346         all-make \
347         all-mmalloc \
348         all-opcodes \
349         all-pagas \
350         all-patch \
351         all-prms \
352         all-rcs \
353         all-readline \
354         all-release \
355         all-recode \
356         all-sed \
357         all-send-pr \
358         all-shellutils \
359         all-sim \
360         all-tar \
361         all-tcl \
362         all-texinfo \
363         all-textutils \
364         all-tgas \
365         all-time \
366         all-uudecode \
367         all-wdiff 
368
369
370 # This is a list of the check targets for all of the modules which are
371 # compiled using $(FLAGS_TO_PASS).
372 # This is a list of the check targets for all of the modules which are
373 # compiled using $(FLAGS_TO_PASS).
374 #
375 # The list is in two parts.  Those that only have checks when 
376 # compiling 
377 CROSS_CHECK_MODULES = \
378         check-flex
379
380 HOST_ONLY_CHECK_MODULES = \
381         check-autoconf \
382         check-bfd \
383         check-binutils \
384         check-byacc \
385         check-cvs \
386         check-dejagnu \
387         check-diff \
388         check-etc \
389         check-fileutils \
390         check-find \
391         check-flex \
392         check-gas \
393         check-gawk \
394         check-gdb \
395         check-gprof \
396         check-grep \
397         check-gzip \
398         check-hello \
399         check-indent \
400         check-ispell \
401         check-ld \
402         check-libiberty \
403         check-m4 \
404         check-make \
405         check-mmcheckoc \
406         check-opcodes \
407         check-pagas \
408         check-patch \
409         check-prms \
410         check-rcs \
411         check-readline \
412         check-recode \
413         check-sed \
414         check-send-pr \
415         check-shellutils \
416         check-sim \
417         check-tar \
418         check-tcl \
419         check-texinfo \
420         check-textutils \
421         check-tgas \
422         check-time \
423         check-uudecode \
424         check-wdiff
425 CHECK_MODULES=$(HOST_ONLY_CHECK_MODULES) $(CROSS_CHECK_MODULES)
426
427 # This is a list of the install targets for all of the modules which are
428 # compiled using $(FLAGS_TO_PASS).
429 INSTALL_MODULES = \
430         install-autoconf \
431         install-bfd \
432         install-binutils \
433         install-byacc \
434         install-cvs \
435         install-dejagnu \
436         install-diff \
437         install-dosutils \
438         install-etc \
439         install-fileutils \
440         install-find \
441         install-flex \
442         install-gas \
443         install-gawk \
444         install-gdb \
445         install-glob \
446         install-gprof \
447         install-grep \
448         install-gzip \
449         install-hello \
450         install-indent \
451         install-ispell \
452         install-ld \
453         install-libiberty \
454         install-m4 \
455         install-make \
456         install-mmalloc \
457         install-opcodes \
458         install-pagas \
459         install-patch \
460         install-prms \
461         install-rcs \
462         install-readline \
463         install-recode \
464         install-sed \
465         install-send-pr \
466         install-shellutils \
467         install-sim \
468         install-tar \
469         install-tcl \
470         install-texinfo \
471         install-textutils \
472         install-tgas \
473         install-time \
474         install-uudecode \
475         install-wdiff
476
477 # This is a list of the targets for all of the modules which are compiled
478 # using $(X11_FLAGS_TO_PASS).
479 ALL_X11_MODULES = \
480         all-emacs \
481         all-expect \
482         all-gash \
483         all-tclX \
484         all-tk
485
486 # This is a list of the check targets for all of the modules which are
487 # compiled using $(X11_FLAGS_TO_PASS).
488 CHECK_X11_MODULES = \
489         check-emacs \
490         check-expect \
491         check-gash \
492         check-tclX \
493         check-tk
494
495 # This is a list of the install targets for all the modules which are
496 # compiled using $(X11_FLAGS_TO_PASS).
497 INSTALL_X11_MODULES = \
498         install-emacs \
499         install-expect \
500         install-gash \
501         install-tclX \
502         install-tk
503
504 # This is a list of the targets for all of the modules which are compiled
505 # using $(TARGET_FLAGS_TO_PASS).
506 ALL_TARGET_MODULES = \
507         $(start-sanitize-chill) \
508         all-chillrt \
509         $(end-sanitize-chill) \
510         all-libio \
511         all-libg++ \
512         all-newlib \
513         all-xiberty
514
515 # This is a list of the check targets for all of the modules which are
516 # compiled using $(TARGET_FLAGS_TO_PASS).
517 CHECK_TARGET_MODULES = \
518         $(start-sanitize-chill) \
519         check-chillrt \
520         $(end-sanitize-chill) \
521         check-libio \
522         check-libg++ \
523         check-newlib \
524         check-xiberty
525
526 # This is a list of the install targets for all of the modules which are
527 # compiled using $(TARGET_FLAGS_TO_PASS).
528 INSTALL_TARGET_MODULES = \
529         $(start-sanitize-chill) \
530         install-chillrt \
531         $(end-sanitize-chill) \
532         install-libio \
533         install-libg++ \
534         install-newlib \
535         install-xiberty
536
537 # This is a shell case of all modules which are compiled using
538 # $(TARGET_FLAGS_TO_PASS), used in the do-X rule.
539 TARGET_LIBS = libio | libg++ | newlib | xiberty
540 # start-sanitize-chill
541 TARGET_LIBS = chillrt | libio | libg++ | newlib | xiberty
542 # end-sanitize-chill
543
544 # The first rule in the file had better be this one.  Don't put any above it.
545 all: all.normal
546 .PHONY: all
547
548 # The target built for a native build.
549 .PHONY: all.normal
550 all.normal: \
551         $(ALL_MODULES) \
552         $(ALL_TARGET_MODULES) \
553         $(ALL_X11_MODULES) \
554         all-gcc
555
556 # Do a target for all the subdirectories.  A ``make do-X'' will do a
557 # ``make X'' in all subdirectories (because, in general, there is a
558 # dependency (below) of X upon do-X, a ``make X'' will also do this,
559 # but it may do additional work as well).
560 # This target ensures that $(BASE_FLAGS_TO_PASS) appears only once,
561 # because it is so large that it can easily overflow the command line
562 # length limit on some systems.
563 DO_X = \
564         do-clean \
565         do-distclean \
566         do-dvi \
567         do-info \
568         do-install-info \
569         do-installcheck \
570         do-mostlyclean \
571         do-realclean \
572         do-TAGS
573 .PHONY: $(DO_X)
574 $(DO_X):
575         @target=`echo $@ | sed -e 's/^do-//'`; \
576         r=`pwd`; export r; \
577         srcroot=`cd $(srcdir); pwd`; export srcroot; \
578         for i in $(SUBDIRS); do \
579           if [ -f ./$$i/Makefile ]; then \
580             case $$i in \
581             $(TARGET_LIBS) ) \
582               for flag in $(EXTRA_TARGET_FLAGS); do \
583                 eval `echo "$$flag" | sed -e "s|^\(.*\)=\(.*\)|\1='\2'|"`; \
584               done; \
585               ;; \
586             gcc) \
587               for flag in $(EXTRA_GCC_FLAGS); do \
588                 eval `echo "$$flag" | sed -e "s|^\(.*\)=\(.*\)|\1='\2'|"`; \
589               done; \
590               ;; \
591             *) \
592               for flag in $(EXTRA_HOST_FLAGS); do \
593                 eval `echo "$$flag" | sed -e "s|^\(.*\)=\(.*\)|\1='\2'|"`; \
594               done; \
595               ;; \
596             esac ; \
597             export AR AS CC CXX NM RANLIB; \
598             if (cd ./$$i; \
599                 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
600                         "CC=$${CC}" "CXX=$${CXX}" "NM=$${NM}" \
601                         "RANLIB=$${RANLIB}" \
602                         $${target}); \
603             then true; else exit 1; fi; \
604           else true; fi; \
605         done
606
607 # Here are the targets which correspond to the do-X targets.
608
609 .PHONY: info installcheck dvi install-info
610 .PHONY: clean distclean mostlyclean realclean local-clean local-distclean
611 info: do-info
612 installcheck: do-installcheck
613 dvi: do-dvi
614
615 install-info: do-install-info dir.info
616         srcroot=`cd $(srcdir); pwd`; export srcroot; \
617         if [ -f dir.info ] ; then \
618           $(INSTALL_DATA) dir.info $(infodir)/dir.info ; \
619         else true ; fi
620
621 local-clean:
622         -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E
623
624 local-distclean:
625         -rm -f Makefile config.status
626
627 clean: do-clean local-clean
628 mostlyclean: do-mostlyclean local-clean
629 distclean: do-distclean local-clean local-distclean
630 realclean: do-realclean local-clean local-distclean
631
632 # Check target.
633
634 .PHONY: check
635 check: $(CHECK_MODULES) \
636         $(CHECK_TARGET_MODULES) \
637         $(CHECK_X11_MODULES) \
638         check-gcc
639
640 # Installation targets.
641
642 .PHONY: install uninstall vault-install
643 install: $(INSTALL_TARGET) 
644
645 uninstall:
646         @echo "the uninstall target is not supported in this tree"
647
648 vault-install:
649         @if [ -f ./release/vault-install ] ; then \
650           ./release/vault-install $(host_alias) $(target_alias) ; \
651         else \
652           true ; \
653         fi
654
655 .PHONY: install.all
656 install.all: install-no-fixedincludes
657         @if [ -f ./gcc/Makefile ] ; then \
658                 r=`pwd` ; export r ; \
659                 (cd ./gcc; \
660                 $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \
661         else \
662                 true ; \
663         fi
664
665 # install-no-fixedincludes is used because Cygnus can not distribute
666 # the fixed header files.
667 .PHONY: install-no-fixedincludes
668 install-no-fixedincludes: \
669         install-dirs \
670         $(INSTALL_MODULES) \
671         $(INSTALL_TARGET_MODULES) \
672         $(INSTALL_X11_MODULES) \
673         gcc-no-fixedincludes 
674
675 # Install the gcc headers files, but not the fixed include files,
676 # which Cygnus is not allowed to distribute.  This rule is very
677 # dependent on the workings of the gcc Makefile.in.
678 .PHONY: gcc-no-fixedincludes
679 gcc-no-fixedincludes:
680         @if [ -f ./gcc/Makefile ]; then \
681           rm -rf gcc/tmp-include; \
682           mv gcc/include gcc/tmp-include 2>/dev/null; \
683           mkdir gcc/include; \
684           cp $(srcdir)/gcc/gsyslimits.h gcc/include/syslimits.h; \
685           touch gcc/stmp-fixinc gcc/include/fixed; \
686           rm -f gcc/stmp-headers gcc/stmp-int-hdrs; \
687           r=`pwd`; export r; \
688           srcroot=`cd $(srcdir); pwd` ; export srcroot; \
689           (cd ./gcc; \
690            $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
691           rm -rf gcc/include; \
692           mv gcc/tmp-include gcc/include 2>/dev/null; \
693         else true; fi
694
695 # This rule is used to build the modules which use FLAGS_TO_PASS.  To
696 # build a target all-X means to cd to X and make all.
697 # all-glob is handled specially because it doesn't actually build.
698 # all-gui is handled specially because it is still experimental, and
699 # if it fails to build, that shouldn't stop "make all".
700 .PHONY: $(ALL_MODULES) all-glob all-gui
701 $(ALL_MODULES) all-glob all-gui:
702         @dir=`echo $@ | sed -e 's/all-//'`; \
703         if [ -f ./$${dir}/Makefile ] ; then \
704           r=`pwd`; export r; \
705           srcroot=`cd $(srcdir); pwd`; export srcroot; \
706           (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) all); \
707         else \
708           true; \
709         fi
710
711 # This rule is used to check the modules which use FLAGS_TO_PASS.  To
712 # build a target check-X means to cd to X and make all.
713
714 .PHONY: $(CHECK_MODULES) $(HOST_ONLY_CHECK_MODULES) $(CROSS_CHECK_MODULES)
715 $(HOST_ONLY_CHECK_MODULES):
716         if [ $(host_canonical) = $(target_canonical) ] ; then \
717           @dir=`echo $@ | sed -e 's/check-//'`; \
718           if [ -f ./$${dir}/Makefile ] ; then \
719             r=`pwd`; export r; \
720             srcroot=`cd $(srcdir); pwd`; export srcroot; \
721             (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) check); \
722           else \
723             true; \
724           fi; \
725         fi
726
727 $(CROSS_CHECK_MODULES):
728         @dir=`echo $@ | sed -e 's/check-//'`; \
729         if [ -f ./$${dir}/Makefile ] ; then \
730           r=`pwd`; export r; \
731           srcroot=`cd $(srcdir); pwd`; export srcroot; \
732           (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) check); \
733         else \
734           true; \
735         fi
736
737 # This rule is used to install the modules which use FLAGS_TO_PASS.
738 # To build a target install-X means to cd to X and make install.
739 .PHONY: $(INSTALL_MODULES)
740 $(INSTALL_MODULES): install-dirs
741         @dir=`echo $@ | sed -e 's/install-//'`; \
742         if [ -f ./$${dir}/Makefile ] ; then \
743           r=`pwd`; export r; \
744           srcroot=`cd $(srcdir); pwd`; export srcroot; \
745           (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) install); \
746         else \
747           true; \
748         fi
749
750 # This rule is used to build the modules which use TARGET_FLAGS_TO_PASS.
751 # To build a target all-X means to cd to X and make all.
752 .PHONY: $(ALL_TARGET_MODULES)
753 $(ALL_TARGET_MODULES):
754         @dir=`echo $@ | sed -e 's/all-//'`; \
755         if [ -f ./$${dir}/Makefile ] ; then \
756           r=`pwd`; export r; \
757           srcroot=`cd $(srcdir); pwd`; export srcroot; \
758           (cd $${dir}; $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
759         else \
760           true; \
761         fi
762
763 # This rule is used to check the modules which use TARGET_FLAGS_TO_PASS.
764 # To build a target install-X means to cd to X and make install.
765 .PHONY: $(CHECK_TARGET_MODULES)
766 $(CHECK_TARGET_MODULES):
767         @dir=`echo $@ | sed -e 's/check-//'`; \
768         if [ -f ./$${dir}/Makefile ] ; then \
769           r=`pwd`; export r; \
770           srcroot=`cd $(srcdir); pwd`; export srcroot; \
771           (cd $${dir}; $(MAKE) $(TARGET_FLAGS_TO_PASS) check); \
772         else \
773           true; \
774         fi
775
776 # This rule is used to install the modules which use
777 # TARGET_FLAGS_TO_PASS.  To build a target install-X means to cd to X
778 # and make install.
779 .PHONY: $(INSTALL_TARGET_MODULES)
780 $(INSTALL_TARGET_MODULES): install-dirs
781         @dir=`echo $@ | sed -e 's/install-//'`; \
782         if [ -f ./$${dir}/Makefile ] ; then \
783           r=`pwd`; export r; \
784           srcroot=`cd $(srcdir); pwd`; export srcroot; \
785           (cd $${dir}; $(MAKE) $(TARGET_FLAGS_TO_PASS) install); \
786         else \
787           true; \
788         fi
789
790 # This rule is used to build the modules which use X11_FLAGS_TO_PASS.
791 # To build a target all-X means to cd to X and make all.
792 .PHONY: $(ALL_X11_MODULES)
793 $(ALL_X11_MODULES):
794         @dir=`echo $@ | sed -e 's/all-//'`; \
795         if [ -f ./$${dir}/Makefile ] ; then \
796           r=`pwd`; export r; \
797           srcroot=`cd $(srcdir); pwd`; export srcroot; \
798           (cd $${dir}; \
799            $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all); \
800         else \
801           true; \
802         fi
803
804 # This rule is used to check the modules which use X11_FLAGS_TO_PASS.
805 # To build a target check-X means to cd to X and make all.
806 .PHONY: $(CHECK_X11_MODULES)
807 $(CHECK_X11_MODULES):
808         @dir=`echo $@ | sed -e 's/check-//'`; \
809         if [ -f ./$${dir}/Makefile ] ; then \
810           r=`pwd`; export r; \
811           srcroot=`cd $(srcdir); pwd`; export srcroot; \
812           (cd $${dir}; \
813            $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check); \
814         else \
815           true; \
816         fi
817
818 # This rule is used to install the modules which use X11_FLAGS_TO_PASS.
819 # To build a target install-X means to cd to X and make install.
820 .PHONY: $(INSTALL_X11_MODULES)
821 $(INSTALL_X11_MODULES):
822         @dir=`echo $@ | sed -e 's/install-//'`; \
823         if [ -f ./$${dir}/Makefile ] ; then \
824           r=`pwd`; export r; \
825           srcroot=`cd $(srcdir); pwd`; export srcroot; \
826           (cd $${dir}; \
827            $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install); \
828         else \
829           true; \
830         fi
831
832 # gcc is the only module which uses GCC_FLAGS_TO_PASS.
833 .PHONY: all-gcc
834 all-gcc:
835         @if [ -f ./gcc/Makefile ] ; then \
836           r=`pwd`; export r; \
837           srcroot=`cd $(srcdir); pwd`; export srcroot; \
838           (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) all); \
839         else \
840           true; \
841         fi
842
843 .PHONY: check-gcc
844 check-gcc:
845         @if [ -f ./gcc/Makefile ] ; then \
846           r=`pwd`; export r; \
847           srcroot=`cd $(srcdir); pwd`; export srcroot; \
848           (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) check); \
849         else \
850           true; \
851         fi
852
853 .PHONY: install-gcc
854 install-gcc:
855         @if [ -f ./gcc/Makefile ] ; then \
856           r=`pwd`; export r; \
857           srcroot=`cd $(srcdir); pwd`; export srcroot; \
858           (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
859         else \
860           true; \
861         fi
862
863
864 # EXPERIMENTAL STUFF
865 # This rule is used to install the modules which use FLAGS_TO_PASS.
866 # To build a target install-X means to cd to X and make install.
867 .PHONY: install-dosrel
868 install-dosrel: install-dirs info
869         @dir=`echo $@ | sed -e 's/install-//'`; \
870         if [ -f ./$${dir}/Makefile ] ; then \
871           r=`pwd`; export r; \
872           srcroot=`cd $(srcdir); pwd`; export srcroot; \
873           (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) install); \
874         else \
875           true; \
876         fi
877
878 install-dosrel-fake:
879
880
881 # This is a list of inter-dependencies among modules.
882 all-autoconf: all-m4
883 all-bfd:
884 all-binutils: all-libiberty all-opcodes all-bfd all-flex
885 all-byacc:
886 # start-sanitize-chill
887 all-chillrt: all-binutils all-gas all-gcc all-newlib
888 # end-sanitize-chill
889 all-cvs:
890 all-dejagnu:
891 all-diff: all-libiberty
892 all-emacs:
893 all-etc:
894 all-expect: all-tcl all-tk
895 all-fileutils: all-libiberty
896 all-find:
897 all-flex: all-libiberty all-byacc
898 all-gas: all-libiberty all-opcodes all-bfd
899 all-gash: all-tcl
900 all-gawk:
901 all-gcc: all-libiberty all-byacc all-binutils all-gas all-pagas
902 all-gdb: all-libiberty all-opcodes all-bfd all-mmalloc all-readline all-glob all-byacc all-sim
903 all-glob:
904 all-gprof: all-libiberty all-bfd
905 all-grep: all-libiberty
906 all-gui: all-gdb
907 all-gzip: all-libiberty
908 all-hello: all-libiberty
909 all-indent:
910 all-ispell: all-emacs
911 all-ld: all-libiberty all-bfd all-byacc all-flex
912 all-libg++: all-gas all-pagas all-ld all-gcc all-xiberty all-newlib all-libio
913 all-libio: all-gas all-pagas all-ld all-gcc all-xiberty all-newlib 
914 all-libiberty:
915 all-m4: all-libiberty
916 all-make: all-libiberty
917 all-mmalloc:
918 all-newlib: all-binutils all-gas all-pagas all-gcc
919 all-opcodes: all-bfd
920 all-patch:
921 all-prms: all-libiberty
922 all-rcs:
923 all-readline:
924 all-recode: all-libiberty
925 all-sed: all-libiberty
926 all-send-pr: all-prms
927 all-shellutils:
928 all-sim: all-libiberty all-bfd
929 all-tar: all-libiberty
930 all-tcl:
931 all-tclX: all-tcl all-tk
932 all-tk: all-tcl
933 all-texinfo: all-libiberty
934 all-textutils:
935 all-tgas: all-libiberty all-bfd
936 all-time:
937 all-wdiff:
938 all-uudecode: all-libiberty
939 all-xiberty: all-gcc all-newlib
940
941 ### other supporting targets
942
943 MAKEDIRS= \
944         $(prefix) \
945         $(exec_prefix) \
946         $(tooldir)
947
948 .PHONY: install-dirs
949 install-dirs:
950         @for i in $(MAKEDIRS) ; do \
951                 echo Making $$i... ; \
952                 parent=`echo $$i | sed -e 's@/[^/]*$$@@' | sed -e 's@^$$@/@'`; \
953                 if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi ; \
954                 if [ ! -d $$i ] ; then \
955                         if mkdir $$i ; then \
956                                 true ; \
957                         else \
958                                 exit 1 ; \
959                         fi ; \
960                 else \
961                         true ; \
962                 fi ; \
963         done
964
965
966 dir.info: do-install-info
967         if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \
968           $(srcdir)/texinfo/gen-info-dir $(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \
969           mv -f dir.info.new dir.info ; \
970         else true ; \
971         fi
972
973 dist:
974         @echo "Building a full distribution of this tree isn't done"
975         @echo "via 'make dist'.  Check out the etc/ subdirectory" 
976
977 etags tags: TAGS
978
979 # Right now this just builds TAGS in each subdirectory.  emacs19 has the
980 # ability to use several tags files at once, so there is probably no need
981 # to combine them into one big TAGS file (like CVS 1.3 does).  We could
982 # (if we felt like it) have this Makefile write a piece of elisp which
983 # the user could load to tell emacs19 where all the TAGS files we just
984 # built are.
985 TAGS: do-TAGS
986
987 # with the gnu make, this is done automatically.
988
989 Makefile: Makefile.in configure.in $(host_makefile_frag) $(target_makefile_frag)
990         $(SHELL) ./config.status
991
992 #
993 # Support for building net releases
994
995 # Files in devo used in any net release.
996 # ChangeLog omitted because it may refer to files which are not in this
997 # distribution (perhaps it would be better to include it anyway).
998 DEVO_SUPPORT= README Makefile.in configure configure.in \
999         config.guess config.sub config move-if-change \
1000         COPYING COPYING.LIB install.sh
1001
1002 # Files in devo/etc used in any net release.
1003 # ChangeLog omitted because it may refer to files which are not in this
1004 # distribution (perhaps it would be better to include it anyway).
1005 ETC_SUPPORT= Makefile.in cfg-paper.texi configure.in configure.man \
1006         configure.texi standards.texi make-stds.texi
1007
1008 GDB_SUPPORT_DIRS= bfd include libiberty mmalloc opcodes readline glob sim
1009 GDB_SUPPORT_FILES= $(GDB_SUPPORT_DIRS)
1010
1011 .PHONY: setup-dirs-gdb gdb.tar.gz make-gdb.tar.gz
1012 setup-dirs-gdb:
1013         $(start-sanitize-Sanitize)
1014         @if [ -f .Sanitize ] ; then echo "RUN Sanitize FIRST!" ; false ; fi ;
1015         $(end-sanitize-Sanitize)
1016         ./configure sun4
1017         $(MAKE) clean
1018         ./configure -rm sun4
1019         chmod og=u `find etc $(DEVO_SUPPORT) $(GDB_SUPPORT_FILES) -print`
1020
1021 gdb.tar.gz: setup-dirs-gdb
1022         (cd gdb; $(MAKE) -f Makefile.in make-proto-gdb.dir BISON="byacc")
1023         (cd gdb; $(MAKE) -f Makefile.in make-proto-testsuite.dir)
1024         $(MAKE) $(MFLAGS) -f Makefile.in make-gdb.tar.gz
1025
1026 make-gdb.tar.gz: $(DEVO_SUPPORT) $(GDB_SUPPORT_DIRS) gdb texinfo/texinfo.tex
1027         rm -rf proto-toplev; mkdir proto-toplev
1028         ln -s ../gdb/proto-gdb.dir proto-toplev/gdb
1029         (cd proto-toplev; for i in $(DEVO_SUPPORT) $(GDB_SUPPORT_DIRS); do \
1030                 ln -s ../$$i . ; \
1031         done)
1032         mkdir proto-toplev/etc
1033         (cd proto-toplev/etc; for i in $(ETC_SUPPORT); do \
1034                 ln -s ../../etc/$$i . ; \
1035         done)
1036         # Put only one copy (four hard links) of COPYING in the tar file.
1037         rm                          proto-toplev/bfd/COPYING
1038         ln proto-toplev/gdb/COPYING proto-toplev/bfd/COPYING
1039         rm                          proto-toplev/include/COPYING
1040         ln proto-toplev/gdb/COPYING proto-toplev/include/COPYING
1041         rm                          proto-toplev/readline/COPYING
1042         ln proto-toplev/gdb/COPYING proto-toplev/readline/COPYING
1043
1044         # Change the bug reporting address in configure to bug-gdb
1045         rm proto-toplev/configure
1046         sed -e 's/configure@cygnus.com/bug-gdb@prep.ai.mit.edu/' \
1047             <configure >proto-toplev/configure
1048         chmod a+x proto-toplev/configure
1049
1050         # Take out texinfo and glob from configurable dirs
1051         rm proto-toplev/configure.in
1052         sed -e '/^host_tools=/s/texinfo //' \
1053             -e '/^host_libs=/s/glob //' \
1054             <configure.in >proto-toplev/configure.in
1055
1056         # Take out texinfo from a few places; make simple BISON=bison line.
1057         rm proto-toplev/Makefile.in
1058         sed -e '/^all\.normal: /s/\all-texinfo //' \
1059             -e '/^      install-texinfo /d' \
1060             -e '/^BISON = /,/^$$/d' \
1061             -e '/^# BISON:/s/.*/BISON = bison -y/' \
1062         <Makefile.in >proto-toplev/Makefile.in
1063
1064         mkdir proto-toplev/texinfo
1065         ln -s ../../texinfo/texinfo.tex proto-toplev/texinfo/
1066         ln -s ../../texinfo/gpl.texinfo proto-toplev/texinfo/
1067         ln -s ../../texinfo/tex3patch   proto-toplev/texinfo/
1068         chmod og=u `find proto-toplev -print`
1069         (VER=`sed <gdb/Makefile.in -n 's/VERSION = //p'`; \
1070                 echo "==> Making gdb-$$VER.tar.gz"; \
1071                 rm -f gdb-$$VER; ln -s proto-toplev gdb-$$VER; \
1072                 tar cfh - gdb-$$VER \
1073                 | $(GZIPPROG) -v -9 >gdb-$$VER.tar.gz)
1074
1075         # Make the testsuite archive separately.
1076         ln -s ../../gdb/proto-testsuite.dir/testsuite proto-toplev/gdb/testsuite
1077         # Blow away the Chill test that requires a Chill compiled executable,
1078         # since GNU Chill is not yet publically available.
1079         rm -rf proto-toplev/gdb/testsuite/gdb.t31
1080
1081         # Put a copy of COPYING in the tar file.
1082         ln proto-toplev/gdb/COPYING proto-toplev/gdb/testsuite/COPYING
1083         chmod og=u `find proto-toplev/gdb/testsuite -print`
1084         (VER=`sed <gdb/Makefile.in -n 's/VERSION = //p'`; \
1085                 echo "==> Making gdb-$$VER-testsuite.tar.gz"; \
1086                 tar cfh - gdb-$$VER/configure gdb-$$VER/config.guess \
1087                         gdb-$$VER/config.sub gdb-$$VER/move-if-change \
1088                         gdb-$$VER/gdb/testsuite \
1089                         | $(GZIPPROG) -v -9 >gdb-$$VER-testsuite.tar.gz)
1090
1091 # When you use `make setup-dirs' or `make taz' you should always redefine
1092 # this macro.
1093 SUPPORT_FILES = list-of-support-files-for-tool-in-question
1094 # Directories that might want `make diststuff' run.
1095 DISTSTUFFDIRS= ld gprof gdb libg++ binutils gnats
1096 # Files where "byacc" (Cygnus version) should be changed to "bison -y" (FSF).
1097 DISTBISONFILES= binutils/Makefile.in gas/Makefile.in gdb/Makefile.in
1098 # Directories where "info" should be built.
1099 DISTDOCDIRS= ld gprof binutils gas bfd libg++ libio gdb gnats send-pr
1100
1101 .PHONY: taz
1102
1103 taz: $(DEVO_SUPPORT) $(SUPPORT_FILES) \
1104   texinfo/texinfo.tex texinfo/gpl.texinfo texinfo/lgpl.texinfo
1105         # Make sure "diststuff" files get built properly.
1106         for f in $(DISTBISONFILES) ; do \
1107           if [ -r $$f ]; then \
1108             sed '/^BISON *=.*$$/s/.*/BISON = bison -y/' <$$f >tmp ; \
1109             mv -f tmp $$f ; \
1110           else true; fi ; \
1111         done
1112         # Take out texinfo from a few places; make simple BISON=bison line.
1113         sed -e '/^all\.normal: /s/\all-texinfo //' \
1114             -e '/^      install-texinfo /d' \
1115             -e '/^BISON = /,/^$$/d' \
1116             -e '/^# BISON:/s/.*/BISON = bison -y/' \
1117         <Makefile.in >tmp
1118         mv -f tmp Makefile.in
1119         #
1120         ./configure sun4
1121         # Doc files don't change; include them in distribution.
1122         for f in $(DISTDOCDIRS) ; do \
1123           if [ -r $$f/Makefile ]; then \
1124             (cd $$f ; $(MAKE) info) || exit 1 ; \
1125           else true ; fi ; \
1126         done
1127         # Make links, and run "make diststuff" when needed.
1128         # The `echo' for setting `p' is to convert all whitespace to spaces.
1129         # Then the `case' further below should tell whether $$d is in
1130         # DISTSTUFFDIRS.
1131         rm -rf proto-toplev ; mkdir proto-toplev
1132         set -e ; dirs="$(TOOL) $(DEVO_SUPPORT) $(SUPPORT_FILES)" ; \
1133         p=" `echo $(DISTSTUFFDIRS)` " ; \
1134         for d in $$dirs ; do \
1135           if [ -d $$d ]; then \
1136             case " $$p " in \
1137             *" $$d "*)  \
1138                 echo making diststuff in $$d ; \
1139                 (cd $$d ; pwd ; $(MAKE) diststuff ) || exit 1  ;; \
1140             esac ; \
1141             if [ -d $$d/proto-$$d.dir ]; then \
1142               ln -s ../$$d/proto-$$d.dir proto-toplev/$$d ; \
1143             else \
1144               ln -s ../$$d proto-toplev/$$d ; \
1145             fi ; \
1146           else ln -s ../$$d proto-toplev/$$d ; fi ; \
1147         done
1148         $(MAKE) distclean
1149         #
1150         mkdir proto-toplev/etc
1151         (cd proto-toplev/etc; for i in $(ETC_SUPPORT); do \
1152                 ln -s ../../etc/$$i . ; \
1153         done)
1154         #
1155         # Take out texinfo and glob from configurable dirs
1156         rm proto-toplev/configure.in
1157         sed -e '/^host_tools=/s/texinfo //' \
1158             -e '/^host_libs=/s/glob //' \
1159             <configure.in >proto-toplev/configure.in
1160         #
1161         mkdir proto-toplev/texinfo
1162         ln -s ../../texinfo/texinfo.tex proto-toplev/texinfo/
1163         ln -s ../../texinfo/gpl.texinfo proto-toplev/texinfo/
1164         ln -s ../../texinfo/lgpl.texinfo proto-toplev/texinfo/
1165         ln -s ../../texinfo/tex3patch   proto-toplev/texinfo/
1166         chmod og=u `find . -print`
1167         (VER=`sed <$(TOOL)/Makefile.in -n 's/^VERSION *= *//p'`; \
1168                 echo "==> Making $(TOOL)-$$VER.tar.gz"; \
1169                 rm -f $(TOOL)-$$VER; ln -s proto-toplev $(TOOL)-$$VER; \
1170                 tar cfh - $(TOOL)-$$VER \
1171                 | $(GZIPPROG) -v -9 >$(TOOL)-$$VER.tar.gz )
1172
1173 TEXINFO_SUPPORT= texinfo/texinfo.tex texinfo/gpl.texinfo texinfo/lgpl.texinfo
1174 DIST_SUPPORT= $(DEVO_SUPPORT) $(TEXINFO_SUPPORT)
1175
1176 .PHONY: gas.tar.gz
1177 GAS_SUPPORT_DIRS= bfd include libiberty opcodes
1178 gas.tar.gz: $(DIST_SUPPORT) $(GAS_SUPPORT_DIRS) gas
1179         $(MAKE) -f Makefile.in taz TOOL=gas \
1180                 SUPPORT_FILES="$(GAS_SUPPORT_DIRS)"
1181
1182 # The FSF "binutils" release includes gprof and ld.
1183 .PHONY: binutils.tar.gz
1184 BINUTILS_SUPPORT_DIRS= bfd include libiberty opcodes ld gprof
1185 binutils.tar.gz: $(DIST_SUPPORT) $(BINUTILS_SUPPORT_DIRS) binutils
1186         $(MAKE) -f Makefile.in taz TOOL=binutils \
1187                 SUPPORT_FILES="$(BINUTILS_SUPPORT_DIRS)"
1188
1189 .PHONY: gas+binutils.tar.gz
1190 GASB_SUPPORT_DIRS= $(GAS_SUPPORT_DIRS) binutils ld gprof
1191 gas+binutils.tar.gz: $(DIST_SUPPORT) $(GASB_SUPPORT_DIRS) gas
1192         $(MAKE) -f Makefile.in taz TOOL=gas \
1193                 SUPPORT_FILES="$(GASB_SUPPORT_DIRS)"
1194
1195 .PHONY: libg++.tar.gz
1196 LIBGXX_SUPPORT_DIRS=include libio libiberty xiberty
1197 libg++.tar.gz: $(DIST_SUPPORT) libg++
1198         $(MAKE) -f Makefile.in taz TOOL=libg++ \
1199                 SUPPORT_FILES="$(LIBGXX_SUPPORT_DIRS)"
1200
1201 GNATS_SUPPORT_DIRS=include libiberty send-pr
1202 gnats.tar.gz: $(DIST_SUPPORT) $(GNATS_SUPPORT_DIRS) gnats
1203         $(MAKE) -f  Makefile.in taz TOOL=gnats \
1204                 SUPPORT_FILES="$(GNATS_SUPPORT_DIRS)"
1205
1206 .NOEXPORT:
1207 MAKEOVERRIDES=
1208
1209 # start-sanitize-chill
1210 ## This is ugly, but I don't want GNU make to put these variables in
1211 ## the environment.  Older makes will see this as a set of targets
1212 ## with no dependencies and no actions.
1213 unexport CHILLFLAGS CHILL_LIB CHILL_FOR_TARGET :
1214 # end-sanitize-chill
1215
1216 # end of Makefile.in