automake: Remove ARCH_FLAGS.
[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 $(OPT_FLAGS) \
13 $(PIC_FLAGS) \
14 $(VISIBILITY_CFLAGS)
15
16 libr600_a_SOURCES = \
17 $(C_SOURCES)
18
19 if NEED_RADEON_GALLIUM
20
21 # This is a hack until we can move the backend into the LLVM project.
22 # We need to use mklib, because it splits up libradeon.a into object files
23 # so that we can link it with the r600 objects.
24 libr600_a_AR = $(top_srcdir)/bin/mklib -o r600 -static
25
26 libr600_a_SOURCES += \
27 $(LLVM_C_SOURCES) \
28 $(LLVM_CXX_SOURCES)
29
30 libr600_a_LIBADD = \
31 $(top_builddir)/src/gallium/drivers/radeon/libradeon.a
32
33 AM_CFLAGS += \
34 $(LLVM_CFLAGS) \
35 -I$(top_srcdir)/src/gallium/drivers/radeon/
36
37 AM_CXXFLAGS= \
38 $(LLVM_CXXFLAGS)
39 else
40 libr600_a_AR = $(AR) $(ARFLAGS)
41 endif
42
43 if USE_R600_LLVM_COMPILER
44 AM_CFLAGS += \
45 -DR600_USE_LLVM
46 endif
47
48 if HAVE_GALLIUM_COMPUTE
49 AM_CFLAGS += \
50 -DHAVE_OPENCL
51 endif