23 lines
499 B
Makefile
23 lines
499 B
Makefile
NDK_PATH=android-ndk-r10e/
|
|
# target: all - Default target. Build and create the apk.
|
|
all: build apk
|
|
|
|
# target: build - Build the native code
|
|
build:
|
|
NDK_CCACHE=ccache ${NDK_PATH}/ndk-build -j3
|
|
|
|
# target: apk - Make a debug APK
|
|
apk:
|
|
ant debug
|
|
|
|
# target: install - Install the debug APK to the plugged device/emulator
|
|
install:
|
|
ant installd
|
|
|
|
# target: help - Display callable targets.
|
|
help:
|
|
egrep "^# target:" [Mm]akefile
|
|
|
|
run:
|
|
adb shell am start -n org.supertuxkart.stk/android.app.NativeActivity
|