2011-09-25 04:57:13 +00:00
|
|
|
#CC=arm-linux-androideabi-gcc
|
2014-11-07 00:02:23 +00:00
|
|
|
CC=ndk-gcc -fPIC -pie -fPIE
|
2011-09-25 19:07:34 +00:00
|
|
|
#RANLIB=ndk-ranlib
|
2013-08-26 22:52:04 +00:00
|
|
|
USERCC=ndk-gcc
|
2014-11-10 01:26:03 +00:00
|
|
|
ARCH=arm
|
2014-11-10 18:46:19 +00:00
|
|
|
|
|
|
|
ifeq (${NDK_ARCH},x86)
|
|
|
|
# mips
|
|
|
|
ARCH2=i686
|
|
|
|
RANLIB=${ARCH2}-linux-android-ranlib
|
|
|
|
CC_AR=${ARCH2}-linux-android-ar -r ${LIBAR}
|
|
|
|
endif
|
|
|
|
ifeq (${NDK_ARCH},mips)
|
|
|
|
# mips
|
2014-11-11 00:12:38 +00:00
|
|
|
ARCH2=mipsel
|
|
|
|
RANLIB=${ARCH2}-linux-android-ranlib
|
|
|
|
CC_AR=${ARCH2}-linux-android-ar -r ${LIBAR}
|
2014-11-10 18:46:19 +00:00
|
|
|
endif
|
|
|
|
|
2014-11-10 01:26:03 +00:00
|
|
|
ifeq (${NDK_ARCH},arm)
|
2014-11-10 00:09:38 +00:00
|
|
|
# arm32
|
|
|
|
ARCH=arm
|
2014-11-10 01:26:03 +00:00
|
|
|
RANLIB=${ARCH}-linux-androideabi-ranlib
|
|
|
|
CC_AR=${ARCH}-linux-androideabi-ar -r ${LIBAR}
|
|
|
|
endif
|
2014-11-10 00:09:38 +00:00
|
|
|
|
2014-11-10 01:26:03 +00:00
|
|
|
ifeq (${NDK_ARCH},aarch64)
|
2014-11-10 00:09:38 +00:00
|
|
|
# aarch64
|
|
|
|
ARCH=aarch64
|
|
|
|
RANLIB=${ARCH}-linux-android-ranlib
|
|
|
|
CC_AR=${ARCH}-linux-android-ar -r ${LIBAR}
|
|
|
|
endif
|
2011-09-25 04:57:13 +00:00
|
|
|
ONELIB=0
|
|
|
|
OSTYPE=android
|
|
|
|
LINK=
|
2011-09-25 19:07:34 +00:00
|
|
|
#CC_AR=ndk-ar -r ${LIBAR}
|
2011-09-25 04:57:13 +00:00
|
|
|
PICFLAGS=
|
|
|
|
CFLAGS+=${PICFLAGS}
|
|
|
|
CC_LIB=${CC} -shared -o
|
|
|
|
CFLAGS_INCLUDE=-I
|
|
|
|
LDFLAGS_LINK=-l
|
|
|
|
LDFLAGS_LINKPATH=-L
|
|
|
|
CFLAGS_OPT0=-O0
|
|
|
|
CFLAGS_OPT1=-O1
|
|
|
|
CFLAGS_OPT2=-O2
|
|
|
|
CFLAGS_OPT3=-O3
|
|
|
|
CFLAGS_DEBUG=-g
|