AM_LIBTOOLFLAGS = --silent
GNUMAKEFLAGS = --no-print-directory
-AM_CPPFLAGS = -Iinclude -I$(srcdir)/include -I$(srcdir)/src -I.
+AM_CPPFLAGS = -Iinclude -I$(srcdir)/include -I$(srcdir)/src -I$(srcdir)/tests -I.
AM_CXXFLAGS = $(SRF_WXXFLAGS) $(LIBSIGROKFLOW_CFLAGS)
lib_LTLIBRARIES = libsigrokflow.la
libsigrokflow_la_SOURCES = \
- src/main.cpp
+ src/main.cpp \
+ src/init.cpp \
+ src/legacy_capture_device.cpp \
+ src/legacy_input.cpp \
+ src/legacy_output.cpp \
+ src/legacy_decoder.cpp
libsigrokflow_la_LIBADD = $(LIBSIGROKFLOW_LIBS)
libsigrokflow_la_LDFLAGS = -version-info $(SRF_LIB_VERSION) -no-undefined
library_includedir = $(includedir)/libsigrokflow
library_include_HEADERS = \
- include/libsigrokflow/libsigrokflow.hpp
+ include/libsigrokflow/libsigrokflow.hpp \
+ include/libsigrokflow/init.hpp
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libsigrokflow.pc
+TESTS = tests/main
+check_PROGRAMS = tests/main
+
+tests_main_SOURCES = \
+ include/libsigrokflow/libsigrokflow.hpp \
+ tests/main.cpp \
+ tests/init.cpp
+
+tests_main_LDADD = libsigrokflow.la $(LIBSIGROKFLOW_LIBS)
+
+EXTRA_DIST = Doxyfile contrib/libsigrok_112x112.png
+
.PHONY: dist-changelog
dist-hook: dist-changelog