Android_build is a project mainly written in JAVA and C, it's free.
Android Build System (i5700 + froyo)
android/build