android sugar git,Android.mk · koko214/cpuminer-opt-sugarchain - Gitee.com

################################################################

# Sample Android repo Makefile, used to test arm on the Tegra K1

################################################################

cpuminer-src := $(call my-dir)

LOCAL_PATH := $(cpuminer-src)

include $(CLEAR_VARS)

LOCAL_MODULE=cpuminer-jansson

LOCAL_MODULE_TAGS=optional

define all-c-files-under

$(patsubst ./%,%, \

$(shell cd $(LOCAL_PATH) ; \

find -L $(1) -name "*.c" -and -not -name ".*") \

)

endef

LOCAL_SRC_FILES := $(call all-c-files-under,compat/jansson)

LOCAL_C_INCLUDES := $(cpuminer-src)/compat/jansson

include $(BUILD_STATIC_LIBRARY)

################################################################

LOCAL_PATH := $(cpuminer-src)

include $(CLEAR_VARS)

LOCAL_MODULE=cpuminer

LOCAL_MODULE_TAGS=optional

LOCAL_MODULE_CLASS := UTILITY_EXECUTABLES

LOCAL_MODULE_PATH := $(PRODUCT_OUT)/utilities

LOCAL_MODULE_STEM := $(LOCAL_MODULE)

LOCAL_C_INCLUDES := $(cpuminer-src)/compat/bionic \

$(cpuminer-src)/compat/jansson \

$(TARGET_OUT_INTERMEDIATES)/include/libcurl \

external/openssl/include \

LOCAL_CFLAGS := -std=c99 -Wno-pointer-sign -Wno-missing-field-initializers \

-Wno-unused-parameter #-DNOASM

LOCAL_CFLAGS += -DVERSION=\"1.2\"

sph_files:=$(call all-c-files-under,sha3)

LOCAL_SRC_FILES=\

cpu-miner.c util.c \

api.c sysinfos.c \

$(call all-c-files-under,algo) \

$(filter-out sha3/md_helper.c,$(sph_files)) \

$(call all-c-files-under,crypto) \

$(call all-c-files-under,lyra2) \

asm/sha2-$(TARGET_ARCH).S \

asm/scrypt-$(TARGET_ARCH).S \

asm/neoscrypt_asm.S

LOCAL_STATIC_LIBRARIES := libm cpuminer-jansson

LOCAL_STATIC_LIBRARIES += libz libcrypto_static

LOCAL_STATIC_LIBRARIES += libssl_static

# Require curl config changes and an addional

# module definition in external/curl(_static?)

#LOCAL_FORCE_STATIC_EXECUTABLE := true

ifeq ($(LOCAL_FORCE_STATIC_EXECUTABLE),true)

LOCAL_CFLAGS += -DCURL_STATICLIB # -DHTTP_ONLY

LOCAL_STATIC_LIBRARIES += libcurl_static libc

else

LOCAL_SHARED_LIBRARIES := libssl libcrypto

LOCAL_SHARED_LIBRARIES += libcurl

#LOCAL_STATIC_LIBRARIES += libcurl_static

endif

include $(BUILD_EXECUTABLE)

一键复制

编辑

Web IDE

原始数据

按行查看

历史

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值