]> git.sesse.net Git - stockfish/blobdiff - src/Makefile
Let prefetch to be enabled by default on Windows
[stockfish] / src / Makefile
index d3f3a94f328a90704b07534b1b3de3b577de14bb..d2ac42111e9b1db5c3dc624dc32e3c757f888eaa 100644 (file)
@@ -64,6 +64,7 @@ OBJS = application.o bitboard.o pawns.o material.o endgame.o evaluate.o main.o \
 ### 2.1. General
 debug = no
 optimize = yes
+no_prefetch = yes
 
 ### 2.2 Architecture specific
 
@@ -278,7 +279,11 @@ endif
 
 ### 3.8 prefetch
 ifeq ($(prefetch),yes)
-       CXXFLAGS += -msse -DUSE_PREFETCH
+       no_prefetch = no
+endif
+
+ifeq ($(no_prefetch),yes)
+       CXXFLAGS += -msse -DNO_PREFETCH
        DEPENDFLAGS += -msse
 endif
 
@@ -400,7 +405,7 @@ popcnt-profile-build:
 strip:
        strip $(EXE)
 
-install: default
+install:
        -mkdir -p -m 755 $(BINDIR)
        -cp $(EXE) $(BINDIR)
        -strip $(BINDIR)/$(EXE)
@@ -467,7 +472,7 @@ gcc-profile-use:
        all
 
 gcc-profile-clean:
-       @rm -rf *.gcda bench.txt
+       @rm -rf *.gcda *.gcno bench.txt
 
 icc-profile-prepare:
        $(MAKE) ARCH=$(ARCH) COMP=$(COMP) icc-profile-clean