[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: advanced auto-dependencies
From: |
Greg Chicares |
Subject: |
Re: advanced auto-dependencies |
Date: |
Fri, 06 Feb 2004 13:43:47 -0500 |
Boris Kolpackov wrote:
[...]
> Suppose we have
> 'hello.idl' which can be compiled to 'hello_stub.hpp' and 'hello_stub.cpp'.
> Plus we have 'client.cpp' which includes 'hello_stub.hpp' and gets compiled
> into client.o. Finally, 'client.o' and 'hello_stub.o' are used to produce
> 'client':
>
> client : client.o hello_stub.o
> g++ -o $@ $^
>
> -include client.o.d # dependencies for client.o
> -include hello_stub.o.d # dependencies for hello_stub.o
>
> hello_stub.hpp hello_stub.cpp : hello.idl
> idlc hello.idl
>
> In the makefile fragment above I assume that there is an implicit rule
> to compile .cpp to .o and generate dependencies at the same time.
Here, it appears that the top-level language is not C++ but
rather 'idl', which uses C++ as an intermediate language.
If that's the case, then you'll need a tool that generates
dependency files from .idl files--automatically generating
dependencies among intermediate C++ files isn't enough.