Home | History | Annotate | Download | only in opencl
      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 	$(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 
     40 nodist_EXTRA_lib@OPENCL_LIBNAME@_la_SOURCES = dummy.cpp
     41 lib@OPENCL_LIBNAME@_la_SOURCES =
     42 
     43 EXTRA_lib@OPENCL_LIBNAME@_la_DEPENDENCIES = opencl.sym
     44 EXTRA_DIST = mesa.icd opencl.sym
     45 
     46 if HAVE_CLOVER_ICD
     47 icddir = /etc/OpenCL/vendors/
     48 icd_DATA = mesa.icd
     49 endif
     50 
     51 include $(top_srcdir)/install-gallium-links.mk
     52