6 null_move_pruning
= yes
12 ifeq ($(compiler
),gcc
)
15 ifeq ($(compiler
),intel
)
18 ifeq ($(compiler
),clang
)
22 CXXFLAGS
= -std
=c
++0x
-pipe
24 ifeq ($(print_warnings
),yes
)
25 ifeq ($(compiler
),intel
)
26 CXXFLAGS
+= -Wall
-Wremarks
-wd981
-wd2259
28 CXXFLAGS
+= -Wall
-pedantic-errors
-Wcast-qual
-Wshadow
-Wextra
32 ifeq ($(revision_number
),yes
)
33 CXXFLAGS
+= -DVERSION
=\"$(shell git describe HEAD
)\"
40 ifeq ($(optimize
),yes
)
41 ifeq ($(compiler
),intel
)
44 CXXFLAGS
+= -O3
-march
=native
-mtune
=native
48 ifeq ($(profiler
),yes
)
49 CXXFLAGS
+= -pg
-lprofiler
52 ifeq ($(null_move_pruning
),yes
)
60 SOURCES
= $(shell ls src
/*.
cpp)
61 OBJECTS
= $(SOURCES
:.
cpp=.o
)
62 EXECUTABLE
= purplehaze
64 all: $(SOURCES
) $(EXECUTABLE
)
66 $(EXECUTABLE
): $(OBJECTS
)
67 $(CXX
) -o
$@
$(OBJECTS
)
70 rm -f
$(OBJECTS
) $(EXECUTABLE
)
73 $(CXX
) $(CXXFLAGS
) -c
-o
$@
$<