diff options
author | Ken Martin <ken.martin@kitware.com> | 2005-05-31 14:16:28 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2005-05-31 14:16:28 (GMT) |
commit | f79376c1d1211b60f2440a137ed0eeec2dc32677 (patch) | |
tree | 1751f1da3871e2e1177bd9d5dce84fbb891d653a /Source/cmLocalUnixMakefileGenerator3.cxx | |
parent | d101f94f9bb9ef0ee3153cfe2bae209e61007b4a (diff) | |
download | CMake-f79376c1d1211b60f2440a137ed0eeec2dc32677.zip CMake-f79376c1d1211b60f2440a137ed0eeec2dc32677.tar.gz CMake-f79376c1d1211b60f2440a137ed0eeec2dc32677.tar.bz2 |
STYLE: add some better comments and remove some unused code
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator3.cxx')
-rw-r--r-- | Source/cmLocalUnixMakefileGenerator3.cxx | 95 |
1 files changed, 0 insertions, 95 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx index 0ea53bf..2f62478 100644 --- a/Source/cmLocalUnixMakefileGenerator3.cxx +++ b/Source/cmLocalUnixMakefileGenerator3.cxx @@ -988,101 +988,6 @@ cmLocalUnixMakefileGenerator3 << "\n"; } -void cmLocalUnixMakefileGenerator3::WriteMainTargetIncludes(std::ostream& makefileStream, - const char *file, - const char *rule) -{ - std::vector<std::string> depends; - std::vector<std::string> no_commands; - - for (cmTargets::const_iterator l = m_Makefile->GetTargets().begin(); - l != m_Makefile->GetTargets().end(); l++) - { - if((l->second.GetType() == cmTarget::EXECUTABLE) || - (l->second.GetType() == cmTarget::STATIC_LIBRARY) || - (l->second.GetType() == cmTarget::SHARED_LIBRARY) || - (l->second.GetType() == cmTarget::MODULE_LIBRARY) || - (l->second.GetType() == cmTarget::UTILITY && !strcmp(rule,"build"))) - { - // do the include - std::string tname = this->GetRelativeTargetDirectory(l->second); - tname += "/"; - tname += file; - makefileStream - << m_IncludeDirective << " " - << this->ConvertToOutputForExisting(tname.c_str()).c_str() - << "\n"; - } - } -} - -void cmLocalUnixMakefileGenerator3::WriteMainTargetRules(std::ostream& makefileStream, - const char * /* file */, - const char *rule, - bool inAll) -{ - std::vector<std::string> all_tgts; - std::vector<std::string> depends; - std::vector<std::string> no_commands; - - if (inAll) - { - for (cmTargets::const_iterator l = m_Makefile->GetTargets().begin(); - l != m_Makefile->GetTargets().end(); l++) - { - if((l->second.GetType() == cmTarget::EXECUTABLE) || - (l->second.GetType() == cmTarget::STATIC_LIBRARY) || - (l->second.GetType() == cmTarget::SHARED_LIBRARY) || - (l->second.GetType() == cmTarget::MODULE_LIBRARY) || - (l->second.GetType() == cmTarget::UTILITY && !strcmp(rule,"build"))) - { - // Add this to the list of depends rules in this directory. - std::string tname = this->GetRelativeTargetDirectory(l->second); - tname += "/"; - tname += rule; - all_tgts.push_back(tname); - if(l->second.IsInAll()) - { - // add the dependency - depends.clear(); - depends.push_back(tname); - this->WriteMakeRule(makefileStream, 0, - rule, depends, no_commands); - } - } - } - } - - // not for the top gen - if (this->GetParent()) - { - // write the directory rule add in the subdirs - std::vector<cmLocalGenerator *> subdirs = this->GetChildren(); - std::string dir; - - // for each subdir add the directory depend - std::vector<cmLocalGenerator *>::iterator sdi = subdirs.begin(); - for (; sdi != subdirs.end(); ++sdi) - { - cmLocalUnixMakefileGenerator3 * lg = - static_cast<cmLocalUnixMakefileGenerator3 *>(*sdi); - dir = lg->GetMakefile()->GetStartOutputDirectory(); - dir += "/"; - dir += rule; - dir = this->Convert(dir.c_str(),HOME_OUTPUT,MAKEFILE); - all_tgts.push_back(dir); - } - - dir = m_Makefile->GetStartOutputDirectory(); - dir += "/"; - dir += rule; - dir = this->Convert(dir.c_str(),HOME_OUTPUT,MAKEFILE); - - this->WriteMakeRule(makefileStream, 0, - dir.c_str(), all_tgts, no_commands); - } -} - //---------------------------------------------------------------------------- void cmLocalUnixMakefileGenerator3 |