X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=blobdiff_plain;f=tests%2FMakefile.am;h=e70b3012d5c01be71d7712d01399872ca6892d10;hp=39af793544b0960c0c49a785af978ba04595ef24;hb=98457aa731ec0e7fe5a1be9f83181354253dc566;hpb=269b442df38c1cfe825fd397612f8f79aea5541d diff --git a/tests/Makefile.am b/tests/Makefile.am index 39af793..e70b301 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -19,22 +19,25 @@ ## if HAVE_CHECK - TESTS = check_main - check_PROGRAMS = ${TESTS} - check_main_SOURCES = \ $(top_builddir)/libsigrokdecode.h \ check_main.c \ check_core.c \ 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) \ + -DDECODERS_DIR='"$(abs_top_builddir)/decoders"' +endif -check_main_CPPFLAGS = $(CPPFLAGS_PYTHON) - +if HAVE_LIBSIGROK +bin_PROGRAMS = runtc +runtc_SOURCES = runtc.c +runtc_CPPFLAGS = $(CPPFLAGS_PYTHON) $(LIBSIGROK_CFLAGS) \ + -DDECODERS_DIR='"$(abs_top_builddir)/decoders"' +runtc_LDFLAGS = $(LIBSIGROK_LIBS) -L$(top_builddir) -lsigrokdecode endif