summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalUnixMakefileGenerator3.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2006-01-30 19:25:07 (GMT)
committerKen Martin <ken.martin@kitware.com>2006-01-30 19:25:07 (GMT)
commit96d754046a379fd05b4a07d20ed4cfc9dcc7f49f (patch)
tree6eb04b84befbfa89e111a6da8823bafd12f89a89 /Source/cmLocalUnixMakefileGenerator3.cxx
parent5d35fd4b7ea9699fd114c2176c66fa2c484ec5af (diff)
downloadCMake-96d754046a379fd05b4a07d20ed4cfc9dcc7f49f.zip
CMake-96d754046a379fd05b4a07d20ed4cfc9dcc7f49f.tar.gz
CMake-96d754046a379fd05b4a07d20ed4cfc9dcc7f49f.tar.bz2
ENH: more cleanup and removal of old code
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator3.cxx')
-rw-r--r--Source/cmLocalUnixMakefileGenerator3.cxx91
1 files changed, 8 insertions, 83 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx
index ec82003..cd107d7 100644
--- a/Source/cmLocalUnixMakefileGenerator3.cxx
+++ b/Source/cmLocalUnixMakefileGenerator3.cxx
@@ -60,7 +60,14 @@ cmLocalUnixMakefileGenerator3::~cmLocalUnixMakefileGenerator3()
//----------------------------------------------------------------------------
void cmLocalUnixMakefileGenerator3::Configure()
{
- this->ComputeHomeRelativeOutputPath();
+ // Include the rule file for each object.
+ m_HomeRelativeOutputPath =
+ cmSystemTools::RelativePath(m_Makefile->GetHomeOutputDirectory(),
+ m_Makefile->GetStartOutputDirectory());
+ if (m_HomeRelativeOutputPath.size())
+ {
+ m_HomeRelativeOutputPath += "/";
+ }
this->cmLocalGenerator::Configure();
}
@@ -297,18 +304,6 @@ void cmLocalUnixMakefileGenerator3::WriteDisclaimer(std::ostream& os)
<< cmMakefile::GetMinorVersion() << "\n\n";
}
-void cmLocalUnixMakefileGenerator3::ComputeHomeRelativeOutputPath()
-{
- // Include the rule file for each object.
- m_HomeRelativeOutputPath =
- cmSystemTools::RelativePath(m_Makefile->GetHomeOutputDirectory(),
- m_Makefile->GetStartOutputDirectory());
- if (m_HomeRelativeOutputPath.size())
- {
- m_HomeRelativeOutputPath += "/";
- }
-}
-
const std::string &cmLocalUnixMakefileGenerator3::GetHomeRelativeOutputPath()
{
return m_HomeRelativeOutputPath;
@@ -898,26 +893,6 @@ cmLocalUnixMakefileGenerator3
}
//----------------------------------------------------------------------------
-bool
-cmLocalUnixMakefileGenerator3
-::GenerateDependsMakeFile(const std::string& lang, const char* objFile)
-{
- // Construct a checker for the given language.
- std::auto_ptr<cmDepends>
- checker(this->GetDependsChecker(lang,false));
- if(checker.get())
- {
- // Check the dependencies. Ths is required because we need at least an
- // empty depends.make for make to include, so at cmake time the
- // ::Check() method will generate that if it does not exist
- checker->Check(objFile, 0);
-
- return true;
- }
- return false;
-}
-
-//----------------------------------------------------------------------------
void
cmLocalUnixMakefileGenerator3
::WriteMakeRule(std::ostream& os,
@@ -2505,24 +2480,6 @@ cmLocalUnixMakefileGenerator3::AppendEcho(std::vector<std::string>& commands,
}
}
-//============================================================================
-//----------------------------------------------------------------------------
-bool
-cmLocalUnixMakefileGenerator3::SamePath(const char* path1, const char* path2)
-{
- if (strcmp(path1, path2) == 0)
- {
- return true;
- }
-#if defined(_WIN32) || defined(__APPLE__)
- return
- (cmSystemTools::LowerCase(this->ConvertToOutputForExisting(path1)) ==
- cmSystemTools::LowerCase(this->ConvertToOutputForExisting(path2)));
-#else
- return false;
-#endif
-}
-
//----------------------------------------------------------------------------
// take a tgt path and convert it into a make target, it could be full, or relative
std::string
@@ -2678,35 +2635,6 @@ cmLocalUnixMakefileGenerator3
m_MakeVariableMap[unmodified] = ret;
return ret;
}
-//============================================================================
-
-//----------------------------------------------------------------------------
-cmDepends*
-cmLocalUnixMakefileGenerator3::GetDependsChecker(const std::string& lang,
- bool verbose)
-{
- cmDepends *ret = 0;
- if(lang == "C" || lang == "CXX" || lang == "RC")
- {
- ret = new cmDependsC();
- }
-#ifdef CMAKE_BUILD_WITH_CMAKE
- else if(lang == "Fortran")
- {
- ret = new cmDependsFortran();
- }
- else if(lang == "Java")
- {
- ret = new cmDependsJava();
- }
-#endif
- if (ret)
- {
- ret->SetVerbose(verbose);
- ret->SetFileComparison(m_GlobalGenerator->GetCMakeInstance()->GetFileComparison());
- }
- return ret;
-}
//----------------------------------------------------------------------------
bool
@@ -3283,7 +3211,4 @@ void cmLocalUnixMakefileGenerator3
}
cmakefileStream << " )\n";
}
-
-
-
}