Some versions of make don't like empty variable expansions on lines by
[deliverable/binutils-gdb.git] / Makefile.in
index 3acc7e94174e705efd69a36415bf48576bedccb4..ea6efdd7f47ea4b16cda1aa88d8d610dc6e490af 100644 (file)
@@ -1,6 +1,6 @@
 #
 # Makefile for directory with subdirs to build.
-#   Copyright (C) 1990, 1991, 1992 Free Software Foundation
+#   Copyright (C) 1990-1993 Free Software Foundation
 #
 # This file is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -54,10 +54,10 @@ AR = ar
 AR_FLAGS = rc
 CC = cc
 CFLAGS = -g
-$(start-sanitize-chill)
+# start-sanitize-chill
 CHILLFLAGS = $(CFLAGS)
 CHILL_LIB = -lchill
-$(end-sanitize-chill)
+# end-sanitize-chill
 CXX = gcc
 CXXFLAGS = -g -O
 RANLIB = ranlib
@@ -106,18 +106,7 @@ CC_FOR_TARGET = ` \
     fi; \
   fi`
 
-GCC_FOR_TARGET = ` \
-  if [ -f $${rootme}/gcc/Makefile ] ; then \
-    echo $${rootme}/gcc/xgcc -B$${rootme}/gcc/; \
-  else \
-    if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
-      echo $(CC); \
-    else \
-      t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
-    fi; \
-  fi`
-
-$(start-sanitize-chill)
+# start-sanitize-chill
 CHILL_FOR_TARGET = ` \
   if [ -f $${rootme}/gcc/Makefile ] ; then \
     echo $${rootme}/gcc/xgcc -B$${rootme}/gcc/ -L$${rootme}/chillrt/; \
@@ -128,7 +117,8 @@ CHILL_FOR_TARGET = ` \
       t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
     fi; \
   fi`
-$(end-sanitize-chill)
+
+# end-sanitize-chill
 
 CXX_FOR_TARGET = ` \
   if [ -f $${rootme}/gcc/Makefile ] ; then \
@@ -197,6 +187,7 @@ XTRAFLAGS = ` \
      echo ; \
   fi`
 
+PRMS = install-prms
 
 #### host and target specific makefile fragments come in here.
 ###
@@ -211,15 +202,15 @@ BASE_FLAGS_TO_PASS = \
        "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
        "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
        "CFLAGS=$(CFLAGS)" \
-$(start-sanitize-chill)\
+       $(start-sanitize-chill)\
        "CHILLFLAGS=$(CHILLFLAGS)" \
        "CHILL_FOR_TARGET=$(CHILL_FOR_TARGET)" \
        "CHILL_LIB=$(CHILL_LIB)" \
-$(end-sanitize-chill)\
+       $(end-sanitize-chill)\
        "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
        "CXXFLAGS=$(CXXFLAGS)" \
        "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
-       "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
+       'GCC_FOR_TARGET=$$(CC_FOR_TARGET)' \
        "INSTALL=$(INSTALL)" \
        "INSTALL_DATA=$(INSTALL_DATA)" \
        "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
@@ -228,6 +219,7 @@ $(end-sanitize-chill)\
        "LOADLIBES=$(LOADLIBES)" \
        "MAKEINFO=$(MAKEINFO)" \
        "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
+       "PRMS=$(PRMS)" \
        "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
        "XTRAFLAGS_FOR_TARGET=$(XTRAFLAGS)" \
        "exec_prefix=$(exec_prefix)" \
@@ -257,9 +249,9 @@ X11_FLAGS_TO_PASS = \
 
 # Shell case of subdirectories which are built with the target environment.
 TARGET_LIBS=libg++ | xiberty | newlib
-$(start-sanitize-chill)
+# start-sanitize-chill
 TARGET_LIBS=libg++ | xiberty | newlib | chillrt
-$(end-sanitize-chill)
+# end-sanitize-chill
 
 # Flags to pass down to makes which are built with the target environment.
 # The double $ decreases the length of the command line; the variables
@@ -294,24 +286,32 @@ GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS)
 # The first rule in the file had better be this one.  Don't put any above it.
 all:   $(ALL)
 
