e88fa0fd382999986b27294e7ece2b5a8d5711f2
[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 $(top_builddir)/src/util/libxmlconfig.la \
23 $(EXPAT_LIBS) \
24 $(LIBELF_LIBS) \
25 $(DLOPEN_LIBS) \
26 -lclangCodeGen \
27 -lclangFrontendTool \
28 -lclangFrontend \
29 -lclangDriver \
30 -lclangSerialization \
31 -lclangCodeGen \
32 -lclangParse \
33 -lclangSema \
34 -lclangAnalysis \
35 -lclangAST \
36 -lclangEdit \
37 -lclangLex \
38 -lclangBasic \
39 $(LLVM_LIBS) \
40 $(PTHREAD_LIBS)
41
42 nodist_EXTRA_lib@OPENCL_LIBNAME@_la_SOURCES = dummy.cpp
43 lib@OPENCL_LIBNAME@_la_SOURCES =
44
45 EXTRA_lib@OPENCL_LIBNAME@_la_DEPENDENCIES = opencl.sym
46 EXTRA_DIST = mesa.icd opencl.sym
47
48 if HAVE_CLOVER_ICD
49 icddir = /etc/OpenCL/vendors/
50 icd_DATA = mesa.icd
51 endif
52
53 include $(top_srcdir)/install-gallium-links.mk