3.2 PATCH: Fully support parallel gnat1/gnatbind builds

Zack Weinberg zack@codesourcery.com
Wed May 22 12:20:00 GMT 2002


On Wed, May 22, 2002 at 08:58:25PM +0200, Rainer Orth wrote:
> Zack Weinberg writes:
> 
> > On Wed, May 22, 2002 at 11:57:44AM -0400, Geert Bosch wrote:
> > > - For most of the
> > > 
> > > ada/<file>.o :
> > > 
> > >   targets (i.e the dependencies), it would be simpler/cleaner to
> > >   use a VPATH and remove all the directory info, unless one of the
> > >   goal is to get rid of GNU Make extensions, which would probably
> > >   add extra complexity and go backwards.
> > 
> > I do not believe the $(@D)-flags hack will work if you do that, but I
> > could easily be wrong.
> 
> I've copied the dependencies in all other language Make-lang.in's
> for this.

Other languages are not allowed to use GNU make features.

> I could try with VPATH if really desired, but since the dependencies are
> generated automatically anyway, we could leave them as is (i.e. with the
> ada subdir) and avoid the need for GNU make in this case.
> 
> I suppose VPATH = $(VPATH):@srcdir@/ada in ada/Make-lang.in should suffice
> to achieve this only for builds including ada?

You can't use @-substitutions in Make-lang.in.  $(srcdir) should work,
though.

zw



More information about the Gcc-patches mailing list