Setting up directories, making the makefile.

Also, I added the bin/, obj/ and lib/ directories to .gitignore.