-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile.am
78 lines (63 loc) · 2.32 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
##
## This file is part of the libsigrok project.
##
## Copyright (C) 2018 Uwe Hermann <[email protected]>
##
## This program is free software: you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with this program. If not, see <http://www.gnu.org/licenses/>.
##
ACLOCAL_AMFLAGS = -I m4
AM_LIBTOOLFLAGS = --silent
GNUMAKEFLAGS = --no-print-directory
AM_CPPFLAGS = -Iinclude -I$(srcdir)/include -I$(srcdir)/src -I$(srcdir)/tests -I.
AM_CXXFLAGS = $(SRF_WXXFLAGS) $(LIBSIGROKFLOW_CFLAGS)
lib_LTLIBRARIES = libsigrokflow.la
libsigrokflow_la_SOURCES = \
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/main.hpp \
include/libsigrokflow/init.hpp \
include/libsigrokflow/legacy_capture_device.hpp \
include/libsigrokflow/legacy_input.hpp \
include/libsigrokflow/legacy_output.hpp \
include/libsigrokflow/legacy_decoder.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/legacy_decoder.cpp
tests_main_LDADD = libsigrokflow.la $(LIBSIGROKFLOW_LIBS)
EXTRA_DIST = Doxyfile contrib/libsigrok_112x112.png
.PHONY: dist-changelog
dist-hook: dist-changelog
dist-changelog:
$(AM_V_at)if test ! -d '$(top_srcdir)/.git'; then \
cp -f '$(top_srcdir)/ChangeLog' "$(top_distdir)/ChangeLog"; \
elif git -C '$(top_srcdir)' log >.ChangeLog.tmp; then \
mv -f .ChangeLog.tmp "$(top_distdir)/ChangeLog"; \
else \
rm -f .ChangeLog.tmp; exit 1; \
fi