migrate Makefiles in ext to make/ext.mk