LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE := libtee

LOCAL_SRC_FILES := \
				src/com_protocol.c \
				src/tee_client_api.c

LOCAL_C_INCLUDES    :=	\
				$(LOCAL_PATH)/include \
				external/zlib



LOCAL_SHARED_LIBRARIES := libc libdl libz

LOCAL_EXPORT_C_INCLUDE_DIRS := \
				$(LOCAL_PATH)/include

LOCAL_CFLAGS := -DANDROID -lz -DOT_LOGGING

ifeq ($(TARGET_ARCH),arm)
LOCAL_LDFLAGS := -Wl,--hash-style=sysv
endif

include $(BUILD_SHARED_LIBRARY)

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE := libtee

LOCAL_SRC_FILES := \
				src/com_protocol.c \
				src/tee_client_api.c

LOCAL_C_INCLUDES    :=	\
				$(LOCAL_PATH)/include \
				external/zlib



LOCAL_SHARED_LIBRARIES := libc libdl libz

LOCAL_EXPORT_C_INCLUDE_DIRS := \
				$(LOCAL_PATH)/include

LOCAL_CFLAGS := -DANDROID -DOT_LOGGING

LOCAL_LDLIBS := -lz

ifeq ($(TARGET_ARCH),arm)
LOCAL_LDFLAGS := -Wl,--hash-style=sysv
endif

include $(BUILD_SHARED_LIBRARY)

Move -lz to LOCAL_LDFLAGS to allow build against NDK
android: Move -lz to LOCAL_LDFLAGS to allow build against NDK

Change-Id: I4af74b8b0d4c34b47acd2c90675cc1c5c3436e85
Signed-off-by: Thomas Nyman <637edc83cb495d74e75d0415e2e205da088dba42@aalto.fi>
