-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
92 lines (64 loc) · 3.59 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
CXX=clang++
INCLUDES=-Iincludes/
CXXFLAGS=-std=c++14 -g -fstandalone-debug -Wall -Wextra -pedantic $(INCLUDES)
all: main tests
tests: tests_importance tests_importance_mutual_actual tests_matrix_operation tests_strongly_connected_components tests_strongly_connected_components tests_all_pairs_shortest_paths tests_dfs
main: algorithm_driver result_interpreter
algorithm_driver: bin/algorithm_driver
result_interpreter: bin/result_interpreter
tests_importance: bin/tests_importance
tests_importance_mutual_actual: bin/tests_importance_mutual_actual
tests_matrix_operation: bin/tests_matrix_operation
tests_strongly_connected_components: bin/tests_strongly_connected_components
tests_all_pairs_shortest_paths: bin/tests_all_pairs_shortest_paths
tests_dfs: bin/tests_dfs
bin/algorithm_driver: ./obj/data.o ./obj/algorithm_driver.o ./obj/strongly_connected_components.o ./obj/importance.o ./obj/all_pairs_shortest_paths.o
$(CXX) $(CXXFLAGS) $^ -o $@
bin/result_interpreter: ./obj/data.o ./obj/result_interpreter.o ./obj/all_pairs_shortest_paths.o
$(CXX) $(CXXFLAGS) $^ -o $@
bin/tests_importance: ./reserve_obj/catch.o ./obj/tests_utilities.o ./obj/tests_importance.o ./obj/importance.o ./obj/data.o
$(CXX) $(CXXFLAGS) $^ -o $@
bin/tests_importance_mutual_actual: ./reserve_obj/catch.o ./obj/tests_utilities.o ./obj/tests_importance_mutual_actual.o ./obj/importance.o ./obj/data.o ./obj/strongly_connected_components.o
$(CXX) $(CXXFLAGS) $^ -o $@
bin/tests_matrix_operation: ./reserve_obj/catch.o ./obj/tests_utilities.o ./obj/tests_matrix_operation.o
$(CXX) $(CXXFLAGS) $^ -o $@
bin/tests_strongly_connected_components: ./reserve_obj/catch.o ./obj/tests_utilities.o ./obj/tests_strongly_connected_components.o ./obj/strongly_connected_components.o
$(CXX) $(CXXFLAGS) $^ -o $@
bin/tests_all_pairs_shortest_paths: ./reserve_obj/catch.o ./obj/tests_utilities.o ./obj/tests_all_pairs_shortest_paths.o ./obj/all_pairs_shortest_paths.o
$(CXX) $(CXXFLAGS) $^ -o $@
bin/tests_dfs: ./reserve_obj/catch.o ./obj/tests_utilities.o ./obj/tests_dfs.o
$(CXX) $(CXXFLAGS) $^ -o $@
obj/data.o: ./src/data.cpp
$(CXX) $(CXXFLAGS) -c $^ -o $@
obj/algorithm_driver.o: ./src/algorithm_driver.cpp
$(CXX) $(CXXFLAGS) -c $^ -o $@
obj/result_interpreter.o: ./src/result_interpreter.cpp
$(CXX) $(CXXFLAGS) -c $^ -o $@
obj/importance.o: ./src/importance.cpp
$(CXX) $(CXXFLAGS) -c $^ -o $@
obj/strongly_connected_components.o: ./src/strongly_connected_components.cpp
$(CXX) $(CXXFLAGS) -c $^ -o $@
obj/all_pairs_shortest_paths.o: ./src/all_pairs_shortest_paths.cpp
$(CXX) $(CXXFLAGS) -c $^ -o $@
obj/tests_matrix_operation.o: ./tests/tests_matrix_operation.cpp
$(CXX) $(CXXFLAGS) -c $^ -o $@
obj/tests_importance.o: ./tests/tests_importance.cpp
$(CXX) $(CXXFLAGS) -c $^ -o $@
obj/tests_importance_mutual_actual.o: ./tests/tests_importance_mutual_actual.cpp
$(CXX) $(CXXFLAGS) -c $^ -o $@
obj/tests_strongly_connected_components.o: ./tests/tests_strongly_connected_components.cpp
$(CXX) $(CXXFLAGS) -c $^ -o $@
obj/tests_all_pairs_shortest_paths.o: ./tests/tests_all_pairs_shortest_paths.cpp
$(CXX) $(CXXFLAGS) -c $^ -o $@
obj/tests_dfs.o: ./tests/tests_dfs.cpp
$(CXX) $(CXXFLAGS) -c $^ -o $@
obj/tests_utilities.o: tests/tests_utilities.cpp
$(CXX) $(CXXFLAGS) -c $^ -o $@
reserve_obj/catch.o: tests/catch.cpp
$(CXX) $(CXXFLAGS) -c $^ -o $@
.DEFAULT_GOAL := algorithm_driver
.PHONY: clean all algorithm_driver result_interpreter tests_importance tests_importance_mutual_actual tests_matrix_operation tests_strongly_connected_components tests_dfs tests_all_pairs_shortest_paths
clean:
rm -rf ./bin/* ./obj/*
clean_all:
rm -rf ./bin/* ./obj/* ./reserve_obj/*