Changes to the Makefile line endings and gitignore

The makefile was a bit of a mess as far as line endings, best to fix this sooner rather than later.

Also added some files to the `.gitignore` to avoid committing the files it builds.