From f93fa0baf71b4e71426eff91f120334eb3ca3fea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Poussineau?= Date: Mon, 5 Nov 2007 16:19:10 +0000 Subject: [PATCH] Support to build more than one object file with one source file svn path=/trunk/; revision=30183 --- reactos/tools/rbuild/backend/mingw/modulehandler.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reactos/tools/rbuild/backend/mingw/modulehandler.cpp b/reactos/tools/rbuild/backend/mingw/modulehandler.cpp index 4c25d0fbdb8..6c84f38b5c3 100644 --- a/reactos/tools/rbuild/backend/mingw/modulehandler.cpp +++ b/reactos/tools/rbuild/backend/mingw/modulehandler.cpp @@ -507,7 +507,7 @@ MingwModuleHandler::GetObjectFilename ( 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 @@ MingwModuleHandler::GetObjectFilename ( newExtension = ".h"; } else - newExtension = ".o"; + newExtension = "_" + module.name + ".o"; if ( module.type == BootSector ) destination_directory = OutputDirectory; @@ -1119,7 +1119,7 @@ MingwModuleHandler::GenerateObjectMacros ( 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 );