1SUBDIRS = util kms modeprint proptest modetest vbltest
2
3if HAVE_LIBKMS
4SUBDIRS += kmstest planetest
5endif
6
7if HAVE_RADEON
8SUBDIRS += radeon
9endif
10
11if HAVE_AMDGPU
12if HAVE_CUNIT
13SUBDIRS += amdgpu
14endif
15endif
16
17if HAVE_EXYNOS
18SUBDIRS += exynos
19endif
20
21if HAVE_TEGRA
22SUBDIRS += tegra
23endif
24
25AM_CFLAGS = \
26	$(WARN_CFLAGS)\
27	-I $(top_srcdir)/include/drm \
28	-I $(top_srcdir)
29
30LDADD = $(top_builddir)/libdrm.la
31
32check_PROGRAMS = \
33	dristat \
34	drmdevice \
35	drmstat
36
37dristat_LDADD = -lm
38
39if HAVE_NOUVEAU
40SUBDIRS += nouveau
41endif
42
43TESTS = \
44	drmsl \
45	hash \
46	random
47
48if HAVE_LIBUDEV
49
50check_LTLIBRARIES = libdrmtest.la
51
52libdrmtest_la_SOURCES = \
53	drmtest.c \
54	drmtest.h
55
56LDADD += \
57	libdrmtest.la \
58	$(LIBUDEV_LIBS)
59
60
61XFAIL_TESTS =					\
62	auth					\
63	lock
64
65TESTS +=					\
66	openclose				\
67	getversion				\
68	getclient				\
69	getstats				\
70	setversion				\
71	updatedraw				\
72	name_from_fd
73endif
74
75check_PROGRAMS += $(TESTS)
76