* Makefile.in (CC_FOR_TARGET, CXX_FOR_TARGET): Use newlib if it is
authorJ.T. Conklin <jtc@acorntoolworks.com>
Thu, 28 Jul 1994 21:57:31 +0000 (21:57 +0000)
committerJ.T. Conklin <jtc@acorntoolworks.com>
Thu, 28 Jul 1994 21:57:31 +0000 (21:57 +0000)
  there and we are using the gcc from the tree.
  (LD_FOR_TARGET): Look for ld in ../ld/ld.new.

gdb/ChangeLog
gdb/Makefile.in

index 78bdc8eea76c1ce4e12dcc94df11cdcbd7836d64..1c78a09a9a5c19477205e133ee35742e914664af 100644 (file)
@@ -1,3 +1,9 @@
+Thu Jul 28 14:52:01 1994  J.T. Conklin  (jtc@phishhead.cygnus.com)
+
+       * Makefile.in (CC_FOR_TARGET, CXX_FOR_TARGET): Use newlib if it is
+         there and we are using the gcc from the tree.
+         (LD_FOR_TARGET): Look for ld in ../ld/ld.new.
+
 Thu Jul 28 10:43:36 1994  Fred Fish  (fnf@cygnus.com)
 
        * Makefile.in (annotate.o):  Add dependencies.
@@ -48,8 +54,6 @@ Mon Jul 25 11:50:57 1994  Stan Shebs  (shebs@andros.cygnus.com)
 
 Mon Jul 25 11:36:02 1994  J.T. Conklin  (jtc@phishhead.cygnus.com)
 
-       * Makefile.in (LD_FOR_TARGET): Look for ld in ../ld/ld.new.
-
        * i386-nlmstub.c: Add support for NODE, PORT and BAUD command
          line arguments.
 
index 3eb01287e8e0c139f072cff7023aaf5b275529ce..ca2c5008b77eb34a7da65d377230c72151c29660 100644 (file)
@@ -232,7 +232,11 @@ FLAGS_TO_PASS = \
 
 CC_FOR_TARGET = ` \
   if [ -f $${rootme}/../gcc/xgcc ] ; then \
-    echo $${rootme}/../gcc/xgcc -B$${rootme}/../gcc/; \
+    if [ -f $${rootme}/../newlib/Makefile ] ; then \
+      echo $${rootme}/../gcc/xgcc -B$${rootme}/../gcc/ -idirafter $${rootme}/newlib/targ-include -idirafter $${rootsrc}/../newlib/libc/include -nostdinc; \
+    else \
+      echo $${rootme}/../gcc/xgcc -B$${rootme}/../gcc/; \
+    fi; \
   else \
     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
       echo $(CC); \
@@ -245,7 +249,11 @@ CXX = gcc
 
 CXX_FOR_TARGET = ` \
   if [ -f $${rootme}/../gcc/Makefile ] ; then \
-    echo $${rootme}/../gcc/xgcc -B$${rootme}/../gcc/; \
+    if [ -f $${rootme}/../newlib/Makefile ] ; then \
+      echo $${rootme}/../gcc/xgcc -B$${rootme}/../gcc/ -idirafter $${rootme}/newlib/targ-include -idirafter $${rootsrc}/../newlib/libc/include -nostdinc; \
+    else \
+      echo $${rootme}/../gcc/xgcc -B$${rootme}/../gcc/; \
+    fi; \
   else \
     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
       echo $(CXX); \
@@ -283,8 +291,8 @@ NWSOURCE = /gaunt/grossman/unsupported/Novell
 NWINCLUDES = $(NWSOURCE)/novh40
 
 LD_FOR_TARGET = ` \
-  if [ -f $${rootme}/../binutils/ld ] ; then \
-    echo $${rootme}/../binutils/ld; \
+  if [ -f $${rootme}/../ld/ld.new ] ; then \
+    echo $${rootme}/../ld/ld.new; \
   else \
     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
       echo $(LD); \
@@ -506,6 +514,7 @@ installcheck:
 check: force
        @if [ -f testsuite/Makefile ]; then \
          rootme=`pwd`; export rootme; \
+         rootsrc=`cd $(srcdir); pwd`; export rootsrc; \
          cd testsuite; \
          $(MAKE) $(TARGET_FLAGS_TO_PASS) check; \
        else true; fi
@@ -589,10 +598,10 @@ gdb: $(OBS) $(TSOBS) $(ADD_DEPS) $(CDEPS) init.o
          init.o $(OBS) $(TSOBS) $(ADD_FILES) $(CLIBS) $(LOADLIBES)
 
 prelude.o: $(NWSOURCE)/prelude.c
-       rootme=`pwd`; export rootme; $(CC_FOR_TARGET) -g -I $(NWINCLUDES) -c $(NWSOURCE)/prelude.c
+       rootme=`pwd`; export rootme; rootsrc=`cd $(srcdir); pwd`; export rootsrc; $(CC_FOR_TARGET) -g -I $(NWINCLUDES) -c $(NWSOURCE)/prelude.c
 
 i386-nlmstub.o: $(srcdir)/i386-nlmstub.c
-       rootme=`pwd`; export rootme; $(CC_FOR_TARGET) -g -I $(NWINCLUDES) -c $(srcdir)/i386-nlmstub.c
+       rootme=`pwd`; export rootme; rootsrc=`cd $(srcdir); pwd`; export rootsrc; $(CC_FOR_TARGET) -g -I $(NWINCLUDES) -c $(srcdir)/i386-nlmstub.c
 
 nlmstub.o: prelude.o i386-nlmstub.o
        rootme=`pwd`; export rootme; $(LD_FOR_TARGET) -r -o nlmstub.o prelude.o i386-nlmstub.o