add code blocks project file extension to .gitignore
add directory bin to .gitignore
重构代码，加入Autotools逻辑