LOCAL_PATH :=$(call my-dir)

include $(CLEAR_VARS)
LOCAL_MODULE := unimateLibNative     
LOCAL_SRC_FILES := ./Library/upper.API9/libunimateLibNative.a
include $(PREBUILT_STATIC_LIBRARY)
include $(CLEAR_VARS)
LOCAL_MODULE := unimateLib8
LOCAL_SRC_FILES := ./Library/API8/libunimateLib8.a
include $(PREBUILT_STATIC_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE :=Demo
LOCAL_STATIC_LIBRARIES := unimateLibNative
LOCAL_CFLAGS += \
    -D_PLATFORM_ANDROID \
    -D_DEBUG
LOCAL_C_INCLUDES += \
	$(LOCAL_PATH)/Library/upper.API9/include
LOCAL_SRC_FILES := \
				VerifySign.cpp \
				com_example_demoactivity_MainActivity.cpp \
				com_example_demoactivity_inActivity.cpp \
				com_example_demoactivity_PinActivity.cpp \
				com_example_demoactivity_BookActivity.cpp \
				com_example_demoactivity_NameActivity.cpp
LOCAL_LDLIBS	+= -llog -lOpenSLES -landroid \
 $(LOCAL_PATH)/Library/upper.API9/systemlib/libcrypto.so
include $(BUILD_SHARED_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE :=Demo8
LOCAL_STATIC_LIBRARIES := unimateLib8
LOCAL_CFLAGS += \
    -D_PLATFORM_ANDROID \
    -D_DEBUG
LOCAL_C_INCLUDES += \
	$(LOCAL_PATH)/Library/API8/include
LOCAL_SRC_FILES := \
				VerifySign.cpp \
				com_example_demoactivity_MainActivity.cpp \
				com_example_demoactivity_inActivity.cpp \
				com_example_demoactivity_PinActivity.cpp \
				com_example_demoactivity_BookActivity.cpp \
				com_example_demoactivity_NameActivity.cpp
LOCAL_LDLIBS	+= -llog \
 $(LOCAL_PATH)/Library/API8/systemlib/libutils.so \
 $(LOCAL_PATH)/Library/API8/systemlib/libmedia.so \
 $(LOCAL_PATH)/Library/API8/systemlib/libcrypto.so
include $(BUILD_SHARED_LIBRARY)