blob: c5c30030cad1969d2844bfcbae6153ed7f8d5c50 [file] [log] [blame]
Francisco Jerezc6db1b32012-04-20 16:56:19 +02001AUTOMAKE_OPTIONS = subdir-objects
2
3lib_LTLIBRARIES = libOpenCL.la
4
5libOpenCL_la_LDFLAGS = \
Alexey Shvetsovf56f0342012-06-04 09:30:48 -04006 $(LLVM_LDFLAGS) \
Francisco Jerezc6db1b32012-04-20 16:56:19 +02007 -version-number 1:0
8
9libOpenCL_la_LIBADD = \
10 $(top_builddir)/src/gallium/state_trackers/clover/libclover.la \
Tom Stellard0261b4e2013-01-18 16:35:28 +000011 $(top_builddir)/src/gallium/auxiliary/libgallium.la \
Francisco Jerezc6db1b32012-04-20 16:56:19 +020012 $(GALLIUM_PIPE_LOADER_LIBS) $(LIBUDEV_LIBS) \
Tom Stellard7a6b5d42012-05-02 11:06:13 -040013 -ldl \
14 -lclangCodeGen \
15 -lclangFrontendTool \
16 -lclangFrontend \
17 -lclangDriver \
18 -lclangSerialization \
19 -lclangCodeGen \
20 -lclangParse \
21 -lclangSema \
22 -lclangAnalysis \
Tom Stellard7a6b5d42012-05-02 11:06:13 -040023 -lclangAST \
24 -lclangLex \
25 -lclangBasic \
26 -lclangEdit \
27 $(LLVM_LIBS)
28
Francisco Jerezc6db1b32012-04-20 16:56:19 +020029
30libOpenCL_la_SOURCES =
31
32# Force usage of a C++ linker
33nodist_EXTRA_libOpenCL_la_SOURCES = dummy.cpp
34
35PIPE_SRC_DIR = $(top_srcdir)/src/gallium/targets/pipe-loader
36
37# Provide compatibility with scripts for the old Mesa build system for
38# a while by putting a link to the driver into /lib of the build tree.
39all-local: libOpenCL.la
40 @$(MAKE) -C $(PIPE_SRC_DIR)
41 $(MKDIR_P) $(top_builddir)/$(LIB_DIR)
42 ln -f .libs/libOpenCL.so* $(top_builddir)/$(LIB_DIR)/