-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile.am
105 lines (89 loc) · 2.49 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
bin_PROGRAMS = kmad test_kmad
shared_LDADD = -lboost_filesystem \
-lboost_program_options \
-lboost_regex \
-lboost_system \
-lboost_unit_test_framework \
-lconfig++
#shared_LDADD = $(BOOST_FILESYSTEM_LIB) \
# $(BOOST_PROGRAM_OPTIONS_LIB) \
# $(BOOST_REGEX_LIB) \
# $(BOOST_SYSTEM_LIB) \
# $(BOOST_UNIT_TEST_FRAMEWORK_LIB) \
# -lconfig++
shared_SOURCES = src/compare_doubles.cpp \
src/fasta.cpp \
src/feature_scores.cpp \
src/f_config.cpp \
src/outfile.cpp \
src/optimizer.cpp \
src/profile.cpp \
src/scoring_matrix.cpp \
src/msa.cpp
include_HEADERS = src/compare_doubles.h \
src/fasta.h \
src/feature_scores.h \
src/f_config.h \
src/outfile.h \
src/optimizer.h \
src/profile.h \
src/scoring_matrix.h \
src/substitution_matrix.h \
src/msa.h
kmad_SOURCES = $(shared_SOURCES) \
src/kmad.cpp
kmad_LDADD = $(shared_LDADD)
test_kmad_SOURCES = $(shared_SOURCES) \
tests/test_compare_doubles.cpp \
tests/test_config.cpp \
tests/test_fasta.cpp \
tests/test_optimizer.cpp \
tests/test_profile.cpp \
tests/test_feature_scores.cpp \
tests/test_scoring_matrix.cpp \
tests/test_msa.cpp \
tests/test_outfile.cpp
EXTRA_DIST = tests/test_conf_file.cfg \
tests/test_conffile_pattern.cfg \
tests/test_conf_file_wrongformat.cfg \
tests/test_conf_file_settingnotfound.cfg \
tests/invalid_codon.fasta.7c \
tests/TAU_SPECI.fasta.7c \
tests/test_expected_feat.7c \
tests/test_expected_nofeat.1c \
tests/test_fasta_feat.7c \
tests/test_fasta_nofeat.1c \
tests/test_out_decoded.fasta_al \
tests/test_out_encoded.fasta_al \
tests/wrong_format.map \
tests/wrong_format2.map \
tests/wrong_format3.map \
tests/wrong_probs_format.fasta.7c \
tests/test.map
test_kmad_LDADD = $(shared_LDADD)
AUTOMAKE_OPTIONS = foreign
if HAVE_CPPCHECK
cppcheck:
$(CPPCHECK) --quiet --std=c++11 --enable=all \
--suppress=missingIncludeSystem $(srcdir)/src
check: cppcheck
endif
if DEBUG
AM_CXXFLAGS = -g3 -O0 \
-std=c++11 \
-pedantic \
-Wall \
-Werror \
-Wno-reorder \
$(BOOST_CPPFLAGS) \
-I$(srcdir)src/
else
AM_CXXFLAGS = -O3 \
-std=c++11 \
-pedantic \
-Wall \
-Werror \
-Wno-reorder \
$(BOOST_CPPFLAGS) \
-I$(srcdir)src/
endif