1AUTOMAKE_OPTIONS = subdir-objects 2 3lib_LTLIBRARIES = libOpenCL.la 4 5libOpenCL_la_LDFLAGS = \ 6 $(LLVM_LDFLAGS) \ 7 -version-number 1:0 8 9libOpenCL_la_LIBADD = \ 10 $(top_builddir)/src/gallium/state_trackers/clover/libclover.la \ 11 $(top_builddir)/src/gallium/auxiliary/libgallium.a \ 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 -lclangRewrite \ 24 -lclangAST \ 25 -lclangLex \ 26 -lclangBasic \ 27 -lclangEdit \ 28 $(LLVM_LIBS) 29 30 31libOpenCL_la_SOURCES = 32 33# Force usage of a C++ linker 34nodist_EXTRA_libOpenCL_la_SOURCES = dummy.cpp 35 36PIPE_SRC_DIR = $(top_srcdir)/src/gallium/targets/pipe-loader 37 38# Provide compatibility with scripts for the old Mesa build system for 39# a while by putting a link to the driver into /lib of the build tree. 40all-local: libOpenCL.la 41 @$(MAKE) -C $(PIPE_SRC_DIR) 42 $(MKDIR_P) $(top_builddir)/$(LIB_DIR) 43 ln -f .libs/libOpenCL.so* $(top_builddir)/$(LIB_DIR)/ 44 45install-exec-local: 46 @$(MAKE) -C $(PIPE_SRC_DIR) PIPE_INSTALL_DIR=$(OPENCL_LIB_INSTALL_DIR) install 47 48clean-local: 49 @$(MAKE) -C $(PIPE_SRC_DIR) clean 50 51# FIXME: Remove when the rest of Gallium is converted to automake. 52TOP=$(top_builddir) 53default: all 54