summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefileLibraryTargetGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-02-15 21:35:16 (GMT)
committerBrad King <brad.king@kitware.com>2006-02-15 21:35:16 (GMT)
commit60cd72d01cf8f096a2d78e2ce608040fde14aa5b (patch)
tree38554dbfe1f79edcf0ae37ed3b91dbbc7b1ce33b /Source/cmMakefileLibraryTargetGenerator.cxx
parent38c3145ce16ee756cac971ed6b03b9b75f127448 (diff)
downloadCMake-60cd72d01cf8f096a2d78e2ce608040fde14aa5b.zip
CMake-60cd72d01cf8f096a2d78e2ce608040fde14aa5b.tar.gz
CMake-60cd72d01cf8f096a2d78e2ce608040fde14aa5b.tar.bz2
ENH: Cleaned up generation of symbolic rules. Removed generation of rebuild_cache and similar rules from internal makefiles.
Diffstat (limited to 'Source/cmMakefileLibraryTargetGenerator.cxx')
-rw-r--r--Source/cmMakefileLibraryTargetGenerator.cxx15
1 files changed, 9 insertions, 6 deletions
diff --git a/Source/cmMakefileLibraryTargetGenerator.cxx b/Source/cmMakefileLibraryTargetGenerator.cxx
index 89057f6..b4d5aa9 100644
--- a/Source/cmMakefileLibraryTargetGenerator.cxx
+++ b/Source/cmMakefileLibraryTargetGenerator.cxx
@@ -35,6 +35,9 @@ void cmMakefileLibraryTargetGenerator::WriteRuleFiles()
// write in rules for object files
this->WriteCommonCodeRules();
+ // Write the dependency generation rule.
+ this->WriteTargetDependRules();
+
// write the link rules
// Write the rule for this target type.
switch(this->Target->GetType())
@@ -138,9 +141,6 @@ void cmMakefileLibraryTargetGenerator::WriteModuleLibraryRules()
void cmMakefileLibraryTargetGenerator::WriteLibraryRules
(const char* linkRuleVar, const char* extraFlags)
{
- // Write the dependency generation rule.
- this->WriteTargetDependRules();
-
// TODO: Merge the methods that call this method to avoid
// code duplication.
std::vector<std::string> commands;
@@ -351,7 +351,8 @@ void cmMakefileLibraryTargetGenerator::WriteLibraryRules
// Write the build rule.
this->LocalGenerator->WriteMakeRule(*this->BuildFileStream, 0,
- targetFullPathReal.c_str(), depends, commands);
+ targetFullPathReal.c_str(),
+ depends, commands, false);
// The symlink names for the target should depend on the real target
// so if the target version changes it rebuilds and recreates the
@@ -362,7 +363,8 @@ void cmMakefileLibraryTargetGenerator::WriteLibraryRules
commands.clear();
depends.push_back(targetFullPathReal.c_str());
this->LocalGenerator->WriteMakeRule(*this->BuildFileStream, 0,
- targetFullPathSO.c_str(), depends, commands);
+ targetFullPathSO.c_str(),
+ depends, commands, false);
}
if(targetFullPath != targetFullPathSO)
{
@@ -370,7 +372,8 @@ void cmMakefileLibraryTargetGenerator::WriteLibraryRules
commands.clear();
depends.push_back(targetFullPathSO.c_str());
this->LocalGenerator->WriteMakeRule(*this->BuildFileStream, 0,
- targetFullPath.c_str(), depends, commands);
+ targetFullPath.c_str(),
+ depends, commands, false);
}
// Write convenience targets.