Revert "Revert "targets/opencl: Link against libgallium.la instead of libgallium.a""
[mesa.git] / src / gallium / targets / opencl / Makefile.am
1 AUTOMAKE_OPTIONS = subdir-objects
2
3 lib_LTLIBRARIES = libOpenCL.la
4
5 libOpenCL_la_LDFLAGS = \
6 $(LLVM_LDFLAGS) \
7 -version-number 1:0
8
9 libOpenCL_la_LIBADD = \
10 $(top_builddir)/src/gallium/state_trackers/clover/libclover.la \
11 $(top_builddir)/src/gallium/auxiliary/libgallium.la \
12 $(GALLIUM_PIPE_LOADER_LIBS) $(LIBUDEV_LIBS) \
13 -ldl \
14 -lclangCodeGen \
15 -lclangFrontendTool \
16 -lclangFrontend \
17 -lclangDriver \
18 -lclangSerialization \
19 -lclangCodeGen \
20 -lclangParse \
21 -lclangSema \
22 -lclangAnalysis \
23 -lclangAST \
24 -lclangLex \
25 -lclangBasic \
26 -lclangEdit \
27 $(LLVM_LIBS)
28
29
30 libOpenCL_la_SOURCES =
31
32 # Force usage of a C++ linker
33 nodist_EXTRA_libOpenCL_la_SOURCES = dummy.cpp
34
35 PIPE_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.
39 all-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)/