clover: Don't install headers when using the icd
authorTom Stellard <thomas.stellard@amd.com>
Tue, 29 Oct 2013 16:48:37 +0000 (12:48 -0400)
committerTom Stellard <thomas.stellard@amd.com>
Wed, 30 Oct 2013 23:40:06 +0000 (16:40 -0700)
The ICD loader should be responsible for installing headers.

Reviewed and Tested-by: Aaron Watry <awatry@gmail.com>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/gallium/state_trackers/clover/Makefile.am

index 89e76a931f538f6db8737cc44299eedc16f8ba2d..c79fd372a8ed1465eff0a68611d9ddc5297f921e 100644 (file)
@@ -14,6 +14,17 @@ AM_CPPFLAGS = \
 
 if HAVE_CLOVER_ICD
 AM_CPPFLAGS += -DHAVE_CLOVER_ICD
+else
+# Only install the headers if we are building a stand-alone implementation
+cldir = $(includedir)/CL
+cl_HEADERS = \
+       $(top_srcdir)/include/CL/cl.h \
+       $(top_srcdir)/include/CL/cl_ext.h \
+       $(top_srcdir)/include/CL/cl_gl.h \
+       $(top_srcdir)/include/CL/cl_gl_ext.h \
+       $(top_srcdir)/include/CL/cl_platform.h \
+       $(top_srcdir)/include/CL/opencl.h \
+       $(top_srcdir)/include/CL/cl.hpp
 endif
 
 noinst_LTLIBRARIES = libclover.la libcltgsi.la libclllvm.la
@@ -45,13 +56,3 @@ libclover_la_LIBADD = \
        libcltgsi.la libclllvm.la
 
 libclover_la_SOURCES = $(CPP_SOURCES)
-
-cldir = $(includedir)/CL
-cl_HEADERS = \
-       $(top_srcdir)/include/CL/cl.h \
-       $(top_srcdir)/include/CL/cl_ext.h \
-       $(top_srcdir)/include/CL/cl_gl.h \
-       $(top_srcdir)/include/CL/cl_gl_ext.h \
-       $(top_srcdir)/include/CL/cl_platform.h \
-       $(top_srcdir)/include/CL/opencl.h \
-       $(top_srcdir)/include/CL/cl.hpp