tests: allow tests programs to be installed
[platform/upstream/libdrm.git] / tests / modetest / Makefile.am
1 AM_CFLAGS = \
2         -I$(top_srcdir)/include/drm \
3         -I$(top_srcdir)/libkms/ \
4         -I$(top_srcdir)
5
6 if HAVE_INSTALL_TESTS
7 bin_PROGRAMS = \
8         modetest
9 else
10 noinst_PROGRAMS = \
11         modetest
12 endif
13
14 modetest_SOURCES = \
15         buffers.c modetest.c buffers.h
16
17 modetest_LDADD = \
18         $(top_builddir)/libdrm.la \
19         $(top_builddir)/libkms/libkms.la
20
21 if HAVE_CAIRO
22 AM_CFLAGS += $(CAIRO_CFLAGS)
23 modetest_LDADD += $(CAIRO_LIBS)
24 endif