blob: d55b21ed8c8a961b605b06dd5b05673a66ac00ae [file] [log] [blame]
Francisco Jerezc6db1b32012-04-20 16:56:19 +02001AUTOMAKE_OPTIONS = subdir-objects
2
3lib_LTLIBRARIES = libOpenCL.la
4
5libOpenCL_la_LDFLAGS = \
6 -version-number 1:0
7
8libOpenCL_la_LIBADD = \
9 $(top_builddir)/src/gallium/state_trackers/clover/libclover.la \
10 $(top_builddir)/src/gallium/auxiliary/libgallium.a \
11 $(GALLIUM_PIPE_LOADER_LIBS) $(LIBUDEV_LIBS) \
Tom Stellard7a6b5d42012-05-02 11:06:13 -040012 -ldl \
13 -lclangCodeGen \
14 -lclangFrontendTool \
15 -lclangFrontend \
16 -lclangDriver \
17 -lclangSerialization \
18 -lclangCodeGen \
19 -lclangParse \
20 -lclangSema \
21 -lclangAnalysis \
22 -lclangRewrite \
23 -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)/
43
44install-exec-local:
45 @$(MAKE) -C $(PIPE_SRC_DIR) PIPE_INSTALL_DIR=$(OPENCL_LIB_INSTALL_DIR) install
46
47clean-local:
48 @$(MAKE) -C $(PIPE_SRC_DIR) clean
49
50# FIXME: Remove when the rest of Gallium is converted to automake.
51TOP=$(top_builddir)
52default: all