diff options
author | Brad King <brad.king@kitware.com> | 2004-11-02 13:32:03 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2004-11-02 13:32:03 (GMT) |
commit | fd8ae3d34c444cef04c77a38b55e0baee94f6753 (patch) | |
tree | 3cdb73f1f9519a481964ca385dfbace7698b18ff /Source/cmLocalUnixMakefileGenerator2.h | |
parent | 914f28b06ab3876ab6ce405509bc9db25760177f (diff) | |
download | CMake-fd8ae3d34c444cef04c77a38b55e0baee94f6753.zip CMake-fd8ae3d34c444cef04c77a38b55e0baee94f6753.tar.gz CMake-fd8ae3d34c444cef04c77a38b55e0baee94f6753.tar.bz2 |
BUG: Fixed subdirectory implementation for Borland Make.
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator2.h')
-rw-r--r-- | Source/cmLocalUnixMakefileGenerator2.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator2.h b/Source/cmLocalUnixMakefileGenerator2.h index 712d6ea..ae0c156 100644 --- a/Source/cmLocalUnixMakefileGenerator2.h +++ b/Source/cmLocalUnixMakefileGenerator2.h @@ -38,6 +38,11 @@ public: virtual ~cmLocalUnixMakefileGenerator2(); + /** Set the command used when there are no dependencies or rules for + a target. This is used to avoid errors on some make + implementations. */ + void SetEmptyCommand(const char* cmd); + /** * Generate the makefile for this directory. fromTheTop indicates if this * is being invoked as part of a global Generate or specific to this @@ -78,6 +83,8 @@ protected: void WriteSubdirRules(std::ostream& makefileStream, const char* pass); void WriteSubdirRule(std::ostream& makefileStream, const char* pass, const char* subdir, std::string& last); + void WriteSubdirDriverRule(std::ostream& makefileStream, const char* pass, + const char* order, const std::string& last); void WriteRequiresRule(std::ostream& ruleFileStream, const cmTarget& target, const char* targetFullPath); void WriteExecutableRule(std::ostream& ruleFileStream, @@ -115,7 +122,7 @@ protected: 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); - std::string GetRecursiveMakeCall(const char* tgt); + std::string GetRecursiveMakeCall(const char* tgt, bool silent); void WriteJumpAndBuildRules(std::ostream& makefileStream); static bool ScanDependenciesC(const char* objFile, const char* srcFile, @@ -136,6 +143,9 @@ private: // List the files for which to check dependency integrity. std::set<cmStdString> m_CheckDependFiles; + + // Command used when a rule has no dependencies or commands. + std::vector<std::string> m_EmptyCommands; }; #endif |