diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2001-11-14 15:21:59 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2001-11-14 15:21:59 (GMT) |
commit | f978b6f7ea62b54c4190e0f20633c2823c21beea (patch) | |
tree | efd5683ae5149a0f2acd1a86ee7bdac373672db1 /Source/cmUnixMakefileGenerator.cxx | |
parent | 7ac4e783166ddc2bbbd6c58fa472e2317668d292 (diff) | |
download | CMake-f978b6f7ea62b54c4190e0f20633c2823c21beea.zip CMake-f978b6f7ea62b54c4190e0f20633c2823c21beea.tar.gz CMake-f978b6f7ea62b54c4190e0f20633c2823c21beea.tar.bz2 |
nmake support
Diffstat (limited to 'Source/cmUnixMakefileGenerator.cxx')
-rw-r--r-- | Source/cmUnixMakefileGenerator.cxx | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/Source/cmUnixMakefileGenerator.cxx b/Source/cmUnixMakefileGenerator.cxx index 6149035..1bd39ec 100644 --- a/Source/cmUnixMakefileGenerator.cxx +++ b/Source/cmUnixMakefileGenerator.cxx @@ -48,6 +48,11 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include "cmGeneratedFileStream.h" cmUnixMakefileGenerator::cmUnixMakefileGenerator() + :m_ObjectFileExtension(".o"), + m_ExecutableExtension(""), + m_StaticLibraryExtension(".a"), + m_SharedLibraryExtension("$(SHLIB_SUFFIX)"), + m_LibraryPrefix("lib") { m_CacheOnly = false; m_Recurse = false; @@ -309,7 +314,8 @@ void cmUnixMakefileGenerator::OutputTargetRules(std::ostream& fout) l->second.GetType() == cmTarget::WIN32_EXECUTABLE) && l->second.IsInAll()) { - fout << " \\\n" << m_ExecutableOutputPath << l->first.c_str(); + fout << " \\\n" << m_ExecutableOutputPath << l->first.c_str() + << m_ExecutableExtension; } } // list utilities last @@ -336,7 +342,8 @@ void cmUnixMakefileGenerator::OutputTargetRules(std::ostream& fout) { if(!i->IsAHeaderFileOnly()) { - fout << "\\\n" << i->GetSourceName() << ".o "; + fout << "\\\n" << i->GetSourceName() + << m_ObjectFileExtension << " "; } } fout << "\n\n"; @@ -964,7 +971,7 @@ void cmUnixMakefileGenerator::OutputObjectDepends(std::ostream& fout) { if(!source->GetDepends().empty()) { - fout << source->GetSourceName() << ".o :"; + fout << source->GetSourceName() << m_ObjectFileExtension << " :"; // Iterate through all the dependencies for this source. for(std::vector<std::string>::const_iterator dep = source->GetDepends().begin(); @@ -1407,7 +1414,7 @@ OutputBuildObjectFromSource(std::ostream& fout, { std::string comment = "Build "; - std::string objectFile = std::string(shortName) + ".o"; + std::string objectFile = std::string(shortName) + m_ObjectFileExtension; comment += objectFile + " From "; comment += source.GetFullPath(); std::string compileCommand; @@ -1449,7 +1456,8 @@ OutputBuildObjectFromSource(std::ostream& fout, void cmUnixMakefileGenerator::OutputSourceObjectBuildRules(std::ostream& fout) { - fout << "# Rules to build .o files from their sources:\n"; + fout << "# Rules to build " << m_ObjectFileExtension + << " files from their sources:\n"; std::set<std::string> rules; |