summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalUnixMakefileGenerator2.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2004-10-27 12:20:58 (GMT)
committerBrad King <brad.king@kitware.com>2004-10-27 12:20:58 (GMT)
commit414a2fd645867058ca50cc6a8eed260d13ad1749 (patch)
treeff0b6b5b06d85a98b54d90e86a5a30b15686f940 /Source/cmLocalUnixMakefileGenerator2.h
parent5c168174f7430acf59aa66c2690d6da347fdb0f2 (diff)
downloadCMake-414a2fd645867058ca50cc6a8eed260d13ad1749.zip
CMake-414a2fd645867058ca50cc6a8eed260d13ad1749.tar.gz
CMake-414a2fd645867058ca50cc6a8eed260d13ad1749.tar.bz2
ENH: Added rules to build executables. Also began to consolidate flag list construction into separate methods.
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator2.h')
-rw-r--r--Source/cmLocalUnixMakefileGenerator2.h22
1 files changed, 21 insertions, 1 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator2.h b/Source/cmLocalUnixMakefileGenerator2.h
index 1be2eae..5f3c89b 100644
--- a/Source/cmLocalUnixMakefileGenerator2.h
+++ b/Source/cmLocalUnixMakefileGenerator2.h
@@ -58,11 +58,31 @@ protected:
void GenerateObjectRuleFile(const cmTarget& target,
const cmSourceFile& source);
void WriteDisclaimer(std::ostream& os);
+ void WriteExecutableRule(std::ostream& ruleFileStream,
+ const char* ruleFileName,
+ const cmTarget& target,
+ std::vector<std::string>& objects);
+ void WriteStaticLibraryRule(std::ostream& ruleFileStream,
+ const char* ruleFileName,
+ const cmTarget& target,
+ std::vector<std::string>& objects);
+ void WriteLibraryRule(std::ostream& ruleFileStream,
+ const char* ruleFileName,
+ const cmTarget& target,
+ std::vector<std::string>& objects,
+ const char* linkRuleVar,
+ const char* flagsPropertyName);
std::string GetTargetDirectory(const cmTarget& target);
- std::string GetObjectFileName(const cmSourceFile& source);
+ std::string GetObjectFileName(const cmTarget& target,
+ const cmSourceFile& source);
const char* GetSourceFileLanguage(const cmSourceFile& source);
+ void AddLanguageFlags(std::string& flags, const char* lang);
+ 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);
+
static bool ScanDependenciesC(const char* objFile, const char* srcFile,
std::vector<std::string> const& includes);
private: