-
Notifications
You must be signed in to change notification settings - Fork 77
/
Copy pathMakefile
98 lines (72 loc) · 2.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
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
#
# Configure the base directory fo the secondary c++ source, if it is
# not already specified.
#
ifeq ($(origin PREFIX), undefined)
ifeq ($(origin SEYMOUR_HOME), undefined)
PREFIX = /opt/seymour
else
PREFIX = $(SEYMOUR_HOME)
endif
endif
ANALYSIS_HOME=$(PREFIX)/analysis
PBCPP_DIR = ..
SHELL = /bin/bash
#
# common.mk contains the configuration for this build setup.
#
include ../common.mk
#
# Define the targets before including the rules since the rules contains a target itself.
#
all: bin make.dep storeQualityByContext loadContextOut alchemy cmpH5StoreQualityByContext sageify
BUILTEXECS = $(addprefix bin/, $(EXECS))
DISTRIB_SET = storeQualityByContext loadContextOut alchemy
DISTRIB_EXECS = $(addprefix bin/, $(DISTRIB_SET))
INSTALL_EXECS = $(addprefix install-, $(DISTRIB_SET))
include ../make.rules
ifneq ($(wildcard make.dep),)
include make.dep
endif
storeQualityByContext: bin/storeQualityByContext
loadContextOut: bin/loadContextOut
alchemy: bin/alchemy
cmpH5StoreQualityByContext: bin/cmpH5StoreQualityByContext
sageify: bin/sageify
#
# List of executables to deploy in the secondary analysis build
#
INSTALL_EXES = \
storeQualityByContext \
alchemy
DISTRIB_EXES = $(addprefix bin/, $(INSTALL_EXES))
#
# build target for secondary build
# no point to building all if the secondary analysis
# system only deploys a few
# also keeps the build break frequency down
#
build-secondary: init $(DISTRIB_EXES)
INSTALL_TARGETS := $(addsuffix -install, $(INSTALL_EXES))
.PHONY: install-secondary
install-secondary: $(INSTALL_TARGETS)
bin/printLengthHistogram: bin/PrintLengthHistogramFromCmph5.o
$(CPP) $(CPPOPTS) $< $(STATIC) -o $@ -L$(HDF5LIBDIR) -l$(HDF5LIBCPP) -l$(HDF5LIB) -lz -lpthread
bin/cmpH5StoreQualityByContext: bin/StoreQualityByContextFromCmpH5.o
$(CPP) $(CPPOPTS) $< $(STATIC) -o $@ -L$(HDF5LIBDIR) -l$(HDF5LIBCPP) -l$(HDF5LIB) -lz -lpthread
bin/storeQualityByContext: bin/StoreQualityByContext.o
$(CPP) $(CPPOPTS) $< $(STATIC) -o $@ -L$(HDF5LIBDIR) -l$(HDF5LIBCPP) -l$(HDF5LIB) -lz -lpthread
bin/alchemy: bin/BasH5Simulator.o
$(CPP) $(CPPOPTS) $< $(STATIC) -o $@ -L$(HDF5LIBDIR) -l$(HDF5LIBCPP) -l$(HDF5LIB) -lz -lpthread
bin/loadContextOut: bin/LoadContextOut.o
$(CPP) $(CPPOPTS) $< $(STATIC) -o $@
bin/sageify: bin/Sageify.o
$(CPP) $(CPPOPTS) $< $(STATIC) -o $@
INSTALL_DIR ?= $(ANALYSIS_HOME)/bin
BUILD_DIR ?= bin
install:
/usr/bin/install -m 555 $(DISTRIB_EXECS) $(INSTALL_DIR)/
%-install:
/usr/bin/install -m 555 bin/$* $(INSTALL_DIR)/
install-%:
/usr/bin/install -m 555 bin/$* $(INSTALL_DIR)/