31 |
fi |
fi |
32 |
# `libtool' can also be set to `yes' or `no'. |
# `libtool' can also be set to `yes' or `no'. |
33 |
|
|
34 |
if test -z "$depfile"; then |
depfile=${depfile-`echo "$object" | sed 's,\([^/]*\)$,.deps/\1,;s/\.\([^.]*\)$/.P\1/'`} |
|
base=`echo "$object" | sed -e 's,^.*/,,' -e 's,\.\([^.]*\)$,.P\1,'` |
|
|
dir=`echo "$object" | sed 's,/.*$,/,'` |
|
|
if test "$dir" = "$object"; then |
|
|
dir= |
|
|
fi |
|
|
# FIXME: should be _deps on DOS. |
|
|
depfile="$dir.deps/$base" |
|
|
fi |
|
|
|
|
35 |
tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} |
tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} |
36 |
|
|
37 |
rm -f "$tmpdepfile" |
rm -f "$tmpdepfile" |
204 |
# dependencies in `foo.d' instead, so we check for that too. |
# dependencies in `foo.d' instead, so we check for that too. |
205 |
# Subdirectories are respected. |
# Subdirectories are respected. |
206 |
|
|
207 |
base=`echo "$object" | sed -e 's/\.o$/.d/' -e 's/\.lo$/.d/'` |
tmpdepfile1="$object.d" |
208 |
tmpdepfile1="$base.o.d" |
tmpdepfile2=`echo "$object" | sed -e 's/.o$/.d/'` |
|
tmpdepfile2="$base.d" |
|
209 |
if test "$libtool" = yes; then |
if test "$libtool" = yes; then |
210 |
"$@" -Wc,-MD |
"$@" -Wc,-MD |
211 |
else |
else |
314 |
if test "$stat" != 0; then exit $stat; fi |
if test "$stat" != 0; then exit $stat; fi |
315 |
rm -f "$depfile" |
rm -f "$depfile" |
316 |
cat < "$tmpdepfile" > "$depfile" |
cat < "$tmpdepfile" > "$depfile" |
317 |
sed '1,2d' "$tmpdepfile" | tr ' ' ' |
tail +3 "$tmpdepfile" | tr ' ' ' |
318 |
' | \ |
' | \ |
319 |
## Some versions of the HPUX 10.20 sed can't process this invocation |
## Some versions of the HPUX 10.20 sed can't process this invocation |
320 |
## correctly. Breaking it into two sed invocations is a workaround. |
## correctly. Breaking it into two sed invocations is a workaround. |
382 |
done |
done |
383 |
;; |
;; |
384 |
esac |
esac |
|
for arg |
|
|
do |
|
|
case "$arg" in |
|
|
"-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") |
|
|
set fnord "$@" |
|
|
shift |
|
|
shift |
|
|
;; |
|
|
*) |
|
|
set fnord "$@" "$arg" |
|
|
shift |
|
|
shift |
|
|
;; |
|
|
esac |
|
|
done |
|
385 |
"$@" -E | |
"$@" -E | |
386 |
sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile" |
sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile" |
387 |
) & |
) & |