summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalUnixMakefileGenerator2.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2004-10-27 14:45:18 (GMT)
committerBrad King <brad.king@kitware.com>2004-10-27 14:45:18 (GMT)
commit8e0985f9f1785fc8fdc7c6c35bb215bf2070804d (patch)
tree0229f636885478c1beabbe3cf0b80f59f49aaab2 /Source/cmLocalUnixMakefileGenerator2.h
parent235bf2547c40e9aba71ff289384be1ac8856f213 (diff)
downloadCMake-8e0985f9f1785fc8fdc7c6c35bb215bf2070804d.zip
CMake-8e0985f9f1785fc8fdc7c6c35bb215bf2070804d.tar.gz
CMake-8e0985f9f1785fc8fdc7c6c35bb215bf2070804d.tar.bz2
ENH: Added executable dependencies on libraries including jump-and-build support.
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator2.h')
-rw-r--r--Source/cmLocalUnixMakefileGenerator2.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator2.h b/Source/cmLocalUnixMakefileGenerator2.h
index e269fe2..a1e72a2 100644
--- a/Source/cmLocalUnixMakefileGenerator2.h
+++ b/Source/cmLocalUnixMakefileGenerator2.h
@@ -90,10 +90,21 @@ protected:
void AddSharedFlags(std::string& flags, const char* lang, bool shared);
void AddConfigVariableFlags(std::string& flags, const char* var);
void AppendFlags(std::string& flags, const char* newFlags);
+ void AppendLibDepend(std::vector<std::string>& depends, const char* name);
+ void AppendRecursiveMake(std::string& cmd, const char* file, const char* tgt);
+ void WriteJumpAndBuildRules(std::ostream& makefileStream);
static bool ScanDependenciesC(const char* objFile, const char* srcFile,
std::vector<std::string> const& includes);
private:
+ // Map from target name to build directory containing it for
+ // jump-and-build targets.
+ struct RemoteTarget
+ {
+ std::string m_BuildDirectory;
+ std::string m_FilePath;
+ };
+ std::map<cmStdString, RemoteTarget> m_JumpAndBuild;
};
#endif