Then, build CHICKEN using PLATFORM=android for your target architecture. You'll have to build a libchicken.so for each architecture you want to support. For simplicity, let's say for now that we only want to build for armeabi (which has no apply-hack at the time of writing, so we disable autodetection via "ARCH="):

The above is according to "Invoking the compiler (the hard way)" from the docs/STANDALONE-TOOLCHAIN.html in the NDK's root. The easy way involves more steps and is harder to explain here. See the aforementioned document for more information.

In your copy of the sample program, alter jni/Application.mk to read APP_ABI := armeabi. Copy libchicken.so to jni/chicken/armeabi and copy chicken.h to jni/chicken/include.

To build, run /path/to/ndk/ndk-build and then ant debug to package up the program.

Extending this build to other ABI versions is simple: just add it to Application.mk and build different libchicken.so versions and install them under the correspondingly named subdirectory under jni/chicken/<ABI-NAME>/libchicken.so.