-.PHONY: all check dvi info install-info install-info-dirs
-.PHONY: do-info do-check do-dvi do-install-info
+.PHONY: all check installcheck dvi info install-info install-info-dirs
+.PHONY: do-info do-check do-installcheck do-dvi do-install-info
 .PHONY: do-clean do-mostlyclean do-distclean do-realclean
 .NOEXPORT:
+MAKEOVERRIDES=
+
+# start-sanitize-chill
+## This is ugly, but I don't want GNU make to put these variables in
+## the environment.  Older makes will see this as a set of targets
+## with no dependencies and no actions.
+unexport CHILLFLAGS CHILL_LIB CHILL_FOR_TARGET :
+# end-sanitize-chill
 
 # Do a target for all the subdirectories.  A ``make do-X'' will do a
-# ``make X'' in all subdirectories (because, in general, X depends on
-# fdo-X, a ``make X'' will also do this, but it may do additional work
-# as well).
+# ``make X'' in all subdirectories (because, in general, there is a
+# dependency (below) of X upon do-X, a ``make X'' will also do this,
+# but it may do additional work as well).
 # This target ensures that $(BASE_FLAGS_TO_PASS) appears only once,
 # because it is so large that it can easily overflow the command line
 # length limit on some systems.
-do-info do-check do-dvi do-install-info do-clean do-mostlyclean do-distclean do-realclean:
+do-info do-check do-installcheck do-dvi do-install-info do-clean do-mostlyclean do-distclean do-realclean:
        @target=`echo $@ | sed -e 's/^do-//'`; \
        rootme=`pwd`; export rootme; \
        srcroot=`cd $(srcdir); pwd`; export srcroot; \
        for i in $(SUBDIRS); do \
-         if [ -f ./$$i/localenv ] || [ -f ./$$i/Makefile ]; then \
+         if [ -f ./$$i/Makefile ]; then \
            case $$i in \
            $(TARGET_LIBS) ) \
              for flag in $(EXTRA_TARGET_FLAGS); do \
@@ -341,10 +341,13 @@ do-info do-check do-dvi do-install-info do-clean do-mostlyclean do-distclean do-
 
 info: do-info
 check: do-check
+installcheck: do-installcheck
 dvi: do-dvi
 
 install-info: install-info-dirs do-install-info dir.info
-       $(INSTALL_DATA) dir.info $(infodir)/dir.info
+       if [ -f dir.info ] ; then \
+         $(INSTALL_DATA) dir.info $(infodir)/dir.info ; \
+       else true ; fi
 
 do-install-info: install-info-dirs
 
@@ -358,7 +361,7 @@ all.normal: all-m4 all-autoconf all-libiberty all-mmalloc all-texinfo \
        $(start-sanitize-chill) \
        all-chillrt \
        $(end-sanitize-chill) \
-       all-gprof all-prms all-send-pr all-libm all-deja-gnu \
+       all-gprof all-prms all-send-pr all-libm all-dejagnu \
        all-fileutils all-find all-gawk all-sed all-shellutils \
        all-textutils all-time all-wdiff all-uudecode \
        all-hello all-tar all-gzip all-indent all-recode
@@ -370,7 +373,7 @@ all.cross: all-libiberty all-mmalloc all-gas all-byacc all-flex all-ld \
        $(start-sanitize-chill) \
        all-chillrt \
        $(end-sanitize-chill) \
-       all-deja-gnu
+       all-dejagnu
 
 .PHONY: clean distclean mostlyclean realclean local-clean local-distclean
 
@@ -411,7 +414,7 @@ install-no-fixedincludes: install-dirs gcc-no-fixedincludes \
        install-chillrt \
        $(end-sanitize-chill) \
        install-cvs \
-       install-deja-gnu \
+       install-dejagnu \
        install-diff \
        install-emacs \
        install-etc \
@@ -484,7 +487,7 @@ install.cross: install-dirs install-libiberty install-mmalloc \
        $(start-sanitize-chill) \
        install-chillrt \
        $(end-sanitize-chill) \
-       install-gcc install-etc install-deja-gnu
+       install-gcc install-etc install-dejagnu
 
 ### gzip
 all-gzip: all-libiberty
