makefile + mpr file + brocfile refactoring