info: make the INFO_PLUGIN_CONFIG_PLUGIN_PARAMETERS a bit safer
[olsrd.git] / make / Makefile.android.compiler
1 # Android NDK setup
2 NDK_BASE ?= /opt/android-ndk
3 NDK_PLATFORM_LEVEL ?= 4
4 NDK_ARCH=$(shell uname -m)
5 ifneq ($(NDK_ARCH),x86_64)
6 NDK_ARCH=x86
7 endif
8
9 NDK_ABI=arm
10 NDK_ABIDIR=linux-androideabi
11 NDK_SYSROOT=$(NDK_BASE)/platforms/android-$(NDK_PLATFORM_LEVEL)/arch-$(NDK_ABI)
12 NDK_UNAME=$(shell uname -s | tr '[A-Z]' '[a-z]')
13 # if you are using NDK older than r10, you must use 4.4.3:
14 #NDK_COMPILER_VERSION=4.4.3
15 NDK_COMPILER_VERSION=4.8
16 NDK_TOOLCHAIN=$(NDK_BASE)/toolchains/$(NDK_ABI)-$(NDK_ABIDIR)-$(NDK_COMPILER_VERSION)/prebuilt/$(NDK_UNAME)-$(NDK_ARCH)
17 CROSS_COMPILE = $(NDK_TOOLCHAIN)/bin/$(NDK_ABI)-$(NDK_ABIDIR)-
18
19 CC = $(CROSS_COMPILE)gcc --sysroot="$(NDK_SYSROOT)"
20 LD = $(CROSS_COMPILE)ld
21 AR = $(CROSS_COMPILE)ar