-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
51 lines (46 loc) · 3.02 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
all:
mkdir -p tmp
mkdir -p bin
g++ -std=c++11 -o tmp/td-validate td-validate.cpp
dmcs -optimize -define:SEQUENTIAL -out:bin/BZTreewidth-DP.exe BZTreewidth/*.cs
dmcs -optimize -define:SEQUENTIAL\;LIMIT_SEPARATOR -out:bin/BZTreewidth-DP-LS.exe BZTreewidth/*.cs
dmcs -optimize -out:bin/PARALLEL-BZTreewidth-DP.exe BZTreewidth/*.cs
dmcs -optimize -define:LIMIT_SEPARATOR -out:bin/PARALLEL-BZTreewidth-DP-LS.exe BZTreewidth/*.cs
dmcs -optimize -define:SEQUENTIAL\;USE_DFS -out:bin/BZTreewidth-DFS.exe BZTreewidth/*.cs
dmcs -optimize -define:SEQUENTIAL\;USE_DFS\;LIMIT_SEPARATOR -out:bin/BZTreewidth-DFS-LS.exe BZTreewidth/*.cs
dmcs -optimize -define:SEQUENTIAL\;USE_DFS\;LIMIT_SEPARATOR\;DFS_SIMPLICIALRULE -out:bin/BZTreewidth-DFS-SV.exe BZTreewidth/*.cs
dmcs -optimize -define:SEQUENTIAL\;USE_DFS\;LIMIT_SEPARATOR\;DFS_SIMPLICIALRULE\;DFS_MMW -out:bin/BZTreewidth-DFS-SV-MMW.exe BZTreewidth/*.cs
dmcs -optimize -define:SEQUENTIAL\;USE_DFS\;LIMIT_SEPARATOR\;DFS_SIMPLICIALRULE\;DFS_MMW_LIMITED -out:bin/BZTreewidth-DFS-SV-MMWLIMIT.exe BZTreewidth/*.cs
dmcs -optimize -define:SEQUENTIAL\;USE_DFS\;LIMIT_SEPARATOR\;DFS_SIMPLICIALRULE\;DFS_MMW\;DFS_EDGEADDITION\;DFS_ALMOSTSIMPLICIALRULE -out:bin/BZTreewidth-DFS-SV-ASV-EADD-MMW.exe BZTreewidth/*.cs
dmcs -optimize -define:SEQUENTIAL\;USE_DFS\;LIMIT_SEPARATOR\;DFS_SIMPLICIALRULE\;DFS_MMW\;DFS_ALMOSTSIMPLICIALRULE -out:bin/BZTreewidth-DFS-SV-ASV-MMW.exe BZTreewidth/*.cs
dmcs -optimize -define:SEQUENTIAL\;USE_DFS\;LIMIT_SEPARATOR\;DFS_SIMPLICIALRULE\;DFS_MMW_LIMITED\;DFS_ALMOSTSIMPLICIALRULE -out:bin/BZTreewidth-DFS-SV-ASV-MMWLIMIT.exe BZTreewidth/*.cs
.SUFFIXES: .gr .test
testfiles = $(wildcard ./BZTreewidth/instances/alltests/*.gr)
test_run = $(testfiles:.gr=.test)
test: $(test_run)
cat tmp/validation.txt
.gr.test:
./bin/BZTreewidth-DP.exe < $< > tmp/tmp.td
./tmp/td-validate $< tmp/tmp.td 2>> tmp/validation.txt
./bin/BZTreewidth-DP-LS.exe < $< > tmp/tmp.td
./tmp/td-validate $< tmp/tmp.td 2>> tmp/validation.txt
./bin/PARALLEL-BZTreewidth-DP.exe < $< > tmp/tmp.td
./tmp/td-validate $< tmp/tmp.td 2>> tmp/validation.txt
./bin/PARALLEL-BZTreewidth-DP-LS.exe < $< > tmp/tmp.td
./tmp/td-validate $< tmp/tmp.td 2>> tmp/validation.txt
./bin/BZTreewidth-DFS.exe < $< > tmp/tmp.td
./tmp/td-validate $< tmp/tmp.td 2>> tmp/validation.txt
./bin/BZTreewidth-DFS-LS.exe < $< > tmp/tmp.td
./tmp/td-validate $< tmp/tmp.td 2>> tmp/validation.txt
./bin/BZTreewidth-DFS-SV.exe < $< > tmp/tmp.td
./tmp/td-validate $< tmp/tmp.td 2>> tmp/validation.txt
./bin/BZTreewidth-DFS-SV-ASV-EADD-MMW.exe < $< > tmp/tmp.td
./tmp/td-validate $< tmp/tmp.td 2>> tmp/validation.txt
./bin/BZTreewidth-DFS-SV-ASV-MMW.exe < $< > tmp/tmp.td
./tmp/td-validate $< tmp/tmp.td 2>> tmp/validation.txt
./bin/BZTreewidth-DFS-SV-ASV-MMWLIMIT.exe < $< > tmp/tmp.td
./tmp/td-validate $< tmp/tmp.td 2>> tmp/validation.txt
./bin/BZTreewidth-DFS-SV-MMW.exe < $< > tmp/tmp.td
./tmp/td-validate $< tmp/tmp.td 2>> tmp/validation.txt
./bin/BZTreewidth-DFS-SV-MMWLIMIT.exe < $< > tmp/tmp.td
./tmp/td-validate $< tmp/tmp.td 2>> tmp/validation.txt