isl: automake: flatten the tests rules
[mesa.git] / src / intel / isl / Makefile.am
index d1f91a78e0204a837ee932c14c498f37f2ef539f..57313baa4f2378cf5c361111a8cbffd1d9138936 100644 (file)
@@ -19,9 +19,6 @@
 # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
 # IN THE SOFTWARE.
 
-SUBDIRS = .
-
-
 ISL_GEN_LIBS =                                           \
        libisl-gen7.la                                   \
        libisl-gen75.la                                  \
@@ -31,8 +28,6 @@ ISL_GEN_LIBS =                                           \
 
 noinst_LTLIBRARIES = $(ISL_GEN_LIBS) libisl.la
 
-EXTRA_DIST = tests
-
 # The gallium includes are for the util/u_math.h include from main/macros.h
 AM_CPPFLAGS = \
        $(INTEL_CFLAGS) \
@@ -105,24 +100,17 @@ 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)
-
 # ----------------------------------------------------------------------------
 
-include $(top_srcdir)/install-lib-links.mk
-
 EXTRA_DIST = \
        isl_format_layout_gen.bash \
        isl_format_layout.csv \