Francisco Jerez | c6db1b3 | 2012-04-20 16:56:19 +0200 | [diff] [blame] | 1 | AUTOMAKE_OPTIONS = subdir-objects |
| 2 | |
| 3 | lib_LTLIBRARIES = libOpenCL.la |
| 4 | |
| 5 | libOpenCL_la_LDFLAGS = \ |
| 6 | -version-number 1:0 |
| 7 | |
| 8 | libOpenCL_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 Stellard | 7a6b5d4 | 2012-05-02 11:06:13 -0400 | [diff] [blame^] | 12 | -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 Jerez | c6db1b3 | 2012-04-20 16:56:19 +0200 | [diff] [blame] | 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)/ |
| 43 | |
| 44 | install-exec-local: |
| 45 | @$(MAKE) -C $(PIPE_SRC_DIR) PIPE_INSTALL_DIR=$(OPENCL_LIB_INSTALL_DIR) install |
| 46 | |
| 47 | clean-local: |
| 48 | @$(MAKE) -C $(PIPE_SRC_DIR) clean |
| 49 | |
| 50 | # FIXME: Remove when the rest of Gallium is converted to automake. |
| 51 | TOP=$(top_builddir) |
| 52 | default: all |