diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2001-11-15 22:11:26 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2001-11-15 22:11:26 (GMT) |
commit | 407afb906c6f3627d14acd959fb518d16caa5d7b (patch) | |
tree | d54bf9fbdaceddb600e45c262aab4f8c8b400c20 /Source/cmUnixMakefileGenerator.cxx | |
parent | a6f5f8395ce28d50f28ce322f53c4390214ff956 (diff) | |
download | CMake-407afb906c6f3627d14acd959fb518d16caa5d7b.zip CMake-407afb906c6f3627d14acd959fb518d16caa5d7b.tar.gz CMake-407afb906c6f3627d14acd959fb518d16caa5d7b.tar.bz2 |
closer to nmake working, added CMAKE_MAKE_COMMAND instead of MAKECOMMAND used by Dart, nmake makefiles work with borland make and nmake
Diffstat (limited to 'Source/cmUnixMakefileGenerator.cxx')
-rw-r--r-- | Source/cmUnixMakefileGenerator.cxx | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/Source/cmUnixMakefileGenerator.cxx b/Source/cmUnixMakefileGenerator.cxx index 723b964..399e6c9 100644 --- a/Source/cmUnixMakefileGenerator.cxx +++ b/Source/cmUnixMakefileGenerator.cxx @@ -271,10 +271,23 @@ void cmUnixMakefileGenerator::OutputMakefile(const char* file) // only add the depend include if the depend file exists if(cmSystemTools::FileExists(dependName.c_str())) { - fout << "include cmake.depends\n"; + this->OutputIncludeMakefile(fout, "cmake.depends"); } } +void cmUnixMakefileGenerator::OutputIncludeMakefile(std::ostream& fout, + const char* file) +{ + fout << "include " << file << "\n"; +} + + +std::string +cmUnixMakefileGenerator::GetOutputExtension(const char* sourceExtension) +{ + return m_ObjectFileExtension; +} + // Output the rules for any targets @@ -345,9 +358,13 @@ void cmUnixMakefileGenerator::OutputTargetRules(std::ostream& fout) { if(!i->IsAHeaderFileOnly()) { - fout << "\\\n" << i->GetSourceName() - << m_ObjectFileExtension << " "; - } + std::string outExt(this->GetOutputExtension(i->GetSourceExtension().c_str())); + if(outExt.size()) + { + fout << "\\\n" << i->GetSourceName() + << outExt.c_str() << " "; + } + } } fout << "\n\n"; } |