loader: rework xmlconfig dependency
[mesa.git] / src / gallium / targets / opencl / Makefile.am
1 include $(top_srcdir)/src/gallium/Automake.inc
2
3 lib_LTLIBRARIES = lib@OPENCL_LIBNAME@.la
4
5 lib@OPENCL_LIBNAME@_la_LDFLAGS = \
6 $(LLVM_LDFLAGS) \
7 -no-undefined \
8 -version-number @OPENCL_VERSION@:0 \
9 $(GC_SECTIONS) \
10 $(LD_NO_UNDEFINED)
11
12 if HAVE_LD_VERSION_SCRIPT
13 lib@OPENCL_LIBNAME@_la_LDFLAGS += \
14 -Wl,--version-script=$(top_srcdir)/src/gallium/targets/opencl/opencl.sym
15 endif
16
17 lib@OPENCL_LIBNAME@_la_LIBADD = \
18 $(top_builddir)/src/gallium/auxiliary/pipe-loader/libpipe_loader_dynamic.la \
19 $(top_builddir)/src/gallium/state_trackers/clover/libclover.la \
20 $(top_builddir)/src/gallium/auxiliary/libgallium.la \
21 $(top_builddir)/src/util/libmesautil.la \
22 $(EXPAT_LIBS) \
23 $(LIBELF_LIBS) \
24 $(DLOPEN_LIBS) \
25 -lclangCodeGen \
26 -lclangFrontendTool \
27 -lclangFrontend \
28 -lclangDriver \
29 -lclangSerialization \
30 -lclangCodeGen \
31 -lclangParse \
32 -lclangSema \
33 -lclangAnalysis \
34 -lclangAST \
35 -lclangEdit \
36 -lclangLex \
37 -lclangBasic \
38 $(LLVM_LIBS) \
39 $(PTHREAD_LIBS)
40
41 nodist_EXTRA_lib@OPENCL_LIBNAME@_la_SOURCES = dummy.cpp
42 lib@OPENCL_LIBNAME@_la_SOURCES =
43
44 EXTRA_lib@OPENCL_LIBNAME@_la_DEPENDENCIES = opencl.sym
45 EXTRA_DIST = mesa.icd opencl.sym
46
47 if HAVE_CLOVER_ICD
48 icddir = /etc/OpenCL/vendors/
49 icd_DATA = mesa.icd
50 endif
51
52 include $(top_srcdir)/install-gallium-links.mk