gallium/radeon: build only a single common library libradeon
[mesa.git] / src / gallium / drivers / r600 / Makefile.am
1 AUTOMAKE_OPTIONS = subdir-objects
2
3 include Makefile.sources
4 include $(top_srcdir)/src/gallium/Automake.inc
5
6 AM_CFLAGS = \
7 $(GALLIUM_DRIVER_CFLAGS) \
8 $(RADEON_CFLAGS)
9
10 AM_CXXFLAGS = \
11 $(GALLIUM_DRIVER_CXXFLAGS) \
12 $(RADEON_CFLAGS)
13
14 noinst_LTLIBRARIES = libr600.la
15
16 libr600_la_SOURCES = \
17 $(C_SOURCES) \
18 $(CXX_SOURCES)
19
20 libr600_la_LIBADD = ../radeon/libradeon.la
21
22 if NEED_RADEON_LLVM
23
24 AM_CFLAGS += \
25 $(LLVM_CFLAGS) \
26 -I$(top_srcdir)/src/gallium/drivers/radeon/
27
28 libr600_la_SOURCES += \
29 $(LLVM_C_SOURCES)
30
31 endif
32
33 if USE_R600_LLVM_COMPILER
34 AM_CFLAGS += \
35 -DR600_USE_LLVM
36 endif
37
38 if HAVE_GALLIUM_COMPUTE
39 AM_CFLAGS += \
40 -DHAVE_OPENCL
41 endif