Rewrote Makefile, it now has dependencies.