Yes you can do the above. First, you need CDT plugins installed for eclipse. If you are using eclipse from Android-adt-bundle
then the eclipse comes pre-installed with CDT plugins.
Second, in the preferences you need to set the ndk path as shown below:
Eclipse -> Window -> Preferences -> Android -> NDK -> set path to the NDK
Third,
Right click on an Android project and select Android Tools -> Add native support.
Fourth,
Right click project -> properties -> C/C++ Build:
In the build command, you will be having ndk-build, now append that command wit whatever parameter you want to pass. Then press apply and press ok.