@@ -572,19 +575,19 @@ install-tar: force
        fi
 
 
-### deja-gnu
-all-deja-gnu: force
-       @if [ -f ./deja-gnu/Makefile ] ; then \
+### dejagnu
+all-dejagnu: force
+       @if [ -f ./dejagnu/Makefile ] ; then \
                rootme=`pwd` ; export rootme ; \
-               (cd ./deja-gnu; $(MAKE) $(FLAGS_TO_PASS) all) ; \
+               (cd ./dejagnu; $(MAKE) $(FLAGS_TO_PASS) all) ; \
        else \
                true ; \
        fi
 
-install-deja-gnu: force
-       @if [ -f ./deja-gnu/Makefile ] ; then \
+install-dejagnu: force
+       @if [ -f ./dejagnu/Makefile ] ; then \
                rootme=`pwd` ; export rootme ; \
-               (cd ./deja-gnu; $(MAKE) $(FLAGS_TO_PASS) install) ; \
+               (cd ./dejagnu;  $(MAKE) $(FLAGS_TO_PASS) install) ; \
        else \
                true ; \
        fi
@@ -801,6 +804,7 @@ install-chillrt: force
        else \
                true ; \
        fi
+
 ### end-sanitize-chill
 
 ### gprof
@@ -1261,13 +1265,35 @@ install-tk: force
                true ; \
        fi
 
+### tclX
+all-tclX: all-tcl all-tk
+       @if [ -f ./tclX/Makefile ] ; then \
+               rootme=`pwd` ; export rootme ; \
+               srcroot=`cd $(srcdir); pwd`; export srcroot ; \
+               (cd ./tclX; \
+               $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all) ; \
+       else \
+               true ; \
+       fi
+
+install-tclX: force
+       @if [ -f ./tclX/Makefile ] ; then \
+               rootme=`pwd` ; export rootme ; \
+               srcroot=`cd $(srcdir); pwd`; export srcroot ; \
+               (cd ./tclX; \
+               $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install) ; \
+       else \
+               true ; \
+       fi
+
+
 ### expect
 all-expect: all-tcl
        @if [ -f ./expect/Makefile ] ; then \
                rootme=`pwd` ; export rootme ; \
                srcroot=`cd $(srcdir); pwd`; export srcroot ; \
                (cd ./expect; \
-               $(MAKE) $(FLAGS_TO_PASS) all) ; \
+               $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all) ; \
        else \
                true ; \
        fi
@@ -1277,7 +1303,7 @@ install-expect: force
                rootme=`pwd` ; export rootme ; \
                srcroot=`cd $(srcdir); pwd`; export srcroot ; \
                (cd ./expect; \
-               $(MAKE) $(FLAGS_TO_PASS) install) ; \
+               $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install) ; \
        else \
                true ; \
        fi
@@ -1519,8 +1545,11 @@ install-info-dirs:
        -if [ -d $(infodir) ] ; then true ; else mkdir $(infodir) ; fi
 
 dir.info: do-install-info
-       $(srcdir)/texinfo/gen-info-dir $(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new
-       mv -f dir.info.new dir.info
+       if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \
+         $(srcdir)/texinfo/gen-info-dir $(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \
+         mv -f dir.info.new dir.info ; \
+       else true ; \
+       fi
 
 dist:
        @echo "Building a full distribution of this tree isn't done"
@@ -1558,12 +1587,12 @@ DEVO_SUPPORT= README Makefile.in configure configure.in \
        config.guess config.sub config move-if-change
 ETC_SUPPORT= Makefile.in cfg-paper.texi configure.in configure.man \
        configure.texi
-GDB_SUPPORT_DIRS= bfd include libiberty mmalloc opcodes readline glob
+GDB_SUPPORT_DIRS= bfd include libiberty mmalloc opcodes readline glob sim
 GDB_SUPPORT_FILES= $(GDB_SUPPORT_DIRS)
 
 setup-dirs: force
        ./configure sun4
-       make clean
+       $(MAKE) clean
        ./configure -rm sun4
        chmod og=u `find etc $(DEVO_SUPPORT) $(GDB_SUPPORT_FILES) -print`
 
This page took 0.027177 seconds and 4 git commands to generate.