Merge "Romlib makefile refactoring and script rewriting" into integration