2001-01-11 22:47:38 +03:00
|
|
|
/*=========================================================================
|
|
|
|
|
|
|
|
Program: Insight Segmentation & Registration Toolkit
|
|
|
|
Module: $RCSfile$
|
|
|
|
Language: C++
|
|
|
|
Date: $Date$
|
|
|
|
Version: $Revision$
|
|
|
|
|
|
|
|
|
|
|
|
Copyright (c) 2000 National Library of Medicine
|
|
|
|
All rights reserved.
|
|
|
|
|
|
|
|
See COPYRIGHT.txt for copyright details.
|
|
|
|
|
|
|
|
=========================================================================*/
|
|
|
|
#ifndef cmMakefileGenerator_h
|
|
|
|
#define cmMakefileGenerator_h
|
2001-01-05 19:41:20 +03:00
|
|
|
|
|
|
|
#include "cmStandardIncludes.h"
|
|
|
|
|
|
|
|
class cmMakefile;
|
2001-01-11 22:47:38 +03:00
|
|
|
class cmClassFile;
|
2001-01-05 19:41:20 +03:00
|
|
|
|
2001-01-11 22:47:38 +03:00
|
|
|
/** \class cmMakefileGenerator
|
|
|
|
* \brief Provide an abstract interface for classes generating makefiles.
|
|
|
|
*
|
|
|
|
* Subclasses of this abstract class generate makefiles for various
|
|
|
|
* platforms.
|
|
|
|
*/
|
2001-01-05 19:41:20 +03:00
|
|
|
class cmMakefileGenerator
|
|
|
|
{
|
|
|
|
public:
|
2001-01-11 22:47:38 +03:00
|
|
|
/**
|
|
|
|
* Set the cmMakefile instance from which to generate the makefile.
|
|
|
|
*/
|
2001-01-05 19:41:20 +03:00
|
|
|
void SetMakefile(cmMakefile*);
|
2001-01-11 22:47:38 +03:00
|
|
|
|
|
|
|
/**
|
2001-01-18 19:20:24 +03:00
|
|
|
* Generate the makefile using the m_Makefile, m_CustomCommands,
|
2001-01-11 22:47:38 +03:00
|
|
|
* and m_ExtraSourceFiles. All subclasses of cmMakefileGenerator
|
|
|
|
* must implement this method.
|
|
|
|
*/
|
|
|
|
virtual void GenerateMakefile() = 0;
|
|
|
|
|
2001-01-05 19:41:20 +03:00
|
|
|
protected:
|
|
|
|
cmMakefile* m_Makefile;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|