]> git.sesse.net Git - stockfish/blobdiff - src/Makefile
Stockfish DD
[stockfish] / src / Makefile
index 86693ab21e1a32f7b2ba8b8c0677fd2d03179006..0a49ac5e1791f9450dde3d7ef4f6c8dbda3cb494 100644 (file)
@@ -165,6 +165,16 @@ ifeq ($(ARCH),osx-ppc-32)
        sse = no
 endif
 
+ifeq ($(ARCH),linux-ppc-64)
+       arch = ppc64
+       os = any
+       bits = 64
+       prefetch = no
+       bsfq = no
+       popcnt = no
+       sse = no
+endif
+
 ifeq ($(ARCH),osx-x86-64)
        arch = x86_64
        os = osx
@@ -243,7 +253,7 @@ ifeq ($(comp),mingw)
 endif
 
 ifeq ($(comp),icc)
-       CXXFLAGS += -wd383,981,1418,1419,1476,10187,10188,11505,11503 -Wcheck -Wabi -Wdeprecated -strict-ansi
+       CXXFLAGS += -diag-disable 1476,10120 -Wcheck -Wabi -Wdeprecated -strict-ansi
 endif
 
 ifeq ($(comp),clang)
@@ -263,9 +273,12 @@ endif
 
 ### On mingw use Windows threads, otherwise POSIX
 ifneq ($(comp),mingw)
-       # Haiku has pthreads in its libroot, so only link it in on other platforms
-       ifneq ($(UNAME),Haiku)
-               LDFLAGS += -lpthread
+       # On Android Bionic's C library comes with its own pthread implementation bundled in
+       ifneq ($(arch),armv7)
+               # Haiku has pthreads in its libroot, so only link it in on other platforms
+               ifneq ($(UNAME),Haiku)
+                       LDFLAGS += -lpthread
+               endif
        endif
 endif
 
@@ -296,7 +309,7 @@ ifeq ($(optimize),yes)
                endif
 
                ifeq ($(arch),armv7)
-                       CXXFLAGS += -fno-gcse
+                       CXXFLAGS += -fno-gcse -mthumb -march=armv7-a -mfloat-abi=softfp
                endif
        endif
 
@@ -308,7 +321,7 @@ ifeq ($(optimize),yes)
                ifeq ($(os),osx)
                        CXXFLAGS += -fast -mdynamic-no-pic
                else
-                       CXXFLAGS += -O3
+                       CXXFLAGS += -fast
                endif
        endif
 
@@ -394,6 +407,7 @@ help:
        @echo "x86-64-modern           > x86 64-bit with popcnt support"
        @echo "x86-32                  > x86 32-bit with SSE support"
        @echo "x86-32-old              > x86 32-bit fall back for old hardware"
+       @echo "linux-ppc-64            > PPC-Linux 64 bit"
        @echo "osx-ppc-64              > PPC-Mac OS X 64 bit"
        @echo "osx-ppc-32              > PPC-Mac OS X 32 bit"
        @echo "osx-x86-64              > x86-Mac OS X 64 bit"
@@ -447,7 +461,8 @@ profile-build:
 embed-signature:
        @echo "Running benchmark for getting the signature ..."
        @$(SIGNBENCH) 2>&1 | sed -n 's/Nodes searched  : \(.*\)/\/string Version\/s\/"\\(.*\\)"\/"sig-\1"\//p' > sign.txt
-       @sed -i'' -f sign.txt misc.cpp
+       @sed -f sign.txt misc.cpp > misc2.cpp
+       @mv misc2.cpp misc.cpp
        @rm sign.txt
 
 signature-build: build embed-signature