2011-11-12 20:44:06 +01:00
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
|
2015-01-07 21:42:18 +01:00
|
|
|
SF_SRC_FILES := \
|
2015-10-23 22:58:14 +02:00
|
|
|
benchmark.cpp main.cpp movegen.cpp pawns.cpp thread.cpp uci.cpp psqt.cpp \
|
2015-02-01 01:46:09 +01:00
|
|
|
bitbase.cpp endgame.cpp material.cpp movepick.cpp position.cpp timeman.cpp ucioption.cpp \
|
|
|
|
bitboard.cpp evaluate.cpp misc.cpp search.cpp tt.cpp syzygy/tbprobe.cpp
|
2011-11-12 20:44:06 +01:00
|
|
|
|
2015-05-23 13:35:12 +02:00
|
|
|
MY_ARCH_DEF :=
|
|
|
|
ifeq ($(TARGET_ARCH_ABI),arm64-v8a)
|
|
|
|
MY_ARCH_DEF += -DIS_64BIT
|
|
|
|
endif
|
|
|
|
ifeq ($(TARGET_ARCH_ABI),x86_64)
|
|
|
|
MY_ARCH_DEF += -DIS_64BIT
|
|
|
|
endif
|
|
|
|
ifeq ($(TARGET_ARCH_ABI),mips64)
|
|
|
|
MY_ARCH_DEF += -DIS_64BIT
|
|
|
|
endif
|
|
|
|
|
2015-01-07 21:42:18 +01:00
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE := stockfish-nopie
|
|
|
|
LOCAL_SRC_FILES := $(SF_SRC_FILES)
|
2015-05-23 13:35:12 +02:00
|
|
|
LOCAL_CFLAGS := -std=c++11 -O2 $(MY_ARCH_DEF)
|
2017-09-10 12:01:07 +02:00
|
|
|
LOCAL_LDLIBS += -latomic
|
2015-01-07 21:42:18 +01:00
|
|
|
include $(BUILD_EXECUTABLE)
|
2011-11-12 20:44:06 +01:00
|
|
|
|
2015-01-07 21:42:18 +01:00
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE := stockfish
|
|
|
|
LOCAL_SRC_FILES := $(SF_SRC_FILES)
|
2015-05-23 13:35:12 +02:00
|
|
|
LOCAL_CFLAGS := -std=c++11 -O2 -fPIE $(MY_ARCH_DEF)
|
2015-01-11 15:27:27 +01:00
|
|
|
LOCAL_LDFLAGS += -fPIE -pie
|
2017-09-10 12:01:07 +02:00
|
|
|
LOCAL_LDLIBS += -latomic
|
2012-01-04 22:02:26 +01:00
|
|
|
include $(BUILD_EXECUTABLE)
|