extract compiler_*.mk and rules.mk from project makefiles