X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=Makefile.am;h=3a50400f0a24fe7b03bb3974b634e6dfed997bcc;hb=d2bcb32bc16eddffc9ec54b505c03028a2ec4160;hp=741720f91f6033bbcd015db8c678e4f30bb70df7;hpb=1c0dbcc95b2e8e9a20279f0dab0eecd115be5484;p=libsigrokdecode.git diff --git a/Makefile.am b/Makefile.am index 741720f..3a50400 100644 --- a/Makefile.am +++ b/Makefile.am @@ -47,31 +47,23 @@ noinst_HEADERS = libsigrokdecode-internal.h pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = libsigrokdecode.pc -EXTRA_DIST = Doxyfile contrib/sigrok-logo-notext.png +EXTRA_DIST = Doxyfile HACKING contrib/sigrok-logo-notext.png if HAVE_CHECK -TESTS = tests/check_main +TESTS = tests/main check_PROGRAMS = ${TESTS} -tests_check_main_SOURCES = \ +tests_main_SOURCES = \ libsigrokdecode.h \ tests/lib.h \ - tests/check_main.c \ - tests/check_core.c \ - tests/check_decoder.c \ - tests/check_inst.c \ - tests/check_session.c -tests_check_main_CFLAGS = @check_CFLAGS@ -tests_check_main_LDADD = $(top_builddir)/libsigrokdecode.la @check_LIBS@ -tests_check_main_CPPFLAGS = $(CPPFLAGS_PYTHON) \ - -DDECODERS_DIR='"$(abs_top_builddir)/decoders"' -endif - -if BUILD_RUNTC -noinst_PROGRAMS = tests/runtc -tests_runtc_SOURCES = tests/runtc.c -tests_runtc_CPPFLAGS = $(CPPFLAGS_PYTHON) $(LIBSIGROK_CFLAGS) \ - -DDECODERS_DIR='"$(abs_top_builddir)/decoders"' -tests_runtc_LDFLAGS = -L$(top_builddir) $(LIBSIGROK_LIBS) $(LDFLAGS_PYTHON) -lsigrokdecode + 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 MAINTAINERCLEANFILES = ChangeLog