[Mesa-dev] [PATCH 04/18] isl: automake: flatten the tests rules
Emil Velikov
emil.l.velikov at gmail.com
Fri May 27 14:35:31 UTC 2016
From: Emil Velikov <emil.velikov at collabora.com>
Fold the unneeded extra variable tests_ldadd, the explicit sources
section (single file with the default extension) and flip the
check_PROGRAMS <> TESTS order (TESTS includes scripts, while
check_PROGRAMS is binaries only).
Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
src/intel/isl/Makefile.am | 13 ++++---------
1 file changed, 4 insertions(+), 9 deletions(-)
diff --git a/src/intel/isl/Makefile.am b/src/intel/isl/Makefile.am
index 51e2ae1..57313ba 100644
--- a/src/intel/isl/Makefile.am
+++ b/src/intel/isl/Makefile.am
@@ -100,20 +100,15 @@ isl_format_layout.c: isl_format_layout_gen.bash \
# Tests
# ----------------------------------------------------------------------------
-TESTS = tests/isl_surf_get_image_offset_test
+check_PROGRAMS = tests/isl_surf_get_image_offset_test
-check_PROGRAMS = $(TESTS)
+TESTS = $(check_PROGRAMS)
-# Link tests to lib965_compiler.la for brw_get_device_info().
-tests_ldadd = \
- libisl.la \
+tests_isl_surf_get_image_offset_test_LDADD = \
+ libisl.la \
$(top_builddir)/src/mesa/drivers/dri/i965/libi965_compiler.la \
-lm
-tests_isl_surf_get_image_offset_test_SOURCES = \
- tests/isl_surf_get_image_offset_test.c
-tests_isl_surf_get_image_offset_test_LDADD = $(tests_ldadd)
-
# ----------------------------------------------------------------------------
EXTRA_DIST = \
--
2.8.2
More information about the mesa-dev
mailing list