Remove 'get_' from Board getters
[purplehaze.git] / configure.mk
blobca9deb76068807f4a772cb4303ffcd67e945a869
1 # Use git to define VERSION: 'v2.0.1-81-g0c1619f'
2 # Otherwise see 'src/common.h'
3 use_git_describe = yes
5 # Optimize executable for speed
6 optimize = yes
7 use_asserts = no
9 # Search options
10 use_check_extension = yes
11 use_null_move_pruning = yes
12 use_internal_iterative_deepening = yes
13 use_futility_pruning = yes
14 use_late_move_reduction = yes
16 # Debug options
17 use_profiler = no
18 use_gdb = no
20 # Supported compiler options: gcc, intel, clang
21 ifndef compiler
22 compiler = gcc
23 endif
24 ifeq ($(compiler),gcc)
25 CXX = g++
26 endif
27 ifeq ($(compiler),intel)
28 CXX = icpc
29 endif
30 ifeq ($(compiler),clang)
31 CXX = clang++
32 endif
34 CXXFLAGS = -std=c++0x -pipe
35 ifeq ($(compiler),intel)
36 CXXFLAGS += -Wall -Wremarks -wd981 -wd2259
37 else
38 CXXFLAGS += -Wall -pedantic-errors -Wcast-qual -Wshadow -Wextra
39 endif
40 ifeq ($(use_git_describe),yes)
41 CXXFLAGS += -DVERSION=\"$(shell git describe HEAD)\"
42 endif
43 ifeq ($(optimize),yes)
44 ifeq ($(compiler),intel)
45 CXXFLAGS += -fast
46 else
47 CXXFLAGS += -O3 -march=native -mtune=native
48 endif
49 endif
50 ifeq ($(use_gdb),yes)
51 CXXFLAGS += -g
52 endif
53 ifeq ($(use_profiler),yes)
54 CXXFLAGS += -pg -lprofiler
55 endif
56 ifeq ($(use_asserts),no)
57 CXXFLAGS += -DNDEBUG
58 endif
59 ifeq ($(use_check_extension),no)
60 CXXFLAGS += -DNCE
61 endif
62 ifeq ($(use_null_move_pruning),no)
63 CXXFLAGS += -DNNMP
64 endif
65 ifeq ($(use_internal_iterative_deepening),no)
66 CXXFLAGS += -DNIID
67 endif
68 ifeq ($(use_futility_pruning),no)
69 CXXFLAGS += -DNFP
70 endif
71 ifeq ($(use_late_move_reduction),no)
72 CXXFLAGS += -DNLMR
73 endif