-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
72 lines (51 loc) · 2.08 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
# -*- Makefile -*-
# ======================================================================
TARGETS = \
$(ACMACS_VIRUS_LIB) \
$(DIST)/virus-name \
$(DIST)/virus-passage \
$(DIST)/test-virus-name \
$(DIST)/test-passage
all: install
include $(ACMACSD_ROOT)/share/Makefile.config
# ----------------------------------------------------------------------
SRC_DIR = $(abspath $(ACMACSD_ROOT)/sources)
ACMACS_VIRUS_SOURCES = \
passage.cc \
virus-name-normalize.cc \
virus-name-v1.cc \
reassortant.cc \
virus-name-fields.cc \
parsing-message.cc \
host.cc
# ----------------------------------------------------------------------
ACMACS_VIRUS_LIB_MAJOR = 1
ACMACS_VIRUS_LIB_MINOR = 0
ACMACS_VIRUS_LIB = $(DIST)/$(call shared_lib_name,libacmacsvirus,$(ACMACS_VIRUS_LIB_MAJOR),$(ACMACS_VIRUS_LIB_MINOR))
# ----------------------------------------------------------------------
lib: $(ACMACS_VIRUS_LIB)
test: install | $(TARGETS)
test/test
.PHONY: test
# ----------------------------------------------------------------------
install: install-headers make-installation-dirs $(TARGETS)
$(call install_lib,$(ACMACS_VIRUS_LIB))
$(call install_all,$(AD_PACKAGE_NAME))
.PHONY: install test
LDLIBS = \
$(AD_LIB)/$(call shared_lib_name,libacmacsbase,1,0) \
$(AD_LIB)/$(call shared_lib_name,liblocationdb,1,0) \
$(CXX_LIBS)
# ----------------------------------------------------------------------
RTAGS_TARGET = $(ACMACS_VIRUS_LIB)
# ----------------------------------------------------------------------
$(ACMACS_VIRUS_LIB): $(patsubst %.cc,$(BUILD)/%.o,$(ACMACS_VIRUS_SOURCES)) | $(DIST)
$(call echo_shared_lib,$@)
$(call make_shared_lib,libacmacsvirus,$(ACMACS_VIRUS_LIB_MAJOR),$(ACMACS_VIRUS_LIB_MINOR)) $(LDFLAGS) -o $@ $^ $(LDLIBS)
$(DIST)/%: $(BUILD)/%.o | $(DIST) $(ACMACS_VIRUS_LIB)
$(call echo_link_exe,$@)
$(CXX) $(LDFLAGS) -o $@ $^ $(ACMACS_VIRUS_LIB) $(LDLIBS) $(AD_RPATH)
# ======================================================================
### Local Variables:
### eval: (if (fboundp 'eu-rename-buffer) (eu-rename-buffer))
### End: