X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=tests%2FMakefile.am;h=bd0858ff12ab89867264890d100ca15fe0a9a277;hb=e0a0123d2f7f1039fe52f24591dff262b4f8935c;hp=8086b9df3b3e3d964484f28d87a0b7ce62dd715f;hpb=fbd226c3f70f20fdf3cbfd43a671bf2bcc5d23e6;p=libsigrokdecode.git diff --git a/tests/Makefile.am b/tests/Makefile.am index 8086b9d..bd0858f 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,17 +28,16 @@ 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 -bin_PROGRAMS = runtc +if BUILD_RUNTC +noinst_PROGRAMS = runtc runtc_SOURCES = runtc.c -runtc_CPPFLAGS = $(CPPFLAGS_PYTHON) -runtc_LDFLAGS = -L/home/bert/sr/lib -lsigrok -lsigrokdecode +runtc_CPPFLAGS = $(CPPFLAGS_PYTHON) $(LIBSIGROK_CFLAGS) \ + -DDECODERS_DIR='"$(abs_top_builddir)/decoders"' +runtc_LDFLAGS = -L$(top_builddir) $(LIBSIGROK_LIBS) $(LDFLAGS_PYTHON) -lsigrokdecode endif