Francisco Jerez | c6db1b3 | 2012-04-20 16:56:19 +0200 | [diff] [blame] | 1 | AUTOMAKE_OPTIONS = subdir-objects |
| 2 | |
Tom Stellard | 07567c1 | 2013-09-18 00:36:55 -0700 | [diff] [blame] | 3 | lib_LTLIBRARIES = lib@OPENCL_LIBNAME@.la |
Francisco Jerez | c6db1b3 | 2012-04-20 16:56:19 +0200 | [diff] [blame] | 4 | |
Tom Stellard | 07567c1 | 2013-09-18 00:36:55 -0700 | [diff] [blame] | 5 | lib@OPENCL_LIBNAME@_la_LDFLAGS = \ |
Alexey Shvetsov | f56f034 | 2012-06-04 09:30:48 -0400 | [diff] [blame] | 6 | $(LLVM_LDFLAGS) \ |
Emil Velikov | 73b4613 | 2014-02-23 20:29:57 +0000 | [diff] [blame] | 7 | -no-undefined \ |
Emil Velikov | d187a15 | 2014-03-13 05:44:33 +0000 | [diff] [blame] | 8 | -version-number 1:0 \ |
Emil Velikov | d681b22 | 2014-03-11 17:58:08 +0000 | [diff] [blame] | 9 | $(GC_SECTIONS) \ |
Jonathan Gray | 11623be | 2014-04-03 15:46:01 +1100 | [diff] [blame] | 10 | $(LD_NO_UNDEFINED) |
Emil Velikov | d187a15 | 2014-03-13 05:44:33 +0000 | [diff] [blame] | 11 | |
Emil Velikov | 7a63bd9 | 2014-05-25 03:23:42 +0100 | [diff] [blame^] | 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 |
Francisco Jerez | c6db1b3 | 2012-04-20 16:56:19 +0200 | [diff] [blame] | 16 | |
Tom Stellard | 07567c1 | 2013-09-18 00:36:55 -0700 | [diff] [blame] | 17 | lib@OPENCL_LIBNAME@_la_LIBADD = \ |
Rob Clark | a122c75 | 2014-02-10 09:39:23 -0500 | [diff] [blame] | 18 | $(top_builddir)/src/gallium/auxiliary/pipe-loader/libpipe_loader_client.la \ |
Matt Turner | ea6caf4 | 2013-04-22 12:07:13 -0700 | [diff] [blame] | 19 | $(top_builddir)/src/gallium/winsys/sw/null/libws_null.la \ |
Francisco Jerez | c6db1b3 | 2012-04-20 16:56:19 +0200 | [diff] [blame] | 20 | $(top_builddir)/src/gallium/state_trackers/clover/libclover.la \ |
Tom Stellard | 0261b4e | 2013-01-18 16:35:28 +0000 | [diff] [blame] | 21 | $(top_builddir)/src/gallium/auxiliary/libgallium.la \ |
Rob Clark | a122c75 | 2014-02-10 09:39:23 -0500 | [diff] [blame] | 22 | $(GALLIUM_PIPE_LOADER_CLIENT_LIBS) \ |
Tom Stellard | 7a6b5d4 | 2012-05-02 11:06:13 -0400 | [diff] [blame] | 23 | -ldl \ |
| 24 | -lclangCodeGen \ |
| 25 | -lclangFrontendTool \ |
| 26 | -lclangFrontend \ |
| 27 | -lclangDriver \ |
| 28 | -lclangSerialization \ |
| 29 | -lclangCodeGen \ |
| 30 | -lclangParse \ |
| 31 | -lclangSema \ |
| 32 | -lclangAnalysis \ |
Tom Stellard | 7a6b5d4 | 2012-05-02 11:06:13 -0400 | [diff] [blame] | 33 | -lclangAST \ |
Tom Stellard | aa1c734 | 2013-02-22 19:19:14 +0100 | [diff] [blame] | 34 | -lclangEdit \ |
Tom Stellard | 7a6b5d4 | 2012-05-02 11:06:13 -0400 | [diff] [blame] | 35 | -lclangLex \ |
| 36 | -lclangBasic \ |
Tom Stellard | 7a6b5d4 | 2012-05-02 11:06:13 -0400 | [diff] [blame] | 37 | $(LLVM_LIBS) |
| 38 | |
Jon TURNEY | 45f9aae | 2014-05-12 10:17:06 +0100 | [diff] [blame] | 39 | if HAVE_DRISW |
Emil Velikov | 1ad9534 | 2014-02-24 14:20:36 +0000 | [diff] [blame] | 40 | lib@OPENCL_LIBNAME@_la_LIBADD += \ |
| 41 | $(top_builddir)/src/gallium/winsys/sw/dri/libswdri.la |
| 42 | endif |
| 43 | |
Emil Velikov | 6c44d43 | 2014-04-01 17:42:41 +0100 | [diff] [blame] | 44 | if NEED_WINSYS_XLIB |
Emil Velikov | 3445e8b | 2014-02-22 16:44:14 +0000 | [diff] [blame] | 45 | lib@OPENCL_LIBNAME@_la_LIBADD += \ |
| 46 | $(top_builddir)/src/gallium/winsys/sw/xlib/libws_xlib.la \ |
| 47 | -lX11 -lXext -lXfixes \ |
| 48 | $(LIBDRM_LIBS) |
| 49 | endif |
| 50 | |
Emil Velikov | 0484b84 | 2014-03-11 15:24:07 +0000 | [diff] [blame] | 51 | nodist_EXTRA_lib@OPENCL_LIBNAME@_la_SOURCES = dummy.cpp |
Tom Stellard | 07567c1 | 2013-09-18 00:36:55 -0700 | [diff] [blame] | 52 | lib@OPENCL_LIBNAME@_la_SOURCES = |
Francisco Jerez | c6db1b3 | 2012-04-20 16:56:19 +0200 | [diff] [blame] | 53 | |
Francisco Jerez | c6db1b3 | 2012-04-20 16:56:19 +0200 | [diff] [blame] | 54 | |
Francisco Jerez | 6230f77 | 2013-10-06 13:52:02 -0700 | [diff] [blame] | 55 | if HAVE_CLOVER_ICD |
| 56 | icddir = /etc/OpenCL/vendors/ |
| 57 | icd_DATA = mesa.icd |
| 58 | endif |
| 59 | |
Emil Velikov | 49d7bce | 2014-03-02 21:10:57 +0000 | [diff] [blame] | 60 | include $(top_srcdir)/install-gallium-links.mk |