configure: unify creation of cross-compilation Makefiles