+EXTRA_DIST = Doxyfile HACKING contrib/sigrok-logo-notext.png
+
+if HAVE_CHECK
+TESTS = tests/main
+check_PROGRAMS = ${TESTS}
+tests_main_SOURCES = \
+ libsigrokdecode.h \
+ tests/lib.h \
+ tests/main.c \
+ tests/core.c \
+ tests/decoder.c \
+ tests/inst.c \
+ tests/session.c
+tests_main_CFLAGS = $(AM_CFLAGS) @check_CFLAGS@
+tests_main_LDADD = $(top_builddir)/libsigrokdecode.la @check_LIBS@
+tests_main_CPPFLAGS = $(CPPFLAGS_PYTHON) \
+ -DDECODERS_DIR='"$(abs_top_srcdir)/decoders"'
+endif