diff options
Diffstat (limited to 'gcc/fixinc/Makefile.in')
-rw-r--r-- | gcc/fixinc/Makefile.in | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/gcc/fixinc/Makefile.in b/gcc/fixinc/Makefile.in index 88f615da36e..d0dfb0c2f4b 100644 --- a/gcc/fixinc/Makefile.in +++ b/gcc/fixinc/Makefile.in @@ -1,6 +1,6 @@ # Makefile for GNU compilers. # -# Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc. +# Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc. #This file is part of GNU CC. @@ -22,8 +22,15 @@ # The makefile built from this file lives in the fixinc subdirectory. # Its purpose is to build the any-platforms fixinc.sh script. +SHELL=/bin/sh + +# Some versions of `touch' (such as the version on Solaris 2.8) +# do not correctly set the timestamp due to buggy versions of `utime' +# in the kernel. So, we use `echo' instead. +STAMP = echo timestamp > + FL_LIST = $(CFLAGS) $(CPPFLAGS) $(WARN_CFLAGS) -FIXINC_DEFS = -DIN_GCC $(FL_LIST) $(INCLUDES) +FIXINC_DEFS = -DIN_GCC -DHAVE_CONFIG_H $(FL_LIST) $(INCLUDES) # Directory where sources are, from where we are. srcdir = @srcdir@ @@ -78,11 +85,11 @@ twoprocess : test-stamp $(AF) full-stamp : $(ALLOBJ) $(LIBERTY) $(CC) $(FIXINC_DEFS) $(LDFLAGS) -o $(FI) $(ALLOBJ) $(LIBERTY) - touch $@ + $(STAMP) $@ test-stamp : $(TESTOBJ) $(LIBERTY) $(CC) $(FIXINC_DEFS) $(LDFLAGS) -o $(FI) $(TESTOBJ) $(LIBERTY) - touch $@ + $(STAMP) $@ $(AF): $(FIXOBJ) $(LIBERTY) $(CC) $(FIXINC_DEFS) $(LDFLAGS) -o $@ $(FIXOBJ) $(LIBERTY) @@ -115,7 +122,7 @@ maintainer-clean : clean # We still copy the script because we still have alternative scripts. # install-bin : $(TARGETS) - ./fixincl -v + ./fixincl -v < /dev/null @if [ -f ../fixinc.sh ] ; then rm -f ../fixinc.sh || \ mv -f ../fixinc.sh ../fixinc.sh.$$ || exit 1 ; else : ; fi @cp $(srcdir)/fixincl.sh ../fixinc.sh |