nexmon – Rev 1
?pathlinks?
GIT_VERSION := $(shell git describe --abbrev=4 --dirty --always --tags)
all: libs/armeabi/libnexio.a
ifneq ($(shell uname -m),$(filter $(shell uname -m), armv6l armv7l))
libs/armeabi/libnexio.a: Android.mk
$(NDK_ROOT)/ndk-build NDK_APPLICATION_MK=`pwd`/Application.mk NDK_APP_OUT=. TARGET_PLATFORM=android-21
else
libs/armeabi/libnexio.a: libnexio.c
gcc -c libnexio.c -o libnexio.o -DBUILD_ON_RPI -DVERSION=\"$GIT_VERSION\" -I../../patches/include
ar rcs libnexio.a libnexio.o
endif
clean:
rm -Rf libs
rm -Rf local