summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/clover/Makefile.am
blob: cb1e9c292ac6a0895ff32cb9edf03a7b21245b30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
AUTOMAKE_OPTIONS = subdir-objects

include Makefile.sources

AM_CPPFLAGS = \
	$(GALLIUM_PIPE_LOADER_DEFINES) \
	-DPIPE_SEARCH_DIR=\"$(libdir)/gallium-pipe\" \
	-I$(top_srcdir)/include \
	-I$(top_srcdir)/src/gallium/include \
	-I$(top_srcdir)/src/gallium/drivers \
	-I$(top_srcdir)/src/gallium/auxiliary \
	-I$(top_srcdir)/src/gallium/winsys \
	-I$(srcdir)

if HAVE_CLOVER_ICD
AM_CPPFLAGS += -DHAVE_CLOVER_ICD
else
# Only install the headers if we are building a stand-alone implementation
cldir = $(includedir)/CL
cl_HEADERS = \
	$(top_srcdir)/include/CL/cl.h \
	$(top_srcdir)/include/CL/cl.hpp \
	$(top_srcdir)/include/CL/cl_d3d10.h \
	$(top_srcdir)/include/CL/cl_d3d11.h \
	$(top_srcdir)/include/CL/cl_dx9_media_sharing.h \
	$(top_srcdir)/include/CL/cl_egl.h \
	$(top_srcdir)/include/CL/cl_ext.h \
	$(top_srcdir)/include/CL/cl_gl.h \
	$(top_srcdir)/include/CL/cl_gl_ext.h \
	$(top_srcdir)/include/CL/cl_platform.h \
	$(top_srcdir)/include/CL/opencl.h
endif

noinst_LTLIBRARIES = libclover.la libcltgsi.la libclllvm.la

libcltgsi_la_CXXFLAGS = \
	-std=c++0x \
	$(VISIBILITY_CXXFLAGS)

libcltgsi_la_SOURCES = $(TGSI_SOURCES)

libclllvm_la_CXXFLAGS = \
	$(VISIBILITY_CXXFLAGS) \
	$(LLVM_CXXFLAGS) \
	$(DEFINES) \
	-DLIBCLC_INCLUDEDIR=\"$(LIBCLC_INCLUDEDIR)/\" \
	-DLIBCLC_LIBEXECDIR=\"$(LIBCLC_LIBEXECDIR)/\" \
	-DCLANG_RESOURCE_DIR=\"$(CLANG_RESOURCE_DIR)\"

libclllvm_la_SOURCES = $(LLVM_SOURCES)

libclover_la_CXXFLAGS = \
	-std=c++11 \
	$(VISIBILITY_CXXFLAGS)

libclover_la_LIBADD = \
	libcltgsi.la libclllvm.la

libclover_la_SOURCES = $(CPP_SOURCES)

EXTRA_DIST = Doxyfile