gallium/drivers: enable automake subdir-objects
[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 noinst_LTLIBRARIES = libr600.la
7
8 AM_CFLAGS = \
9 -I$(top_srcdir)/src/gallium/drivers \
10 -I$(top_srcdir)/include \
11 $(GALLIUM_CFLAGS) \
12 $(RADEON_CFLAGS) \
13 $(VISIBILITY_CFLAGS)
14
15 AM_CXXFLAGS = \
16 -I$(top_srcdir)/src/gallium/drivers \
17 -I$(top_srcdir)/include \
18 -I$(top_srcdir)/src/gallium/include \
19 -I$(top_srcdir)/src/gallium/auxiliary \
20 $(RADEON_CFLAGS) \
21 $(DEFINES) \
22 $(VISIBILITY_CFLAGS)
23
24 libr600_la_SOURCES = \
25 $(C_SOURCES) \
26 $(CXX_SOURCES)
27
28 libr600_la_LIBADD = ../radeon/libradeon.la
29
30 if NEED_RADEON_LLVM
31
32 libr600_la_SOURCES += \
33 $(LLVM_C_SOURCES)
34
35 libr600_la_LIBADD += ../radeon/libllvmradeon.la
36
37 AM_CFLAGS += \
38 $(LLVM_CFLAGS) \
39 -I$(top_srcdir)/src/gallium/drivers/radeon/
40
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