-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
79 lines (53 loc) · 1.71 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
all: routing transit transit_service graph_viewer
routing: build
cd libs/routing; make
transit: build routing
cd libs/transit; make
transit_service: build routing transit
cd apps/transit_service; make
graph_viewer: build routing
cd apps/graph_viewer; make
build:
mkdir -p build
clean:
cd apps/transit_service; make clean
rm -rf build
# CXX = g++
# CXXFLAGS = -std=c++17 -g -Wl,-rpath,$(DEP_DIR)/lib
# ROOT_DIR = $(shell pwd)
# DEP_DIR = $(ROOT_DIR)/dependencies
# -include $(DEP_DIR)/env
# # need to use different version based on libssl
# WEBSOCKET_VERSION_MAJOR:=$(shell pkg-config --modversion libssl | cut -d '.' -f 1)
# ifeq "$(WEBSOCKET_VERSION_MAJOR)" "3"
# WEBSOCKETS = websockets22
# else
# WEBSOCKETS = websockets20
# endif
# make-depend-cxx = $(CXX) -MM -MF $3 -MP -MT $2 $(CXXFLAGS) $(INCLUDES) $1
# export CXX CXXFLAGS ROOT_DIR DEP_DIR WEBSOCKETS make-depend-cxx
# BUILD_DIR = build
# TRANSITE_EXE = $(BUILD_DIR)/bin/transit_service
# PORT = 8081
# .PHONY: all routing transit transit_service clean run docs lint
# all: transit_service
# run:
# ifeq (,$(wildcard $(TRANSITE_EXE)))
# $(MAKE) -j
# endif
# ./$(TRANSITE_EXE) $(PORT) apps/transit_service/web
# $(BUILD_DIR):
# mkdir -p $@
# routing: $(BUILD_DIR)
# $(MAKE) -C libs/routing
# transit: $(BUILD_DIR) routing
# $(MAKE) -C libs/transit
# transit_service: $(BUILD_DIR) routing transit
# $(MAKE) -C apps/transit_service
# $(TRANSITE_EXE): transit_service
# clean:
# rm -rf $(BUILD_DIR)
# docs:
# cd docs; doxygen Doxyfile; cd ..;
# lint:
# cpplint --filter=-legal/copyright,-build/include,-build/namespaces,-runtime/explicit,-build/header_guard,-runtime/references,-runtime/threadsafe_fn ./libs/transit/src/*.cc ./libs/transit/include/*.h