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 # We are linking against libgallium.a rather than libgallium.la to work around
10 # https://bugs.freedesktop.org/show_bug.cgi?id=59334
11 libOpenCL_la_LIBADD = \
12 $(top_builddir)/src/gallium/state_trackers/clover/libclover.la \
13 $(top_builddir)/src/gallium/auxiliary/libgallium.a \
14 $(GALLIUM_PIPE_LOADER_LIBS) $(LIBUDEV_LIBS) \
15 -ldl \
16 -lclangCodeGen \
17 -lclangFrontendTool \
18 -lclangFrontend \
19 -lclangDriver \
20 -lclangSerialization \
21 -lclangCodeGen \
22 -lclangParse \
23 -lclangSema \
24 -lclangAnalysis \
25 -lclangAST \
26 -lclangLex \
27 -lclangBasic \
28 -lclangEdit \
29 $(LLVM_LIBS)
30
31
32 libOpenCL_la_SOURCES =
33
34 # Force usage of a C++ linker
35 nodist_EXTRA_libOpenCL_la_SOURCES = dummy.cpp
36
37 PIPE_SRC_DIR = $(top_srcdir)/src/gallium/targets/pipe-loader
38
39 # Provide compatibility with scripts for the old Mesa build system for
40 # a while by putting a link to the driver into /lib of the build tree.
41 all-local: libOpenCL.la
42 @$(MAKE) -C $(PIPE_SRC_DIR)
43 $(MKDIR_P) $(top_builddir)/$(LIB_DIR)
44 ln -f .libs/libOpenCL.so* $(top_builddir)/$(LIB_DIR)/