use ROS_TEMPORARY and ROS_INTERMEDIATE to allow builder to override locations for...
[reactos.git] / reactos / tools / rbuild / backend / mingw / mingw.cpp
index f206013..6ab999d 100644 (file)
@@ -78,7 +78,7 @@ MingwBackend::GenerateAllTarget ()
                Module& module = *ProjectNode.modules[i];\r
                fprintf ( fMakefile,\r
                          " %s",\r
-                         module.GetPath ().c_str () );\r
+                         FixupTargetFilename(module.GetPath ()).c_str () );\r
        }\r
        fprintf ( fMakefile, "\n\t\n\n" );\r
 }\r
@@ -105,3 +105,9 @@ MingwBackend::GetModuleHandlers ( MingwModuleHandlerList& moduleHandlers ) const
        moduleHandlers.push_back ( new MingwKernelModuleHandler ( fMakefile ) );\r
        moduleHandlers.push_back ( new MingwStaticLibraryModuleHandler ( fMakefile ) );\r
 }\r
+\r
+string\r
+FixupTargetFilename ( const string& targetFilename )\r
+{\r
+       return string("$(ROS_INTERMEDIATE)") + targetFilename;\r
+}\r