Author: hpoussin Date: Mon Nov 5 19:19:10 2007 New Revision: 30183
URL: http://svn.reactos.org/svn/reactos?rev=30183&view=rev Log: Support to build more than one object file with one source file
Modified: trunk/reactos/tools/rbuild/backend/mingw/modulehandler.cpp
Modified: trunk/reactos/tools/rbuild/backend/mingw/modulehandler.cpp URL: http://svn.reactos.org/svn/reactos/trunk/reactos/tools/rbuild/backend/mingw/... ============================================================================== --- trunk/reactos/tools/rbuild/backend/mingw/modulehandler.cpp (original) +++ trunk/reactos/tools/rbuild/backend/mingw/modulehandler.cpp Mon Nov 5 19:19:10 2007 @@ -507,7 +507,7 @@ string newExtension; string extension = GetExtension ( *sourceFile ); if ( extension == ".rc" || extension == ".RC" ) - newExtension = ".coff"; + newExtension = "_" + module.name + ".coff"; else if ( extension == ".spec" || extension == ".SPEC" ) newExtension = ".stubs.o"; else if ( extension == ".idl" || extension == ".IDL" ) @@ -520,7 +520,7 @@ newExtension = ".h"; } else - newExtension = ".o"; + newExtension = "_" + module.name + ".o";
if ( module.type == BootSector ) destination_directory = OutputDirectory; @@ -1119,7 +1119,7 @@ const FileLocation* MingwModuleHandler::GetPrecompiledHeaderFilename () const { - const string& basePchFilename = module.pch->file.name + ".gch"; + const string& basePchFilename = module.pch->file.name + "_" + module.name + ".gch"; return new FileLocation ( IntermediateDirectory, module.pch->file.relative_path, basePchFilename );