LOCAL_PATH:= $(call my-dir) local_c_includes := \ $(NDK_PROJECT_PATH) \ $(NDK_PROJECT_PATH)/include \ $(NDK_PROJECT_PATH)/crypto local_src_files := $(call rwildcard, $(LOCAL_PATH), *.c) local_src_files := $(local_src_files:$(LOCAL_PATH)/%=%) include $(CLEAR_VARS) include $(LOCAL_PATH)/../android-config.mk LOCAL_SRC_FILES += $(local_src_files) LOCAL_C_INCLUDES += $(local_c_includes) LOCAL_STATIC_LIBRARIES += libcrypto LOCAL_MODULE:= libssl include $(BUILD_STATIC_LIBRARY) ifeq ($(WITH_HOST_DALVIK),true) include $(CLEAR_VARS) include $(LOCAL_PATH)/../android-config.mk LOCAL_SRC_FILES += $(local_src_files) LOCAL_C_INCLUDES += $(local_c_includes) LOCAL_STATIC_LIBRARIES += libcrypto LOCAL_MODULE_TAGS := optional LOCAL_MODULE:= libssl include $(BUILD_STATIC_LIBRARY) endif