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