Thu Sep 10 10:43:19 1992 Ian Lance Taylor (ian@cygnus.com)
authorIan Lance Taylor <ian@airs.com>
Thu, 10 Sep 1992 17:45:18 +0000 (17:45 +0000)
committerIan Lance Taylor <ian@airs.com>
Thu, 10 Sep 1992 17:45:18 +0000 (17:45 +0000)
* Makefile.in: added AS_FOR_TARGET, passed down in
TARGET_FLAGS_TO_PASS.  Added CC_FOR_BUILD, which is intended to be
the C compiler to use to create programs which are run in the
build environment, set it to default to $(CC), and passed it down
in FLAGS_TO_PASS and TARGET_FLAGS_TO_PASS.

ChangeLog
Makefile.in

index 4b8405fc7ffb9d2d998f729803a1156d77e275c7..fcb10852e85c5f78f16ef1bf2a93a3d2fe395444 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+Thu Sep 10 10:43:19 1992  Ian Lance Taylor  (ian@cygnus.com)
+
+       * Makefile.in: added AS_FOR_TARGET, passed down in
+       TARGET_FLAGS_TO_PASS.  Added CC_FOR_BUILD, which is intended to be
+       the C compiler to use to create programs which are run in the
+       build environment, set it to default to $(CC), and passed it down
+       in FLAGS_TO_PASS and TARGET_FLAGS_TO_PASS.
+
 Wed Sep  9 12:21:42 1992  Ian Lance Taylor  (ian@cygnus.com)
 
        * Makefile.in: added TARGET_FLAGS_TO_PASS, CC_FOR_TARGET,
index 2d3a59043d86de12c80f3c198e34337f4661d8d3..ff2f688f4264cc5d5b644c09bc9ce75e38e4f0f1 100644 (file)
@@ -49,6 +49,7 @@ INSTALL = install -c
 INSTALL_PROGRAM = $(INSTALL)
 INSTALL_DATA = $(INSTALL)
 
+AS = as
 AR = ar
 AR_FLAGS = qc
 CFLAGS = -g
@@ -68,6 +69,10 @@ MAKEINFO = `if [ -f $${rootme}/texinfo/C/makeinfo ] ; \
        then echo $${rootme}/texinfo/C/makeinfo ; \
        else echo makeinfo ; fi`
 
+# C compiler to use to create programs which must be run in the build
+# environment.
+CC_FOR_BUILD = $(CC)
+
 SUBDIRS = libiberty mmalloc glob readline opcodes bfd gdb  binutils ld gas tgas gcc libg++ newlib
 OTHERS = 
 
@@ -88,6 +93,17 @@ CC_FOR_TARGET = ` \
     fi; \
   fi`
 
+AS_FOR_TARGET = ` \
+  if [ -f $${rootme}/gas/Makefile ] ; then \
+    echo $${rootme}/gas/as.new ; \
+  else \
+    if [ "$(host_cpu)-$(host_vendor)-$(host_os)" = "$(target_cpu)-$(target_vendor)-$(target_os)" ] ; then \
+      echo $(AS); \
+    else \
+       t='$(program_transform_name)'; echo as | sed -e '' $$t ; \
+    fi \
+  fi`
+
 AR_FOR_TARGET = ` \
   if [ -f $${rootme}/binutils/Makefile ] ; then \
     echo $${rootme}/binutils/ar ; \
@@ -152,7 +168,8 @@ FLAGS_TO_PASS = \
        "MAKEINFO=$(MAKEINFO)" \
        "INSTALL=$(INSTALL)" \
        "INSTALL_DATA=$(INSTALL_DATA)" \
-       "INSTALL_PROGRAM=$(INSTALL_PROGRAM)"
+       "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
+       "CC_FOR_BUILD=$(CC_FOR_BUILD)"
 
 # Flags to pass down to makes which are built with the target
 # environment (e.g. libg++, xiberty, newlib).
@@ -170,7 +187,9 @@ TARGET_FLAGS_TO_PASS = \
        "INSTALL=$(INSTALL)" \
        "INSTALL_DATA=$(INSTALL_DATA)" \
        "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
+       "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
        "CC=$(CC_FOR_TARGET)" \
+       "AS=$(AS_FOR_TARGET)" \
        "AR=$(AR_FOR_TARGET)" \
        "RANLIB=$(RANLIB_FOR_TARGET)" \
        "NM=$(NM_FOR_TARGET)" \