r600g: only set the index type if drawing is indexed
[mesa.git] / src / gallium / drivers / r600 / Makefile.am
1 include Makefile.sources
2
3 noinst_LIBRARIES = libr600.a
4
5 AM_CFLAGS = \
6 -I$(top_srcdir)/src/gallium/include \
7 -I$(top_srcdir)/src/gallium/auxiliary \
8 -I$(top_srcdir)/src/gallium/drivers \
9 -I$(top_srcdir)/include \
10 $(RADEON_CFLAGS) \
11 $(DEFINES) \
12 $(ARCH_FLAGS) \
13 $(OPT_FLAGS) \
14 $(PIC_FLAGS) \
15 $(VISIBILITY_CFLAGS)
16
17 libr600_a_SOURCES = \
18 $(C_SOURCES)
19
20 if NEED_RADEON_GALLIUM
21
22 # This is a hack until we can move the backend into the LLVM project.
23 # We need to use mklib, because it splits up libradeon.a into object files
24 # so that we can link it with the r600 objects.
25 libr600_a_AR = $(top_srcdir)/bin/mklib -o r600 -static
26
27 libr600_a_SOURCES += \
28 $(LLVM_C_SOURCES) \
29 $(LLVM_CXX_SOURCES)
30
31 libr600_a_LIBADD = \
32 $(top_builddir)/src/gallium/drivers/radeon/libradeon.a
33
34 AM_CFLAGS += \
35 $(LLVM_CFLAGS) \
36 -I$(top_srcdir)/src/gallium/drivers/radeon/
37
38 AM_CXXFLAGS= \
39 $(LLVM_CXXFLAGS)
40 else
41 libr600_a_AR = $(AR) $(ARFLAGS)
42 endif
43
44 if USE_R600_LLVM_COMPILER
45 AM_CFLAGS += \
46 -DR600_USE_LLVM
47 endif
48
49 if HAVE_GALLIUM_COMPUTE
50 AM_CFLAGS += \
51 -DHAVE_OPENCL
52 endif