-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
48 lines (35 loc) · 1.35 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
#CFLAGS = -fsanitize=undefined -std=c++11 -O3 -Iinclude/
CFLAGS = -std=c++11 -O3 -Iinclude/
all: pocketcube lightsout pancake permnet rubikscube zerowalk toffoli conjugacy
test: diff
diff: test/diff.cc
g++ $(CFLAGS) $< -o $@
clean:
rm pocketcube lightsout pancake permnet rubikscube zerowalk
conjugacy: example/conjugacy.cc
g++ $(CFLAGS) $< -o $@
toffoli: example/toffoli.cc include/gdd.hh include/permutation.hh
g++ $(CFLAGS) $< -o $@
pocketcube: example/pocketcube.cc
g++ $(CFLAGS) $< -o $@
rubikscube: example/rubikscube.cc include/gdd.hh include/permutation.hh
g++ $(CFLAGS) $< -o $@
pancake: example/pancake.cc include/gdd.hh include/permutation.hh
g++ $(CFLAGS) $< -o $@
lightsout: example/lightsout.cc include/gdd.hh include/permutation.hh
g++ $(CFLAGS) $< -o $@
permnet: example/permnet.cc
g++ $(CFLAGS) $< -o $@
zerowalk: example/zerowalk.cc include/gdd.hh include/permutation.hh
g++ $(CFLAGS) $< -o $@
pocketcube.gdd.txt: pocketcube
(time ./pocketcube) > pocketcube.gdd.txt
lightsout.gdd.txt: lightsout
(time ./lightsout 3) > lightsout.gdd.txt 2>&1
(time ./lightsout 4) >> lightsout.gdd.txt 2>&1
(time ./lightsout 5) >> lightsout.gdd.txt 2>&1
(time ./lightsout 6) >> lightsout.gdd.txt 2>&1
(time ./lightsout 7) >> lightsout.gdd.txt 2>&1
pancake.gdd.txt: pancake
echo 11 > pancake.gdd.txt
(time ./pancake 11) >> pancake.gdd.txt 2>&1