-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
52 lines (42 loc) · 1.41 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
CPP := g++
BOOST_LDFLAGS := -L/usr/local/lib \
-lboost_system -lboost_filesystem -lboost_graph \
-lyaml-cpp -lreadline
LDFLAGS := -O3 $(BOOST_LDFLAGS) -L./planner -lplanner -lczmq -lzmq
CPPFLAGS := -O3 -std=c++11 -MMD -MP
INCLUDES := -I/usr/include -I/usr/local/include
OBJS := resource-query.o \
command.o \
dfu_traverse.o \
dfu_traverse_impl.o \
grug2dot.o \
resource_gen.o \
resource_gen_spec.o \
jobspec.o
MATCHERS := CA \
IBA \
IBBA \
PFS1BA \
PA \
C+IBA \
C+PFS1BA \
C+PA \
IB+IBBA \
C+P+IBA \
ALL
DEPS := $(OBJS:.o=.d)
TARGETS := planner resource-query grug2dot
all: $(TARGETS)
graphs: $(GRAPHS)
resource-query: resource-query.o command.o dfu_traverse.o dfu_traverse_impl.o resource_gen.o resource_gen_spec.o jobspec.o
$(CPP) $^ -o $@ $(LDFLAGS)
grug2dot: grug2dot.o resource_gen_spec.o
$(CPP) $^ -o $@ $(LDFLAGS)
planner:
$(MAKE) -C $@
%.o:%.cpp
$(CPP) $(CPPFLAGS) $(INCLUDES) $< -c -o $@
.PHONY: clean planner
clean:
rm -f $(OBJS) $(DEPS) && cd planner && make clean && rm -f $(OBJS) $(DEPS) esource-query grug2dot *~ *.dot *.svg
-include $(DEPS)