libdrm/exynos: add test application for 2d gpu.
[platform/upstream/libdrm.git] / tests / Makefile.am
index 551589f..cd11491 100644 (file)
@@ -2,29 +2,38 @@ NULL:=#
 
 AM_CPPFLAGS = \
        -I $(top_srcdir)/include/drm \
-       -I $(top_srcdir)/libdrm
+       -I $(top_srcdir)
 
-LDADD = $(top_builddir)/libdrm/libdrm.la
+LDADD = $(top_builddir)/libdrm.la
 
-noinst_PROGRAMS = \
+check_PROGRAMS = \
        dristat \
        drmstat
 
-SUBDIRS =
+SUBDIRS = modeprint
 
-if HAVE_INTEL
+if HAVE_LIBKMS
+SUBDIRS += kmstest modetest
+endif
+
+if HAVE_RADEON
+SUBDIRS += radeon
+endif
+
+if HAVE_EXYNOS
+SUBDIRS += exynos
 endif
 
 if HAVE_LIBUDEV
 
-EXTRA_LTLIBRARIES = libdrmtest.la
+check_LTLIBRARIES = libdrmtest.la
 
 libdrmtest_la_SOURCES = \
        drmtest.c \
        drmtest.h
 
 libdrmtest_la_LIBADD = \
-       $(top_builddir)/libdrm/libdrm.la \
+       $(top_builddir)/libdrm.la \
        $(LIBUDEV_LIBS)
 
 LDADD += libdrmtest.la
@@ -40,14 +49,12 @@ TESTS =                                             \
        getstats                                \
        setversion                              \
        updatedraw                              \
+       name_from_fd                            \
        $(NULL)
 
-if HAVE_INTEL
-SUBDIRS += \
-       modeprint                               \
-       modetest                                \
-       $(NULL)
+SUBDIRS += vbltest $(NULL)
 
+if HAVE_INTEL
 TESTS +=                                       \
        gem_basic                               \
        gem_flink                               \
@@ -56,8 +63,6 @@ TESTS +=                                      \
        $(NULL)
 endif
 
-EXTRA_PROGRAMS = $(TESTS)
+check_PROGRAMS += $(TESTS)
 
 endif
-
-CLEANFILES = $(EXTRA_PROGRAMS) $(EXTRA_LTLIBRARIES)