-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
69 lines (53 loc) · 1.66 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
SHELL := /bin/bash
CC=gcc-7
CFLAGS=-O9
CP=g++-7
all: kClistMatrix kClistMatrixSlow test
kClistMatrixSlow: kClistMatrixSlow.cpp
$(CP) $(CFLAGS) kClistMatrixSlow.cpp -o kClistMatrixSlow -fopenmp
kClistMatrix: kClistMatrix.cpp
$(CP) $(CFLAGS) kClistMatrix.cpp -o kClistMatrix -fopenmp
test1:
@./kClistMatrix 1 3 tests/simplegraph.txt 1 > test.txt
@diff -q <(sort test.txt) tests/simplegraphtest3.txt
@rm test.txt
test2:
@./kClistMatrix 1 4 tests/simplegraph.txt 1 > test.txt
@diff -q <(sort test.txt) tests/simplegraphtest4.txt
@rm test.txt
test3:
@./kClistMatrix 1 5 tests/simplegraph.txt 1 > test.txt
@diff -q <(sort test.txt) tests/simplegraphtest5.txt
@rm test.txt
test4:
@./kClistMatrix 1 3 tests/edgelist.txt 1 > test.txt
@diff -q <(sort test.txt) tests/edgelisttest3.txt
@rm test.txt
test5:
@./kClistMatrix 1 4 tests/edgelist.txt 1 > test.txt
@diff -q <(sort test.txt) tests/edgelisttest4.txt
@rm test.txt
test6:
@./kClistMatrix 1 5 tests/edgelist.txt 1 > test.txt
@diff -q <(sort test.txt) tests/edgelisttest5.txt
@rm test.txt
test7:
@./kClistMatrix 2 3 tests/edgelist.txt 1 > test.txt
@diff -q <(sort test.txt) tests/edgelisttest3.txt
@rm test.txt
test8:
@./kClistMatrix 2 2 tests/edgelist.txt 1 > test.txt
@diff -q <(sort test.txt) <(sort tests/edgelisttest8.txt)
@rm test.txt
test9:
@./kClistMatrix 2 2 tests/simplegraph.txt 1 > test.txt
@diff -q <(sort test.txt) <(sort tests/simplegraphtest9.txt)
@rm test.txt
test10:
@./kClistMatrix 2 5+ tests/simplegraph.txt 1 > test.txt
@diff -q <(sort test.txt) tests/simplegraphtest10.txt
@rm test.txt
test: test1 test2 test3 test4 test5 test6 test8 test9 test10
$
clean:
rm kClistMatrix kClistMatrixSlow