summaryrefslogtreecommitdiff
path: root/tests/Makefile.am
blob: 56f7ec470d5d0b22e746f06b438a11e453f40dbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
TESTS = getversion \
	getclient \
	getstats \
	gem_basic \
	gem_exec_nop \
	gem_exec_blt \
	gem_flink \
	gem_readwrite \
	gem_ringfill \
	gem_mmap \
	gem_pwrite \
	gem_pread_after_blit \
	gem_tiled_pread \
	gem_linear_blits \
	gem_tiled_blits \
	gem_tiled_fence_blits \
	gem_largeobject \
	gem_bad_address \
	gem_bad_blit \
	gem_bad_batch \
	gem_hang \
	gem_fence_thrash \
	gem_gtt_speed \
	$(NULL)

EXTRA_PROGRAMS = $(TESTS)
CLEANFILES = $(EXTRA_PROGRAMS)

AM_CFLAGS = $(DRM_CFLAGS) $(WARN_CFLAGS) \
	-I$(srcdir)/.. \
	-I$(srcdir)/../lib
LDADD = ../lib/libintel_tools.la $(PCIACCESS_LIBS) $(DRM_LIBS) 

if HAVE_CAIRO
if HAVE_LIBUDEV
if HAVE_GLIB
TESTS += testdisplay
LDADD += $(CAIRO_LIBS) $(LIBUDEV_LIBS) $(GLIB_LIBS)
AM_CFLAGS += $(CAIRO_CFLAGS) $(LIBUDEV_CFLAGS) $(GLIB_CFLAGS)
endif
endif
endif

gem_fence_thrash_CFLAGS = $(AM_CFLAGS) -pthread
gem_fence_thrash_LDADD = $(LDADD) -lpthread