From 20bd0ab1f330f3da19f7ca390b6d2bf9746f39e8 Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Sun, 10 May 1992 19:07:04 +0000 Subject: [PATCH] *** empty log message *** From-SVN: r955 --- gcc/Makefile.in | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/gcc/Makefile.in b/gcc/Makefile.in index aa7060608b0..81f75e1948d 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in @@ -114,6 +114,13 @@ RANLIB_FOR_TARGET = $(TARGET_TOOLPREFIX)ranlib RANLIB_TEST_FOR_TARGET = [ -f $(TARGET_TOOLPREFIX)ranlib ] CROSS_TOOLS = +# There may be a premade insn-attrtab.c for this machine. +# (You could rebuild it with genattrtab as usual, but it takes a long time.) +# PREMADE_ATTRTAB is the file name of the file to use. +# PREMADE_ATTRTAB_MD is the md file it corresponds to. +PREMADE_ATTRTAB_MD = Makefile # Guaranteed not to cmp equal to md. +PREMADE_ATTRTAB = + target= ... `configure' substitutes actual target name here. xmake_file= ... `configure' substitutes actual x- file name here. tmake_file= ... `configure' substitutes actual t- file name here. @@ -916,7 +923,13 @@ stamp-attr : md genattr $(srcdir)/move-if-change insn-attrtab.c: stamp-attrtab ; stamp-attrtab : md genattrtab $(srcdir)/move-if-change - ./genattrtab md > tmp-attrtab.c + if cmp -s $(PREMADE_ATTRTAB_MD) md; \ + then \ + echo Using $(PREMADE_ATTRTAB); \ + cp $(srcdir)/$(PREMADE_ATTRTAB) tmp-attrtab.c; \ + else \ + ./genattrtab md > tmp-attrtab.c; \ + fi $(srcdir)/move-if-change tmp-attrtab.c insn-attrtab.c touch stamp-attrtab @@ -1201,7 +1214,11 @@ mostlyclean: # Delete all files made by compilation # that don't exist in the distribution. clean: mostlyclean - -rm -f libgcc.a libgcc1.a libgcc2.a libgcc2.ready +# It may not be quite desirable to delete unprotoize.c here, +# but the spec for `make clean' requires it. +# Using unprotoize.c is not quite right in the first place, +# but what better way is there? + -rm -f libgcc.a libgcc1.a libgcc2.a libgcc2.ready unprotoize.c # Delete all files that users would normally create # while building and installing GCC. -- 2.30.2