diff options
author | Jon TURNEY <[email protected]> | 2012-06-29 18:09:37 +0100 |
---|---|---|
committer | Jon TURNEY <[email protected]> | 2012-07-13 12:44:07 +0100 |
commit | b2a37e242ea60fde6d616814a30b89325875d0df (patch) | |
tree | e1b3080f675b836e6d8eab38259f0354accb788e /src/mesa | |
parent | 1e48dfeee6007b87b45cb3817aa375aa46e9c249 (diff) |
automake: convert libglapi
* "configure substitutions are not allowed in _SOURCES variables" in automake,
so remove the AC_SUBST'ed GLAPI_ASM_SOURCES and instead use some AM_CONDITIONALS
to choose which asm sources are used
* Change GLAPI_LIB to point to the .la file in other Makefile.am files, and make a link
to the .a file for the convenience of other Makefiles which have not yet been converted
to automake
v2:
- Use AM_CPPFLAGS for cleaner build output
- EXTRA_SOURCES is not needed
- Remove libglapi.a compatibility link on clean
Signed-off-by: Jon TURNEY <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Tested-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/osmesa/Makefile.am | 2 | ||||
-rw-r--r-- | src/mesa/drivers/x11/Makefile.am | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/osmesa/Makefile.am b/src/mesa/drivers/osmesa/Makefile.am index 6dadf4614fc..9989c92620f 100644 --- a/src/mesa/drivers/osmesa/Makefile.am +++ b/src/mesa/drivers/osmesa/Makefile.am @@ -40,7 +40,7 @@ lib@OSMESA_LIB@_la_SOURCES = osmesa.c lib@OSMESA_LIB@_la_LDFLAGS = -module -version-number @OSMESA_VERSION@ -shared lib@OSMESA_LIB@_la_LIBADD = \ $(top_builddir)/src/mesa/libmesa.la \ - $(top_builddir)/src/mapi/glapi/libglapi.a \ + $(top_builddir)/src/mapi/glapi/libglapi.la \ $(top_builddir)/src/glsl/libglsl.la # Provide compatibility with scripts for the old Mesa build system for diff --git a/src/mesa/drivers/x11/Makefile.am b/src/mesa/drivers/x11/Makefile.am index 4948e8f9c76..52febbb8d1b 100644 --- a/src/mesa/drivers/x11/Makefile.am +++ b/src/mesa/drivers/x11/Makefile.am @@ -57,7 +57,7 @@ GL_PATCH = 0 libGL_la_LIBADD = \ $(top_builddir)/src/mesa/libmesa.la \ - $(top_builddir)/src/mapi/glapi/libglapi.a + $(top_builddir)/src/mapi/glapi/libglapi.la libGL_la_LDFLAGS = \ -version-number $(GL_MAJOR):$(GL_MINOR):$(GL_PATCH) \ $(GL_LIB_DEPS) |