gallium/targets: resolve undefined reference to pipe_loader_sw_probe_dri
[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_client.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_CLIENT_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 if HAVE_DRI
32 lib@OPENCL_LIBNAME@_la_LIBADD += \
33 $(top_builddir)/src/gallium/winsys/sw/dri/libswdri.la
34 endif
35
36 if NEED_PIPE_LOADER_XLIB
37 lib@OPENCL_LIBNAME@_la_LIBADD += \
38 $(top_builddir)/src/gallium/winsys/sw/xlib/libws_xlib.la \
39 -lX11 -lXext -lXfixes \
40 $(LIBDRM_LIBS)
41 endif
42
43 lib@OPENCL_LIBNAME@_la_SOURCES =
44
45 # Force usage of a C++ linker
46 nodist_EXTRA_lib@OPENCL_LIBNAME@_la_SOURCES = dummy.cpp
47
48 if HAVE_CLOVER_ICD
49 icddir = /etc/OpenCL/vendors/
50 icd_DATA = mesa.icd
51 endif
52
53 # Provide compatibility with scripts for the old Mesa build system for
54 # a while by putting a link to the driver into /lib of the build tree.
55 all-local: lib@OPENCL_LIBNAME@.la
56 $(MKDIR_P) $(top_builddir)/$(LIB_DIR)
57 ln -f .libs/lib@OPENCL_LIBNAME@.so* $(top_builddir)/$(LIB_DIR)/