Add support for target specific command line switches to old-style simualtors.
[deliverable/binutils-gdb.git] / sim / Makefile.in
index 92fd900a38044397bdf6fcae90732d8eedacebe5..1e53780fd5de8ab69f2dba1c945ade0678bd24c0 100644 (file)
@@ -1,5 +1,5 @@
 #    Makefile template for Configure for the sim library.
-#    Copyright (C) 1993, 1995, 1997 Free Software Foundation, Inc.
+#    Copyright (C) 1993, 1995, 1997, 1998 Free Software Foundation, Inc.
 #    Written by Cygnus Support.
 # 
 # This file is part of BFD, the Binary File Descriptor library.
@@ -45,7 +45,7 @@ man9dir = $(mandir)/man9
 infodir = @infodir@
 includedir = @includedir@
 
-SHELL = /bin/sh
+SHELL = @SHELL@
 
 INSTALL = @INSTALL@
 INSTALL_PROGRAM = @INSTALL_PROGRAM@
@@ -61,10 +61,6 @@ RANLIB = @RANLIB@
 
 SUBDIRS = @subdirs@
 
-.NOEXPORT:
-MAKEOVERRIDES=
-
-
 INCDIR = $(srcdir)/../include
 CSEARCH = -I. -I$(srcdir) -I$(INCDIR)
 DEP = mkdep
@@ -96,8 +92,8 @@ FLAGS_TO_PASS = \
        "INSTALL=$(INSTALL)" \
        "INSTALL_DATA=$(INSTALL_DATA)" \
        "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
-       "RUNTEST=$(RUNTEST)" \
-       "RUNTESTFLAGS=$(RUNTESTFLAGS)"
+       "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
+       "SHELL=$(SHELL)"
 
 # The use of $$(x_FOR_TARGET) reduces the command line length by not
 # duplicating the lengthy definition.
@@ -119,7 +115,6 @@ TARGET_FLAGS_TO_PASS = \
        "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
        "INSTALL_DATA=$(INSTALL_DATA)" \
        "MAKEINFO=$(MAKEINFO)" \
-       "RUNTEST=$(RUNTEST)" \
        "RUNTESTFLAGS=$(RUNTESTFLAGS)"
 
 
@@ -133,6 +128,16 @@ all:
                else true; fi; \
        done
 
+clean mostlyclean:
+       @rootme=`pwd` ; export rootme ; \
+       for dir in . ${SUBDIRS}; do \
+               if [ "$$dir" = "." ]; then \
+                       true; \
+               elif [ -d $$dir ]; then \
+                       (cd $$dir; $(MAKE) $(FLAGS_TO_PASS) $@); \
+               else true; fi; \
+       done
+
 distclean maintainer-clean realclean:
        @rootme=`pwd` ; export rootme ; \
        for dir in . ${SUBDIRS}; do \
@@ -178,6 +183,9 @@ dvi:
 ### 
 ### 
 
+.NOEXPORT:
+MAKEOVERRIDES=
+
 .PHONY: check installcheck
 check:
 installcheck:
@@ -196,20 +204,22 @@ config.status: configure
 # This is intended to be invoked in $srcdir as
 # "make -f Makefile.in autoconf-common".
 .PHONY: autoconf-common
-autoconf-common:
+autoconf-common autoheader-common:
        for d in * ; \
        do \
            if [ -d $$d -a -f $$d/configure.in ] ; \
            then \
-               if grep SIM_AC_COMMON $$d/configure.in >/dev/null ; \
-               then \
-                   echo "Running autoconf in $$d ..." ; \
-                   (cd $$d && autoconf) ; \
-               fi ; \
+                echo "Running autoconf in $$d ..." ; \
+                (cd $$d && autoconf) ; \
+                if [ $@ = autoheader-common ] ; \
+                then \
+                  echo "Running autoheader in $$d ..." ; \
+                  (cd $$d && autoheader) ; \
+                fi ; \
            fi ; \
        done
 
-autoconf-changelog:
+autoconf-changelog autoheader-changelog:
        id="`id | sed -e 's/^[^(]*(\([^)]*\).*$$/\1/'`" ; \
        name=`grep "^$$id:" /etc/passwd | cut -f 5 -d ':'` ; \
        host="`hostname`" ; \
@@ -219,28 +229,26 @@ autoconf-changelog:
        do \
            if [ -d $$d -a -f $$d/configure.in ] ; \
            then \
-               if grep SIM_AC_COMMON $$d/configure.in >/dev/null ; \
-               then \
-                   echo "Creating new-ChangeLog in $$d ..." ; \
-                   ( echo "$$date  $$name  <$$id@$$host>" ; \
-                     echo "" ; \
-                     echo "    * configure: Regenerated to track ../common/aclocal.m4 changes." ; \
-                     echo "" ; \
-                     cat $$d/ChangeLog \
-                   ) > $$d/new-ChangeLog ; \
-               fi ; \
+                echo "Creating new-ChangeLog in $$d ..." ; \
+                ( echo "$$date  $$name  <$$id@$$host>" ; \
+                  echo "" ; \
+                  echo "       * configure: Regenerated to track ../common/aclocal.m4 changes." ; \
+                  if [ $@ = autoheader-changelog ] ; \
+                  then \
+                    echo "     * config.in: Ditto." ; \
+                  fi ; \
+                  echo "" ; \
+                  cat $$d/ChangeLog \
+                ) > $$d/new-ChangeLog ; \
            fi ; \
        done
 
-autoconf-install:
+autoconf-install autoheader-install:
        for d in * ; \
        do \
            if [ -d $$d -a -f $$d/configure.in ] ; \
            then \
-               if grep SIM_AC_COMMON $$d/configure.in >/dev/null ; \
-               then \
-                   echo "Moving $$d/new-ChangeLog to $$d/ChangeLog ..." ; \
-                   mv $$d/new-ChangeLog $$d/ChangeLog ; \
-               fi ; \
+                echo "Moving $$d/new-ChangeLog to $$d/ChangeLog ..." ; \
+                mv $$d/new-ChangeLog $$d/ChangeLog ; \
            fi ; \
        done
This page took 0.025336 seconds and 4 git commands to generate.