17:39
[skypekit:skypekit.git] / skypekit_2.0.0.190_29281_CB30 / buildfiles / arch / android-armv7le-eabi.mk
1
2 NDK_PATH ?= /opt/android-ndk-r4
3
4 TOOLCHAIN_PREFIX=ccache $(NDK_PATH)/build/prebuilt/linux-x86/arm-eabi-4.4.0/bin/arm-eabi-
5 ARCH_FLAGS += -fpic -mthumb-interwork -ffunction-sections -funwind-tables -fstack-protector -fno-short-enums\
6 -Wno-psabi -march=armv7-a -msoft-float -fno-exceptions -fno-rtti -fomit-frame-pointer -fno-strict-aliasing -finline-limit=64  
7 CFLAGS += -I$(NDK_PATH)/build/platforms/android-8/arch-arm/usr/include
8 CFLAGS += -D__linux__ -DANDROID 
9
10 LDFLAGS += \
11         --verbose -nostdlib -Bdynamic -Wl,-dynamic-linker,/system/bin/linker -Wl,--gc-sections -Wl,-z,nocopyreloc \
12         $(NDK_PATH)/build/platforms/android-8/arch-arm/usr/lib/crtbegin_dynamic.o \
13         $(NDK_PATH)/build/prebuilt/linux-x86/arm-eabi-4.4.0/bin/../lib/gcc/arm-eabi/4.4.0/libgcc.a\
14         $(NDK_PATH)/build/platforms/android-8/arch-arm/usr/lib/libc.so \
15         $(NDK_PATH)/build/platforms/android-8/arch-arm/usr/lib/libstdc++.so \
16         $(NDK_PATH)/build/platforms/android-8/arch-arm/usr/lib/libm.so \
17         -L$(NDK_PATH)/eclair/out/target/product/generic/system/lib \
18         -L$(NDK_PATH)/eclair/out/target/product/generic/system/lib -Wl,--no-undefined \
19         -Wl,-z,noexecstack  -Wl,-rpath-link=$(NDK_PATH)/build/platforms/android-8/arch-arm/usr/lib \
20         $(NDK_PATH)/build/platforms/android-8/arch-arm/usr/lib/crtend_android.o
21
22 include $(SID_DIR)/buildfiles/arch/_common-linux-arm.mk