Makefile: use object files and more variables