This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: Automake and makedepend
- From: Ralf Wildenhues <Ralf dot Wildenhues at gmx dot de>
- To: Stan Guillory <Stan dot Guillory at wnco dot com>
- Cc: automake at gnu dot org
- Date: Fri, 13 May 2005 17:41:11 +0200
- Subject: Re: Automake and makedepend
- Organization: Department of Numerical Simulation, University of Bonn
- References: <s283534a.021@tlfa.com>
* Stan Guillory wrote on Thu, May 12, 2005 at 07:56:17PM CEST:
>
> 1) Should the dependency tracking mechanism in automake work by default
> with Sun Forte C++ 5.4?
I only have access to a different compiler version. What does yours do
after this series of commands (in a junk directory):
mkdir a b c d
cat >a/a.cc <<EOF
#include "b.h"
#include "c/a.h"
#include <stdio.h>
int x=0;
EOF
echo >b/b.h
echo >c/a.h
CC -Ib -I. -xM -c a/a.cc
echo $?
and what does it do with
CC -Ib -I. -xM -c a/a.cc -o d/a.o
echo $?
? Over here, the second one triggers the error
| CC: Suffix mismatch between -o and produced file (should produce .i)
which prevents the dashXmstdout depmode to work. I believe it's a
compiler bug, but don't know for sure (have only looked very briefly at
the documentation).
However, on this system
depmode=makedepend source=a/a.cc object=d/a.o libtool=no \
sh -x path/to/depcomp CC -Ib -I. -c a/a.cc -o d/a.o
works. So, the question is whether `depcomp' needs to cut out any of
your $CPPFLAGS or $CXXFLAGS which could make makedepend barf.
Regards,
Ralf