automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

aCC dependencies


From: Stéphane Pion
Subject: aCC dependencies
Date: Wed, 13 Aug 2003 12:13:09 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030714 Debian/1.4-2 StumbleUpon/1.73

Hi,

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)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]