-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
81 lines (67 loc) · 2.52 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
79
80
81
#
# sadplay - AdLib music player with graphics.
#
# Makefile.am - Automake configuration file.
#
# Copyright (C) 2019 Marco Confalonieri <marco at marcoconfalonieri.it>
#
# 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 <https://www.gnu.org/licenses/>.
#
# Automake options
AUTOMAKE_OPTIONS = subdir-objects
# Main sources
bin_PROGRAMS = sadplay
sadplay_SOURCES = src/frequency_bar.cc src/main.cc src/main_support.cc \
src/sadplay_args.cc src/sadplay.cc src/sdl_channel_bar.cc \
src/sdl_driver.cc src/spectrum_analyzer.cc src/adplug_player.cc \
src/texts.cc \
include/channel_bar.h include/display.h include/frequency_bar.h \
include/main_support.h include/sadplay.h include/sdl_channel_bar.h \
include/sdl_driver.h include/spectrum_analyzer.h include/texts.h \
include/adplug_player.h include/sadplay_args.h
# Test cases
TEST_LOG_DRIVER = "AM_TAP_AWK='$(AWK)' $(SHELL) $(top_srcdir)/build-aux/tap-driver.sh"
TESTS = $(check_PROGRAMS)
# Test programs
check_PROGRAMS = test_main_support test_sdl_channel_bar
test_main_support_LIBS = $(CODE_COVERAGE_LIBS)
test_main_support_CXXFLAGS = $(CODE_COVERAGE_CXXFLAGS) -DSADPLAY_TEST
test_main_support_SOURCES = test/test_runner.cc test/test_main_support.cc \
src/main_support.cc src/sadplay_args.cc
test_sdl_channel_bar_LIBS = $(CODE_COVERAGE_LIBS)
test_sdl_channel_bar_CXXFLAGS = $(CODE_COVERAGE_CXXFLAGS) -DSADPLAY_TEST
test_sdl_channel_bar_SOURCES = test/test_runner.cc \
test/test_sdl_channel_bar.cc src/sdl_channel_bar.cc
# Other resources
EXTRA_DIST = README.md
log-check:
echo TEST_LOG_DRIVER: $(TEST_LOG_DRIVER)
# lcov report
if CODE_COVERAGE_ENABLED
cov-reset:
@rm -fr coverage
@find . -name "*.gcda" -exec rm {} \;
@find . -name "*.gcno" -exec rm {} \;
@lcov --directory . --zerocounters
cov-report:
@mkdir -p coverage
@lcov --compat-libtool --no-external --directory src --capture --output-file coverage/app.info
@genhtml -o docs/coverage/ coverage/app.info
cov:
@make cov-report
clean-local:
@make cov-reset
check:
@make cov
endif