#/bin/bash #gcc_path="/home/yang01/software/google/ndk/android-ndk-r10e/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android-gcc" gcc_path="/data/armv8/lollipop/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-gcc" #sysroot_path="/home/yang01/software/google/ndk/android-ndk-r10e//platforms/android-21/arch-arm64/" sysroot_path="/data/armv8/lollipop/prebuilts/ndk/9/platforms/android-21/arch-arm64/" ${gcc_path} -O2 --sysroot=${sysroot_path} -pie -o blit.c.o -c blit.c #${gcc_path} -O2 --sysroot=${sysroot_path} -pie -o blit_neon.c.o -c blit_neon.c ${gcc_path} -O2 --sysroot=${sysroot_path} -pie -o timer.c.o -c timer.c ${gcc_path} -O2 --sysroot=${sysroot_path} -pie -o test_blit.c.o -c test_blit.c ${gcc_path} -O2 --sysroot=${sysroot_path} -pie blit.c.o timer.c.o test_blit.c.o -o test_blit adb push test_blit /data/local/tmp/ adb shell /data/local/tmp/test_blit