AM_CPPFLAGS = \
	-I$(top_srcdir)/include/drm \
	-I$(top_srcdir)/tests \
	-I$(top_srcdir)

AM_CFLAGS = \
	$(WARN_CFLAGS)

noinst_LTLIBRARIES = libkms-test.la

libkms_test_la_SOURCES = \
	libkms-test.h \
	libkms-test-crtc.c \
	libkms-test-device.c \
	libkms-test-framebuffer.c \
	libkms-test-plane.c \
	libkms-test-screen.c

libkms_test_la_LIBADD = \
	$(top_builddir)/libdrm.la

if HAVE_INSTALL_TESTS
bin_PROGRAMS = \
	kms-steal-crtc \
	kms-universal-planes
else
noinst_PROGRAMS = \
	kms-steal-crtc \
	kms-universal-planes
endif

kms_steal_crtc_SOURCES = kms-steal-crtc.c
kms_steal_crtc_LDADD = libkms-test.la ../util/libutil.la $(CAIRO_LIBS)

kms_universal_planes_SOURCES = kms-universal-planes.c
kms_universal_planes_LDADD = libkms-test.la $(CAIRO_LIBS)