r600g: plug in optimizing backend
[mesa.git] / src / gallium / drivers / r600 / Makefile.am
1 include Makefile.sources
2 include $(top_srcdir)/src/gallium/Automake.inc
3
4 noinst_LTLIBRARIES = libr600.la
5
6 AM_CFLAGS = \
7 -I$(top_srcdir)/src/gallium/drivers \
8 -I$(top_srcdir)/include \
9 $(GALLIUM_CFLAGS) \
10 $(RADEON_CFLAGS) \
11 $(VISIBILITY_CFLAGS)
12
13 AM_CXXFLAGS = \
14 -I$(top_srcdir)/src/gallium/drivers \
15 -I$(top_srcdir)/include \
16 -I$(top_srcdir)/src/gallium/include \
17 -I$(top_srcdir)/src/gallium/auxiliary \
18 $(DEFINES)
19
20 libr600_la_SOURCES = \
21 $(C_SOURCES) \
22 $(CXX_SOURCES)
23
24 libr600_la_LIBADD = ../radeon/libradeon.la
25
26 if R600_NEED_RADEON_GALLIUM
27
28 libr600_la_SOURCES += \
29 $(LLVM_C_SOURCES)
30
31 libr600_la_LIBADD += ../radeon/libllvmradeon@VERSION@.la
32
33 AM_CFLAGS += \
34 $(LLVM_CFLAGS) \
35 -I$(top_srcdir)/src/gallium/drivers/radeon/
36
37 endif
38
39 if USE_R600_LLVM_COMPILER
40 AM_CFLAGS += \
41 -DR600_USE_LLVM
42 endif
43
44 if HAVE_GALLIUM_COMPUTE
45 AM_CFLAGS += \
46 -DHAVE_OPENCL
47 endif