home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.2 (Developer) / NS_dev_3.2.iso / NextDeveloper / Source / GNU / libg++ / Makefile.in < prev    next >
Makefile  |  1993-06-29  |  39KB  |  1,737 lines

  1. #
  2. # Makefile for directory with subdirs to build.
  3. #   Copyright (C) 1990, 1991, 1992 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. prefix = /NextDeveloper/Headers
  22.  
  23. exec_prefix = $(prefix)
  24. bindir = $(exec_prefix)/bin
  25. libdir = $(exec_prefix)/lib
  26. tooldir = $(libdir)
  27.  
  28. program_transform_name =
  29.  
  30. datadir = $(prefix)/lib
  31. mandir = $(prefix)/man
  32. man1dir = $(mandir)/man1
  33. man2dir = $(mandir)/man2
  34. man3dir = $(mandir)/man3
  35. man4dir = $(mandir)/man4
  36. man5dir = $(mandir)/man5
  37. man6dir = $(mandir)/man6
  38. man7dir = $(mandir)/man7
  39. man8dir = $(mandir)/man8
  40. man9dir = $(mandir)/man9
  41. infodir = $(prefix)/info
  42. includedir = $(prefix)/include
  43. docdir = $(datadir)/doc
  44.  
  45. SHELL = /bin/sh
  46.  
  47. INSTALL = cp
  48. INSTALL_PROGRAM = $(INSTALL)
  49. INSTALL_DATA = $(INSTALL)
  50.  
  51. AS = as
  52. AR = ar
  53. AR_FLAGS = qc
  54. CFLAGS = -g
  55. CXXFLAGS = -g -O -D_G_NO_TEMPLATES
  56. RANLIB = ranlib
  57. NM = nm
  58.  
  59. BISON = `if [ -f $${rootme}/byacc/byacc ] ; \
  60.         then echo $${rootme}/byacc/byacc ; \
  61.         else echo byacc ; \
  62.     fi`
  63.  
  64. LEX = `if [ -f $${rootme}/flex/flex ] ; \
  65.     then echo $${rootme}/flex/flex ; \
  66.     else echo flex ; fi`
  67.  
  68. MAKEINFO = `if [ -f $${rootme}/texinfo/C/makeinfo ] ; \
  69.     then echo $${rootme}/texinfo/C/makeinfo ; \
  70.     else echo makeinfo ; fi`
  71.  
  72. # C compiler to use to create programs which must be run in the build
  73. # environment.
  74. CC_FOR_BUILD = $(CC)
  75. CXX_FOR_BUILD = cc++
  76.  
  77. SUBDIRS = libiberty mmalloc glob readline opcodes bfd z8ksim gdb binutils ld gas tgas gcc libg++ newlib deja-gnu
  78. OTHERS = 
  79.  
  80. ALL = all.normal
  81. INSTALL_TARGET = install.all
  82.  
  83. ### for debugging
  84. #GCCVERBOSE=-v
  85.  
  86. CC_FOR_TARGET = ` \
  87.   if [ -f $${rootme}/gcc/Makefile ] ; then \
  88.     echo $${rootme}/gcc/gcc -B$${rootme}/gcc/; \
  89.   else \
  90.     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
  91.       echo $(CC); \
  92.     else \
  93.       t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
  94.     fi; \
  95.   fi`
  96.  
  97. CXX_FOR_TARGET = ` \
  98.   if [ -f $${rootme}/gcc/Makefile ] ; then \
  99.     echo $${rootme}/gcc/gcc -B$${rootme}/gcc/; \
  100.   else \
  101.     if [ "$(host_cpu)-$(host_vendor)-$(host_os)" = "$(target_cpu)-$(target_vendor)-$(target_os)" ] ; then \
  102.       echo cc++; \
  103.     else \
  104.       t='$(program_transform_name)'; echo cc++ | sed -e '' $$t; \
  105.     fi; \
  106.   fi`
  107.  
  108. AS_FOR_TARGET = ` \
  109.   if [ -f $${rootme}/gas/Makefile ] ; then \
  110.     echo $${rootme}/gas/as.new ; \
  111.   else \
  112.     if [ "$(host_cpu)-$(host_vendor)-$(host_os)" = "$(target_cpu)-$(target_vendor)-$(target_os)" ] ; then \
  113.       echo $(AS); \
  114.     else \
  115.        t='$(program_transform_name)'; echo as | sed -e '' $$t ; \
  116.     fi \
  117.   fi`
  118.  
  119. AR_FOR_TARGET = ` \
  120.   if [ -f $${rootme}/binutils/Makefile ] ; then \
  121.     echo $${rootme}/binutils/ar ; \
  122.   else \
  123.     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
  124.       echo $(AR); \
  125.     else \
  126.        t='$(program_transform_name)'; echo ar | sed -e '' $$t ; \
  127.     fi \
  128.   fi`
  129.  
  130. RANLIB_FOR_TARGET = ` \
  131.   if [ -f $${rootme}/binutils/Makefile ] ; then \
  132.     echo $${rootme}/binutils/ranlib ; \
  133.   else \
  134.     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
  135.       echo $(RANLIB); \
  136.     else \
  137.        t='$(program_transform_name)'; echo ranlib | sed -e '' $$t ; \
  138.     fi \
  139.   fi`
  140.  
  141. NM_FOR_TARGET = ` \
  142.   if [ -f $${rootme}/binutils/Makefile ] ; then \
  143.     echo $${rootme}/binutils/nm ; \
  144.   else \
  145.     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
  146.       echo $(NM); \
  147.     else \
  148.        t='$(program_transform_name)'; echo nm | sed -e '' $$t ; \
  149.     fi \
  150.   fi`
  151.  
  152. XTRAFLAGS = ` \
  153.   if [ -f $${rootme}/gcc/Makefile ] ; then \
  154.     if [ -f $${rootme}/newlib/Makefile ] ; then \
  155.       echo -I$${rootme}/newlib/targ-include -I$${srcroot}/newlib/libc/include -I$${rootme}/gcc/include -nostdinc ; \
  156.     else \
  157.       echo -I$${rootme}/gcc/include ; \
  158.     fi ; \
  159.   else \
  160.      echo ; \
  161.   fi`
  162.  
  163. #### host and target specific makefile fragments come in here.
  164. ###
  165.  
  166. # Flags to pass down to sub-makes -- please keep these in alphabetical order
  167. FLAGS_TO_PASS = \
  168.     "AR=$(AR)" \
  169.     "AR_FLAGS=$(AR_FLAGS)" \
  170.     "BISON=$(BISON)" \
  171.     "CXXFLAGS=$(CXXFLAGS)" \
  172.     "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
  173.     "CC=$(CC)" \
  174.     "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
  175.     "CFLAGS=$(CFLAGS)" \
  176.     "INSTALL=$(INSTALL)" \
  177.     "INSTALL_DATA=$(INSTALL_DATA)" \
  178.     "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
  179.     "LDFLAGS=$(LDFLAGS)" \
  180.     "LEX=$(LEX)" \
  181.     "LOADLIBES=$(LOADLIBES)" \
  182.     "MAKEINFO=$(MAKEINFO)" \
  183.     "RANLIB=$(RANLIB)" \
  184.     "exec_prefix=$(exec_prefix)" \
  185.     "prefix=$(prefix)" \
  186.     "tooldir=$(tooldir)" 
  187.  
  188. # Flags that are concerned with the location of the X11 include files
  189. # and library files
  190. X11_FLAGS_TO_PASS = \
  191.     "X11_INCLUDE_FLAGS=$(X11_INCLUDE_FLAGS)" \
  192.     "X11_LIB_FLAGS=$(X11_LIB_FLAGS)"
  193.  
  194. # Flags to pass down to makes which are built with the target
  195. # environment (e.g. libg++, xiberty, newlib).  -- keep these in alpha order please
  196. TARGET_FLAGS_TO_PASS = \
  197.     "AR=$(AR_FOR_TARGET)" \
  198.     "AR_FLAGS=$(AR_FLAGS)" \
  199.     "AS=$(AS_FOR_TARGET)" \
  200.     "BISON=$(BISON)" \
  201.     "CXX=$(CXX_FOR_TARGET)" \
  202.     "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
  203.     "CXXFLAGS=$(CXXFLAGS)" \
  204.     "CC=$(CC_FOR_TARGET)" \
  205.     "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
  206.     "CFLAGS=$(CFLAGS)" \
  207.     "INSTALL=$(INSTALL)" \
  208.     "INSTALL_DATA=$(INSTALL_DATA)" \
  209.     "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
  210.     "LDFLAGS=$(LDFLAGS)" \
  211.     "LEX=$(LEX)" \
  212.     "LOADLIBES=$(LOADLIBES)" \
  213.     "MAKEINFO=$(MAKEINFO)" \
  214.     "NM=$(NM_FOR_TARGET)" \
  215.     "RANLIB=$(RANLIB_FOR_TARGET)" \
  216.     "XTRAFLAGS=$(XTRAFLAGS)" \
  217.     "exec_prefix=$(exec_prefix)" \
  218.     "prefix=$(prefix)" \
  219.     "tooldir=$(tooldir)" 
  220.  
  221. # The first rule in the file had better be this one.  Don't put any above it.
  222. all:    $(ALL)
  223.  
  224. .PHONY: all info install-info clean-info
  225. .NOEXPORT:
  226.  
  227. info:    
  228.     @rootme=`pwd` ; export rootme ; $(MAKE) $(FLAGS_TO_PASS) subdir_do DO=info "DODIRS=$(SUBDIRS)" 
  229.  
  230. check:
  231.     @rootme=`pwd` ; export rootme ; $(MAKE) $(FLAGS_TO_PASS) DO=check "DODIRS=$(SUBDIRS)" subdir_do
  232.  
  233. clean-info:
  234.     @rootme='pwd' ; export rootme ; $(MAKE) $(FLAGS_TO_PASS) DO=clean-info "DODIRS=$(SUBDIRS)" subdir_do
  235.  
  236. install-info: install-info-dirs force
  237.     -parent=`echo $(infodir)|sed -e 's@/[^/]*$$@@'`; \
  238.     if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
  239.     -if [ -d $(infodir) ] ; then true ; else mkdir $(infodir) ; fi
  240.     @rootme='pwd' ; export rootme ; $(MAKE) $(FLAGS_TO_PASS) DO=install-info "DODIRS=$(SUBDIRS)" subdir_do
  241.     @rootme='pwd' ; export rootme ; $(MAKE) $(FLAGS_TO_PASS) dir.info install-dir.info
  242.  
  243. install-dir.info:
  244.     -parent=`echo $(infodir)|sed -e 's@/[^/]*$$@@'`; \
  245.     if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
  246.     -if [ -d $(infodir) ] ; then true ; else mkdir $(infodir) ; fi
  247.     $(INSTALL_DATA) dir.info $(infodir)/dir.info
  248.  
  249. all.normal: all-m4 all-autoconf all-libiberty all-mmalloc all-texinfo \
  250.     all-byacc all-flex all-opcodes all-bfd all-ld all-gas all-tgas \
  251.     all-gcc all-binutils  all-libg++ all-readline all-z8ksim all-gdb \
  252.     all-make all-rcs all-cvs all-diff all-grep \
  253.     all-patch all-emacs all-ispell all-etc \
  254.     all-tcl all-tk all-expect \
  255.     all-newlib all-gprof all-send_pr all-libm all-deja-gnu \
  256.     all-fileutils all-find all-gawk all-sed all-shellutils \
  257.     all-textutils all-time all-wdiff
  258.  
  259.  
  260. all.cross: all-libiberty all-mmalloc all-gas all-byacc all-flex all-ld \
  261.      all-opcodes all-z8ksim all-bfd all-readline all-gdb all-binutils all-gcc \
  262.     all-newlib all-deja-gnu
  263.  
  264. clean: clean-autoconf clean-libiberty clean-mmalloc clean-texinfo \
  265.     clean-bfd clean-newlib clean-binutils clean-flex \
  266.     clean-byacc clean-ld clean-gas clean-etc clean-opcodes \
  267.     clean-gcc clean-readline clean-glob clean-gdb clean-z8ksim \
  268.     clean-make clean-diff clean-grep clean-rcs \
  269.     clean-cvs clean-patch clean-emacs clean-ispell \
  270.     clean-tcl clean-tk clean-expect \
  271.     clean-libg++ clean-gprof clean-send_pr clean-libm clean-xiberty \
  272.     clean-deja-gnu \
  273.     clean-fileutils clean-find clean-gawk clean-m4 clean-sed clean-shellutils \
  274.     clean-textutils clean-time clean-wdiff
  275.     -rm -rf *.a TEMP errs core *.o *~ \#* TAGS *.E
  276.  
  277. clean-stamps:
  278.     -rm -f all-*
  279.  
  280. install: $(INSTALL_TARGET) 
  281.     -parent=`echo $(man1dir)|sed -e 's@/[^/]*$$@@'`; \
  282.     if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
  283.     -if [ -d $(man1dir) ] ; then true ; else mkdir $(man1dir) ; fi
  284.  
  285. install.all: install-no-fixedincludes
  286.     @if [ -f ./gcc/Makefile ] ; then \
  287.         rootme=`pwd` ; export rootme ; \
  288.         (cd ./gcc; \
  289.         $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \
  290.     else \
  291.         true ; \
  292.     fi
  293.  
  294. install-no-fixedincludes: install-dirs gcc-no-fixedincludes \
  295.     install-autoconf \
  296.     install-bfd \
  297.     install-binutils \
  298.     install-opcodes \
  299.     install-byacc \
  300.     install-cvs \
  301.     install-diff \
  302.     install-deja-gnu \
  303.     install-emacs \
  304.     install-etc \
  305.     install-expect \
  306.     install-flex \
  307.     install-gas \
  308.     install-gdb \
  309.     install-glob \
  310.     install-gprof \
  311.     install-grep \
  312.     install-ispell \
  313.     install-ld \
  314.     install-libg++ \
  315.     install-libiberty \
  316.     install-libm \
  317.     install-make \
  318.     install-mmalloc \
  319.     install-newlib \
  320.     install-patch \
  321.     install-rcs \
  322.     install-readline \
  323.     install-send_pr \
  324.     install-tcl \
  325.     install-texinfo \
  326.     install-tk  \
  327.     install-z8ksim \
  328.     install-fileutils install-find install-gawk install-m4 install-sed install-shellutils \
  329.     install-textutils install-time install-wdiff
  330.  
  331. gcc-no-fixedincludes:
  332.     @if [ -f ./gcc/Makefile ] ; then \
  333.         rootme=`pwd` ; export rootme ; \
  334.         (cd ./gcc; \
  335.         $(MAKE) $(FLAGS_TO_PASS) install install-man \
  336.             "INSTALL_HEADERS=install-common-headers install-float-h install-limits-h") ; \
  337.     else \
  338.         true ; \
  339.     fi
  340.  
  341. install.cross: install-dirs install-libiberty install-mmalloc \
  342.         install-binutils install-opcodes install-byacc install-flex \
  343.         install-ld install-gas install-readline \
  344.         install-glob install-gdb install-mmalloc \
  345.         install-newlib install-gcc install-etc install-deja-gnu
  346.  
  347. ### deja-gnu
  348. all-deja-gnu: force
  349.     @if [ -f ./deja-gnu/Makefile ] ; then \
  350.         rootme=`pwd` ; export rootme ; \
  351.         (cd ./deja-gnu; $(MAKE) $(FLAGS_TO_PASS) all) ; \
  352.     else \
  353.         true ; \
  354.     fi
  355.  
  356. clean-deja-gnu: force
  357.     @if [ -f ./deja-gnu/Makefile ] ; then \
  358.         rootme=`pwd` ; export rootme ; \
  359.         (cd ./deja-gnu;    $(MAKE) $(FLAGS_TO_PASS) clean) ; \
  360.     else \
  361.         true ; \
  362.     fi
  363.  
  364. install-deja-gnu: force
  365.     @if [ -f ./deja-gnu/Makefile ] ; then \
  366.         rootme=`pwd` ; export rootme ; \
  367.         (cd ./deja-gnu;    $(MAKE) $(FLAGS_TO_PASS) install) ; \
  368.     else \
  369.         true ; \
  370.     fi
  371.  
  372. ### autoconf
  373. all-autoconf: force
  374.     @if [ -f ./autoconf/Makefile ] ; then \
  375.         rootme=`pwd` ; export rootme ; \
  376.         (cd ./autoconf; $(MAKE) $(FLAGS_TO_PASS) all) ; \
  377.     else \
  378.         true ; \
  379.     fi
  380.  
  381. clean-autoconf: force
  382.     @if [ -f ./autoconf/Makefile ] ; then \
  383.         rootme=`pwd` ; export rootme ; \
  384.         (cd ./autoconf;    $(MAKE) $(FLAGS_TO_PASS) clean) ; \
  385.     else \
  386.         true ; \
  387.     fi
  388.  
  389. install-autoconf: force
  390.     @if [ -f ./autoconf/Makefile ] ; then \
  391.         rootme=`pwd` ; export rootme ; \
  392.         (cd ./autoconf;    $(MAKE) $(FLAGS_TO_PASS) install) ; \
  393.     else \
  394.         true ; \
  395.     fi
  396.  
  397. ### etc
  398. all-etc: force
  399.     @if [ -f ./etc/Makefile ] ; then \
  400.         rootme=`pwd` ; export rootme ; \
  401.         (cd ./etc; $(MAKE) $(FLAGS_TO_PASS) all) ; \
  402.     else \
  403.         true ; \
  404.     fi
  405.  
  406. clean-etc: force
  407.     @if [ -f ./etc/Makefile ] ; then \
  408.         rootme=`pwd` ; export rootme ; \
  409.         (cd ./etc; $(MAKE) $(FLAGS_TO_PASS) clean) ; \
  410.     else \
  411.         true ; \
  412.     fi
  413.  
  414. install-etc: force
  415.     @if [ -f ./etc/Makefile ] ; then \
  416.         rootme=`pwd` ; export rootme ; \
  417.         (cd ./etc; $(MAKE) $(FLAGS_TO_PASS) install) ; \
  418.     else \
  419.         true ; \
  420.     fi
  421.  
  422. ### libiberty
  423. all-libiberty: force
  424.     @if [ -f ./libiberty/Makefile ] ; then \
  425.         rootme=`pwd` ; export rootme ; \
  426.         (cd ./libiberty; \
  427.         $(MAKE) $(FLAGS_TO_PASS) all) ; \
  428.     else \
  429.         true ; \
  430.     fi
  431.  
  432. clean-libiberty: force
  433.     @if [ -f ./libiberty/Makefile ] ; then \
  434.         rootme=`pwd` ; export rootme ; \
  435.         (cd ./libiberty; \
  436.         $(MAKE) $(FLAGS_TO_PASS) clean) ; \
  437.     else \
  438.         true ; \
  439.     fi
  440.  
  441. install-libiberty: force
  442.     @if [ -f ./libiberty/Makefile ] ; then \
  443.         rootme=`pwd` ; export rootme ; \
  444.         (cd ./libiberty; \
  445.         $(MAKE) $(FLAGS_TO_PASS) install) ; \
  446.     else \
  447.         true ; \
  448.     fi
  449.  
  450. ### xiberty
  451. all-xiberty: all-gcc all-newlib
  452.     @if [ -f ./xiberty/Makefile ] ; then \
  453.         rootme=`pwd` ; export rootme ; \
  454.         srcroot=`cd $(srcdir); pwd`; export srcroot ; \
  455.         (cd ./xiberty; \
  456.         $(MAKE) $(FLAGS_TO_PASS) all) ; \
  457.     else \
  458.         true ; \
  459.     fi
  460.  
  461. clean-xiberty: force
  462.     @if [ -f ./xiberty/Makefile ] ; then \
  463.         rootme=`pwd` ; export rootme ; \
  464.         srcroot=`cd $(srcdir); pwd`; export srcroot ; \
  465.         (cd ./xiberty; \
  466.         $(MAKE) $(FLAGS_TO_PASS) clean) ; \
  467.     else \
  468.         true ; \
  469.     fi
  470.  
  471. install-xiberty: force
  472.     @if [ -f ./xiberty/Makefile ] ; then \
  473.         rootme=`pwd` ; export rootme ; \
  474.         srcroot=`cd $(srcdir); pwd`; export srcroot ; \
  475.         (cd ./xiberty; \
  476.         $(MAKE) $(FLAGS_TO_PASS) install) ; \
  477.     else \
  478.         true ; \
  479.     fi
  480.  
  481. ### mmalloc
  482. all-mmalloc: force
  483.     @if [ -f ./mmalloc/Makefile ] ; then \
  484.         rootme=`pwd` ; export rootme ; \
  485.         (cd ./mmalloc; \
  486.         $(MAKE) $(FLAGS_TO_PASS) all) ; \
  487.     else \
  488.         true ; \
  489.     fi
  490.  
  491. clean-mmalloc: force
  492.     @if [ -f ./mmalloc/Makefile ] ; then \
  493.         rootme=`pwd` ; export rootme ; \
  494.         (cd ./mmalloc; \
  495.         $(MAKE) $(FLAGS_TO_PASS) clean) ; \
  496.     else \
  497.         true ; \
  498.     fi
  499.  
  500. install-mmalloc: force
  501.     @if [ -f ./mmalloc/Makefile ] ; then \
  502.         rootme=`pwd` ; export rootme ; \
  503.         (cd ./mmalloc; \
  504.         $(MAKE) $(FLAGS_TO_PASS) install) ; \
  505.     else \
  506.         true ; \
  507.     fi
  508.  
  509. ### texinfo
  510. all-texinfo: all-libiberty
  511.     @if [ -f ./texinfo/Makefile ] ; then \
  512.         rootme=`pwd` ; export rootme ; \
  513.         (cd ./texinfo; \
  514.         $(MAKE) $(FLAGS_TO_PASS) all) ; \
  515.     else \
  516.         true ; \
  517.     fi
  518.  
  519. clean-texinfo: force
  520.     @if [ -f ./texinfo/Makefile ] ; then \
  521.         rootme=`pwd` ; export rootme ; \
  522.         (cd ./texinfo; \
  523.         $(MAKE) $(FLAGS_TO_PASS) clean) ; \
  524.     else \
  525.         true ; \
  526.     fi
  527.  
  528. install-texinfo: force
  529.     @if [ -f ./texinfo/Makefile ] ; then \
  530.         rootme=`pwd` ; export rootme ; \
  531.         (cd ./texinfo; \
  532.         $(MAKE) $(FLAGS_TO_PASS) install) ; \
  533.     else \
  534.         true ; \
  535.     fi
  536.  
  537. ### bfd
  538. all-bfd: force
  539.     @if [ -f ./bfd/Makefile ] ; then \
  540.         rootme=`pwd` ; export rootme ; \
  541.         (cd ./bfd; \
  542.         $(MAKE) $(FLAGS_TO_PASS) all) ; \
  543.     else \
  544.         true ; \
  545.     fi
  546.  
  547. clean-bfd: force
  548.     @if [ -f ./bfd/Makefile ] ; then \
  549.         rootme=`pwd` ; export rootme ; \
  550.         (cd ./bfd; \
  551.         $(MAKE) $(FLAGS_TO_PASS) clean) ; \
  552.     else \
  553.         true ; \
  554.     fi
  555.  
  556. install-bfd: force
  557.     @if [ -f ./bfd/Makefile ] ; then \
  558.         rootme=`pwd` ; export rootme ; \
  559.         (cd ./bfd; \
  560.         $(MAKE) $(FLAGS_TO_PASS) install) ; \
  561.     else \
  562.         true ; \
  563.     fi
  564.  
  565.  
  566. ### opcodes
  567. all-opcodes: force
  568.     @if [ -f ./opcodes/Makefile ] ; then \
  569.         rootme=`pwd` ; export rootme ; \
  570.         (cd ./opcodes; \
  571.         $(MAKE) $(FLAGS_TO_PASS) all) ; \
  572.     else \
  573.         true ; \
  574.     fi
  575.  
  576. clean-opcodes: force
  577.     @if [ -f ./opcodes/Makefile ] ; then \
  578.         rootme=`pwd` ; export rootme ; \
  579.         (cd ./opcodes; \
  580.         $(MAKE) $(FLAGS_TO_PASS) clean) ; \
  581.     else \
  582.         true ; \
  583.     fi
  584.  
  585. install-opcodes: force
  586.     @if [ -f ./opcodes/Makefile ] ; then \
  587.         rootme=`pwd` ; export rootme ; \
  588.         (cd ./opcodes; \
  589.         $(MAKE) $(FLAGS_TO_PASS) install) ; \
  590.     else \
  591.         true ; \
  592.     fi
  593.  
  594. ### binutils
  595. all-binutils: all-opcodes all-libiberty all-bfd all-flex
  596.     @if [ -f ./binutils/Makefile ] ; then \
  597.         rootme=`pwd` ; export rootme ; \
  598.         (cd ./binutils; \
  599.         $(MAKE) $(FLAGS_TO_PASS) all) ; \
  600.     else \
  601.         true ; \
  602.     fi
  603.  
  604. clean-binutils: force
  605.     @if [ -f ./binutils/Makefile ] ; then \
  606.         rootme=`pwd` ; export rootme ; \
  607.         (cd ./binutils; \
  608.         $(MAKE) $(FLAGS_TO_PASS) clean) ; \
  609.     else \
  610.         true ; \
  611.     fi
  612.  
  613. install-binutils: force
  614.     @if [ -f ./binutils/Makefile ] ; then \
  615.         rootme=`pwd` ; export rootme ; \
  616.         (cd ./binutils; \
  617.         $(MAKE) $(FLAGS_TO_PASS) install) ; \
  618.     else \
  619.         true ; \
  620.     fi
  621.  
  622. ### newlib
  623. all-newlib: all-binutils all-ld all-gas all-gcc
  624.     @if [ -f ./newlib/Makefile ] ; then \
  625.         rootme=`pwd` ; export rootme ; \
  626.         srcroot=`cd $(srcdir); pwd` ; export srcroot ; \
  627.         (cd ./newlib; \
  628.         $(MAKE) $(TARGET_FLAGS_TO_PASS) all) ; \
  629.     else \
  630.         true ; \
  631.     fi
  632.  
  633. clean-newlib: force
  634.     @if [ -f ./newlib/Makefile ] ; then \
  635.         rootme=`pwd` ; export rootme ; \
  636.         srcroot=`cd $(srcdir); pwd` ; export srcroot ; \
  637.         (cd ./newlib; \
  638.         $(MAKE) $(TARGET_FLAGS_TO_PASS) clean) ; \
  639.     else \
  640.         true ; \
  641.     fi
  642.  
  643. install-newlib: force
  644.     @if [ -f ./newlib/Makefile ] ; then \
  645.         rootme=`pwd` ; export rootme ; \
  646.         srcroot=`cd $(srcdir); pwd` ; export srcroot ; \
  647.         (cd ./newlib; \
  648.         $(MAKE) $(TARGET_FLAGS_TO_PASS) install) ; \
  649.     else \
  650.         true ; \
  651.     fi
  652.  
  653. ### gprof
  654. all-gprof: all-libiberty all-bfd
  655.     @if [ -f ./gprof/Makefile ] ; then \
  656.         rootme=`pwd` ; export rootme ; \
  657.         (cd ./gprof; \
  658.         $(MAKE) $(FLAGS_TO_PASS) all) ; \
  659.     else \
  660.         true ; \
  661.     fi
  662.  
  663. clean-gprof: force
  664.     @if [ -f ./gprof/Makefile ] ; then \
  665.         rootme=`pwd` ; export rootme ; \
  666.         (cd ./gprof; \
  667.         $(MAKE) $(FLAGS_TO_PASS) clean) ; \
  668.     else \
  669.         true ; \
  670.     fi
  671.  
  672. install-gprof: force
  673.     @if [ -f ./gprof/Makefile ] ; then \
  674.         rootme=`pwd` ; export rootme ; \
  675.         (cd ./gprof; \
  676.         $(MAKE) $(FLAGS_TO_PASS) install) ; \
  677.     else \
  678.         true ; \
  679.     fi
  680.  
  681. ### byacc
  682. all-byacc: force
  683.     @if [ -f ./byacc/Makefile ] ; then \
  684.         rootme=`pwd` ; export rootme ; \
  685.         (cd ./byacc; \
  686.         $(MAKE) $(FLAGS_TO_PASS) all) ; \
  687.     else \
  688.         true ; \
  689.     fi
  690.  
  691. clean-byacc: force
  692.     @if [ -f ./byacc/Makefile ] ; then \
  693.         rootme=`pwd` ; export rootme ; \
  694.         (cd ./byacc; \
  695.         $(MAKE) $(FLAGS_TO_PASS) clean) ; \
  696.     else \
  697.         true ; \
  698.     fi
  699.  
  700. install-byacc: force
  701.     @if [ -f ./byacc/Makefile ] ; then \
  702.         rootme=`pwd` ; export rootme ; \
  703.         (cd ./byacc; \
  704.         $(MAKE) $(FLAGS_TO_PASS) install) ; \
  705.     else \
  706.         true ; \
  707.     fi
  708.  
  709. ### flex
  710. all-flex: all-libiberty
  711.     @if [ -f ./flex/Makefile ] ; then \
  712.         rootme=`pwd` ; export rootme ; \
  713.         (cd ./flex; \
  714.         $(MAKE) $(FLAGS_TO_PASS) all) ; \
  715.     else \
  716.         true ; \
  717.     fi
  718.  
  719. clean-flex: force
  720.     @if [ -f ./flex/Makefile ] ; then \
  721.         rootme=`pwd` ; export rootme ; \
  722.         (cd ./flex; \
  723.         $(MAKE) $(FLAGS_TO_PASS) clean) ; \
  724.     else \
  725.         true ; \
  726.     fi
  727.  
  728. install-flex: force
  729.     @if [ -f ./flex/Makefile ] ; then \
  730.         rootme=`pwd` ; export rootme ; \
  731.         (cd ./flex; \
  732.         $(MAKE) $(FLAGS_TO_PASS) install) ; \
  733.     else \
  734.         true ; \
  735.     fi
  736. ### gcc
  737. all-gcc: all-libiberty all-byacc all-binutils
  738.     @if [ -f ./gcc/Makefile ] ; then \
  739.         rootme=`pwd` ; export rootme ; \
  740.         (cd ./gcc; \
  741.         $(MAKE) $(FLAGS_TO_PASS) all) ; \
  742.     else \
  743.         true ; \
  744.     fi
  745.  
  746. clean-gcc: force
  747.     @if [ -f ./gcc/Makefile ] ; then \
  748.         rootme=`pwd` ; export rootme ; \
  749.         (cd ./gcc; \
  750.         $(MAKE) $(FLAGS_TO_PASS) clean) ; \
  751.     else \
  752.         true ; \
  753.     fi
  754.  
  755. install-gcc: force
  756.     @if [ -f ./gcc/Makefile ] ; then \
  757.         rootme=`pwd` ; export rootme ; \
  758.         (cd ./gcc; \
  759.         $(MAKE) $(FLAGS_TO_PASS) install) ; \
  760.     else \
  761.         true ; \
  762.     fi
  763.  
  764. ### readline
  765. all-readline: force
  766.     @if [ -f ./readline/Makefile ] ; then \
  767.         rootme=`pwd` ; export rootme ; \
  768.         (cd ./readline; \
  769.         $(MAKE) $(FLAGS_TO_PASS) all) ; \
  770.     else \
  771.         true ; \
  772.     fi
  773.  
  774. clean-readline: force
  775.     @if [ -f ./readline/Makefile ] ; then \
  776.         rootme=`pwd` ; export rootme ; \
  777.         (cd ./readline; \
  778.         $(MAKE) $(FLAGS_TO_PASS) clean) ; \
  779.     else \
  780.         true ; \
  781.     fi
  782.  
  783. install-readline: force
  784.     @if [ -f ./readline/Makefile ] ; then \
  785.         rootme=`pwd` ; export rootme ; \
  786.         (cd ./readline; \
  787.         $(MAKE) $(FLAGS_TO_PASS) install) ; \
  788.     else \
  789.         true ; \
  790.     fi
  791.  
  792. ### glob
  793. all-glob: force
  794.     @if [ -f ./glob/Makefile ] ; then \
  795.         rootme=`pwd` ; export rootme ; \
  796.         (cd ./glob; \
  797.         $(MAKE) $(FLAGS_TO_PASS) all) ; \
  798.     else \
  799.         true ; \
  800.     fi
  801.  
  802. clean-glob: force
  803.     @if [ -f ./glob/Makefile ] ; then \
  804.         rootme=`pwd` ; export rootme ; \
  805.         (cd ./glob; \
  806.         $(MAKE) $(FLAGS_TO_PASS) clean) ; \
  807.     else \
  808.         true ; \
  809.     fi
  810.  
  811. install-glob: force
  812.     @if [ -f ./glob/Makefile ] ; then \
  813.         rootme=`pwd` ; export rootme ; \
  814.         (cd ./glob; \
  815.         $(MAKE) $(FLAGS_TO_PASS) install) ; \
  816.     else \
  817.         true ; \
  818.     fi
  819.  
  820. ### gas
  821. all-gas: all-libiberty all-opcodes all-bfd
  822.     @if [ -f ./gas/Makefile ] ; then \
  823.         rootme=`pwd` ; export rootme ; \
  824.         (cd ./gas; \
  825.         $(MAKE) $(FLAGS_TO_PASS) all) ; \
  826.     else \
  827.         true ; \
  828.     fi
  829.  
  830. clean-gas: force
  831.     @if [ -f ./gas/Makefile ] ; then \
  832.         rootme=`pwd` ; export rootme ; \
  833.         (cd ./gas; \
  834.         $(MAKE) $(FLAGS_TO_PASS) clean) ; \
  835.     else \
  836.         true ; \
  837.     fi
  838.  
  839. install-gas: force
  840.     @if [ -f ./gas/Makefile ] ; then \
  841.         rootme=`pwd` ; export rootme ; \
  842.         (cd ./gas; \
  843.         $(MAKE) $(FLAGS_TO_PASS) install) ; \
  844.     else \
  845.         true ; \
  846.     fi
  847.  
  848. ### gas
  849. all-tgas: all-libiberty all-bfd
  850.     @if [ -f ./tgas/Makefile ] ; then \
  851.         rootme=`pwd` ; export rootme ; \
  852.         (cd ./tgas; \
  853.         $(MAKE) $(FLAGS_TO_PASS) all) ; \
  854.     else \
  855.         true ; \
  856.     fi
  857.  
  858.  
  859. ### ld
  860. all-ld: all-libiberty all-bfd all-byacc all-flex
  861.     @if [ -f ./ld/Makefile ] ; then \
  862.         rootme=`pwd` ; export rootme ; \
  863.         (cd ./ld; \
  864.         $(MAKE) $(FLAGS_TO_PASS) all) ; \
  865.     else \
  866.         true ; \
  867.     fi
  868.  
  869. clean-ld: force
  870.     @if [ -f ./ld/Makefile ] ; then \
  871.         rootme=`pwd` ; export rootme ; \
  872.         (cd ./ld; \
  873.         $(MAKE) $(FLAGS_TO_PASS) clean) ; \
  874.     else \
  875.         true ; \
  876.     fi
  877.  
  878. install-ld: force
  879.     @if [ -f ./ld/Makefile ] ; then \
  880.         rootme=`pwd` ; export rootme ; \
  881.         (cd ./ld; \
  882.         $(MAKE) $(FLAGS_TO_PASS) install) ; \
  883.     else \
  884.         true ; \
  885.     fi
  886.  
  887. ### gdb
  888. all-gdb: all-bfd all-opcodes all-libiberty all-mmalloc all-readline all-glob all-byacc
  889.     @if [ -f ./gdb/Makefile ] ; then \
  890.         rootme=`pwd` ; export rootme ; \
  891.         (cd ./gdb; \
  892.         $(MAKE) $(FLAGS_TO_PASS) all) ; \
  893.     else \
  894.         true ; \
  895.     fi
  896.  
  897. clean-gdb: force
  898.     @if [ -f ./gdb/Makefile ] ; then \
  899.         rootme=`pwd` ; export rootme ; \
  900.         (cd ./gdb; \
  901.         $(MAKE) $(FLAGS_TO_PASS) clean) ; \
  902.     else \
  903.         true ; \
  904.     fi
  905.  
  906. install-gdb: force
  907.     @if [ -f ./gdb/Makefile ] ; then \
  908.         rootme=`pwd` ; export rootme ; \
  909.         (cd ./gdb; \
  910.         $(MAKE) $(FLAGS_TO_PASS) install) ; \
  911.     else \
  912.         true ; \
  913.     fi
  914.  
  915. ### make
  916. all-make: all-libiberty
  917.     @if [ -f ./make/Makefile ] ; then \
  918.         rootme=`pwd` ; export rootme ; \
  919.         (cd ./make; \
  920.         $(MAKE) $(FLAGS_TO_PASS) all) ; \
  921.     else \
  922.         true ; \
  923.     fi
  924.  
  925. clean-make: force
  926.     @if [ -f ./make/Makefile ] ; then \
  927.         rootme=`pwd` ; export rootme ; \
  928.         (cd ./make; \
  929.         $(MAKE) $(FLAGS_TO_PASS) clean) ; \
  930.     else \
  931.         true ; \
  932.     fi
  933.  
  934. install-make: force
  935.     @if [ -f ./make/Makefile ] ; then \
  936.         rootme=`pwd` ; export rootme ; \
  937.         (cd ./make; \
  938.         $(MAKE) $(FLAGS_TO_PASS) install) ; \
  939.     else \
  940.         true ; \
  941.     fi
  942.  
  943. ### diff
  944. all-diff: force
  945.     @if [ -f ./diff/Makefile ] ; then \
  946.         rootme=`pwd` ; export rootme ; \
  947.         (cd ./diff; \
  948.         $(MAKE) $(FLAGS_TO_PASS) all) ; \
  949.     else \
  950.         true ; \
  951.     fi
  952.  
  953. clean-diff: force
  954.     @if [ -f ./diff/Makefile ] ; then \
  955.         rootme=`pwd` ; export rootme ; \
  956.         (cd ./diff; \
  957.         $(MAKE) $(FLAGS_TO_PASS) clean) ; \
  958.     else \
  959.         true ; \
  960.     fi
  961.  
  962. install-diff: force
  963.     @if [ -f ./diff/Makefile ] ; then \
  964.         rootme=`pwd` ; export rootme ; \
  965.         (cd ./diff/; \
  966.         $(MAKE) $(FLAGS_TO_PASS) install) ; \
  967.     else \
  968.         true ; \
  969.     fi
  970.  
  971. ### grep
  972. all-grep: force
  973.     @if [ -f ./grep/Makefile ] ; then \
  974.         rootme=`pwd` ; export rootme ; \
  975.         (cd ./grep; \
  976.         $(MAKE) $(FLAGS_TO_PASS) all) ; \
  977.     else \
  978.         true ; \
  979.     fi
  980.  
  981. clean-grep: force
  982.     @if [ -f ./grep/Makefile ] ; then \
  983.         rootme=`pwd` ; export rootme ; \
  984.         (cd ./grep; \
  985.         $(MAKE) $(FLAGS_TO_PASS) clean) ; \
  986.     else \
  987.         true ; \
  988.     fi
  989.  
  990. install-grep: force
  991.     @if [ -f ./grep/Makefile ] ; then \
  992.         rootme=`pwd` ; export rootme ; \
  993.         (cd ./grep; \
  994.         $(MAKE) $(FLAGS_TO_PASS) install) ; \
  995.     else \
  996.         true ; \
  997.     fi
  998.  
  999. ### rcs
  1000. all-rcs: force
  1001.     @if [ -f ./rcs/Makefile ] ; then \
  1002.         rootme=`pwd` ; export rootme ; \
  1003.         (cd ./rcs; \
  1004.         $(MAKE) $(FLAGS_TO_PASS) all) ; \
  1005.     else \
  1006.         true ; \
  1007.     fi
  1008.  
  1009. clean-rcs: force
  1010.     @if [ -f ./rcs/Makefile ] ; then \
  1011.         rootme=`pwd` ; export rootme ; \
  1012.         (cd ./rcs; \
  1013.         $(MAKE) $(FLAGS_TO_PASS) clean) ; \
  1014.     else \
  1015.         true ; \
  1016.     fi
  1017.  
  1018. install-rcs: force
  1019.     @if [ -f ./rcs/Makefile ] ; then \
  1020.         rootme=`pwd` ; export rootme ; \
  1021.         (cd ./rcs; \
  1022.         $(MAKE) $(FLAGS_TO_PASS) install) ; \
  1023.     else \
  1024.         true ; \
  1025.     fi
  1026.  
  1027. ### cvs
  1028. all-cvs: force
  1029.     @if [ -f ./cvs/Makefile ] ; then \
  1030.         rootme=`pwd` ; export rootme ; \
  1031.         (cd ./cvs; \
  1032.         $(MAKE) $(FLAGS_TO_PASS) all) ; \
  1033.     else \
  1034.         true ; \
  1035.     fi
  1036.  
  1037. clean-cvs: force
  1038.     @if [ -f ./cvs/Makefile ] ; then \
  1039.         rootme=`pwd` ; export rootme ; \
  1040.         (cd ./cvs; \
  1041.         $(MAKE) $(FLAGS_TO_PASS) clean) ; \
  1042.     else \
  1043.         true ; \
  1044.     fi
  1045.  
  1046. install-cvs: force
  1047.     @if [ -f ./cvs/Makefile ] ; then \
  1048.         rootme=`pwd` ; export rootme ; \
  1049.         (cd ./cvs; \
  1050.         $(MAKE) $(FLAGS_TO_PASS) install) ; \
  1051.     else \
  1052.         true ; \
  1053.     fi
  1054.  
  1055. ### patch
  1056. all-patch: force
  1057.     @if [ -f ./patch/Makefile ] ; then \
  1058.         rootme=`pwd` ; export rootme ; \
  1059.         (cd ./patch; \
  1060.         $(MAKE) $(FLAGS_TO_PASS) all) ; \
  1061.     else \
  1062.         true ; \
  1063.     fi
  1064.  
  1065. clean-patch: force
  1066.     @if [ -f ./patch/Makefile ] ; then \
  1067.         rootme=`pwd` ; export rootme ; \
  1068.         (cd ./patch; \
  1069.         $(MAKE) $(FLAGS_TO_PASS) clean) ; \
  1070.     else \
  1071.         true ; \
  1072.     fi
  1073.  
  1074. install-patch: force
  1075.     @if [ -f ./patch/Makefile ] ; then \
  1076.         rootme=`pwd` ; export rootme ; \
  1077.         (cd ./patch; \
  1078.         $(MAKE) $(FLAGS_TO_PASS) \
  1079.             bindir=$(bindir) \
  1080.             man1dir=$(man1dir) install) ; \
  1081.     else \
  1082.         true ; \
  1083.     fi
  1084.  
  1085. ### emacs
  1086. all-emacs: force
  1087.     @if [ -f ./emacs/Makefile ] ; then \
  1088.         rootme=`pwd` ; export rootme ; \
  1089.         (cd ./emacs; \
  1090.         $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all) ; \
  1091.     else \
  1092.         true ; \
  1093.     fi
  1094.  
  1095. clean-emacs: force
  1096.     @if [ -f ./emacs/Makefile ] ; then \
  1097.         rootme=`pwd` ; export rootme ; \
  1098.         (cd ./emacs; \
  1099.         $(MAKE) $(FLAGS_TO_PASS) clean) ; \
  1100.     else \
  1101.         true ; \
  1102.     fi
  1103.  
  1104. install-emacs: force
  1105.     @if [ -f ./emacs/Makefile ] ; then \
  1106.         rootme=`pwd` ; export rootme ; \
  1107.         (cd ./emacs; \
  1108.         $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install) ; \
  1109.     else \
  1110.         true ; \
  1111.     fi
  1112.  
  1113. ### ispell
  1114. all-ispell: all-emacs
  1115.     @if [ -f ./ispell/Makefile ] ; then \
  1116.         rootme=`pwd` ; export rootme ; \
  1117.         (cd ./ispell; \
  1118.         $(MAKE) $(FLAGS_TO_PASS) all) ; \
  1119.     else \
  1120.         true ; \
  1121.     fi
  1122.  
  1123. clean-ispell: force
  1124.     @if [ -f ./ispell/Makefile ] ; then \
  1125.         rootme=`pwd` ; export rootme ; \
  1126.         (cd ./ispell; \
  1127.         $(MAKE) $(FLAGS_TO_PASS) clean) ; \
  1128.     else \
  1129.         true ; \
  1130.     fi
  1131.  
  1132. install-ispell: force
  1133.     @if [ -f ./ispell/Makefile ] ; then \
  1134.         rootme=`pwd` ; export rootme ; \
  1135.         (cd ./ispell; \
  1136.         $(MAKE) $(FLAGS_TO_PASS) install) ; \
  1137.     else \
  1138.         true ; \
  1139.     fi
  1140.  
  1141. ### send_pr
  1142. all-send_pr: force
  1143.     @if [ -f ./send_pr/Makefile ] ; then \
  1144.         rootme=`pwd` ; export rootme ; \
  1145.         (cd ./send_pr; \
  1146.         $(MAKE) $(FLAGS_TO_PASS) all) ; \
  1147.     else \
  1148.         true ; \
  1149.     fi
  1150.  
  1151. clean-send_pr: force
  1152.     @if [ -f ./send_pr/Makefile ] ; then \
  1153.         rootme=`pwd` ; export rootme ; \
  1154.         (cd ./send_pr; \
  1155.         $(MAKE) $(FLAGS_TO_PASS) clean) ; \
  1156.     else \
  1157.         true ; \
  1158.     fi
  1159.  
  1160. install-send_pr: force
  1161.     @if [ -f ./send_pr/Makefile ] ; then \
  1162.         rootme=`pwd` ; export rootme ; \
  1163.         (cd ./send_pr; \
  1164.         $(MAKE) $(FLAGS_TO_PASS) install) ; \
  1165.     else \
  1166.         true ; \
  1167.     fi
  1168.  
  1169. ### libm
  1170. all-libm: force
  1171.     @if [ -f ./libm/Makefile ] ; then \
  1172.         rootme=`pwd` ; export rootme ; \
  1173.         (cd ./libm; \
  1174.         $(MAKE) $(FLAGS_TO_PASS) all) ; \
  1175.     else \
  1176.         true ; \
  1177.     fi
  1178.  
  1179. clean-libm: force
  1180.     @if [ -f ./libm/Makefile ] ; then \
  1181.         rootme=`pwd` ; export rootme ; \
  1182.         (cd ./libm; \
  1183.         $(MAKE) $(FLAGS_TO_PASS) clean) ; \
  1184.     else \
  1185.         true ; \
  1186.     fi
  1187.  
  1188. install-libm: force
  1189.     @if [ -f ./libm/Makefile ] ; then \
  1190.         rootme=`pwd` ; export rootme ; \
  1191.         (cd ./libm; \
  1192.         $(MAKE) $(FLAGS_TO_PASS) install) ; \
  1193.     else \
  1194.         true ; \
  1195.     fi
  1196.  
  1197. ### libg++
  1198.  
  1199. all-libg++: all-gas all-ld all-gcc all-xiberty
  1200.     @if [ -f ./libg++/Makefile ] ; then \
  1201.         rootme=`pwd` ; export rootme ; \
  1202.         srcroot=`cd $(srcdir); pwd` ; export srcroot ; \
  1203.         (cd ./libg++; \
  1204.         $(MAKE) $(TARGET_FLAGS_TO_PASS) all) ; \
  1205.     else \
  1206.         true ; \
  1207.     fi
  1208.  
  1209. clean-libg++: force
  1210.     @if [ -f ./libg++/Makefile ] ; then \
  1211.         rootme=`pwd` ; export rootme ; \
  1212.         srcroot=`cd $(srcdir); pwd` ; export srcroot ; \
  1213.         (cd ./libg++; \
  1214.         $(MAKE) $(TARGET_FLAGS_TO_PASS) clean) ; \
  1215.     else \
  1216.         true ; \
  1217.     fi
  1218.  
  1219. install-libg++: force
  1220.     @if [ -f ./libg++/Makefile ] ; then \
  1221.         rootme=`pwd` ; export rootme ; \
  1222.         srcroot=`cd $(srcdir); pwd` ; export srcroot ; \
  1223.         (cd ./libg++; \
  1224.         $(MAKE) $(TARGET_FLAGS_TO_PASS) install) ; \
  1225.     else \
  1226.         true ; \
  1227.     fi
  1228. ### tcl
  1229. all-tcl: 
  1230.     @if [ -f ./tcl/Makefile ] ; then \
  1231.         rootme=`pwd` ; export rootme ; \
  1232.         srcroot=`cd $(srcdir); pwd`; export srcroot ; \
  1233.         (cd ./tcl; \
  1234.         $(MAKE) $(FLAGS_TO_PASS) all) ; \
  1235.     else \
  1236.         true ; \
  1237.     fi
  1238.  
  1239. clean-tcl: force
  1240.     @if [ -f ./tcl/Makefile ] ; then \
  1241.         rootme=`pwd` ; export rootme ; \
  1242.         srcroot=`cd $(srcdir); pwd`; export srcroot ; \
  1243.         (cd ./tcl; \
  1244.         $(MAKE) $(FLAGS_TO_PASS) clean) ; \
  1245.     else \
  1246.         true ; \
  1247.     fi
  1248.  
  1249. install-tcl: force
  1250.     @if [ -f ./tcl/Makefile ] ; then \
  1251.         rootme=`pwd` ; export rootme ; \
  1252.         srcroot=`cd $(srcdir); pwd`; export srcroot ; \
  1253.         (cd ./tcl; \
  1254.         $(MAKE) $(FLAGS_TO_PASS) install) ; \
  1255.     else \
  1256.         true ; \
  1257.     fi
  1258.  
  1259.  
  1260. ### tk
  1261. all-tk: all-tcl
  1262.     @if [ -f ./tk/Makefile ] ; then \
  1263.         rootme=`pwd` ; export rootme ; \
  1264.         srcroot=`cd $(srcdir); pwd`; export srcroot ; \
  1265.         (cd ./tk; \
  1266.         $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all) ; \
  1267.     else \
  1268.         true ; \
  1269.     fi
  1270.  
  1271. clean-tk: force
  1272.     @if [ -f ./tk/Makefile ] ; then \
  1273.         rootme=`pwd` ; export rootme ; \
  1274.         srcroot=`cd $(srcdir); pwd`; export srcroot ; \
  1275.         (cd ./tk; \
  1276.         $(MAKE) $(FLAGS_TO_PASS) clean) ; \
  1277.     else \
  1278.         true ; \
  1279.     fi
  1280.  
  1281. install-tk: force
  1282.     @if [ -f ./tk/Makefile ] ; then \
  1283.         rootme=`pwd` ; export rootme ; \
  1284.         srcroot=`cd $(srcdir); pwd`; export srcroot ; \
  1285.         (cd ./tk; \
  1286.         $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install) ; \
  1287.     else \
  1288.         true ; \
  1289.     fi
  1290.  
  1291. ### expect
  1292. all-expect: all-tcl
  1293.     @if [ -f ./expect/Makefile ] ; then \
  1294.         rootme=`pwd` ; export rootme ; \
  1295.         srcroot=`cd $(srcdir); pwd`; export srcroot ; \
  1296.         (cd ./expect; \
  1297.         $(MAKE) $(FLAGS_TO_PASS) all) ; \
  1298.     else \
  1299.         true ; \
  1300.     fi
  1301.  
  1302. clean-expect: force
  1303.     @if [ -f ./expect/Makefile ] ; then \
  1304.         rootme=`pwd` ; export rootme ; \
  1305.         srcroot=`cd $(srcdir); pwd`; export srcroot ; \
  1306.         (cd ./expect; \
  1307.         $(MAKE) $(FLAGS_TO_PASS) clean) ; \
  1308.     else \
  1309.         true ; \
  1310.     fi
  1311.  
  1312. install-expect: force
  1313.     @if [ -f ./expect/Makefile ] ; then \
  1314.         rootme=`pwd` ; export rootme ; \
  1315.         srcroot=`cd $(srcdir); pwd`; export srcroot ; \
  1316.         (cd ./expect; \
  1317.         $(MAKE) $(FLAGS_TO_PASS) install) ; \
  1318.     else \
  1319.         true ; \
  1320.     fi
  1321.  
  1322. ### z8ksim
  1323. all-z8ksim: all-bfd 
  1324.     @if [ -f ./z8ksim/Makefile ] ; then \
  1325.         rootme=`pwd` ; export rootme ; \
  1326.         (cd ./z8ksim; \
  1327.         $(MAKE) $(FLAGS_TO_PASS) all) ; \
  1328.     else \
  1329.         true ; \
  1330.     fi
  1331.  
  1332. clean-z8ksim: force
  1333.     @if [ -f ./z8ksim/Makefile ] ; then \
  1334.         rootme=`pwd` ; export rootme ; \
  1335.         (cd ./z8ksim; \
  1336.         $(MAKE) $(FLAGS_TO_PASS) clean) ; \
  1337.     else \
  1338.         true ; \
  1339.     fi
  1340.  
  1341. install-z8ksim: force
  1342.     @if [ -f ./z8ksim/Makefile ] ; then \
  1343.         rootme=`pwd` ; export rootme ; \
  1344.         (cd ./z8ksim; \
  1345.         $(MAKE) $(FLAGS_TO_PASS) install) ; \
  1346.     else \
  1347.         true ; \
  1348.     fi
  1349.  
  1350. ### fileutils
  1351. all-fileutils: force
  1352.     @if [ -f ./fileutils/Makefile ] ; then \
  1353.       rootme=`pwd` ; export rootme ; \
  1354.         (cd ./fileutils; $(MAKE) $(FLAGS_TO_PASS) all) ; \
  1355.     else \
  1356.         true ; \
  1357.     fi
  1358.  
  1359. clean-fileutils: force
  1360.     @if [ -f ./fileutils/Makefile ] ; then \
  1361.         rootme=`pwd` ; export rootme ; \
  1362.         (cd ./fileutils; $(MAKE) $(FLAGS_TO_PASS) clean) ; \
  1363.     else \
  1364.         true ; \
  1365.     fi
  1366.  
  1367. install-fileutils: force
  1368.     @if [ -f ./fileutils/Makefile ] ; then \
  1369.         rootme=`pwd` ; export rootme ; \
  1370.         (cd ./fileutils; $(MAKE) $(FLAGS_TO_PASS) install) ; \
  1371.     else \
  1372.         true ; \
  1373.     fi
  1374.  
  1375. ### find
  1376. all-find: force
  1377.     @if [ -f ./find/Makefile ] ; then \
  1378.       rootme=`pwd` ; export rootme ; \
  1379.         (cd ./find; $(MAKE) $(FLAGS_TO_PASS) all) ; \
  1380.     else \
  1381.         true ; \
  1382.     fi
  1383.  
  1384. clean-find: force
  1385.     @if [ -f ./find/Makefile ] ; then \
  1386.         rootme=`pwd` ; export rootme ; \
  1387.         (cd ./find; $(MAKE) $(FLAGS_TO_PASS) clean) ; \
  1388.     else \
  1389.         true ; \
  1390.     fi
  1391.  
  1392. install-find: force
  1393.     @if [ -f ./find/Makefile ] ; then \
  1394.         rootme=`pwd` ; export rootme ; \
  1395.         (cd ./find; $(MAKE) $(FLAGS_TO_PASS) install) ; \
  1396.     else \
  1397.         true ; \
  1398.     fi
  1399.  
  1400. ### gawk
  1401. all-gawk: force
  1402.     @if [ -f ./gawk/Makefile ] ; then \
  1403.       rootme=`pwd` ; export rootme ; \
  1404.         (cd ./gawk; $(MAKE) $(FLAGS_TO_PASS) all) ; \
  1405.     else \
  1406.         true ; \
  1407.     fi
  1408.  
  1409. clean-gawk: force
  1410.     @if [ -f ./gawk/Makefile ] ; then \
  1411.         rootme=`pwd` ; export rootme ; \
  1412.         (cd ./gawk; $(MAKE) $(FLAGS_TO_PASS) clean) ; \
  1413.     else \
  1414.         true ; \
  1415.     fi
  1416.  
  1417. install-gawk: force
  1418.     @if [ -f ./gawk/Makefile ] ; then \
  1419.         rootme=`pwd` ; export rootme ; \
  1420.         (cd ./gawk; $(MAKE) $(FLAGS_TO_PASS) install) ; \
  1421.     else \
  1422.         true ; \
  1423.     fi
  1424.  
  1425. ### m4
  1426. all-m4: force
  1427.     @if [ -f ./m4/Makefile ] ; then \
  1428.       rootme=`pwd` ; export rootme ; \
  1429.         (cd ./m4; $(MAKE) $(FLAGS_TO_PASS) all) ; \
  1430.     else \
  1431.         true ; \
  1432.     fi
  1433.  
  1434. clean-m4: force
  1435.     @if [ -f ./m4/Makefile ] ; then \
  1436.         rootme=`pwd` ; export rootme ; \
  1437.         (cd ./m4; $(MAKE) $(FLAGS_TO_PASS) clean) ; \
  1438.     else \
  1439.         true ; \
  1440.     fi
  1441.  
  1442. install-m4: force
  1443.     @if [ -f ./m4/Makefile ] ; then \
  1444.         rootme=`pwd` ; export rootme ; \
  1445.         (cd ./m4; $(MAKE) $(FLAGS_TO_PASS) install) ; \
  1446.     else \
  1447.         true ; \
  1448.     fi
  1449.  
  1450. ### sed
  1451. all-sed: force
  1452.     @if [ -f ./sed/Makefile ] ; then \
  1453.       rootme=`pwd` ; export rootme ; \
  1454.         (cd ./sed; $(MAKE) $(FLAGS_TO_PASS) all) ; \
  1455.     else \
  1456.         true ; \
  1457.     fi
  1458.  
  1459. clean-sed: force
  1460.     @if [ -f ./sed/Makefile ] ; then \
  1461.         rootme=`pwd` ; export rootme ; \
  1462.         (cd ./sed; $(MAKE) $(FLAGS_TO_PASS) clean) ; \
  1463.     else \
  1464.         true ; \
  1465.     fi
  1466.  
  1467. install-sed: force
  1468.     @if [ -f ./sed/Makefile ] ; then \
  1469.         rootme=`pwd` ; export rootme ; \
  1470.         (cd ./sed; $(MAKE) $(FLAGS_TO_PASS) install) ; \
  1471.     else \
  1472.         true ; \
  1473.     fi
  1474.  
  1475. ### time
  1476. all-time: force
  1477.     @if [ -f ./time/Makefile ] ; then \
  1478.       rootme=`pwd` ; export rootme ; \
  1479.         (cd ./time; $(MAKE) $(FLAGS_TO_PASS) all) ; \
  1480.     else \
  1481.         true ; \
  1482.     fi
  1483.  
  1484. clean-time: force
  1485.     @if [ -f ./time/Makefile ] ; then \
  1486.         rootme=`pwd` ; export rootme ; \
  1487.         (cd ./time; $(MAKE) $(FLAGS_TO_PASS) clean) ; \
  1488.     else \
  1489.         true ; \
  1490.     fi
  1491.  
  1492. install-time: force
  1493.     @if [ -f ./time/Makefile ] ; then \
  1494.         rootme=`pwd` ; export rootme ; \
  1495.         (cd ./time; $(MAKE) $(FLAGS_TO_PASS) install) ; \
  1496.     else \
  1497.         true ; \
  1498.     fi
  1499.  
  1500. ### wdiff
  1501. all-wdiff: force
  1502.     @if [ -f ./wdiff/Makefile ] ; then \
  1503.       rootme=`pwd` ; export rootme ; \
  1504.         (cd ./wdiff; $(MAKE) $(FLAGS_TO_PASS) all) ; \
  1505.     else \
  1506.         true ; \
  1507.     fi
  1508.  
  1509. clean-wdiff: force
  1510.     @if [ -f ./wdiff/Makefile ] ; then \
  1511.         rootme=`pwd` ; export rootme ; \
  1512.         (cd ./wdiff; $(MAKE) $(FLAGS_TO_PASS) clean) ; \
  1513.     else \
  1514.         true ; \
  1515.     fi
  1516.  
  1517. install-wdiff: force
  1518.     @if [ -f ./wdiff/Makefile ] ; then \
  1519.         rootme=`pwd` ; export rootme ; \
  1520.         (cd ./wdiff; $(MAKE) $(FLAGS_TO_PASS) install) ; \
  1521.     else \
  1522.         true ; \
  1523.     fi
  1524.  
  1525. ### shellutils
  1526. all-shellutils: force
  1527.     @if [ -f ./shellutils/Makefile ] ; then \
  1528.       rootme=`pwd` ; export rootme ; \
  1529.         (cd ./shellutils; $(MAKE) $(FLAGS_TO_PASS) all) ; \
  1530.     else \
  1531.         true ; \
  1532.     fi
  1533.  
  1534. clean-shellutils: force
  1535.     @if [ -f ./shellutils/Makefile ] ; then \
  1536.         rootme=`pwd` ; export rootme ; \
  1537.         (cd ./shellutils; $(MAKE) $(FLAGS_TO_PASS) clean) ; \
  1538.     else \
  1539.         true ; \
  1540.     fi
  1541.  
  1542. install-shellutils: force
  1543.     @if [ -f ./shellutils/Makefile ] ; then \
  1544.         rootme=`pwd` ; export rootme ; \
  1545.         (cd ./shellutils; $(MAKE) $(FLAGS_TO_PASS) install) ; \
  1546.     else \
  1547.         true ; \
  1548.     fi
  1549.  
  1550. ### textutils
  1551. all-textutils: force
  1552.     @if [ -f ./textutils/Makefile ] ; then \
  1553.       rootme=`pwd` ; export rootme ; \
  1554.         (cd ./textutils; $(MAKE) $(FLAGS_TO_PASS) all) ; \
  1555.     else \
  1556.         true ; \
  1557.     fi
  1558.  
  1559. clean-textutils: force
  1560.     @if [ -f ./textutils/Makefile ] ; then \
  1561.         rootme=`pwd` ; export rootme ; \
  1562.         (cd ./textutils; $(MAKE) $(FLAGS_TO_PASS) clean) ; \
  1563.     else \
  1564.         true ; \
  1565.     fi
  1566.  
  1567. install-textutils: force
  1568.     @if [ -f ./textutils/Makefile ] ; then \
  1569.         rootme=`pwd` ; export rootme ; \
  1570.         (cd ./textutils; $(MAKE) $(FLAGS_TO_PASS) install) ; \
  1571.     else \
  1572.         true ; \
  1573.     fi
  1574.  
  1575.  
  1576.  
  1577. ### other supporting targets
  1578.  
  1579. subdir_do:
  1580.     @for i in $(DODIRS); do \
  1581.       if [ -f ./$$i/localenv ] || [ -f ./$$i/Makefile ] ; then \
  1582.         case $$i in \
  1583.         libg++ | xiberty | newlib) \
  1584.           if (rootme=`pwd` ; export rootme ; \
  1585.           srcroot=`cd $(srcdir); pwd` ; export srcroot ; \
  1586.           cd ./$$i ; \
  1587.           $(MAKE) $(TARGET_FLAGS_TO_PASS) $(DO)) ; then true ; \
  1588.           else exit 1 ; fi \
  1589.           ;; \
  1590.         *) \
  1591.           if (rootme=`pwd` ; export rootme ; \
  1592.           cd ./$$i ; \
  1593.           $(MAKE) $(FLAGS_TO_PASS) $(DO)) ; then true ; \
  1594.           else exit 1 ; fi \
  1595.           ;; \
  1596.         esac ; \
  1597.       else true ; fi ; \
  1598.     done
  1599.  
  1600. # The "else true" stuff is for Ultrix; the shell returns the exit code
  1601. # of the "if" command, if no commands are run in the "then" or "else" part,
  1602. # causing Make to quit.
  1603.  
  1604. MAKEDIRS= \
  1605.     $(prefix) \
  1606.     $(exec_prefix) \
  1607.     $(tooldir)
  1608.  
  1609. #    $(bindir) \
  1610. #    $(libdir) \
  1611. #    $(includedir) \
  1612. #    $(datadir) \
  1613. #    $(docdir) \
  1614. #    $(mandir) \
  1615. #    $(man1dir) \
  1616. #    $(man5dir)
  1617.  
  1618. #    $(man2dir) \
  1619. #    $(man3dir) \
  1620. #    $(man4dir) \
  1621. #    $(man6dir) \
  1622. #    $(man7dir) \
  1623. #    $(man8dir)
  1624.  
  1625. install-dirs:
  1626.     for i in $(MAKEDIRS) ; do \
  1627.         echo Making $$i... ; \
  1628.         parent=`echo $$i|sed -e 's@/[^/]*$$@@'`; \
  1629.         if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi ; \
  1630.         if [ ! -d $$i ] ; then \
  1631.             if mkdir $$i ; then \
  1632.                 true ; \
  1633.             else \
  1634.                 exit 1 ; \
  1635.             fi ; \
  1636.         else \
  1637.             true ; \
  1638.         fi ; \
  1639.     done
  1640.  
  1641. MAKEINFODIRS= \
  1642.     $(prefix)
  1643.  
  1644. install-info-dirs:
  1645.     if [ -d $(prefix) ] ; then true ; else mkdir $(prefix) ; fi
  1646.  
  1647. dir.info:
  1648.     $(srcdir)/texinfo/gen-info-dir $(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new
  1649.     mv -f dir.info.new dir.info
  1650.  
  1651. etags tags: TAGS
  1652.  
  1653. TAGS:
  1654.     etags `$(MAKE) ls`
  1655.  
  1656. ls:
  1657.     @echo Makefile
  1658.     @for i in $(SUBDIRS); \
  1659.     do \
  1660.         (cd $$i; \
  1661.             pwd=`pwd`; \
  1662.             wd=`basename $$pwd`; \
  1663.             for j in `$(MAKE) ls`; \
  1664.             do \
  1665.                 echo $$wd/$$j; \
  1666.             done) \
  1667.     done
  1668.  
  1669. force:
  1670.  
  1671. # with the gnu make, this is done automatically.
  1672.  
  1673. Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
  1674.     $(SHELL) ./config.status
  1675.  
  1676. #
  1677. # Build GDB distributions that contain BFD, Include, Libiberty, Readline, etc
  1678.  
  1679. DEVO_SUPPORT= README cfg-paper.texi Makefile.in configure configure.in \
  1680.     config.sub config configure.man configure.texi move-if-change \
  1681.     COPYING.LIB
  1682. GDB_SUPPORT_DIRS= bfd include libiberty mmalloc opcodes readline glob
  1683. GDB_SUPPORT_FILES= $(GDB_SUPPORT_DIRS) texinfo/fsf/texinfo.tex
  1684.  
  1685. setup-dirs: force_update
  1686.     ./configure sun4
  1687.     make clean
  1688.     ./configure -rm sun4
  1689.     chmod og=u `find $(DEVO_SUPPORT) $(GDB_SUPPORT_FILES) -print`
  1690.  
  1691. gdb.tar.Z: setup-dirs
  1692.     (cd gdb; $(MAKE) -f Makefile.in make-proto-gdb.dir)
  1693.     $(MAKE) $(MFLAGS) -f Makefile.in make-gdb.tar.Z
  1694.  
  1695. make-gdb.tar.Z: $(DEVO_SUPPORT) $(GDB_SUPPORT_DIRS) gdb texinfo/fsf/texinfo.tex
  1696.     rm -rf proto-toplev; mkdir proto-toplev
  1697.     ln -s ../gdb/proto-gdb.dir proto-toplev/gdb
  1698.     (cd proto-toplev; for i in $(DEVO_SUPPORT) $(GDB_SUPPORT_DIRS); do \
  1699.         ln -s ../$$i . ; \
  1700.     done)
  1701.     # Put only one copy (four hard links) of COPYING in the tar file.
  1702.     rm                          proto-toplev/bfd/COPYING
  1703.     ln proto-toplev/gdb/COPYING proto-toplev/bfd/COPYING
  1704.     rm                          proto-toplev/include/COPYING
  1705.     ln proto-toplev/gdb/COPYING proto-toplev/include/COPYING
  1706.     rm                          proto-toplev/readline/COPYING
  1707.     ln proto-toplev/gdb/COPYING proto-toplev/readline/COPYING
  1708.     # Take out texinfo from configurable dirs
  1709.     rm proto-toplev/configure.in
  1710.     sed '/^configdirs=/s/texinfo //' <configure.in >proto-toplev/configure.in
  1711.     # Take out glob from buildable dirs
  1712.     rm proto-toplev/Makefile.in
  1713.  
  1714.     sed -e '/^SUBDIRS =/s/glob //' \
  1715.         -e '/^all\.normal: /s/\all-texinfo //' \
  1716.         -e '/^clean: /s/clean-texinfo //' \
  1717.         -e '/^install\.all: /s/install-texinfo //' \
  1718.     <Makefile.in >proto-toplev/Makefile.in
  1719.  
  1720.     mkdir proto-toplev/texinfo
  1721.     mkdir proto-toplev/texinfo/fsf
  1722.     ln -s ../../../texinfo/fsf/texinfo.tex proto-toplev/texinfo/fsf/
  1723.     chmod og=u `find proto-toplev -print`
  1724.     (VER=`sed <gdb/Makefile.in -n 's/VERSION = //p'`; \
  1725.         echo "==> Making gdb-$$VER.tar.Z"; \
  1726.         ln -s proto-toplev gdb-$$VER; \
  1727.         tar cfh - gdb-$$VER \
  1728.         | compress -v >gdb-$$VER.tar.Z)
  1729.  
  1730. force_update:
  1731.  
  1732. nothing:
  1733.  
  1734. # end of Makefile.in
  1735.