summaryrefslogtreecommitdiff
path: root/tests/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Makefile.am')
-rw-r--r--tests/Makefile.am8
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 5739a03..e70b301 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -20,9 +20,7 @@
if HAVE_CHECK
TESTS = check_main
-
check_PROGRAMS = ${TESTS}
-
check_main_SOURCES = \
$(top_builddir)/libsigrokdecode.h \
check_main.c \
@@ -30,12 +28,10 @@ check_main_SOURCES = \
check_decoder.c \
check_inst.c \
check_session.c
-
check_main_CFLAGS = @check_CFLAGS@
-
check_main_LDADD = $(top_builddir)/libsigrokdecode.la @check_LIBS@
-
-check_main_CPPFLAGS = $(CPPFLAGS_PYTHON)
+check_main_CPPFLAGS = $(CPPFLAGS_PYTHON) \
+ -DDECODERS_DIR='"$(abs_top_builddir)/decoders"'
endif
if HAVE_LIBSIGROK