aboutsummaryrefslogtreecommitdiffstats
path: root/depcomp
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2015-02-08 19:55:45 +0200
committerArnold D. Robbins <arnold@skeeve.com>2015-02-08 19:55:45 +0200
commit0e38201f5879cc91c90876b2b9b219a308e3a2d2 (patch)
tree04d4d2b948f2393d0c78433224d6affc9f724652 /depcomp
parent34c33ee0f9d3863f9ef381e499e396c9f447a941 (diff)
parent7306300f662a4fd4adc28e60db6aa0201ec1f5b2 (diff)
downloadegawk-0e38201f5879cc91c90876b2b9b219a308e3a2d2.tar.gz
egawk-0e38201f5879cc91c90876b2b9b219a308e3a2d2.tar.bz2
egawk-0e38201f5879cc91c90876b2b9b219a308e3a2d2.zip
Merge branch 'master' into non-fatal-io-2
Diffstat (limited to 'depcomp')
-rwxr-xr-xdepcomp37
1 files changed, 36 insertions, 1 deletions
diff --git a/depcomp b/depcomp
index 31788017..fc98710e 100755
--- a/depcomp
+++ b/depcomp
@@ -3,7 +3,7 @@
scriptversion=2013-05-30.07; # UTC
-# Copyright (C) 1999-2013 Free Software Foundation, Inc.
+# Copyright (C) 1999-2014 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -251,6 +251,41 @@ hp)
exit 1
;;
+sgi)
+ if test "$libtool" = yes; then
+ "$@" "-Wp,-MDupdate,$tmpdepfile"
+ else
+ "$@" -MDupdate "$tmpdepfile"
+ fi
+ stat=$?
+ if test $stat -ne 0; then
+ rm -f "$tmpdepfile"
+ exit $stat
+ fi
+ rm -f "$depfile"
+
+ if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
+ echo "$object : \\" > "$depfile"
+ # Clip off the initial element (the dependent). Don't try to be
+ # clever and replace this with sed code, as IRIX sed won't handle
+ # lines with more than a fixed number of characters (4096 in
+ # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
+ # the IRIX cc adds comments like '#:fec' to the end of the
+ # dependency line.
+ tr ' ' "$nl" < "$tmpdepfile" \
+ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' \
+ | tr "$nl" ' ' >> "$depfile"
+ echo >> "$depfile"
+ # The second pass generates a dummy entry for each header file.
+ tr ' ' "$nl" < "$tmpdepfile" \
+ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
+ >> "$depfile"
+ else
+ make_dummy_depfile
+ fi
+ rm -f "$tmpdepfile"
+ ;;
+
xlc)
# This case exists only to let depend.m4 do its work. It works by
# looking at the text of this script. This case will never be run,