r600g: Fix building with --enable-r600-llvm-compiler
[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 libr600_la_SOURCES = \
14 $(C_SOURCES)
15
16 if R600_NEED_RADEON_GALLIUM
17
18 libr600_la_SOURCES += \
19 $(LLVM_C_SOURCES) \
20 $(LLVM_CXX_SOURCES)
21
22 libr600_la_LIBADD = ../radeon/libllvmradeon@VERSION@.la
23
24 AM_CFLAGS += \
25 $(LLVM_CFLAGS) \
26 -I$(top_srcdir)/src/gallium/drivers/radeon/
27
28 AM_CXXFLAGS= \
29 $(LLVM_CXXFLAGS)
30 endif
31
32 if USE_R600_LLVM_COMPILER
33 AM_CFLAGS += \
34 -DR600_USE_LLVM
35 endif
36
37 if HAVE_GALLIUM_COMPUTE
38 AM_CFLAGS += \
39 -DHAVE_OPENCL
40 endif