Tom Tromey writes:
> >>>>> "Alex" == Alex Hornby <[EMAIL PROTECTED]> writes:
>
> Alex> I'm using CVS automake and have source files in sub directories of my
> Alex> project like so:
>
> Alex> That would be fine, but AFAICT there is no way for make to apply the
> Alex> normal .c.o suffix rule in this case to produce the object file. How
> Alex> can I get this behaviour?
>
> I thought I fixed this to generate explicit rules in this situation.
> Perhaps I missed a case :-(
>
> T
Tom,
I think the problem is that there is an explicit dependency generated,
but no explicit action is attached to it. The implicit .c.o rules fail
as the source and object files have different prefixed paths despite
having a matching "basename" prefix.
I think to get this to work, the options are:
a) added the source path to VPATH. May not work on non GNU makes.
b) generate the object file in a the source directory (okay if the
source is generated under object directory, baaad otherwise)
c) Add actions to the the explicit dependency currently in
place. I can't see a way of getting this to use an existing
implicit rule, but perhaps make gurus know better :)
Are any of these things feasible?
Alex.