aboutsummaryrefslogtreecommitdiff
path: root/gcc/Makefile.in
diff options
context:
space:
mode:
authorTom Wood <wood@gnu.org>1992-10-16 14:46:08 +0000
committerTom Wood <wood@gnu.org>1992-10-16 14:46:08 +0000
commit265ce9f85961e0cd779cd9f3ab69f90092269d4a (patch)
tree94fc374d7885fcb581f2dc9f93b0deea93be3649 /gcc/Makefile.in
parent2740a6786b2b8ffd42f4c3efc8dfa40381a91b48 (diff)
downloadgcc-265ce9f85961e0cd779cd9f3ab69f90092269d4a.zip
gcc-265ce9f85961e0cd779cd9f3ab69f90092269d4a.tar.gz
gcc-265ce9f85961e0cd779cd9f3ab69f90092269d4a.tar.bz2
(libobjc.a): Compute srcdir1 without changing directories.
(libobjc.a): Compute srcdir1 without changing directories. Use srcdir1 to locate objc/Makefile. Put quotes around all potential multi-word values. Recompute GCC_FOR_TARGET. (sublibobjc.a): Use same text as libobjc.a. (mostlyclean): Use $(MAKE) and srcdir1 for objc action. From-SVN: r2491
Diffstat (limited to 'gcc/Makefile.in')
-rw-r--r--gcc/Makefile.in21
1 files changed, 13 insertions, 8 deletions
diff --git a/gcc/Makefile.in b/gcc/Makefile.in
index 205beda..2026828 100644
--- a/gcc/Makefile.in
+++ b/gcc/Makefile.in
@@ -664,20 +664,24 @@ objc-runtime: libobjc.a
# Build the Objective C runtime library. Build the Objc compiler first!
libobjc.a: cc1obj libgcc2.ready
thisdir1=`pwd`; \
- cd $(srcdir); srcdir1=`pwd`; \
+ srcdir1=`cd $(srcdir); pwd`; \
cd objc; \
- $(MAKE) $(MAKEFLAGS) -f $(srcdir)/objc/Makefile libobjc.a \
- srcdir=$$srcdir1 tooldir=$(tooldir) AR=$(AR) AR_FLAGS=$(AR_FLAGS) \
- GCC_FOR_TARGET=$$thisdir1/$(GCC_FOR_TARGET) \
+ $(MAKE) $(MAKEFLAGS) -f $$srcdir1/objc/Makefile libobjc.a \
+ srcdir=$$srcdir1 tooldir=$(tooldir) AR="$(AR)" AR_FLAGS="$(AR_FLAGS)" \
+ GCC_FOR_TARGET="$$thisdir1/xgcc -B$$thisdir1/" \
GCC_CFLAGS="$(GCC_CFLAGS)"
ln objc/libobjc.a .
-if $(RANLIB_TEST) ; then $(RANLIB) libobjc.a; else true; fi
# This is used by objc/Makefile if the user runs that directly.
sublibobjc.a: cc1obj libgcc2.ready
- cd objc; make $(MAKEFLAGS) -f $(srcdir)/objc/Makefile libobjc.a \
- srcdir=$(srcdir) tooldir=$(tooldir) AR=$(AR) AR_FLAGS=$(AR_FLAGS) \
- GCC_FOR_TARGET=$(GCC_FOR_TARGET) GCC_CFLAGS=$(GCC_CFLAGS)
+ thisdir1=`pwd`; \
+ srcdir1=`cd $(srcdir); pwd`; \
+ cd objc; \
+ $(MAKE) $(MAKEFLAGS) -f $$srcdir1/objc/Makefile libobjc.a \
+ srcdir=$$srcdir1 tooldir=$(tooldir) AR="$(AR)" AR_FLAGS="$(AR_FLAGS)" \
+ GCC_FOR_TARGET="$$thisdir1/xgcc -B$$thisdir1/" \
+ GCC_CFLAGS="$(GCC_CFLAGS)"
# Compile two additional files that are linked with every program
# linked using GCC on system V, for the sake of C++ constructors.
@@ -1256,7 +1260,8 @@ $(srcdir)/INSTALL: install1.texi install.texi
mostlyclean:
-rm -f $(STAGESTUFF)
# Clean the objc subdir.
- cd objc; make $(MAKEFLAGS) -f $(srcdir)/objc/Makefile mostlyclean
+ srcdir1=`cd $(srcdir); pwd`; \
+ cd objc; $(MAKE) $(MAKEFLAGS) -f $$srcdir1/objc/Makefile mostlyclean
# Delete the temporary source copies for cross compilation.
-rm -f $(HOST_PREFIX_1)rtl.c $(HOST_PREFIX_1)rtlanal.c
-rm -f $(HOST_PREFIX_1)alloca.c $(HOST_PREFIX_1)malloc.c