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

Russ Allbery rra@stanford.edu
Mon, 25 Oct 2010 09:40:43 -0700


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?

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>