2 ## This file is part of the libsigrok project.
4 ## Copyright (C) 2018 Uwe Hermann <uwe@hermann-uwe.de>
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.
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.
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/>.
20 ACLOCAL_AMFLAGS = -I m4
21 AM_LIBTOOLFLAGS = --silent
22 GNUMAKEFLAGS = --no-print-directory
24 AM_CPPFLAGS = -Iinclude -I$(srcdir)/include -I$(srcdir)/src -I$(srcdir)/tests -I.
26 AM_CXXFLAGS = $(SRF_WXXFLAGS) $(LIBSIGROKFLOW_CFLAGS)
28 lib_LTLIBRARIES = libsigrokflow.la
30 libsigrokflow_la_SOURCES = \
33 libsigrokflow_la_LIBADD = $(LIBSIGROKFLOW_LIBS)
34 libsigrokflow_la_LDFLAGS = -version-info $(SRF_LIB_VERSION) -no-undefined
36 library_includedir = $(includedir)/libsigrokflow
37 library_include_HEADERS = \
38 include/libsigrokflow/libsigrokflow.hpp
40 pkgconfigdir = $(libdir)/pkgconfig
41 pkgconfig_DATA = libsigrokflow.pc
44 check_PROGRAMS = tests/main
46 tests_main_SOURCES = \
47 include/libsigrokflow/libsigrokflow.hpp \
50 tests_main_LDADD = libsigrokflow.la $(LIBSIGROKFLOW_LIBS)
52 .PHONY: dist-changelog
54 dist-hook: dist-changelog
57 $(AM_V_at)if test ! -d '$(top_srcdir)/.git'; then \
58 cp -f '$(top_srcdir)/ChangeLog' "$(top_distdir)/ChangeLog"; \
59 elif git -C '$(top_srcdir)' log >.ChangeLog.tmp; then \
60 mv -f .ChangeLog.tmp "$(top_distdir)/ChangeLog"; \
62 rm -f .ChangeLog.tmp; exit 1; \