-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
46 lines (31 loc) · 1.37 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
CXX = g++
CXXFLAGS = -g -Wall -O2 -fopenmp
all: kruskal prim boruvka boruvka2 filter_kruskal parallel_boruvka
parallel_boruvka: graph.o union_find.o parallel_boruvka.o
$(CXX) $(CXXFLAGS) -o parallel_boruvka graph.o union_find.o parallel_boruvka.o
filter_kruskal: graph.o union_find.o filter_kruskal.o
$(CXX) $(CXXFLAGS) -o filter_kruskal graph.o union_find.o filter_kruskal.o
prim: graph.o union_find.o prim.o
$(CXX) $(CXXFLAGS) -o prim graph.o union_find.o prim.o
kruskal: union_find.o kruskal.o
$(CXX) $(CXXFLAGS) -o kruskal union_find.o kruskal.o
boruvka: graph.o union_find.o boruvka.o
$(CXX) $(CXXFLAGS) -o boruvka graph.o union_find.o boruvka.o
boruvka2: graph.o union_find.o boruvka2.o
$(CXX) $(CXXFLAGS) -o boruvka2 graph.o union_find.o boruvka2.o
parallel_boruvka.o: parallel_boruvka.cpp union_find.h graph.h
$(CXX) $(CXXFLAGS) -c parallel_boruvka.cpp
filter_kruskal.o: filter_kruskal.cpp union_find.h graph.h
$(CXX) $(CXXFLAGS) -c filter_kruskal.cpp
boruvka.o: boruvka.cpp union_find.h graph.h
$(CXX) $(CXXFLAGS) -c boruvka.cpp
boruvka2.o: boruvka2.cpp union_find.h graph.h
$(CXX) $(CXXFLAGS) -c boruvka2.cpp
prim.o: prim.cpp union_find.h graph.h
$(CXX) $(CXXFLAGS) -c prim.cpp
kruskal.o: kruskal.cpp union_find.h
$(CXX) $(CXXFLAGS) -c kruskal.cpp
graph.o: graph.cpp
$(CXX) $(CXXFLAGS) -c graph.cpp
union_find.o: union_find.cpp
$(CXX) $(CXXFLAGS) -c union_find.cpp