From 9b336ed130de5e9c87a985965fcff5a89361f1a3 Mon Sep 17 00:00:00 2001 From: Casper Hornstrup Date: Mon, 14 Mar 2005 19:31:25 +0000 Subject: [PATCH] Depend on the object file directory, not the object file. svn path=/branches/xmlbuildsystem/; revision=14068 --- reactos/tools/rbuild/backend/mingw/modulehandler.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/reactos/tools/rbuild/backend/mingw/modulehandler.cpp b/reactos/tools/rbuild/backend/mingw/modulehandler.cpp index 6d16616628a..498c0453585 100644 --- a/reactos/tools/rbuild/backend/mingw/modulehandler.cpp +++ b/reactos/tools/rbuild/backend/mingw/modulehandler.cpp @@ -725,8 +725,9 @@ MingwModuleHandler::GenerateGccCommand ( const Module& module, string objectFilename = PassThruCacheDirectory ( GetObjectFilename ( module, sourceFilename ) ); fprintf ( fMakefile, - "%s: %s\n", + "%s: %s %s\n", objectFilename.c_str (), + GetDirectory ( objectFilename ).c_str (), deps.c_str () ); fprintf ( fMakefile, "\t$(ECHO_CC)\n" ); fprintf ( fMakefile, @@ -748,7 +749,7 @@ MingwModuleHandler::GenerateGccAssemblerCommand ( const Module& module, fprintf ( fMakefile, "%s: %s %s\n", objectFilename.c_str (), - objectFilename.c_str (), + GetDirectory ( objectFilename ).c_str (), sourceFilename.c_str () ); fprintf ( fMakefile, "\t$(ECHO_GAS)\n" ); fprintf ( fMakefile, @@ -769,7 +770,7 @@ MingwModuleHandler::GenerateNasmCommand ( const Module& module, fprintf ( fMakefile, "%s: %s %s\n", objectFilename.c_str (), - objectFilename.c_str (), + GetDirectory ( objectFilename ).c_str (), sourceFilename.c_str () ); fprintf ( fMakefile, "\t$(ECHO_NASM)\n" ); fprintf ( fMakefile, @@ -794,7 +795,7 @@ MingwModuleHandler::GenerateWindresCommand ( const Module& module, fprintf ( fMakefile, "%s: %s %s $(WRC_TARGET)\n", objectFilename.c_str (), - objectFilename.c_str (), + GetDirectory ( objectFilename ).c_str (), sourceFilename.c_str () ); fprintf ( fMakefile, "\t$(ECHO_WRC)\n" ); fprintf ( fMakefile,