Since 3.31 version, aCC could handle dependencies.
It's better to use it because makedepend is -very very very- slow and don't understand anything to -A* flag which affect include path.
So, i wrote this little piece of code for depcomp which works well for me:
i just add an aCC section before #nosideeffect:
aCC)
## aCC 03.31 handle dependencies with +M[d] flag
## if d is omited, dependencies are sent to stdout
## if not, dependencies are sent to object file prefix
## folowed by .d suffix
dfile=`echo $object | sed -e 's/\([^\.]*\)\.l*o/\1.d/'`
"$@" +Md
stat=$?
if test $stat -eq 0; then :
else
rm -f "$dfile"
exit $stat
fi
rm -f "$depfile"
cp "$dfile" "$depfile"
rm -f "$dfile"
;;Maybe with some errors correction, it could be included in the automake distribution.
Stephane
--
je m'applique volontiers � penser aux choses auxquelles je pense que les autres ne penseront pas (Marcel ACHARD)
