]> sigrok.org Git - libsigrokflow.git/blame - Makefile.am
Add Catch2 unit testing framework.
[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
24AM_CPPFLAGS = -Iinclude -I$(srcdir)/include -I$(srcdir)/src -I.
25
81c16ddc 26AM_CXXFLAGS = $(SRF_WXXFLAGS) $(LIBSIGROKFLOW_CFLAGS)
8440dc4f
UH
27
28lib_LTLIBRARIES = libsigrokflow.la
29
30libsigrokflow_la_SOURCES = \
31 src/main.cpp
32
81c16ddc 33libsigrokflow_la_LIBADD = $(LIBSIGROKFLOW_LIBS)
8440dc4f
UH
34libsigrokflow_la_LDFLAGS = -version-info $(SRF_LIB_VERSION) -no-undefined
35
36library_includedir = $(includedir)/libsigrokflow
37library_include_HEADERS = \
38 include/libsigrokflow/libsigrokflow.hpp
39
40pkgconfigdir = $(libdir)/pkgconfig
41pkgconfig_DATA = libsigrokflow.pc
42
43.PHONY: dist-changelog
44
45dist-hook: dist-changelog
46
47dist-changelog:
48 $(AM_V_at)if test ! -d '$(top_srcdir)/.git'; then \
49 cp -f '$(top_srcdir)/ChangeLog' "$(top_distdir)/ChangeLog"; \
50 elif git -C '$(top_srcdir)' log >.ChangeLog.tmp; then \
51 mv -f .ChangeLog.tmp "$(top_distdir)/ChangeLog"; \
52 else \
53 rm -f .ChangeLog.tmp; exit 1; \
54 fi