forked from cooperative-computing-lab/cctools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·66 lines (51 loc) · 1.65 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
include ../../config.mk
include ../../rules.mk
LIBRARIES = libbatch_job.a
PROGRAMS = work_queue_factory work_queue_pool vine_factory
ifeq ($(CCTOOLS_CHIRP),chirp)
CHIRP_LIB=${CCTOOLS_HOME}/chirp/src/libchirp.a
CHIRP_BATCH=batch_job_chirp.c
endif
DT_LIB=${CCTOOLS_HOME}/dttools/src/libdttools.a
WQ_LIB=${CCTOOLS_HOME}/work_queue/src/libwork_queue.a
VINE_LIB=${CCTOOLS_HOME}/taskvine/src/manager/libtaskvine.a
EXTERNAL_LIBRARIES=$(CHIRP_LIB) $(DT_LIB)
SOURCES = \
batch_file.c \
batch_task.c \
batch_wrapper.c \
batch_job.c \
batch_job_amazon.c \
batch_job_amazon_batch.c \
batch_job_dryrun.c \
$(CHIRP_BATCH) \
batch_job_cluster.c \
batch_job_blue_waters.c \
batch_job_condor.c \
batch_job_local.c \
batch_job_work_queue.c\
batch_job_lambda.c \
batch_job_work_queue.c \
batch_job_vine.c \
batch_job_mesos.c \
batch_job_k8s.c \
batch_job_mpi.c \
mesos_task.c
PUBLIC_HEADERS = batch_job.h
OBJECTS = $(SOURCES:%.c=%.o)
all: $(LIBRARIES) $(PROGRAMS)
libbatch_job.a: $(OBJECTS)
work_queue_factory: work_queue_factory.o libbatch_job.a $(WQ_LIB) $(VINE_LIB) $(EXTERNAL_LIBRARIES)
vine_factory: vine_factory.o libbatch_job.a $(WQ_LIB) $(VINE_LIB) $(EXTERNAL_LIBRARIES)
# Note that work_queue_pool is the same as work_queue_factory, for backwards compatibility.
work_queue_pool: work_queue_factory
cp $< $@
install:
mkdir -p $(CCTOOLS_INSTALL_DIR)/bin
cp $(PROGRAMS) $(CCTOOLS_INSTALL_DIR)/bin
mkdir -p $(CCTOOLS_INSTALL_DIR)/lib
cp $(LIBRARIES) $(CCTOOLS_INSTALL_DIR)/lib
mkdir -p $(CCTOOLS_INSTALL_DIR)/include/cctools
cp $(PUBLIC_HEADERS) $(CCTOOLS_INSTALL_DIR)/include/cctools
clean:
rm -rf $(OBJECTS) $(LIBRARIES) $(PROGRAMS) batch_job_amazon_script.c *.o