Added build output to git ignore list.
Updated Makefile with variables and an implicit rule for main.