PR 4716
[deliverable/binutils-gdb.git] / sim / Makefile.in
index 7e6dbde92063e1caecefaff5db90c6ea067578fc..c7a37febc4e27b4d9e11e34b3a08e7a25b054d2b 100644 (file)
@@ -1,5 +1,5 @@
 #    Makefile template for Configure for the sim library.
-#    Copyright (C) 1993, 1995, 1997, 1998 Free Software Foundation, Inc.
+#    Copyright (C) 1993, 1995, 1997, 1998, 2007 Free Software Foundation, Inc.
 #    Written by Cygnus Support.
 # 
 # This file is part of BFD, the Binary File Descriptor library.
@@ -56,6 +56,7 @@ AR_FLAGS = rc
 CC = @CC@
 CFLAGS = @CFLAGS@
 CC_FOR_BUILD = @CC_FOR_BUILD@
+CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
 MAKEINFO = makeinfo
 RANLIB = @RANLIB@
 
@@ -65,10 +66,6 @@ INCDIR = $(srcdir)/../include
 CSEARCH = -I. -I$(srcdir) -I$(INCDIR)
 DEP = mkdep
 
-# compilers to use to create programs which must be run in the build
-# environment.
-CC_FOR_BUILD = $(CC)
-
 #### Makefile fragments come in here.
 # @target_makefile_frag@
 ###
@@ -87,17 +84,20 @@ FLAGS_TO_PASS = \
        "exec_prefix=$(exec_prefix)" \
        "bindir=$(bindir)" \
        "mandir=$(mandir)" \
+       "libdir=$(libdir)" \
        "against=$(against)" \
        "AR=$(AR)" \
        "AR_FLAGS=$(AR_FLAGS)" \
        "CC=$(CC)" \
        "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
        "CFLAGS=$(CFLAGS)" \
+       "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
        "RANLIB=$(RANLIB)" \
        "MAKEINFO=$(MAKEINFO)" \
        "INSTALL=$(INSTALL)" \
        "INSTALL_DATA=$(INSTALL_DATA)" \
        "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
+       "RUNTEST=$(RUNTEST)" \
        "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
        "SHELL=$(SHELL)"
 
@@ -121,6 +121,7 @@ TARGET_FLAGS_TO_PASS = \
        "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
        "INSTALL_DATA=$(INSTALL_DATA)" \
        "MAKEINFO=$(MAKEINFO)" \
+       "RUNTEST=$(RUNTEST)" \
        "RUNTESTFLAGS=$(RUNTESTFLAGS)"
 
 
@@ -130,7 +131,7 @@ all:
                if [ "$$dir" = "." ]; then \
                        true; \
                elif [ -d $$dir ]; then \
-                       (cd $$dir; $(MAKE) $(FLAGS_TO_PASS)); \
+                       (cd $$dir; $(MAKE) $(FLAGS_TO_PASS)) || exit 1; \
                else true; fi; \
        done
 
@@ -140,7 +141,7 @@ clean mostlyclean:
                if [ "$$dir" = "." ]; then \
                        true; \
                elif [ -d $$dir ]; then \
-                       (cd $$dir; $(MAKE) $(FLAGS_TO_PASS) $@); \
+                       (cd $$dir; $(MAKE) $(FLAGS_TO_PASS) $@) || exit 1; \
                else true; fi; \
        done
 
@@ -150,7 +151,7 @@ distclean maintainer-clean realclean:
                if [ "$$dir" = "." ]; then \
                        true; \
                elif [ -d $$dir ]; then \
-                       (cd $$dir; $(MAKE) $(FLAGS_TO_PASS) $@); \
+                       (cd $$dir; $(MAKE) $(FLAGS_TO_PASS) $@) || exit 1; \
                else true; fi; \
        done
        rm -f Makefile config.cache config.log config.status
@@ -161,7 +162,7 @@ install:
                if [ "$$dir" = "." ]; then \
                        true; \
                elif [ -d $$dir ]; then \
-                       (cd $$dir; $(MAKE) $(FLAGS_TO_PASS) install); \
+                       (cd $$dir; $(MAKE) $(FLAGS_TO_PASS) install) || exit 1; \
                else true; fi; \
        done
 
@@ -185,6 +186,7 @@ check: force
 info:
 install-info:
 dvi:
+pdf:
 
 ### 
 ### 
@@ -208,8 +210,8 @@ config.status: configure
 
 # Utility to run autoconf in each directory that uses the common framework.
 # This is intended to be invoked in $srcdir as
-# "make -f Makefile.in autoconf-common".
-.PHONY: autoconf-common
+# "make -f Makefile.in autoconf-common SHELL=/bin/sh".
+.PHONY: autoconf-common autoheader-common
 autoconf-common autoheader-common:
        for d in * ; \
        do \
@@ -217,7 +219,7 @@ autoconf-common autoheader-common:
            then \
                 echo "Running autoconf in $$d ..." ; \
                 (cd $$d && autoconf --force) ; \
-                if [ $@ = autoheader-common ] ; \
+                if [ $@ = autoheader-common ] && [ -f $$d/config.in ] ; \
                 then \
                   echo "Running autoheader in $$d ..." ; \
                   (cd $$d && autoheader --force) ; \
This page took 0.024378 seconds and 4 git commands to generate.