[Mesa-dev] [PATCH 3/6] r300g: Build a libtool archive

Jon TURNEY jon.turney at dronecode.org.uk
Mon Jul 16 05:50:52 PDT 2012


On 13/07/2012 18:33, Tom Stellard wrote:
> -r300_compiler_tests_LDADD = libr300.a
> +r300_compiler_tests_LDADD = $(builddir)/.libs/libr300.la

I think this can be written $(builddir)/libr300.la

>  r300_compiler_tests_CPPFLAGS = \
>  	-I$(top_srcdir)/src/gallium/drivers/r300/compiler
>  r300_compiler_tests_SOURCES = \
> @@ -29,3 +24,12 @@ r300_compiler_tests_SOURCES = \
>  	$(testdir)/radeon_compiler_util_tests.c \
>  	$(testdir)/rc_test_helpers.c \
>  	$(testdir)/unit_test.c
> +
> +libr300_la_SOURCES = \
> +	$(C_SOURCES) \
> +	$(top_srcdir)/src/glsl/ralloc.c \
> +	$(top_srcdir)/src/mesa/program/register_allocate.c
> +
> +#XXX: Delete this when all r300 targets are converted to automake.
> +all-local: libr300.la
> +	ln -f $(builddir)/.libs/libr300.a $(builddir)/libr300.a

This link should be removed on clean (and similarly in other makefiles)


More information about the mesa-dev mailing list