diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2017-12-22 14:27:43 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2017-12-22 14:27:43 +0200 |
commit | 04235ff1134e404b133917020fa4eac1038947a0 (patch) | |
tree | 3d91d5c2b96c17048cd70491082c008977985c26 /depcomp | |
parent | a8f1600b7ba13834f476e455d382d188b49eef9e (diff) | |
parent | d2dde96decab77927a04af75fd9183666c25a624 (diff) | |
download | egawk-04235ff1134e404b133917020fa4eac1038947a0.tar.gz egawk-04235ff1134e404b133917020fa4eac1038947a0.tar.bz2 egawk-04235ff1134e404b133917020fa4eac1038947a0.zip |
Merge branch 'gawk-4.2-stable'
Diffstat (limited to 'depcomp')
-rwxr-xr-x | depcomp | 35 |
1 files changed, 35 insertions, 0 deletions
@@ -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, |