X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2FMakefile;h=83c36c2b8bf5c08f1eb1f75bb005e85b7e135330;hp=1ae8bfac884a7d878257c47f0f353f345b2e2e90;hb=66f5cd3f9d123306c509b6172fd11ed3afa1d39a;hpb=9073866491ebade21f748e2f824c37a3398e01a6 diff --git a/src/Makefile b/src/Makefile index 1ae8bfac..83c36c2b 100644 --- a/src/Makefile +++ b/src/Makefile @@ -30,18 +30,17 @@ EXE = stockfish PREFIX = /usr/local # Haiku has a non-standard filesystem layout ifeq ($(UNAME),Haiku) - PREFIX=/boot/common + PREFIX=/boot/system/non-packaged endif BINDIR = $(PREFIX)/bin -### Built-in benchmark for pgo-builds and signature -PGOBENCH = ./$(EXE) bench 32 1 1 default time -SIGNBENCH = ./$(EXE) bench +### Built-in benchmark for pgo-builds +PGOBENCH = ./$(EXE) bench 16 1 1 default time ### Object files -OBJS = benchmark.o bitbase.o bitboard.o book.o endgame.o evaluate.o main.o \ - material.o misc.o movegen.o movepick.o notation.o pawns.o position.o \ - search.o thread.o timeman.o tt.o uci.o ucioption.o +OBJS = benchmark.o bitbase.o bitboard.o endgame.o evaluate.o main.o \ + material.o misc.o movegen.o movepick.o pawns.o position.o \ + search.o thread.o timeman.o tt.o uci.o ucioption.o syzygy/tbprobe.o ### ========================================================================== ### Section 2. High-level Configuration @@ -176,7 +175,7 @@ endif ifeq ($(COMP),clang) comp=clang CXX=clang++ - CXXFLAGS += -ansi -pedantic -Wno-long-long -Wextra -Wshadow + CXXFLAGS += -pedantic -Wno-long-long -Wextra -Wshadow endif ifeq ($(comp),icc) @@ -286,7 +285,11 @@ endif ### 3.9 popcnt ifeq ($(popcnt),yes) - CXXFLAGS += -msse3 -DUSE_POPCNT + ifeq ($(comp),icc) + CXXFLAGS += -msse3 -DUSE_POPCNT + else + CXXFLAGS += -msse3 -mpopcnt -DUSE_POPCNT + endif endif ### 3.10 pext @@ -395,7 +398,7 @@ install: -strip $(BINDIR)/$(EXE) clean: - $(RM) $(EXE) $(EXE).exe *.o .depend *~ core bench.txt *.gcda + $(RM) $(EXE) $(EXE).exe *.o .depend *~ core bench.txt *.gcda ./syzygy/*.o default: help