Rename pieces::get_nb_pieces() to pieces::count()
[purplehaze.git] / configure.mk
blobadef1ca19976a1e1e82876c94675ee26e36e7a33
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_null_move_pruning = yes
12 # Debug options
13 use_profiler = no
14 use_gdb = no
16 # Supported compiler options: gcc, intel, clang
17 ifndef compiler
18 compiler = gcc
19 endif
20 ifeq ($(compiler),gcc)
21 CXX = g++
22 endif
23 ifeq ($(compiler),intel)
24 CXX = icpc
25 endif
26 ifeq ($(compiler),clang)
27 CXX = clang++
28 endif
30 CXXFLAGS = -std=c++0x -pipe
31 ifeq ($(compiler),intel)
32 CXXFLAGS += -Wall -Wremarks -wd981 -wd2259
33 else
34 CXXFLAGS += -Wall -pedantic-errors -Wcast-qual -Wshadow -Wextra
35 endif
36 ifeq ($(use_git_describe),yes)
37 CXXFLAGS += -DVERSION=\"$(shell git describe HEAD)\"
38 endif
39 ifeq ($(optimize),yes)
40 ifeq ($(compiler),intel)
41 CXXFLAGS += -fast
42 else
43 CXXFLAGS += -O3 -march=native -mtune=native
44 endif
45 endif
46 ifeq ($(use_gdb),yes)
47 CXXFLAGS += -g
48 endif
49 ifeq ($(use_profiler),yes)
50 CXXFLAGS += -pg -lprofiler
51 endif
52 ifeq ($(use_asserts),no)
53 CXXFLAGS += -DNDEBUG
54 endif
55 ifeq ($(use_null_move_pruning),yes)
56 CXXFLAGS += -DNMP
57 endif