aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1995-09-12 17:39:08 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1995-09-12 17:39:08 -0400
commit435546906ea0760ba9534b476c5be4ae30f9a6b9 (patch)
tree39e395b9bb253610f97958bcb3db5b85abbeb69c
parent273adcccb8df005e8ce8f99b8d7623bcf2b0ce7a (diff)
downloadgcc-435546906ea0760ba9534b476c5be4ae30f9a6b9.zip
gcc-435546906ea0760ba9534b476c5be4ae30f9a6b9.tar.gz
gcc-435546906ea0760ba9534b476c5be4ae30f9a6b9.tar.bz2
Changed various .o's to .$(objext)'s
Changed various .o's to .$(objext)'s (specs): Removed unnecessary $(exeext). (EXTRA_GCC_OBJS): New variable. (clean): Removed $(LIB2FUNCS_EXTRA) From-SVN: r10331
-rw-r--r--gcc/Makefile.in16
1 files changed, 10 insertions, 6 deletions
diff --git a/gcc/Makefile.in b/gcc/Makefile.in
index 5291cde..d921d70 100644
--- a/gcc/Makefile.in
+++ b/gcc/Makefile.in
@@ -265,6 +265,10 @@ EXTRA_PARTS =
# compiler proper (cc1, cc1obj, cc1plus).
EXTRA_OBJS =
+# List of extra object files that should be compiled and linked with
+# the gcc driver.
+EXTRA_GCC_OBJS =
+
# List of additional header files to install.
# Often this is edited directly by `configure'.
EXTRA_HEADERS =
@@ -670,11 +674,11 @@ stamp-objlist: Makefile $(OBJS) $(BC_OBJS)
# We call this executable `xgcc' rather than `gcc'
# to avoid confusion if the current directory is in the path
# and CC is `gcc'. It is renamed to `gcc' when it is installed.
-xgcc: gcc.o version.o $(LIBDEPS)
- $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ gcc.o version.o $(LIBS)
+xgcc: gcc.o version.o $(LIBDEPS) $(EXTRA_GCC_OBJS)
+ $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ gcc.o version.o $(EXTRA_GCC_OBJS) $(LIBS)
# Dump a specs file to make -B./ read these specs over installed ones.
-specs: xgcc$(exeext)
+specs: xgcc
$(GCC_FOR_TARGET) -dumpspecs > tmp-specs
mv tmp-specs specs
@@ -970,7 +974,7 @@ stmp-multilib-sub:
else true; \
fi
(cd tmpcopy; $(AR) x ../$(LIBGCC2))
- (cd tmpcopy; $(AR) $(AR_FLAGS) ../tmplibgcc.a *.o)
+ (cd tmpcopy; $(AR) $(AR_FLAGS) ../tmplibgcc.a *.$(objext))
rm -rf libgcc2.a tmpcopy
if $(RANLIB_TEST) ; then $(RANLIB) tmplibgcc.a; else true; fi
if [ -d $(dir) ]; then true; else mkdir $(dir); fi
@@ -1941,7 +1945,7 @@ clean: mostlyclean bytecode.clean lang.clean
# Using unprotoize.c is not quite right in the first place,
# but what better way is there?
-rm -f libgcc.a libgcc1.a libgcc1-asm.a libgcc2.a libgcc2.ready
- -rm -f libgcc1.null $(LIB2FUNCS_EXTRA)
+ -rm -f libgcc1.null
-rm -f *.dvi
-rm -f */*.dvi
-if [ -f md.pre-cpp ]; then \
@@ -2415,7 +2419,7 @@ gnucompare: force
done
for dir in tmp-foo $(SUBDIRS); do \
if [ "`echo $$dir/*$(objext)`" != "$$dir/*$(objext)" ] ; then \
- for file in $$dir/*.o; do \
+ for file in $$dir/*.$(objext); do \
cmp --ignore-initial=16 $$file stage2/$$file || true ; \
done; \
fi; \