Mesa (master): automake: use install-lib-links.mk across all classic mesa
Emil Velikov
evelikov at kemper.freedesktop.org
Tue Mar 11 13:07:19 UTC 2014
Module: Mesa
Branch: master
Commit: 7b4ccad33dfb42e93d89ff60a33cc329c38b9dc7
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7b4ccad33dfb42e93d89ff60a33cc329c38b9dc7
Author: Emil Velikov <emil.l.velikov at gmail.com>
Date: Sun Mar 2 20:13:54 2014 +0000
automake: use install-lib-links.mk across all classic mesa
Use the handy script and minimise the boilerplate in the makefiles.
Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
Reviewed-by: Jon TURNEY <jon.turney at dronecode.org.uk>
---
src/egl/wayland/wayland-egl/Makefile.am | 2 ++
src/mesa/drivers/osmesa/Makefile.am | 8 +-------
src/mesa/drivers/x11/Makefile.am | 7 +------
3 files changed, 4 insertions(+), 13 deletions(-)
diff --git a/src/egl/wayland/wayland-egl/Makefile.am b/src/egl/wayland/wayland-egl/Makefile.am
index 6e92b29..c8d0196 100644
--- a/src/egl/wayland/wayland-egl/Makefile.am
+++ b/src/egl/wayland/wayland-egl/Makefile.am
@@ -11,3 +11,5 @@ libwayland_egl_la_SOURCES = wayland-egl.c
libwayland_egl_la_LDFLAGS = -version-info 1
TESTS = wayland-egl-symbols-check
+
+include $(top_srcdir)/install-lib-links.mk
diff --git a/src/mesa/drivers/osmesa/Makefile.am b/src/mesa/drivers/osmesa/Makefile.am
index 4935335..2fdd6fd 100644
--- a/src/mesa/drivers/osmesa/Makefile.am
+++ b/src/mesa/drivers/osmesa/Makefile.am
@@ -48,13 +48,7 @@ lib at OSMESA_LIB@_la_LIBADD = \
$(OSMESA_LIB_DEPS)
if BUILD_SHARED
-# Provide compatibility with scripts for the old Mesa build system for
-# a while by putting a link to the driver into /lib of the build tree.
-all-local: lib at OSMESA_LIB@.la
- $(MKDIR_P) $(top_builddir)/$(LIB_DIR);
- ln -f .libs/lib at OSMESA_LIB@.so $(top_builddir)/$(LIB_DIR)/lib at OSMESA_LIB@.so;
- ln -f .libs/lib at OSMESA_LIB@.so. at OSMESA_VERSION@ $(top_builddir)/$(LIB_DIR)/lib at OSMESA_LIB@.so. at OSMESA_VERSION@;
- ln -f .libs/lib at OSMESA_LIB@.so. at OSMESA_VERSION@.0.0 $(top_builddir)/$(LIB_DIR)/
+include $(top_srcdir)/install-lib-links.mk
endif
pkgconfigdir = $(libdir)/pkgconfig
diff --git a/src/mesa/drivers/x11/Makefile.am b/src/mesa/drivers/x11/Makefile.am
index 32bd385..3f3a24b 100644
--- a/src/mesa/drivers/x11/Makefile.am
+++ b/src/mesa/drivers/x11/Makefile.am
@@ -65,10 +65,5 @@ lib at GL_LIB@_la_LDFLAGS = \
$(GL_LIB_DEPS)
if BUILD_SHARED
-# Provide compatibility with scripts for the old Mesa build system for
-# a while by putting a link to the driver into /lib of the build tree.
-all-local: lib at GL_LIB@.la
- $(MKDIR_P) $(top_builddir)/$(LIB_DIR);
- ln -f .libs/lib at GL_LIB@.so.$(GL_MAJOR).$(GL_MINOR).$(GL_PATCH) $(top_builddir)/$(LIB_DIR)/lib at GL_LIB@.so.$(GL_MAJOR)
- ln -sf lib at GL_LIB@.so.$(GL_MAJOR) $(top_builddir)/$(LIB_DIR)/lib at GL_LIB@.so
+include $(top_srcdir)/install-lib-links.mk
endif
More information about the mesa-commit
mailing list