At Sunday 25 April 2010, Ralf Wildenhues <[email protected]>
wrote:
> Then, look at automake.in:lang_yacc_target_hook. It already
> computes the name of the .c file. The missing part is then to
> find out whether the .$(OBJEXT) or .lo file is renamed (and thus
> will already be handled by an explicit rule anyway), or whether it
> will be handled by one of the suffix rules .c.$(OBJEXT) or .c.lo.
>
OK, I must admit to be stuck here. How can I know what objects files
are expected to be compiled from, say, a bar.c file, in turn generated
from a bar.l file?
Or (e.g.) how can I distinguish the following situation:
foo_SOURCES = bar.l
(where bar.c is generated from bar.l, bar.o is generated from bar.c,
and no explicit dependency rule is generated), from the following
situation:
foo_SOURCES = bar.l
foo_CFLAGS = $(AM_CFLAGS)
(where bar.c is generated from bar.l, and foo-bar.o is generated from
bar.c, with an explicit dependency rule of foo-bar.o from bar.c)?
Thanks,
Stefano