aboutsummaryrefslogtreecommitdiff
path: root/gdb/Makefile.in
diff options
context:
space:
mode:
authorJ.T. Conklin <jtc@acorntoolworks.com>1994-07-28 21:57:31 +0000
committerJ.T. Conklin <jtc@acorntoolworks.com>1994-07-28 21:57:31 +0000
commitb98612f1fd9f751389044d28cfa5e66fbf2f1a7f (patch)
tree51a0b308245ed17488c205fba3edb445e3a68ae2 /gdb/Makefile.in
parentd18245ea9a5bbc2bd876323faeb03a9585845c97 (diff)
downloadgdb-b98612f1fd9f751389044d28cfa5e66fbf2f1a7f.zip
gdb-b98612f1fd9f751389044d28cfa5e66fbf2f1a7f.tar.gz
gdb-b98612f1fd9f751389044d28cfa5e66fbf2f1a7f.tar.bz2
* 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.
Diffstat (limited to 'gdb/Makefile.in')
-rw-r--r--gdb/Makefile.in21
1 files changed, 15 insertions, 6 deletions
diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index 3eb0128..ca2c500 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -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