31 |
fi |
fi |
32 |
# `libtool' can also be set to `yes' or `no'. |
# `libtool' can also be set to `yes' or `no'. |
33 |
|
|
34 |
depfile=${depfile-`echo "$object" | sed 's,\([^/]*\)$,.deps/\1,;s/\.\([^.]*\)$/.P\1/'`} |
if test -z "$depfile"; then |
35 |
|
base=`echo "$object" | sed -e 's,^.*/,,' -e 's,\.\([^.]*\)$,.P\1,'` |
36 |
|
dir=`echo "$object" | sed 's,/.*$,/,'` |
37 |
|
if test "$dir" = "$object"; then |
38 |
|
dir= |
39 |
|
fi |
40 |
|
# FIXME: should be _deps on DOS. |
41 |
|
depfile="$dir.deps/$base" |
42 |
|
fi |
43 |
|
|
44 |
tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} |
tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} |
45 |
|
|
46 |
rm -f "$tmpdepfile" |
rm -f "$tmpdepfile" |
213 |
# dependencies in `foo.d' instead, so we check for that too. |
# dependencies in `foo.d' instead, so we check for that too. |
214 |
# Subdirectories are respected. |
# Subdirectories are respected. |
215 |
|
|
216 |
tmpdepfile1="$object.d" |
base=`echo "$object" | sed -e 's/\.o$/.d/' -e 's/\.lo$/.d/'` |
217 |
tmpdepfile2=`echo "$object" | sed -e 's/.o$/.d/'` |
tmpdepfile1="$base.o.d" |
218 |
|
tmpdepfile2="$base.d" |
219 |
if test "$libtool" = yes; then |
if test "$libtool" = yes; then |
220 |
"$@" -Wc,-MD |
"$@" -Wc,-MD |
221 |
else |
else |
392 |
done |
done |
393 |
;; |
;; |
394 |
esac |
esac |
395 |
|
for arg |
396 |
|
do |
397 |
|
case "$arg" in |
398 |
|
"-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") |
399 |
|
set fnord "$@" |
400 |
|
shift |
401 |
|
shift |
402 |
|
;; |
403 |
|
*) |
404 |
|
set fnord "$@" "$arg" |
405 |
|
shift |
406 |
|
shift |
407 |
|
;; |
408 |
|
esac |
409 |
|
done |
410 |
"$@" -E | |
"$@" -E | |
411 |
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" |
412 |
) & |
) & |