r300g: Use automake to generate Makefile v3
[profile/ivi/mesa.git] / src / gallium / drivers / r300 / Makefile.am
1 include Makefile.sources
2
3 noinst_LIBRARIES = libr300.a
4 check_PROGRAMS = r300_compiler_tests
5 testdir = compiler/tests
6 TESTS = r300_compiler_tests
7
8 AM_CFLAGS = \
9         -I$(top_srcdir)/src/gallium/include \
10         -I$(top_srcdir)/src/gallium/auxiliary \
11         -I$(top_srcdir)/src/gallium/drivers \
12         -I$(top_srcdir)/include \
13         -I$(top_srcdir)/src/mesa \
14         -I$(top_srcdir)/src/glsl \
15         -I$(top_srcdir)/src/mapi \
16         $(LLVM_CFLAGS) \
17         $(RADEON_CFLAGS) \
18         $(DEFINES) \
19         $(ASM_FLAGS) \
20         $(PIC_FLAGS)
21
22 libr300_a_SOURCES = \
23         $(C_SOURCES) \
24         $(top_srcdir)/src/glsl/ralloc.c \
25         $(top_srcdir)/src/mesa/program/register_allocate.c
26
27 r300_compiler_tests_LDADD = libr300.a
28 r300_compiler_tests_CPPFLAGS = \
29         -I$(top_srcdir)/src/gallium/drivers/r300/compiler
30 r300_compiler_tests_SOURCES = \
31         $(testdir)/r300_compiler_tests.c \
32         $(testdir)/radeon_compiler_util_tests.c \
33         $(testdir)/rc_test_helpers.c \
34         $(testdir)/unit_test.c
35
36 # FIXME: remove this when the rest of the gallium
37 # build system is converted to automake.
38 default: libr300.a