[Mesa-dev] [PATCH 3/5] build: fix location of generated files in src/mesa

Matt Turner mattst88 at gmail.com
Tue Jul 10 12:20:04 PDT 2012


On Sun, Jul 8, 2012 at 10:44 PM, Christopher James Halse Rogers
<christopher.halse.rogers at canonical.com> wrote:
> On Sun, 2012-07-08 at 19:39 -0700, Kenneth Graunke wrote:
>> On 07/08/2012 04:14 PM, Christopher James Halse Rogers wrote:
>> > Signed-off-by: Christopher James Halse Rogers <christopher.halse.rogers at canonical.com>
>> > ---
>> >  src/mesa/sources.mak |    9 +++++----
>> >  1 file changed, 5 insertions(+), 4 deletions(-)
>> >
>> > diff --git a/src/mesa/sources.mak b/src/mesa/sources.mak
>> > index 16b1c39..87191fd 100644
>> > --- a/src/mesa/sources.mak
>> > +++ b/src/mesa/sources.mak
>> > @@ -4,8 +4,8 @@ SRCDIR ?= .
>> >
>> >  # this is part of MAIN_FILES
>> >  MAIN_ES_FILES = \
>> > -   $(SRCDIR)/main/api_exec_es1.c \
>> > -   $(SRCDIR)/main/api_exec_es2.c
>> > +   $(TOP)/src/mesa/main/api_exec_es1.c \
>> > +   $(TOP)/src/mesa/main/api_exec_es2.c
>>
>> Could we use $(top_builddir) instead of $(TOP)?  As your first patch
>> demonstrates, there are really two top-level directories, so $(TOP) is
>> ambiguous/confusing.  I'd rather see us stop using it, for clarity.
>
> It's included in a number of non-automake Makefiles, where IIUC
> $(top_builddir) is not normally defined.
>
> On the other hand, making these Makefiles define $(top_builddir) instead
> of $(TOP) would be easy, and probably makes sense given the transition
> to autotools. I'll do that.

Ultimately, I think we should kill off $(TOP). It seems to often be
the source of top_srcdir/top_builddir confusion.


More information about the mesa-dev mailing list