Fix Makefiles (and align them with the main repository).
Add a .gitignore file.