Added a default .gitignore file.

It ignores the Makefile for it is automatically generated and emacs backup
files (finishing by '~').
Ignore intermediate files or object files.