Update NEWS
[purplehaze.git] / configure.mk
blobaa0d33e5458ed9fcb8dce36e18f08692539b42b9
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 CXXFLAGS = -std=c++0x -pthread -pipe
22 ifeq ($(CXX),icpc) # Intel Compiler
23 CXXFLAGS += -Wall -Wremarks -wd981 -wd2259
24 else
25 CXXFLAGS += -Wall -pedantic-errors -Wcast-qual -Wshadow -Wextra
26 endif
27 ifeq ($(use_git_describe),yes)
28 CXXFLAGS += -DVERSION=\"$(shell git describe HEAD)\"
29 endif
30 ifeq ($(optimize),yes)
31 ifeq ($(CXX),icpc) # Intel Compiler
32 CXXFLAGS += -fast
33 else
34 CXXFLAGS += -O3 -march=native -mtune=native
35 endif
36 endif
37 ifeq ($(use_gcov),yes)
38 CXXFLAGS += -fprofile-arcs -ftest-coverage
39 endif
40 ifeq ($(use_gdb),yes)
41 CXXFLAGS += -g
42 endif
43 ifeq ($(use_profiler),yes)
44 CXXFLAGS += -pg -lprofiler
45 endif
46 ifeq ($(use_asserts),no)
47 CXXFLAGS += -DNDEBUG
48 endif
49 ifeq ($(use_check_extension),no)
50 CXXFLAGS += -DNCE
51 endif
52 ifeq ($(use_null_move_pruning),no)
53 CXXFLAGS += -DNNMP
54 endif
55 ifeq ($(use_internal_iterative_deepening),no)
56 CXXFLAGS += -DNIID
57 endif
58 ifeq ($(use_futility_pruning),no)
59 CXXFLAGS += -DNFP
60 endif
61 ifeq ($(use_late_move_reduction),no)
62 CXXFLAGS += -DNLMR
63 endif