OSDN Git Service

android: simplify the including rule of subdirs
[android-x86/external-libdrm.git] / tests / Makefile.am
1 SUBDIRS = modeprint proptest modetest
2
3 if HAVE_LIBKMS
4 SUBDIRS += kmstest
5 endif
6
7 if HAVE_RADEON
8 SUBDIRS += radeon
9 endif
10
11 if HAVE_EXYNOS
12 SUBDIRS += exynos
13 endif
14
15 if HAVE_TEGRA
16 SUBDIRS += tegra
17 endif
18
19 if HAVE_LIBUDEV
20 SUBDIRS += vbltest
21 endif
22
23 AM_CFLAGS = \
24         $(WARN_CFLAGS)\
25         -I $(top_srcdir)/include/drm \
26         -I $(top_srcdir)
27
28 LDADD = $(top_builddir)/libdrm.la
29
30 check_PROGRAMS = \
31         dristat \
32         drmstat
33
34 if HAVE_NOUVEAU
35 SUBDIRS += nouveau
36 endif
37
38 if HAVE_LIBUDEV
39
40 check_LTLIBRARIES = libdrmtest.la
41
42 libdrmtest_la_SOURCES = \
43         drmtest.c \
44         drmtest.h
45
46 LDADD += \
47         libdrmtest.la \
48         $(LIBUDEV_LIBS)
49
50
51 XFAIL_TESTS =                                   \
52         auth                                    \
53         lock
54
55 TESTS =                                         \
56         openclose                               \
57         getversion                              \
58         getclient                               \
59         getstats                                \
60         setversion                              \
61         updatedraw                              \
62         name_from_fd
63
64 check_PROGRAMS += $(TESTS)
65
66 endif