diff options
author | Tom Stellard <[email protected]> | 2012-02-19 19:38:58 -0500 |
---|---|---|
committer | Tom Stellard <[email protected]> | 2012-02-26 15:13:47 -0500 |
commit | e6fa2d89e14452b6bdf42c7eb4150fb2a2c46a4a (patch) | |
tree | 947a55f5bdd4bce093cea8915124f48f3d813537 /src/gallium/drivers/r300/Makefile.am | |
parent | edf33079771d61b093c6bffd98094b197915d758 (diff) |
r300g: Use automake to generate Makefile v3
v2:
- s/$(top_builddir)/$(top_srcdir)/
- Always generate Makefile.in
v3:
- Fixes from Matt Turner
- Use Mesa CFLAGS
Diffstat (limited to 'src/gallium/drivers/r300/Makefile.am')
-rw-r--r-- | src/gallium/drivers/r300/Makefile.am | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/Makefile.am b/src/gallium/drivers/r300/Makefile.am new file mode 100644 index 00000000000..8ec47d77ec1 --- /dev/null +++ b/src/gallium/drivers/r300/Makefile.am @@ -0,0 +1,38 @@ +include Makefile.sources + +noinst_LIBRARIES = libr300.a +check_PROGRAMS = r300_compiler_tests +testdir = compiler/tests +TESTS = r300_compiler_tests + +AM_CFLAGS = \ + -I$(top_srcdir)/src/gallium/include \ + -I$(top_srcdir)/src/gallium/auxiliary \ + -I$(top_srcdir)/src/gallium/drivers \ + -I$(top_srcdir)/include \ + -I$(top_srcdir)/src/mesa \ + -I$(top_srcdir)/src/glsl \ + -I$(top_srcdir)/src/mapi \ + $(LLVM_CFLAGS) \ + $(RADEON_CFLAGS) \ + $(DEFINES) \ + $(ASM_FLAGS) \ + $(PIC_FLAGS) + +libr300_a_SOURCES = \ + $(C_SOURCES) \ + $(top_srcdir)/src/glsl/ralloc.c \ + $(top_srcdir)/src/mesa/program/register_allocate.c + +r300_compiler_tests_LDADD = libr300.a +r300_compiler_tests_CPPFLAGS = \ + -I$(top_srcdir)/src/gallium/drivers/r300/compiler +r300_compiler_tests_SOURCES = \ + $(testdir)/r300_compiler_tests.c \ + $(testdir)/radeon_compiler_util_tests.c \ + $(testdir)/rc_test_helpers.c \ + $(testdir)/unit_test.c + +# FIXME: remove this when the rest of the gallium +# build system is converted to automake. +default: libr300.a |