How to compile a native C app using the Android toolchain

The attached link points to a quite detailed explanation on the matter. However here're two other, similiar guides: