blob: f23c26b330159610af0ae32c4179a1c99ff87b14 [file] [log] [blame]
Francisco Jerezc6db1b32012-04-20 16:56:19 +02001AUTOMAKE_OPTIONS = subdir-objects
2
Tom Stellard07567c12013-09-18 00:36:55 -07003lib_LTLIBRARIES = lib@OPENCL_LIBNAME@.la
Francisco Jerezc6db1b32012-04-20 16:56:19 +02004
Tom Stellard07567c12013-09-18 00:36:55 -07005lib@OPENCL_LIBNAME@_la_LDFLAGS = \
Alexey Shvetsovf56f0342012-06-04 09:30:48 -04006 $(LLVM_LDFLAGS) \
Emil Velikov73b46132014-02-23 20:29:57 +00007 -no-undefined \
Emil Velikovd187a152014-03-13 05:44:33 +00008 -version-number 1:0 \
Emil Velikovd681b222014-03-11 17:58:08 +00009 $(GC_SECTIONS) \
Jonathan Gray11623be2014-04-03 15:46:01 +110010 $(LD_NO_UNDEFINED)
Emil Velikovd187a152014-03-13 05:44:33 +000011
Francisco Jerezc6db1b32012-04-20 16:56:19 +020012
Tom Stellard07567c12013-09-18 00:36:55 -070013lib@OPENCL_LIBNAME@_la_LIBADD = \
Rob Clarka122c752014-02-10 09:39:23 -050014 $(top_builddir)/src/gallium/auxiliary/pipe-loader/libpipe_loader_client.la \
Matt Turnerea6caf42013-04-22 12:07:13 -070015 $(top_builddir)/src/gallium/winsys/sw/null/libws_null.la \
Francisco Jerezc6db1b32012-04-20 16:56:19 +020016 $(top_builddir)/src/gallium/state_trackers/clover/libclover.la \
Tom Stellard0261b4e2013-01-18 16:35:28 +000017 $(top_builddir)/src/gallium/auxiliary/libgallium.la \
Rob Clarka122c752014-02-10 09:39:23 -050018 $(GALLIUM_PIPE_LOADER_CLIENT_LIBS) \
Tom Stellard7a6b5d42012-05-02 11:06:13 -040019 -ldl \
20 -lclangCodeGen \
21 -lclangFrontendTool \
22 -lclangFrontend \
23 -lclangDriver \
24 -lclangSerialization \
25 -lclangCodeGen \
26 -lclangParse \
27 -lclangSema \
28 -lclangAnalysis \
Tom Stellard7a6b5d42012-05-02 11:06:13 -040029 -lclangAST \
Tom Stellardaa1c7342013-02-22 19:19:14 +010030 -lclangEdit \
Tom Stellard7a6b5d42012-05-02 11:06:13 -040031 -lclangLex \
32 -lclangBasic \
Tom Stellard7a6b5d42012-05-02 11:06:13 -040033 $(LLVM_LIBS)
34
Emil Velikov1ad95342014-02-24 14:20:36 +000035if HAVE_DRI
36lib@OPENCL_LIBNAME@_la_LIBADD += \
37 $(top_builddir)/src/gallium/winsys/sw/dri/libswdri.la
38endif
39
Emil Velikov3445e8b2014-02-22 16:44:14 +000040if NEED_PIPE_LOADER_XLIB
41lib@OPENCL_LIBNAME@_la_LIBADD += \
42 $(top_builddir)/src/gallium/winsys/sw/xlib/libws_xlib.la \
43 -lX11 -lXext -lXfixes \
44 $(LIBDRM_LIBS)
45endif
46
Emil Velikov0484b842014-03-11 15:24:07 +000047nodist_EXTRA_lib@OPENCL_LIBNAME@_la_SOURCES = dummy.cpp
Tom Stellard07567c12013-09-18 00:36:55 -070048lib@OPENCL_LIBNAME@_la_SOURCES =
Francisco Jerezc6db1b32012-04-20 16:56:19 +020049
Francisco Jerezc6db1b32012-04-20 16:56:19 +020050
Francisco Jerez6230f772013-10-06 13:52:02 -070051if HAVE_CLOVER_ICD
52icddir = /etc/OpenCL/vendors/
53icd_DATA = mesa.icd
54endif
55
Emil Velikov49d7bce2014-03-02 21:10:57 +000056include $(top_srcdir)/install-gallium-links.mk