-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
50 lines (35 loc) · 1.52 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
# -*- Makefile -*-
# ----------------------------------------------------------------------
TARGETS = \
$(ACMACS_WHOCC_DATA_LIB)
SOURCES = \
vaccines.cc labs.cc
# ----------------------------------------------------------------------
SRC_DIR = $(abspath $(ACMACSD_ROOT)/sources)
all: install
include $(ACMACSD_ROOT)/share/Makefile.config
ACMACS_WHOCC_DATA_LIB_MAJOR = 1
ACMACS_WHOCC_DATA_LIB_MINOR = 0
ACMACS_WHOCC_DATA_LIB = $(DIST)/$(call shared_lib_name,libacmacswhoccdata,$(ACMACS_WHOCC_DATA_LIB_MAJOR),$(ACMACS_WHOCC_DATA_LIB_MINOR))
LDLIBS = \
$(AD_LIB)/$(call shared_lib_name,libacmacsbase,1,0) \
$(AD_LIB)/$(call shared_lib_name,libacmacsvirus,1,0) \
$(XZ_LIBS) $(CXX_LIBS)
# ----------------------------------------------------------------------
install: install-headers make-installation-dirs $(TARGETS)
$(call install_lib,$(ACMACS_WHOCC_DATA_LIB))
$(call install_all,$(AD_PACKAGE_NAME))
test: install
@#test/test
.PHONY: test
# ----------------------------------------------------------------------
$(ACMACS_WHOCC_DATA_LIB): $(patsubst %.cc,$(BUILD)/%.o,$(SOURCES)) | $(DIST)
$(call echo_shared_lib,$@)
$(call make_shared_lib,libacmacswhoccdata,$(ACMACS_WHOCC_DATA_LIB_MAJOR),$(ACMACS_WHOCC_DATA_LIB_MINOR)) $(LDFLAGS) -o $@ $^ $(LDLIBS)
$(DIST)/%: $(BUILD)/%.o | $(DIST)
$(call echo_link_exe,$@)
$(CXX) $(LDFLAGS) -o $@ $^ $(LDLIBS) $(AD_RPATH)
# ======================================================================
### Local Variables:
### eval: (if (fboundp 'eu-rename-buffer) (eu-rename-buffer))
### End: