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