-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
56 lines (37 loc) · 2.82 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
CXX = g++
CXXFLAGS = -Wall -g
ANN_INCLUDE=./ann_1.1.2/include
ANN_LIB=./ann_1.1.2/lib
test_strong_components_in_ER: test_strong_components_in_ER.o strong-components-detector.o ER-generator.o graph.o vertex.o point.o
$(CXX) $(CXXFLAGS) -o test_strong_components_in_ER test_strong_components_in_ER.o strong-components-detector.o ER-generator.o graph.o vertex.o point.o
test_strong_components_in_ER.o: strong-components-detector.hpp ER-generator.hpp graph.hpp vertex.hpp point.hpp
$(CXX) $(CXXFLAGS) -c test_strong_components_in_ER.cpp
n_componentsXp: n_componentsXp.cpp strong-components-detector.o ER-generator.o graph.o vertex.o point.o
$(CXX) $(CXXFLAGS) -o n_componentsXp n_componentsXp.cpp strong-components-detector.o ER-generator.o graph.o vertex.o point.o
test_strong-components-detector: test_strong-components-detector.o strong-components-detector.o graph.o vertex.o point.o
$(CXX) $(CXXFLAGS) -o test_strong-components-detector test_strong-components-detector.o strong-components-detector.o graph.o vertex.o point.o
test_strong-components-detector.o: strong-components-detector.hpp graph.hpp vertex.hpp point.hpp
$(CXX) $(CXXFLAGS) -c test_strong-components-detector.cpp
test_graph_strong: test_graph_strong.cpp strong-components-detector.o graph.o vertex.o point.o
$(CXX) $(CXXFLAGS) -o test_graph_strong test_graph_strong.cpp strong-components-detector.o graph.o vertex.o point.o
strong-components-detector.o: strong-components-detector.hpp graph.hpp vertex.hpp point.hpp
test_ER-generator: test_ER-generator.o ER-generator.o graph.o vertex.o point.o
$(CXX) $(CXXFLAGS) -o test_ER-generator test_ER-generator.o ER-generator.o graph.o vertex.o point.o
test_ER-generator.o: ER-generator.hpp graph.hpp vertex.hpp point.hpp
$(CXX) $(CXXFLAGS) -c test_ER-generator.cpp
ER-generator.o: ER-generator.hpp graph.hpp vertex.hpp point.hpp
test_dataset_strong: test_dataset_strong.cpp strong-components-detector.o graph.o vertex.o point.o
$(CXX) $(CXXFLAGS) -o test_dataset_strong test_dataset_strong.cpp strong-components-detector.o graph.o vertex.o point.o
test_graph_constructor: test_graph_constructor.o graph.o vertex.o point.o
$(CXX) $(CXXFLAGS) -o test_graph_constructor test_graph_constructor.o graph.o vertex.o point.o
test_graph_constructor.o: graph.hpp vertex.hpp point.hpp
$(CXX) $(CXXFLAGS) -c test_graph_constructor.cpp
graph.o: graph.hpp vertex.hpp point.hpp vertex.hpp ###
test_DBSCAN: test_DBSCAN.cpp DBSCAN.o point.o vertex.o ###
$(CXX) $(CXXFLAGS) -I$(ANN_INCLUDE) -o test_DBSCAN test_DBSCAN.cpp DBSCAN.o point.o vertex.o -L$(ANN_LIB) -lANN
DBSCAN.o: DBSCAN.cpp DBSCAN.hpp point.hpp vertex.hpp ###
$(CXX) -c -I$(ANN_INCLUDE) $(CXXFLAGS) DBSCAN.cpp
point.o: point.hpp vertex.hpp ###
vertex.o: vertex.hpp
random_points_generator: random_points_generator.cpp
$(CXX) $(CXXFLAGS) -o random_points_generator random_points_generator.cpp