]> sigrok.org Git - libsigrokflow.git/blob - Makefile.am
Factor out legacy_capture_device.hpp.
[libsigrokflow.git] / Makefile.am
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
20 ACLOCAL_AMFLAGS = -I m4
21 AM_LIBTOOLFLAGS = --silent
22 GNUMAKEFLAGS = --no-print-directory
23
24 AM_CPPFLAGS = -Iinclude -I$(srcdir)/include -I$(srcdir)/src -I$(srcdir)/tests -I.
25
26 AM_CXXFLAGS = $(SRF_WXXFLAGS) $(LIBSIGROKFLOW_CFLAGS)
27
28 lib_LTLIBRARIES = libsigrokflow.la
29
30 libsigrokflow_la_SOURCES = \
31         src/main.cpp \
32         src/init.cpp \
33         src/legacy_capture_device.cpp \
34         src/legacy_input.cpp \
35         src/legacy_output.cpp \
36         src/legacy_decoder.cpp
37
38 libsigrokflow_la_LIBADD = $(LIBSIGROKFLOW_LIBS)
39 libsigrokflow_la_LDFLAGS = -version-info $(SRF_LIB_VERSION) -no-undefined
40
41 library_includedir = $(includedir)/libsigrokflow
42 library_include_HEADERS = \
43         include/libsigrokflow/libsigrokflow.hpp \
44         include/libsigrokflow/main.hpp \
45         include/libsigrokflow/init.hpp \
46         include/libsigrokflow/legacy_capture_device.hpp
47
48 pkgconfigdir = $(libdir)/pkgconfig
49 pkgconfig_DATA = libsigrokflow.pc
50
51 TESTS = tests/main
52 check_PROGRAMS = tests/main
53
54 tests_main_SOURCES = \
55         include/libsigrokflow/libsigrokflow.hpp \
56         tests/main.cpp \
57         tests/init.cpp
58
59 tests_main_LDADD = libsigrokflow.la $(LIBSIGROKFLOW_LIBS)
60
61 EXTRA_DIST = Doxyfile contrib/libsigrok_112x112.png
62
63 .PHONY: dist-changelog
64
65 dist-hook: dist-changelog
66
67 dist-changelog:
68         $(AM_V_at)if test ! -d '$(top_srcdir)/.git'; then \
69                 cp -f '$(top_srcdir)/ChangeLog' "$(top_distdir)/ChangeLog"; \
70         elif git -C '$(top_srcdir)' log >.ChangeLog.tmp; then \
71                 mv -f .ChangeLog.tmp "$(top_distdir)/ChangeLog"; \
72         else \
73                 rm -f .ChangeLog.tmp; exit 1; \
74         fi