clover: Implement support for the ICD extension.
[mesa.git] / src / gallium / targets / opencl / Makefile.am
1 AUTOMAKE_OPTIONS = subdir-objects
2
3 lib_LTLIBRARIES = lib@OPENCL_LIBNAME@.la
4
5 lib@OPENCL_LIBNAME@_la_LDFLAGS = \
6 $(LLVM_LDFLAGS) \
7 -version-number 1:0
8
9 lib@OPENCL_LIBNAME@_la_LIBADD = \
10 $(top_builddir)/src/gallium/auxiliary/pipe-loader/libpipe_loader.la \
11 $(top_builddir)/src/gallium/winsys/sw/null/libws_null.la \
12 $(top_builddir)/src/gallium/state_trackers/clover/libclover.la \
13 $(top_builddir)/src/gallium/auxiliary/libgallium.la \
14 $(GALLIUM_PIPE_LOADER_LIBS) $(LIBUDEV_LIBS) \
15 -ldl \
16 -lclangCodeGen \
17 -lclangFrontendTool \
18 -lclangFrontend \
19 -lclangDriver \
20 -lclangSerialization \
21 -lclangCodeGen \
22 -lclangParse \
23 -lclangSema \
24 -lclangAnalysis \
25 -lclangAST \
26 -lclangEdit \
27 -lclangLex \
28 -lclangBasic \
29 $(LLVM_LIBS)
30
31 lib@OPENCL_LIBNAME@_la_SOURCES =
32
33 # Force usage of a C++ linker
34 nodist_EXTRA_lib@OPENCL_LIBNAME@_la_SOURCES = dummy.cpp
35
36 if HAVE_CLOVER_ICD
37 icddir = /etc/OpenCL/vendors/
38 icd_DATA = mesa.icd
39 endif
40
41 # Provide compatibility with scripts for the old Mesa build system for
42 # a while by putting a link to the driver into /lib of the build tree.
43 all-local: lib@OPENCL_LIBNAME@.la
44 $(MKDIR_P) $(top_builddir)/$(LIB_DIR)
45 ln -f .libs/lib@OPENCL_LIBNAME@.so* $(top_builddir)/$(LIB_DIR)/