might try the mm command
how I have used it is as follows:
$ cd <to the specific directory of your Android.mk>
$ source $ANDROID_HOME/build/envsetup.sh
$ mm TARGET_PRODUCT=<target> (or you can leave blank if using the
emulator)
then open the adb shell and cd to where they are and run them.
hopefully that might help...
p.s
I tried replying to your message on the android-ndk group but it seems
that I was banned when I replied...if anyone knows how I can get that
resolved please let me know. Thanks.