172 |
|
|
173 |
aix) |
aix) |
174 |
# The C for AIX Compiler uses -M and outputs the dependencies |
# The C for AIX Compiler uses -M and outputs the dependencies |
175 |
# in a .u file. This file always lives in the current directory. |
# in a .u file. In older versions, this file always lives in the |
176 |
# Also, the AIX compiler puts `$object:' at the start of each line; |
# current directory. Also, the AIX compiler puts `$object:' at the |
177 |
# $object doesn't have directory information. |
# start of each line; $object doesn't have directory information. |
178 |
stripped=`echo "$object" | sed -e 's,^.*/,,' -e 's/\(.*\)\..*$/\1/'` |
# Version 6 uses the directory in both cases. |
179 |
|
stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'` |
180 |
tmpdepfile="$stripped.u" |
tmpdepfile="$stripped.u" |
|
outname="$stripped.o" |
|
181 |
if test "$libtool" = yes; then |
if test "$libtool" = yes; then |
182 |
"$@" -Wc,-M |
"$@" -Wc,-M |
183 |
else |
else |
184 |
"$@" -M |
"$@" -M |
185 |
fi |
fi |
|
|
|
186 |
stat=$? |
stat=$? |
187 |
|
|
188 |
|
if test -f "$tmpdepfile"; then : |
189 |
|
else |
190 |
|
stripped=`echo "$stripped" | sed 's,^.*/,,'` |
191 |
|
tmpdepfile="$stripped.u" |
192 |
|
fi |
193 |
|
|
194 |
if test $stat -eq 0; then : |
if test $stat -eq 0; then : |
195 |
else |
else |
196 |
rm -f "$tmpdepfile" |
rm -f "$tmpdepfile" |
198 |
fi |
fi |
199 |
|
|
200 |
if test -f "$tmpdepfile"; then |
if test -f "$tmpdepfile"; then |
201 |
|
outname="$stripped.o" |
202 |
# Each line is of the form `foo.o: dependent.h'. |
# Each line is of the form `foo.o: dependent.h'. |
203 |
# Do two passes, one to just change these to |
# Do two passes, one to just change these to |
204 |
# `$object: dependent.h' and one to simply `dependent.h:'. |
# `$object: dependent.h' and one to simply `dependent.h:'. |