pipe-loader: Fix out of source build
authorNiels Ole Salscheider <niels_ole@salscheider-online.de>
Sun, 24 Feb 2013 22:00:04 +0000 (23:00 +0100)
committerMichel Dänzer <michel@daenzer.net>
Wed, 10 Apr 2013 07:45:04 +0000 (09:45 +0200)
Signed-off-by: Niels Ole Salscheider <niels_ole@salscheider-online.de>
src/gallium/targets/opencl/Makefile.am

index 389eecc9d932c2c2fe121e9cba6aee4baa7fe6e1..810f9bbeb22ca998485929d4f0d143a0f30e53a3 100644 (file)
@@ -32,11 +32,11 @@ libOpenCL_la_SOURCES =
 # Force usage of a C++ linker
 nodist_EXTRA_libOpenCL_la_SOURCES = dummy.cpp
 
-PIPE_SRC_DIR = $(top_srcdir)/src/gallium/targets/pipe-loader
+PIPE_BUILD_DIR = $(top_builddir)/src/gallium/targets/pipe-loader
 
 # 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: libOpenCL.la
-       @$(MAKE) -C $(PIPE_SRC_DIR)
+       @$(MAKE) -C $(PIPE_BUILD_DIR)
        $(MKDIR_P) $(top_builddir)/$(LIB_DIR)
        ln -f .libs/libOpenCL.so* $(top_builddir)/$(LIB_DIR)/