+ string ext = FS::extpart(FS::basename(*i));
+ const Tool *tool = toolchain.get_tool_for_suffix(ext, true);
+ if(tool)
+ {
+ Target *src = tool->create_source(*this, *i);
+ if(tool->accepts_suffix(ext))
+ {
+ Target *obj = tool->create_target(*src);
+ objs.push_back(obj);
+ }
+
+ if(type==LIBRARY && install && !dynamic_cast<FileTarget *>(src)->get_install_location().empty())
+ inst_list.push_back(src);
+ }