add compile.sh for generator tool