blob: 1c5a908b20f304d48fce7c1531bb1f12557fde02 [file] [log] [blame]
Francisco Jerezc6db1b32012-04-20 16:56:19 +02001AUTOMAKE_OPTIONS = subdir-objects
2
Emil Velikovd22b39e2014-06-09 23:37:19 +01003include $(top_srcdir)/src/gallium/Automake.inc
4
Tom Stellard07567c12013-09-18 00:36:55 -07005lib_LTLIBRARIES = lib@OPENCL_LIBNAME@.la
Francisco Jerezc6db1b32012-04-20 16:56:19 +02006
Tom Stellard07567c12013-09-18 00:36:55 -07007lib@OPENCL_LIBNAME@_la_LDFLAGS = \
Alexey Shvetsovf56f0342012-06-04 09:30:48 -04008 $(LLVM_LDFLAGS) \
Emil Velikov73b46132014-02-23 20:29:57 +00009 -no-undefined \
Emil Velikovd187a152014-03-13 05:44:33 +000010 -version-number 1:0 \
Emil Velikovd681b222014-03-11 17:58:08 +000011 $(GC_SECTIONS) \
Jonathan Gray11623be2014-04-03 15:46:01 +110012 $(LD_NO_UNDEFINED)
Emil Velikovd187a152014-03-13 05:44:33 +000013
Emil Velikov7a63bd92014-05-25 03:23:42 +010014if HAVE_LD_VERSION_SCRIPT
15lib@OPENCL_LIBNAME@_la_LDFLAGS += \
16 -Wl,--version-script=$(top_srcdir)/src/gallium/targets/opencl/opencl.sym
17endif
Francisco Jerezc6db1b32012-04-20 16:56:19 +020018
Tom Stellard07567c12013-09-18 00:36:55 -070019lib@OPENCL_LIBNAME@_la_LIBADD = \
Rob Clarka122c752014-02-10 09:39:23 -050020 $(top_builddir)/src/gallium/auxiliary/pipe-loader/libpipe_loader_client.la \
Francisco Jerezc6db1b32012-04-20 16:56:19 +020021 $(top_builddir)/src/gallium/state_trackers/clover/libclover.la \
Tom Stellard0261b4e2013-01-18 16:35:28 +000022 $(top_builddir)/src/gallium/auxiliary/libgallium.la \
Jan Veselyd0b4ac62014-08-04 18:50:03 -040023 $(top_builddir)/src/util/libmesautil.la \
Emil Velikovd300f3f2014-06-19 22:46:25 +010024 $(GALLIUM_PIPE_LOADER_WINSYS_LIBS) \
25 $(GALLIUM_PIPE_LOADER_CLIENT_LIBS) \
Tom Stellard8e7df512014-09-25 09:23:17 -040026 $(ELF_LIB) \
Tom Stellard7a6b5d42012-05-02 11:06:13 -040027 -ldl \
28 -lclangCodeGen \
29 -lclangFrontendTool \
30 -lclangFrontend \
31 -lclangDriver \
32 -lclangSerialization \
33 -lclangCodeGen \
34 -lclangParse \
35 -lclangSema \
36 -lclangAnalysis \
Tom Stellard7a6b5d42012-05-02 11:06:13 -040037 -lclangAST \
Tom Stellardaa1c7342013-02-22 19:19:14 +010038 -lclangEdit \
Tom Stellard7a6b5d42012-05-02 11:06:13 -040039 -lclangLex \
40 -lclangBasic \
Tom Stellard7a6b5d42012-05-02 11:06:13 -040041 $(LLVM_LIBS)
42
Emil Velikov0484b842014-03-11 15:24:07 +000043nodist_EXTRA_lib@OPENCL_LIBNAME@_la_SOURCES = dummy.cpp
Tom Stellard07567c12013-09-18 00:36:55 -070044lib@OPENCL_LIBNAME@_la_SOURCES =
Francisco Jerezc6db1b32012-04-20 16:56:19 +020045
Francisco Jerezc6db1b32012-04-20 16:56:19 +020046
Francisco Jerez6230f772013-10-06 13:52:02 -070047if HAVE_CLOVER_ICD
48icddir = /etc/OpenCL/vendors/
49icd_DATA = mesa.icd
50endif
51
Emil Velikov49d7bce2014-03-02 21:10:57 +000052include $(top_srcdir)/install-gallium-links.mk