summaryrefslogtreecommitdiffstats
path: root/Source/cmUnixMakefileGenerator.h
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2001-05-07 22:11:16 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2001-05-07 22:11:16 (GMT)
commit885e37da224353e242e7135b0fc8e6f2445a54c7 (patch)
tree17effe2cbc6b46afcd670ffe45f0fcbb8c7d01b6 /Source/cmUnixMakefileGenerator.h
parent5066defc2378172be5bcfc22238d9cb68f05bb29 (diff)
downloadCMake-885e37da224353e242e7135b0fc8e6f2445a54c7.zip
CMake-885e37da224353e242e7135b0fc8e6f2445a54c7.tar.gz
CMake-885e37da224353e242e7135b0fc8e6f2445a54c7.tar.bz2
ENH: call configure from cmake
Diffstat (limited to 'Source/cmUnixMakefileGenerator.h')
-rw-r--r--Source/cmUnixMakefileGenerator.h23
1 files changed, 22 insertions, 1 deletions
diff --git a/Source/cmUnixMakefileGenerator.h b/Source/cmUnixMakefileGenerator.h
index 4e8b069..ca13919 100644
--- a/Source/cmUnixMakefileGenerator.h
+++ b/Source/cmUnixMakefileGenerator.h
@@ -53,6 +53,22 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
class cmUnixMakefileGenerator : public cmMakefileGenerator
{
public:
+ ///! Set cache only and recurse to false by default.
+ cmUnixMakefileGenerator();
+
+ /**
+ * If cache only is on.
+ * and only stub makefiles are generated, and no depends, for speed.
+ * The default is OFF.
+ **/
+ void SetCacheOnlyOn() {m_CacheOnly = true;}
+ void SetCacheOnlyOff() {m_CacheOnly = false;}
+ /**
+ * If recurse is on, then all the makefiles below this one are parsed as well.
+ */
+ void SetRecurseOn() {m_Recurse = true;}
+ void SetRecurseOff() {m_Recurse = false;}
+
/**
* Produce the makefile (in this case a Unix makefile).
*/
@@ -65,7 +81,9 @@ public:
*/
void OutputObjectDepends(std::ostream&);
-protected:
+private:
+ void RecursiveGenerateCacheOnly();
+ void GenerateCacheOnly();
void OutputMakefile(const char* file);
void OutputMakeFlags(std::ostream&);
void OutputVerbatim(std::ostream&);
@@ -76,6 +94,9 @@ protected:
void OutputDependInformation(std::ostream&);
void OutputDependencies(std::ostream&);
void OutputCustomRules(std::ostream&);
+private:
+ bool m_CacheOnly;
+ bool m_Recurse;
};
#endif