Fix Makefile to not recompile top-level objects every time.