diff options
Diffstat (limited to 'Source/cmDepends.cxx')
-rw-r--r-- | Source/cmDepends.cxx | 31 |
1 files changed, 19 insertions, 12 deletions
diff --git a/Source/cmDepends.cxx b/Source/cmDepends.cxx index d2375fd..9544662 100644 --- a/Source/cmDepends.cxx +++ b/Source/cmDepends.cxx @@ -22,27 +22,34 @@ #include <assert.h> //---------------------------------------------------------------------------- -cmDepends::cmDepends(const char* dir, const char* targetFile, bool verbose): - m_Directory(dir), - m_TargetFile(targetFile), - m_DependsMakeFile(dir), - m_DependsMarkFile(dir), - m_Verbose(verbose) +cmDepends::cmDepends() { + m_Verbose = false; +} + +//---------------------------------------------------------------------------- +cmDepends::~cmDepends() +{ +} + +void cmDepends::SetTargetFile(const char* dir, const char* targetFile, + const char *markExt, const char *makeExt) +{ + m_Directory = dir; + m_TargetFile = targetFile; + // Construct the path to the make and mark files. Append // appropriate extensions to their names. + m_DependsMarkFile = dir; + m_DependsMakeFile = dir; m_DependsMakeFile += "/"; m_DependsMarkFile += "/"; m_DependsMakeFile += m_TargetFile; m_DependsMarkFile += m_TargetFile; - m_DependsMakeFile += ".depends.make"; - m_DependsMarkFile += ".depends"; + m_DependsMakeFile += makeExt; + m_DependsMarkFile += markExt; } -//---------------------------------------------------------------------------- -cmDepends::~cmDepends() -{ -} //---------------------------------------------------------------------------- bool cmDepends::Write() |