Remove unused part of Search code
[purplehaze.git] / configure.mk
blobff3c8f0c84feef82693822415624276b0e967505
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_gcov = no
18 use_gdb = no
19 use_profiler = no
21 # Supported compiler options: gcc, intel, clang
22 ifndef compiler
23 compiler = gcc
24 endif
25 ifeq ($(compiler),gcc)
26 CXX = g++
27 endif
28 ifeq ($(compiler),intel)
29 CXX = icpc
30 endif
31 ifeq ($(compiler),clang)
32 CXX = clang++
33 endif
35 CXXFLAGS = -std=c++0x -pthread -pipe
36 ifeq ($(compiler),intel)
37 CXXFLAGS += -Wall -Wremarks -wd981 -wd2259
38 else
39 CXXFLAGS += -Wall -pedantic-errors -Wcast-qual -Wshadow -Wextra
40 endif
41 ifeq ($(use_git_describe),yes)
42 CXXFLAGS += -DVERSION=\"$(shell git describe HEAD)\"
43 endif
44 ifeq ($(optimize),yes)
45 ifeq ($(compiler),intel)
46 CXXFLAGS += -fast
47 else
48 CXXFLAGS += -O3 -march=native -mtune=native
49 endif
50 endif
51 ifeq ($(use_gcov),yes)
52 CXXFLAGS += -fprofile-arcs -ftest-coverage
53 endif
54 ifeq ($(use_gdb),yes)
55 CXXFLAGS += -g
56 endif
57 ifeq ($(use_profiler),yes)
58 CXXFLAGS += -pg -lprofiler
59 endif
60 ifeq ($(use_asserts),no)
61 CXXFLAGS += -DNDEBUG
62 endif
63 ifeq ($(use_check_extension),no)
64 CXXFLAGS += -DNCE
65 endif
66 ifeq ($(use_null_move_pruning),no)
67 CXXFLAGS += -DNNMP
68 endif
69 ifeq ($(use_internal_iterative_deepening),no)
70 CXXFLAGS += -DNIID
71 endif
72 ifeq ($(use_futility_pruning),no)
73 CXXFLAGS += -DNFP
74 endif
75 ifeq ($(use_late_move_reduction),no)
76 CXXFLAGS += -DNLMR
77 endif