• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1include $(top_srcdir)/src/gallium/Automake.inc
2
3lib_LTLIBRARIES = lib@OPENCL_LIBNAME@.la
4
5lib@OPENCL_LIBNAME@_la_LDFLAGS = \
6	$(LLVM_LDFLAGS) \
7	-no-undefined \
8	-version-number @OPENCL_VERSION@:0 \
9	$(GC_SECTIONS) \
10	$(LD_NO_UNDEFINED)
11
12if HAVE_LD_VERSION_SCRIPT
13lib@OPENCL_LIBNAME@_la_LDFLAGS += \
14	-Wl,--version-script=$(top_srcdir)/src/gallium/targets/opencl/opencl.sym
15endif
16
17lib@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	$(LIBELF_LIBS) \
23	$(DLOPEN_LIBS) \
24	-lclangCodeGen \
25	-lclangFrontendTool \
26	-lclangFrontend \
27	-lclangDriver \
28	-lclangSerialization \
29	-lclangCodeGen \
30	-lclangParse \
31	-lclangSema \
32	-lclangAnalysis \
33	-lclangAST \
34	-lclangEdit \
35	-lclangLex \
36	-lclangBasic \
37	$(LLVM_LIBS) \
38	$(PTHREAD_LIBS)
39
40nodist_EXTRA_lib@OPENCL_LIBNAME@_la_SOURCES = dummy.cpp
41lib@OPENCL_LIBNAME@_la_SOURCES =
42
43EXTRA_lib@OPENCL_LIBNAME@_la_DEPENDENCIES = opencl.sym
44EXTRA_DIST = mesa.icd opencl.sym
45
46if HAVE_CLOVER_ICD
47icddir = /etc/OpenCL/vendors/
48icd_DATA = mesa.icd
49endif
50
51include $(top_srcdir)/install-gallium-links.mk
52