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