summaryrefslogtreecommitdiffstats
path: root/Source/cmUnixMakefileGenerator.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2001-04-24 20:49:12 (GMT)
committerKen Martin <ken.martin@kitware.com>2001-04-24 20:49:12 (GMT)
commit73f04d1409ec4dfcb3b8db3e104da2a894d019a2 (patch)
treee1578688252c8a50fb307d60045379a53a02d646 /Source/cmUnixMakefileGenerator.cxx
parentb5746484e4c396489b707e0f8b4d1f539e62a965 (diff)
downloadCMake-73f04d1409ec4dfcb3b8db3e104da2a894d019a2.zip
CMake-73f04d1409ec4dfcb3b8db3e104da2a894d019a2.tar.gz
CMake-73f04d1409ec4dfcb3b8db3e104da2a894d019a2.tar.bz2
many fixes and cleanup and features
Diffstat (limited to 'Source/cmUnixMakefileGenerator.cxx')
-rw-r--r--Source/cmUnixMakefileGenerator.cxx48
1 files changed, 14 insertions, 34 deletions
diff --git a/Source/cmUnixMakefileGenerator.cxx b/Source/cmUnixMakefileGenerator.cxx
index 6575b58..72dedfd 100644
--- a/Source/cmUnixMakefileGenerator.cxx
+++ b/Source/cmUnixMakefileGenerator.cxx
@@ -94,38 +94,18 @@ void cmUnixMakefileGenerator::OutputTargetRules(std::ostream& fout)
for(cmTargets::const_iterator l = tgts.begin();
l != tgts.end(); l++)
{
- std::vector<cmClassFile> classes =
- m_Makefile->GetClassesFromSourceLists(l->second.GetSourceLists());
+ std::vector<cmSourceFile> classes = l->second.GetSourceFiles();
fout << l->first << "_SRC_OBJS = ";
- for(std::vector<cmClassFile>::iterator i = classes.begin();
+ for(std::vector<cmSourceFile>::iterator i = classes.begin();
i != classes.end(); i++)
{
- if(!i->m_HeaderFileOnly)
+ if(!i->IsAHeaderFileOnly())
{
- fout << "\\\n" << i->m_ClassName << ".o ";
+ fout << "\\\n" << i->GetSourceName() << ".o ";
}
}
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";
-
}
@@ -404,23 +384,23 @@ void cmUnixMakefileGenerator::OutputSubDirectoryRules(std::ostream& fout)
// by the class cmMakeDepend GenerateMakefile
void cmUnixMakefileGenerator::OutputObjectDepends(std::ostream& fout)
{
- cmMakefile::ClassMap &Classes = m_Makefile->GetClasses();
- for(cmMakefile::ClassMap::iterator l = Classes.begin();
- l != Classes.end(); l++)
+ cmMakefile::SourceMap &Sources = m_Makefile->GetSources();
+ for(cmMakefile::SourceMap::iterator l = Sources.begin();
+ l != Sources.end(); l++)
{
- for(std::vector<cmClassFile>::iterator i = l->second.begin();
+ for(std::vector<cmSourceFile>::iterator i = l->second.begin();
i != l->second.end(); i++)
{
- if(!i->m_HeaderFileOnly)
+ if(!i->IsAHeaderFileOnly())
{
- if(i->m_Depends.size())
+ if(i->GetDepends().size())
{
- fout << i->m_ClassName << ".o : \\\n";
+ fout << i->GetSourceName() << ".o : \\\n";
for(std::vector<std::string>::iterator j =
- i->m_Depends.begin();
- j != i->m_Depends.end(); ++j)
+ i->GetDepends().begin();
+ j != i->GetDepends().end(); ++j)
{
- if(j+1 == i->m_Depends.end())
+ if(j+1 == i->GetDepends().end())
{
fout << *j << " \n";
}