Rewrite Makefile.

Also remove synthe_cmd.cpp which is useless and add a .gitignore.