blob: 7f2854d56feb5350dea61b26b615fb3f91f0f9aa [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
Emil Velikov7a63bd92014-05-25 03:23:42 +010012if HAVE_LD_VERSION_SCRIPT
13lib@OPENCL_LIBNAME@_la_LDFLAGS += \
14 -Wl,--version-script=$(top_srcdir)/src/gallium/targets/opencl/opencl.sym
15endif
Francisco Jerezc6db1b32012-04-20 16:56:19 +020016
Tom Stellard07567c12013-09-18 00:36:55 -070017lib@OPENCL_LIBNAME@_la_LIBADD = \
Rob Clarka122c752014-02-10 09:39:23 -050018 $(top_builddir)/src/gallium/auxiliary/pipe-loader/libpipe_loader_client.la \
Matt Turnerea6caf42013-04-22 12:07:13 -070019 $(top_builddir)/src/gallium/winsys/sw/null/libws_null.la \
Francisco Jerezc6db1b32012-04-20 16:56:19 +020020 $(top_builddir)/src/gallium/state_trackers/clover/libclover.la \
Tom Stellard0261b4e2013-01-18 16:35:28 +000021 $(top_builddir)/src/gallium/auxiliary/libgallium.la \
Rob Clarka122c752014-02-10 09:39:23 -050022 $(GALLIUM_PIPE_LOADER_CLIENT_LIBS) \
Tom Stellard7a6b5d42012-05-02 11:06:13 -040023 -ldl \
24 -lclangCodeGen \
25 -lclangFrontendTool \
26 -lclangFrontend \
27 -lclangDriver \
28 -lclangSerialization \
29 -lclangCodeGen \
30 -lclangParse \
31 -lclangSema \
32 -lclangAnalysis \
Tom Stellard7a6b5d42012-05-02 11:06:13 -040033 -lclangAST \
Tom Stellardaa1c7342013-02-22 19:19:14 +010034 -lclangEdit \
Tom Stellard7a6b5d42012-05-02 11:06:13 -040035 -lclangLex \
36 -lclangBasic \
Tom Stellard7a6b5d42012-05-02 11:06:13 -040037 $(LLVM_LIBS)
38
Jon TURNEY45f9aae2014-05-12 10:17:06 +010039if HAVE_DRISW
Emil Velikov1ad95342014-02-24 14:20:36 +000040lib@OPENCL_LIBNAME@_la_LIBADD += \
41 $(top_builddir)/src/gallium/winsys/sw/dri/libswdri.la
42endif
43
Emil Velikov6c44d432014-04-01 17:42:41 +010044if NEED_WINSYS_XLIB
Emil Velikov3445e8b2014-02-22 16:44:14 +000045lib@OPENCL_LIBNAME@_la_LIBADD += \
46 $(top_builddir)/src/gallium/winsys/sw/xlib/libws_xlib.la \
47 -lX11 -lXext -lXfixes \
48 $(LIBDRM_LIBS)
49endif
50
Emil Velikov0484b842014-03-11 15:24:07 +000051nodist_EXTRA_lib@OPENCL_LIBNAME@_la_SOURCES = dummy.cpp
Tom Stellard07567c12013-09-18 00:36:55 -070052lib@OPENCL_LIBNAME@_la_SOURCES =
Francisco Jerezc6db1b32012-04-20 16:56:19 +020053
Francisco Jerezc6db1b32012-04-20 16:56:19 +020054
Francisco Jerez6230f772013-10-06 13:52:02 -070055if HAVE_CLOVER_ICD
56icddir = /etc/OpenCL/vendors/
57icd_DATA = mesa.icd
58endif
59
Emil Velikov49d7bce2014-03-02 21:10:57 +000060include $(top_srcdir)/install-gallium-links.mk