gallium/targets: use install-gallium-targets.mk
authorEmil Velikov <emil.l.velikov@gmail.com>
Sun, 2 Mar 2014 21:10:57 +0000 (21:10 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 11 Mar 2014 12:50:42 +0000 (12:50 +0000)
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Jon TURNEY <jon.turney@dronecode.org.uk>
src/gallium/targets/egl-static/Makefile.am
src/gallium/targets/libgl-xlib/Makefile.am
src/gallium/targets/opencl/Makefile.am
src/gallium/targets/osmesa/Makefile.am

index 50a61222b9a32a63c2fffd8ca8b167cc69bb441d..282fa6682f2dd000ae67f3b7cc9e3992743b019d 100644 (file)
@@ -242,22 +242,4 @@ endif
 endif
 endif
 
-# 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.
-if HAVE_OPENGL
-if !HAVE_SHARED_GLAPI
-all-local: egl_gallium.la st_GL.la
-       $(MKDIR_P) $(top_builddir)/$(LIB_DIR)/egl
-       ln -f .libs/egl_gallium.so $(top_builddir)/$(LIB_DIR)/egl/egl_gallium.so
-       ln -f .libs/st_GL.so $(top_builddir)/$(LIB_DIR)/egl/st_GL.so
-else
-all-local: egl_gallium.la
-       $(MKDIR_P) $(top_builddir)/$(LIB_DIR)/egl
-       ln -f .libs/egl_gallium.so $(top_builddir)/$(LIB_DIR)/egl/egl_gallium.so
-
-endif
-else
-all-local: egl_gallium.la
-       $(MKDIR_P) $(top_builddir)/$(LIB_DIR)/egl
-       ln -f .libs/egl_gallium.so $(top_builddir)/$(LIB_DIR)/egl/egl_gallium.so
-endif
+include $(top_srcdir)/install-gallium-links.mk
index 3753e8abd5cc1fcad4f2cac1e55264f7909af57a..7e84ffe126211d7a653f4b8fc02f919694cb16ed 100644 (file)
@@ -72,8 +72,4 @@ libGL_la_LINK = $(CXXLINK) $(libGL_la_LDFLAGS)
 nodist_EXTRA_libGL_la_SOURCES = dummy-c.c
 endif
 
-# 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: libGL.la
-       $(MKDIR_P) $(top_builddir)/$(LIB_DIR)/gallium
-       ln -f .libs/libGL.so* $(top_builddir)/$(LIB_DIR)/gallium/
+include $(top_srcdir)/install-gallium-links.mk
index a94a518660c38dfc59d329f40b1f53475efb384e..20a52476842dda69d8aec39e59bf6a88c35be851 100644 (file)
@@ -51,8 +51,4 @@ icddir = /etc/OpenCL/vendors/
 icd_DATA = mesa.icd
 endif
 
-# 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@OPENCL_LIBNAME@.la
-       $(MKDIR_P) $(top_builddir)/$(LIB_DIR)
-       ln -f .libs/lib@OPENCL_LIBNAME@.so* $(top_builddir)/$(LIB_DIR)/
+include $(top_srcdir)/install-gallium-links.mk
index 8e6aff6c0a65741c706ad68974a200ec33d30ca8..beb9bbaa7da82a2b7743b1edab0b2c22b039ba1b 100644 (file)
@@ -68,14 +68,7 @@ endif
 
 
 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@OSMESA_LIB@.la
-       $(MKDIR_P) $(top_builddir)/$(LIB_DIR);
-       $(MKDIR_P) $(top_builddir)/$(LIB_DIR)/gallium;
-       ln -f .libs/lib@OSMESA_LIB@.so $(top_builddir)/$(LIB_DIR)/gallium/lib@OSMESA_LIB@.so;
-       ln -f .libs/lib@OSMESA_LIB@.so.@OSMESA_VERSION@ $(top_builddir)/$(LIB_DIR)/gallium/lib@OSMESA_LIB@.so.@OSMESA_VERSION@;
-       ln -f .libs/lib@OSMESA_LIB@.so.@OSMESA_VERSION@.0.0 $(top_builddir)/$(LIB_DIR)/gallium/
+include $(top_srcdir)/install-gallium-links.mk
 endif
 
 pkgconfigdir = $(libdir)/pkgconfig