handling "multi-part" source files

Robert P. J. Day rpjday at mindspring.com
Fri May 12 04:21:00 PDT 2006


On Thu, 11 May 2006, Rob Landley wrote:

> On Thursday 11 May 2006 12:34 pm, Robert P. J. Day wrote:
> > On Thu, 11 May 2006, Rob Landley wrote:
> > > If we have a .c file, figuring out how to build it is easy.  If
> > > we need a .o file, figuring out where it lives is somewhat
> > > harder. Possibly this properly belongs in the dependency
> > > generation step?
> >
> > that's what the "objrule" macro is doing -- it's being invoked to
> > create the appropriate dependency between an object file and its
> > containing multi-part source file.
>
> You know, if we can just autodetect the list of symbols within a
> file that we point a variable at, we're still better off than what
> Makefile.in is doing now.
>
> Let's see, chopping from your patch...
>
> Try svn 15074.  Where can we clean it up from here?

there are several cumulative fixes that can be added little by little,
but the next obvious one is to get rid of all of those references tio
$(srcdir) and replace that with a single use of "vpath."  once you do
that, a number of other cleanups become possible.

would you like me to submit the appropriate vpath-related patch?

rday


More information about the busybox mailing list