clover: compile all sources with c++11
[mesa.git] / src / gallium / state_trackers / clover / Makefile.am
1 AUTOMAKE_OPTIONS = subdir-objects
2
3 include Makefile.sources
4
5 AM_CPPFLAGS = \
6 $(GALLIUM_PIPE_LOADER_DEFINES) \
7 -DPIPE_SEARCH_DIR=\"$(libdir)/gallium-pipe\" \
8 -I$(top_srcdir)/include \
9 -I$(top_srcdir)/src \
10 -I$(top_srcdir)/src/gallium/include \
11 -I$(top_srcdir)/src/gallium/drivers \
12 -I$(top_srcdir)/src/gallium/auxiliary \
13 -I$(top_srcdir)/src/gallium/winsys \
14 -I$(srcdir)
15
16 if HAVE_CLOVER_ICD
17 AM_CPPFLAGS += -DHAVE_CLOVER_ICD
18 else
19 # Only install the headers if we are building a stand-alone implementation
20 cldir = $(includedir)/CL
21 cl_HEADERS = \
22 $(top_srcdir)/include/CL/cl.h \
23 $(top_srcdir)/include/CL/cl.hpp \
24 $(top_srcdir)/include/CL/cl_d3d10.h \
25 $(top_srcdir)/include/CL/cl_d3d11.h \
26 $(top_srcdir)/include/CL/cl_dx9_media_sharing.h \
27 $(top_srcdir)/include/CL/cl_egl.h \
28 $(top_srcdir)/include/CL/cl_ext.h \
29 $(top_srcdir)/include/CL/cl_gl.h \
30 $(top_srcdir)/include/CL/cl_gl_ext.h \
31 $(top_srcdir)/include/CL/cl_platform.h \
32 $(top_srcdir)/include/CL/opencl.h
33 endif
34
35 noinst_LTLIBRARIES = libclover.la libcltgsi.la libclllvm.la
36
37 libcltgsi_la_CXXFLAGS = \
38 -std=c++11 \
39 $(VISIBILITY_CXXFLAGS)
40
41 libcltgsi_la_SOURCES = $(TGSI_SOURCES)
42
43 libclllvm_la_CXXFLAGS = \
44 -std=c++11 \
45 $(VISIBILITY_CXXFLAGS) \
46 $(LLVM_CXXFLAGS) \
47 $(DEFINES) \
48 -DLIBCLC_INCLUDEDIR=\"$(LIBCLC_INCLUDEDIR)/\" \
49 -DLIBCLC_LIBEXECDIR=\"$(LIBCLC_LIBEXECDIR)/\" \
50 -DCLANG_RESOURCE_DIR=\"$(CLANG_RESOURCE_DIR)\"
51
52 libclllvm_la_SOURCES = $(LLVM_SOURCES)
53
54 libclover_la_CXXFLAGS = \
55 -std=c++11 \
56 $(VISIBILITY_CXXFLAGS)
57
58 libclover_la_LIBADD = \
59 libcltgsi.la libclllvm.la
60
61 libclover_la_SOURCES = $(CPP_SOURCES)
62
63 EXTRA_DIST = Doxyfile