lundi, le 22 mai, 2000, Bertho Stultiens nous a dit ceci:
> Matthew Clarke wrote:
> > Current CVS. Building outside the source tree. Configure run is OK.
> [snip error]
> > The makedep tool expects that all the files given on the command line
> > are source files, and, if the '-Cxxx' flag was given, that all those
> > source files are to be found in the directory named in '-C'. This is not
> > true for the files ppy.tab.c and lex.ppl.c; they are built in the build
> > directory, and are not in the source directory.
>
> These files are built from ppl.l and ppy.y, which are in the same
> directory as the other generated files y.tab.c and lex.yy.c, which are
> built from parser.y a parser.l respectively.
>
> So, why does it work for the second set, and not for the first? That
> would then be a bug in the makedep program?
I expect that y.tab.c and lex.yy.c would crash the make depend process in
the same way, were they actually submitted to the "makedep" program.
The Makefile in tools/wrc that configure built for me includes this
(without my changes):
depend: $(MAKEDEP) $(C_SRCS) $(RC_SRCS) $(EXTRA_SRCS) $(SUBDIRS:%=%/__depend__)
$(MAKEDEP) $(DIVINCL) -C$(SRCDIR) $(C_SRCS) $(RC_SRCS) $(EXTRA_SRCS)
That same Makefile sets these interesting variables (again, without my
changes):
C_SRCS = \
dumpres.c \
genres.c \
newstruc.c \
preproc.c \
readres.c \
utils.c \
wrc.c \
writeres.c
EXTRA_SRCS = parser.y parser.l ppl.l ppy.y ppy.tab.c lex.ppl.c
and does not set RC_SRCS at all.
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?
Curiously,
Matt.
--
Any research done on how to efficiently use computers has been long lost
in the mad rush to upgrade systems to do things that aren't needed by
people who don't understand what they are really supposed to do with
them. -- Graham Reed, in a.s.r.