-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.mk
63 lines (59 loc) · 1.4 KB
/
configure.mk
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
# Use git to define VERSION: 'v2.0.1-81-g0c1619f'
# Otherwise see 'src/common.h'
use_git_describe = yes
# Optimize executable for speed
optimize = yes
use_asserts = no
# Search options
use_check_extension = yes
use_null_move_pruning = yes
use_internal_iterative_deepening = yes
use_futility_pruning = yes
use_late_move_reduction = yes
# Debug options
use_gcov = no
use_gdb = no
use_profiler = no
CXXFLAGS = -std=c++0x -pthread -pipe
ifeq ($(CXX),icpc) # Intel Compiler
CXXFLAGS += -Wall -Wremarks -wd981 -wd2259
else
CXXFLAGS += -Wall -pedantic-errors -Wcast-qual -Wshadow -Wextra
endif
ifeq ($(use_git_describe),yes)
CXXFLAGS += -DVERSION=\"$(shell git describe HEAD)\"
endif
ifeq ($(optimize),yes)
ifeq ($(CXX),icpc) # Intel Compiler
CXXFLAGS += -fast
else
CXXFLAGS += -O3 -march=native -mtune=native
endif
endif
ifeq ($(use_gcov),yes)
CXXFLAGS += -fprofile-arcs -ftest-coverage
endif
ifeq ($(use_gdb),yes)
CXXFLAGS += -g
endif
ifeq ($(use_profiler),yes)
CXXFLAGS += -pg -lprofiler
endif
ifeq ($(use_asserts),no)
CXXFLAGS += -DNDEBUG
endif
ifeq ($(use_check_extension),no)
CXXFLAGS += -DNCE
endif
ifeq ($(use_null_move_pruning),no)
CXXFLAGS += -DNNMP
endif
ifeq ($(use_internal_iterative_deepening),no)
CXXFLAGS += -DNIID
endif
ifeq ($(use_futility_pruning),no)
CXXFLAGS += -DNFP
endif
ifeq ($(use_late_move_reduction),no)
CXXFLAGS += -DNLMR
endif