home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / gnu / gdb-4.12.tar.gz / gdb-4.12.tar / gdb-4.12 / Makefile.in < prev    next >
Makefile  |  1994-02-03  |  31KB  |  1,129 lines

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