forked from Mapotempo/optimizer-ortools
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (27 loc) · 1.05 KB
/
Makefile
File metadata and controls
40 lines (27 loc) · 1.05 KB
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
OR_TOOLS_TOP=../or-tools
OR_TOOLS_SOURCES=$(OR_TOOLS_TOP)/ortools
TUTORIAL=resources
include $(OR_TOOLS_TOP)/Makefile
.PHONY: all local_clean
all: $(EXE)
%.pb.cc: %.proto
$(OR_TOOLS_TOP)/dependencies/install/bin/protoc --cpp_out . $<
%.o: %.cc %.h
$(CCC) $(CFLAGS) -c $< -o $@
ortools_vrp.pb.h: ortools_vrp.pb.cc
ortools_result.pb.h: ortools_result.pb.cc
tsp_simple.o: tsp_simple.cc $(OR_TOOLS_SOURCES)/constraint_solver/routing.h ortools_vrp.pb.h \
ortools_result.pb.h \
$(TUTORIAL)/routing_common/routing_common.h \
tsptw_data_dt.h \
limits.h
$(CCC) $(CFLAGS) -I $(TUTORIAL) -c tsp_simple.cc -o tsp_simple.o
tsp_simple: $(ROUTING_DEPS) tsp_simple.o ortools_vrp.pb.o ortools_result.pb.o $(OR_TOOLS_TOP)/lib/libortools.so
$(CCC) $(CFLAGS) -g tsp_simple.o ortools_vrp.pb.o ortools_result.pb.o $(OR_TOOLS_LD_FLAGS) \
-L $(OR_TOOLS_TOP)/lib -Wl,-rpath $(OR_TOOLS_TOP)/lib -lcvrptw_lib -ldimacs -lortools -L $(OR_TOOLS_TOP)/dependencies/install/lib -lprotobuf \
-o tsp_simple
local_clean:
rm -f *.pb.cc *.pb.h
rm *.o
mrproper: local_clean
rm tsp_simple