Update Makefile

Linked objects in reverse order of dependency.