move rootmakefile to dbg and opt