Improve makefiles.
Begin to transform build.sh scripts to Makefile.
Improve build scripts.
Fix some bugs in build scripts.
Modify file properties on sh files.
Modify build script. Source out software build scripts.