I am trying to create the FFMPEG library for my Android application using the NDK. I downloaded the source code from this site, and I think I am creating it (this is my first attempt to work with NDK and ffmpeg). I created a build.sh file that I use to execute it from the command line on Mac OS X. But I have a few questions ...
First of all, I know that I need an Android.mk file, so I can use the built-in library in my application, but I don’t know how to do this for the reasons I mentioned above. After running build.sh I get an android folder with several folders and some libraries. So my first question is: how can I create the Android.mk file that I need ... and maybe if someone can explain to me why I need it.

My second question is: I need some libraries from ffmpeg to use them from my application, but after the build, I do not see them in my source tree. I know that I need to include them in my build.sh , and I think I did, but I can’t see them. Therefore, any information about my assembly file will be useful for me to understand how to configure it. Here's what it looks like:
#!/bin/bash
Thanks for any useful information / suggestions / examples, etc.
Android Droid
source share