Added dedicated rule to build object directory in Makefile.
Further updates to Makefile.