]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
* lib/depcomp (tru64): New dependency tracking mode.
authorTom Tromey <tromey@redhat.com>
Thu, 17 May 2001 07:20:34 +0000 (07:20 +0000)
committerTom Tromey <tromey@redhat.com>
Thu, 17 May 2001 07:20:34 +0000 (07:20 +0000)
ChangeLog
lib/depcomp

index 26efb443665e900654f329193dd00f9e158a0466..3b95f93c327b1b6f5315f9bca3941ac3d25d5ef1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2001-05-17  Tom Tromey  <tromey@redhat.com>
 
+       * lib/depcomp (tru64): New dependency tracking mode.
+
        Fix for PR automake/159:
        * lib/depcomp (aix): Rewrote.
        (sgi): Likewise.
index 06ab994d88e2486f9a1030fe3533f40190a69077..f353c5a3cf6ad52f307f03d43185a3fa3e381c1c 100755 (executable)
@@ -191,6 +191,35 @@ aix)
   rm -f "$tmpdepfile"
   ;;
 
+tru64)
+   # The Tru64 AIX compiler uses -MD to generate dependencies as a side
+   # effect.  `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
+   # Subdirectories are respected.
+
+   tmpdepfile="$object.d"
+   if test "$libtool" = yes; then
+      "$@" -Wc,-MD
+   else
+      "$@" -MD
+   fi
+
+   stat=$?
+   if test $stat -eq 0; then :
+   else
+      rm -f "$tmpdepfile"
+      exit $stat
+   fi
+
+   if test -f "$tmpdepfile"; then
+      sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
+      # That's a space and a tab in the [].
+      sed -e 's,^.*\.[a-z]*:[  ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
+   else
+      echo "#dummy" > "$depfile"
+   fi
+   rm -f "$tmpdepfile"
+   ;;
+
 #nosideeffect)
   # This comment above is used by automake to tell side-effect
   # dependency tracking mechanisms from slower ones.