aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1992-09-26 00:16:16 +0000
committerRichard Stallman <rms@gnu.org>1992-09-26 00:16:16 +0000
commit4ee660d23c7797889a463144467acf815b621e5c (patch)
tree5bc6deee2e45ddc1a7a4b066fa5db4a155d49d29
parent1bbe928048b11394962ebd4f809d5ba715f224d8 (diff)
downloadgcc-4ee660d23c7797889a463144467acf815b621e5c.zip
gcc-4ee660d23c7797889a463144467acf815b621e5c.tar.gz
gcc-4ee660d23c7797889a463144467acf815b621e5c.tar.bz2
In the targets such as $(HOST_PREFIX_1)rtl.o,
use sed to make them include hconfig.h instead of config.h. (distclean): Add command to delete hconfig.h. From-SVN: r2250
-rw-r--r--gcc/Makefile.in12
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/Makefile.in b/gcc/Makefile.in
index afab645..aa07ba2 100644
--- a/gcc/Makefile.in
+++ b/gcc/Makefile.in
@@ -1075,17 +1075,17 @@ genoutput.o : genoutput.c $(RTL_H) config.h
# with the rules for rtl.o, alloca.o, etc.
$(HOST_PREFIX_1)rtl.o: $(srcdir)/rtl.c $(CONFIG_H) $(RTL_H)
rm -f $(HOST_PREFIX)rtl.c
- cp $(srcdir)/rtl.c $(HOST_PREFIX)rtl.c
+ sed -e 's/config[.]/hconfig[.]h/' $(srcdir)/rtlanal.c > $(HOST_PREFIX)rtlanal.c
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(HOST_PREFIX)rtl.c
$(HOST_PREFIX_1)print-rtl.o: $(srcdir)/print-rtl.c $(CONFIG_H) $(RTL_H)
rm -f $(HOST_PREFIX)print-rtl.c
- cp $(srcdir)/print-rtl.c $(HOST_PREFIX)print-rtl.c
+ sed -e 's/config[.]/hconfig[.]h/' $(srcdir)/rtlanal.c > $(HOST_PREFIX)rtlanal.c
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(HOST_PREFIX)print-rtl.c
$(HOST_PREFIX_1)rtlanal.o: $(srcdir)/rtlanal.c $(CONFIG_H) $(RTL_H)
rm -f $(HOST_PREFIX)rtlanal.c
- cp $(srcdir)/rtlanal.c $(HOST_PREFIX)rtlanal.c
+ sed -e 's/config[.]/hconfig[.]h/' $(srcdir)/rtlanal.c > $(HOST_PREFIX)rtlanal.c
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(HOST_PREFIX)rtlanal.c
$(HOST_PREFIX_1)alloca.o: alloca.c
@@ -1095,12 +1095,12 @@ $(HOST_PREFIX_1)alloca.o: alloca.c
$(HOST_PREFIX_1)obstack.o: obstack.c
rm -f $(HOST_PREFIX)obstack.c
- cp $(srcdir)/obstack.c $(HOST_PREFIX)obstack.c
+ sed -e 's/config[.]/hconfig[.]h/' $(srcdir)/obstack.c > $(HOST_PREFIX)obstack.c
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(HOST_PREFIX)obstack.c
$(HOST_PREFIX_1)malloc.o: malloc.c
rm -f $(HOST_PREFIX)malloc.c
- cp $(srcdir)/malloc.c $(HOST_PREFIX)malloc.c
+ sed -e 's/config[.]/hconfig[.]h/' $(srcdir)/malloc.c > $(HOST_PREFIX)malloc.c
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(HOST_PREFIX)malloc.c
# This satisfies the dependency that we get if you cross-compile a compiler
@@ -1264,7 +1264,7 @@ clean: mostlyclean
# Delete all files that users would normally create
# while building and installing GCC.
distclean: clean
- -rm -f tm.h aux-output.c config.h md config.status tconfig.h
+ -rm -f tm.h aux-output.c config.h md config.status tconfig.h hconfig.h
-rm -f Makefile *.oaux
-rm -fr stage1 stage2 stage3 stage4