a8aaf221c9a8adeeb0375ddd19baff3f4ace094a
[mesa.git] / src / gallium / drivers / r300 / 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 -I$(top_srcdir)/src/mesa/program \
8 -I$(top_srcdir)/src/mesa \
9 -I$(top_srcdir)/src/glsl \
10 -I$(top_srcdir)/src/mapi \
11 $(GALLIUM_DRIVER_CFLAGS) \
12 $(LLVM_CFLAGS) \
13 $(RADEON_CFLAGS)
14
15 noinst_LTLIBRARIES = libr300.la libr300-helper.la
16 check_PROGRAMS = r300_compiler_tests
17 TESTS = r300_compiler_tests
18
19 r300_compiler_tests_LDADD = libr300.la libr300-helper.la \
20 $(top_builddir)/src/gallium/auxiliary/libgallium.la \
21 $(GALLIUM_COMMON_LIB_DEPS)
22 r300_compiler_tests_CPPFLAGS = \
23 -I$(top_srcdir)/src/gallium/drivers/r300/compiler
24 r300_compiler_tests_SOURCES = $(COMPILER_TESTS_SOURCES)
25
26 libr300_la_SOURCES = $(C_SOURCES)
27
28 # These two files are included in libmesagallium, which is included in the dri
29 # targets. So, they were added directly to r300g the dri-r300 target would have
30 # duplicated symbols, and if they weren't the other *-r300 targets would fail
31 # with undefined symbols.
32 #
33 # Solve this by building them into a separate helper library that can be linked
34 # in place of libmesagallium.
35 libr300_helper_la_SOURCES = $(HELPER_SOURCES)