LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := libbulldog-linux
LOCAL_CFLAGS := -std=gnu99 -O3 -fPIC -fgnu89-inline -mlittle-endian -DARM -DARCH=\ARM\ -marm -mfpu=vfpv4-d16 -mfpu=neon-vfpv4 -funsafe-math-optimizations -static -shared -I <path-to-ndk-toolchain>/android-ndk-r10c/platforms/android-21/arch-arm/usr/include
LOCAL_SRC_FILES := bulldog.c \
bulldog.h \
bulldogI2c.c \
bulldogI2c.h \
bulldogSerial.c \
bulldogSerial.h \
bulldogSpi.c \
bulldogSpi.h \
org_bulldog_linux_jni_NativeEpoll.c \
org_bulldog_linux_jni_NativeEpoll.h \
org_bulldog_linux_jni_NativeI2c.c \
org_bulldog_linux_jni_NativeI2c.h \
org_bulldog_linux_jni_NativeMmap.c \
org_bulldog_linux_jni_NativeMmap.h \
org_bulldog_linux_jni_NativeSerial.c \
org_bulldog_linux_jni_NativeSerial.h \
org_bulldog_linux_jni_NativeSpi.c \
org_bulldog_linux_jni_NativeSpi.h \
org_bulldog_linux_jni_NativeTools.c \
org_bulldog_linux_jni_NativeTools.h
LOCAL_LDLIBS := -llog -l<path-to-ndk-toolchain>/android-ndk-r10c/platforms/android-21/arch-arm/usr/lib/libc.a
include $(BUILD_SHARED_LIBRARY)