-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
89 lines (74 loc) · 2.83 KB
/
Makefile
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
# -*- Makefile -*-
# ----------------------------------------------------------------------
TARGETS = \
$(SEQDB_LIB) \
$(SEQDB_PY_LIB) \
$(DIST)/seqdb3 \
$(DIST)/seqdb3-chart-clades \
$(DIST)/seqdb3-chart-compare-sequences \
$(DIST)/seqdb3-chart-dates \
$(DIST)/seqdb3-chart-populate \
$(DIST)/seqdb3-chart-sequenced \
$(DIST)/seqdb3-chart-sequenced-to-fasta \
$(DIST)/seqdb3-compare-sequences \
$(DIST)/seqdb3-scan \
$(DIST)/seqdb3-seqid-by-name \
$(DIST)/seqdb3-stat-aa-at-pos \
$(DIST)/seqdb3-stat-by-clade-season \
$(DIST)/seqdb3-stat-by-clade-year-pos \
$(DIST)/test-insertions-deletions
SEQDB_SOURCES = \
seqdb.cc \
scan-fasta.cc \
ncbi.cc \
scan-match-hidb.cc \
seqdb-subset.cc \
seqdb-hamming.cc \
create.cc \
compare.cc \
scan-lineages.cc \
scan-sequence.cc \
scan-align.cc \
scan-deletions.cc \
aa-at-pos.cc \
seqdb-parse.cc \
eliminate-identical.cc \
hamming-distance-bins.cc \
seq-id.cc
SEQDB_LIB_MAJOR = 3
SEQDB_LIB_MINOR = 0
SEQDB_LIB_NAME = libseqdb
SEQDB_LIB = $(DIST)/$(call shared_lib_name,$(SEQDB_LIB_NAME),$(SEQDB_LIB_MAJOR),$(SEQDB_LIB_MINOR))
# ----------------------------------------------------------------------
all: install
include $(ACMACSD_ROOT)/share/Makefile.config
LDLIBS = \
$(AD_LIB)/$(call shared_lib_name,libacmacsbase,1,0) \
$(AD_LIB)/$(call shared_lib_name,liblocationdb,1,0) \
$(AD_LIB)/$(call shared_lib_name,libacmacsvirus,1,0) \
$(AD_LIB)/$(call shared_lib_name,libacmacswhoccdata,1,0) \
$(AD_LIB)/$(call shared_lib_name,libacmacschart,2,0) \
$(AD_LIB)/$(call shared_lib_name,libhidb,5,0) \
$(XZ_LIBS) $(PYTHON_LIBS) $(CXX_LIBS)
# $(AD_LIB)/$(call shared_lib_name,libacmacschart,2,0) \
# ----------------------------------------------------------------------
install: install-headers $(TARGETS)
$(call install_lib,$(SEQDB_LIB))
$(call install_all,$(AD_PACKAGE_NAME))
# $(call symbolic_link_wildcard,$(DIST)/seqdb*,$(AD_BIN))
# $(call make_dir,$(AD_TEMPLATES)/seqdb-3)
# $(call symbolic_link_wildcard,$(abspath templates)/*,$(AD_TEMPLATES)/seqdb-3)
test: install
test/test
.PHONY: test
# ----------------------------------------------------------------------
$(SEQDB_LIB): $(patsubst %.cc,$(BUILD)/%.o,$(SEQDB_SOURCES)) | $(DIST) install-headers
$(call echo_shared_lib,$@)
$(call make_shared_lib,$(SEQDB_LIB_NAME),$(SEQDB_LIB_MAJOR),$(SEQDB_LIB_MINOR)) $(LDFLAGS) -o $@ $^ $(LDLIBS)
$(DIST)/%: $(BUILD)/%.o | $(SEQDB_LIB) install-headers
$(call echo_link_exe,$@)
$(CXX) $(LDFLAGS) -o $@ $^ $(SEQDB_LIB) $(LDLIBS) $(AD_RPATH)
# ======================================================================
### Local Variables:
### eval: (if (fboundp 'eu-rename-buffer) (eu-rename-buffer))
### End: