Matthew Clarke wrote:
[snip]
> EXTRA_SRCS = parser.y parser.l ppl.l ppy.y  ppy.tab.c lex.ppl.c
> 
> and does not set RC_SRCS at all.

No, of course it does not set RC_SRCS because wrc is the resource
compiler...


> So, the only files given to makedep on the command line are:
>         dumpres.c, genres.c, newstruc.c, preproc.c, readres.c, utils.c,
>         wrc.c and writeres.c (from C_SRCS)
>         and parser.y, parser.l, ppl.l and ppl.y (from EXTRA_SRCS)
> which all exist in the source directory, and:
>         ppy.tab.c and lex.ppl.c
> which are generated in the build directory.  The other source files
> generated in the build directory:
>         lex.yy.c and y.tab.c
> are not included in any of the variables on the makedep command line.
> Did tools/wrc/Makefile get built wrong?  Should the lex.yy.c and y.tab.c
> files have been included in the "makedep" command?

Oh yeah, thats right. I forgot all about that. The problem with makedep
is that is *assumes* that xyz.y translates into y.tab.c (and y.tab.h)
and xyz.l into lex.yy.c. This is the real problem.

I need to have the conversions of ppl.l and ppy.y (into ppy.tab.c and
lex.ppl.c) *before* makedep is called because it must scan them and
enter them into the dependency list.

Don't know for sure how it should be fixed though. I'll have too into
that. Are there others with expertise in this matter?

Greetings Bertho

Reply via email to