This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: It's (PCH) merging time!


Fergus Henderson wrote:
> 
> On 07-Oct-2002, Tim Josling <tej@melbpc.org.au> wrote:
> > [Fergus Henderson wrote:]
> > >
> > > The missing dependency is
> > >
> > >         Makefile: ada/config-lang.in
> > >
> > > (and likewise for other languages).
> >
> > There should not be a hard coded dependency on any language in the makefile.
> > The configure process should 'discover' the languages to be generated.
> 
> Definitely.  My suggestion was just what dependencies need to be added,
> not how exactly this should be done.
> 
> However, I think putting the dependency
> 
>         Makefile: ada/config-lang.in
> 
> in ada/Make-lang.in (and likewise for other languages)
> would mean that this dependency would only be added when it
> is needed.
> 
> > I think it should be as follows:
> >
> > gengtype.o should depend on the config-lang.in of configured or defaulted
> > languages, also on Makefile and the makefile fragments of configured
> > languages. This needs to be set up using a variable(s) in configure.
> 
> Why make gengtype.o depend on */config-lang.in,
> rather than making gengtype.o depend on Makefile (as it already does),
> and Makefile depend on */config-lang.in, reflecting the true
> dependencies?
> 

You are correct.

Tim Josling


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]