X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=Makefile.am;h=c37e17e8509172587ad1e9b8706e25746fc56993;hb=3f86037d18c697ec9f97eca1a615ad169589da61;hp=27d3cb68e570b5c6b4b7428b921e0bdcb6bcee76;hpb=8440dc4f65d3b940c2f99943f10d68711ed74919;p=libsigrokflow.git diff --git a/Makefile.am b/Makefile.am index 27d3cb6..c37e17e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -21,24 +21,44 @@ ACLOCAL_AMFLAGS = -I m4 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) +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/main.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