summaryrefslogtreecommitdiff
path: root/lib/libdrm/tests/modetest/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libdrm/tests/modetest/Makefile.am')
-rw-r--r--lib/libdrm/tests/modetest/Makefile.am28
1 files changed, 28 insertions, 0 deletions
diff --git a/lib/libdrm/tests/modetest/Makefile.am b/lib/libdrm/tests/modetest/Makefile.am
new file mode 100644
index 000000000..93820fac7
--- /dev/null
+++ b/lib/libdrm/tests/modetest/Makefile.am
@@ -0,0 +1,28 @@
+include Makefile.sources
+
+AM_CFLAGS = $(filter-out -Wpointer-arith, $(WARN_CFLAGS))
+
+AM_CFLAGS += \
+ -I$(top_srcdir)/include/drm \
+ -I$(top_srcdir)
+
+if HAVE_INSTALL_TESTS
+bin_PROGRAMS = \
+ modetest
+else
+noinst_PROGRAMS = \
+ modetest
+endif
+
+modetest_SOURCES = $(MODETEST_FILES)
+
+modetest_LDADD = \
+ $(top_builddir)/libdrm.la \
+ -lpthread
+
+if HAVE_CAIRO
+AM_CFLAGS += $(CAIRO_CFLAGS)
+modetest_LDADD += $(CAIRO_LIBS)
+endif
+
+EXTRA_DIST = Android.mk