[OpenAFS-devel] Re: [OpenAFS] Re: Latest docs on building the OpenAFS source code

Benjamin Kaduk kaduk@MIT.EDU
Mon, 25 Oct 2010 22:58:57 -0400 (EDT)


On Mon, 25 Oct 2010, Russ Allbery wrote:

> Simon Wilkinson <sxw@inf.ed.ac.uk> writes:
>
>> It's actually an AFS_CCRULE that you should be invoking.
>
>> My suspicion is that this is down to suffix rules. POSIX make should
>> have a default .y.c suffix rule, which is used to produce
>> error_table.c. Our .c.o rule then uses that to build error_table.o.
>
>> However, your make seems to be going directly from .y to .o (going via
>> y.tab.c on the way). This suggests to me that it has a .y.o rule, which
>> uses its own compiler line, and so doesn't pick up AFS_CCRULE at all.
>
>> You may be able to fix this by explicitly defining a y.c rule - although
>> I'm not sure if that will 'win' over a default .y.o one.
>
> I don't think we want to rely on any of the default suffix rules.  Does
> BSD support:
>
>    .SUFFIXES:
>
> to disable all built-in suffix rules?

It does, though in this case I was able to proceed by adding an explicit 
dependency on error_table.c to the error_table.o rule (gerrit/3145).

-Ben