LOCAL_PATH:= $(call my-dir) rwildcard=$(foreach d,$(wildcard $1*),$(call rwildcard,$d/,$2) $(filter $(subst *,%,$2),$d)) local_src_files := $(call rwildcard, $(LOCAL_PATH), *.c) local_src_files := $(local_src_files:$(LOCAL_PATH)/%=%) excludes := $(LOCAL_PATH)/amigaos.c excludes := $(excludes:$(LOCAL_PATH)/%=%) $(warning $(excludes)) local_src_files := $(filter-out $(excludes), $(local_src_files)) local_c_includes := $(sort $(dir $(call rwildcard, , *))) local_c_includes += . $(warning $(local_c_includes)) ####################################### # crypto include $(CLEAR_VARS) LOCAL_MODULE := crypto LOCAL_SRC_FILES := $(LOCAL_PATH)/../dependencies/libcrypto.a LOCAL_SRC_FILES := $(LOCAL_SRC_FILES:$(LOCAL_PATH)/%=%) include $(PREBUILT_STATIC_LIBRARY) ####################################### # openssl include $(CLEAR_VARS) LOCAL_MODULE := openssl LOCAL_SRC_FILES := $(LOCAL_PATH)/../dependencies/libssl.a LOCAL_SRC_FILES := $(LOCAL_SRC_FILES:$(LOCAL_PATH)/%=%) include $(PREBUILT_STATIC_LIBRARY) ####################################### # target include $(CLEAR_VARS) include $(LOCAL_PATH)/../android-config.mk LOCAL_SRC_FILES := $(local_src_files) LOCAL_C_INCLUDES += $(local_c_includes) LOCAL_STATIC_LIBRARY := crypto openssl LOCAL_MODULE:= libcurl include $(BUILD_STATIC_LIBRARY)