]> sigrok.org Git - libsigrokflow.git/blame - Makefile.am
Add tests/legacy_decoder.cpp and a simple unit test.
[libsigrokflow.git] / Makefile.am
CommitLineData
8440dc4f
UH
1##
2## This file is part of the libsigrok project.
3##
4## Copyright (C) 2018 Uwe Hermann <uwe@hermann-uwe.de>
5##
6## This program is free software: you can redistribute it and/or modify
7## it under the terms of the GNU General Public License as published by
8## the Free Software Foundation, either version 3 of the License, or
9## (at your option) any later version.
10##
11## This program is distributed in the hope that it will be useful,
12## but WITHOUT ANY WARRANTY; without even the implied warranty of
13## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14## GNU General Public License for more details.
15##
16## You should have received a copy of the GNU General Public License
17## along with this program. If not, see <http://www.gnu.org/licenses/>.
18##
19
20ACLOCAL_AMFLAGS = -I m4
21AM_LIBTOOLFLAGS = --silent
22GNUMAKEFLAGS = --no-print-directory
23
7c9a90f0 24AM_CPPFLAGS = -Iinclude -I$(srcdir)/include -I$(srcdir)/src -I$(srcdir)/tests -I.
8440dc4f 25
81c16ddc 26AM_CXXFLAGS = $(SRF_WXXFLAGS) $(LIBSIGROKFLOW_CFLAGS)
8440dc4f
UH
27
28lib_LTLIBRARIES = libsigrokflow.la
29
30libsigrokflow_la_SOURCES = \
fc5450cb 31 src/main.cpp \
58e83724 32 src/init.cpp \
aa03d5d8 33 src/legacy_capture_device.cpp \
36801352 34 src/legacy_input.cpp \
6cb4dbbf
UH
35 src/legacy_output.cpp \
36 src/legacy_decoder.cpp
8440dc4f 37
81c16ddc 38libsigrokflow_la_LIBADD = $(LIBSIGROKFLOW_LIBS)
8440dc4f
UH
39libsigrokflow_la_LDFLAGS = -version-info $(SRF_LIB_VERSION) -no-undefined
40
41library_includedir = $(includedir)/libsigrokflow
42library_include_HEADERS = \
8ab86460 43 include/libsigrokflow/libsigrokflow.hpp \
3f86037d 44 include/libsigrokflow/main.hpp \
a43e2005 45 include/libsigrokflow/init.hpp \
3d1f327f 46 include/libsigrokflow/legacy_capture_device.hpp \
bf71e84f 47 include/libsigrokflow/legacy_input.hpp \
d59dd5ff
UH
48 include/libsigrokflow/legacy_output.hpp \
49 include/libsigrokflow/legacy_decoder.hpp
8440dc4f
UH
50
51pkgconfigdir = $(libdir)/pkgconfig
52pkgconfig_DATA = libsigrokflow.pc
53
7c9a90f0
UH
54TESTS = tests/main
55check_PROGRAMS = tests/main
56
57tests_main_SOURCES = \
58 include/libsigrokflow/libsigrokflow.hpp \
5b6e7c40 59 tests/main.cpp \
aa80cd8c
UH
60 tests/init.cpp \
61 tests/legacy_decoder.cpp
7c9a90f0
UH
62
63tests_main_LDADD = libsigrokflow.la $(LIBSIGROKFLOW_LIBS)
64
c65de66c 65EXTRA_DIST = Doxyfile contrib/libsigrok_112x112.png
7b594117 66
8440dc4f
UH
67.PHONY: dist-changelog
68
69dist-hook: dist-changelog
70
71dist-changelog:
72 $(AM_V_at)if test ! -d '$(top_srcdir)/.git'; then \
73 cp -f '$(top_srcdir)/ChangeLog' "$(top_distdir)/ChangeLog"; \
74 elif git -C '$(top_srcdir)' log >.ChangeLog.tmp; then \
75 mv -f .ChangeLog.tmp "$(top_distdir)/ChangeLog"; \
76 else \
77 rm -f .ChangeLog.tmp; exit 1; \
78 fi