diff options
author | Dan Blezek <blezek@crd.ge.com> | 2001-04-23 17:58:36 (GMT) |
---|---|---|
committer | Dan Blezek <blezek@crd.ge.com> | 2001-04-23 17:58:36 (GMT) |
commit | 8852ed9d2f491288fa61d4babf6250a4f043503b (patch) | |
tree | 5273b649af7f110aa2510eed9ceefe10cba1bb19 /Source/cmUnixMakefileGenerator.cxx | |
parent | 80ce581a0dcab31ae55732ea1d14c9491010e6cb (diff) | |
download | CMake-8852ed9d2f491288fa61d4babf6250a4f043503b.zip CMake-8852ed9d2f491288fa61d4babf6250a4f043503b.tar.gz CMake-8852ed9d2f491288fa61d4babf6250a4f043503b.tar.bz2 |
BUG: Clean was not doing it's job
Diffstat (limited to 'Source/cmUnixMakefileGenerator.cxx')
-rw-r--r-- | Source/cmUnixMakefileGenerator.cxx | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Source/cmUnixMakefileGenerator.cxx b/Source/cmUnixMakefileGenerator.cxx index 60941fe..6575b58 100644 --- a/Source/cmUnixMakefileGenerator.cxx +++ b/Source/cmUnixMakefileGenerator.cxx @@ -107,6 +107,25 @@ void cmUnixMakefileGenerator::OutputTargetRules(std::ostream& fout) } fout << "\n\n"; } + + // get the classes from the source lists then add them to the SRC_OBJ list + fout << "SRC_OBJ = "; + for(cmTargets::const_iterator l = tgts.begin(); + l != tgts.end(); l++) + { + std::vector<cmClassFile> classes = + m_Makefile->GetClassesFromSourceLists(l->second.GetSourceLists()); + for(std::vector<cmClassFile>::iterator i = classes.begin(); + i != classes.end(); i++) + { + if(!i->m_HeaderFileOnly) + { + fout << "\\\n" << i->m_ClassName << ".o "; + } + } + } + fout << "\n\n"; + } |