This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: It's (PCH) merging time!
- From: Tim Josling <tej at melbpc dot org dot au>
- To: Fergus Henderson <fjh at cs dot mu dot oz dot au>, gcc-patches at gcc dot gnu dot org
- Date: Tue, 08 Oct 2002 07:00:20 +1000
- Subject: Re: It's (PCH) merging time!
- Organization: Melbourne PC User Group
- References: <1033932057.27106.ezmlm@gcc.gnu.org> <3DA110ED.C0AA1D1@melbpc.org.au> <20021007144354.GA28739@ceres.cs.mu.oz.au>
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