CMake/Source/cmBorlandMakefileGenerator.h

70 lines
2.7 KiB
C
Raw Normal View History

2001-11-28 19:12:15 +03:00
/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: $RCSfile$
Language: C++
Date: $Date$
Version: $Revision$
2002-01-21 23:30:43 +03:00
Copyright (c) 2002 Insight Consortium. All rights reserved.
See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
2001-11-28 19:12:15 +03:00
2002-01-21 23:30:43 +03:00
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
2001-11-28 19:12:15 +03:00
=========================================================================*/
2001-12-01 00:48:52 +03:00
#ifndef cmBorlandMakefileGenerator_h
#define cmBorlandMakefileGenerator_h
2001-11-28 19:12:15 +03:00
#include "cmNMakeMakefileGenerator.h"
2001-12-01 00:48:52 +03:00
/** \class cmBorlandMakefileGenerator
2001-11-28 19:12:15 +03:00
* \brief Write an NMake makefile.
*
2001-12-01 00:48:52 +03:00
* cmBorlandMakefileGenerator produces a Unix makefile from its
2001-11-28 19:12:15 +03:00
* member m_Makefile.
*/
2001-12-01 00:48:52 +03:00
class cmBorlandMakefileGenerator : public cmNMakeMakefileGenerator
2001-11-28 19:12:15 +03:00
{
public:
///! Set cache only and recurse to false by default.
2001-12-01 00:48:52 +03:00
cmBorlandMakefileGenerator();
2001-11-28 19:12:15 +03:00
2001-12-01 00:48:52 +03:00
virtual ~cmBorlandMakefileGenerator();
2001-11-28 19:12:15 +03:00
///! Get the name for the generator.
2001-12-01 00:48:52 +03:00
virtual const char* GetName() {return "Borland Makefiles";}
2001-11-28 19:12:15 +03:00
///! virtual copy constructor
virtual cmMakefileGenerator* CreateObject()
2001-12-01 00:48:52 +03:00
{ return new cmBorlandMakefileGenerator;}
2001-11-28 19:12:15 +03:00
///! figure out about the current system information
virtual void EnableLanguage(const char*);
2001-11-28 19:12:15 +03:00
protected:
virtual void OutputMakeVariables(std::ostream&);
virtual void OutputBuildObjectFromSource(std::ostream& fout,
const char* shortName,
const cmSourceFile& source,
const char* extraCompileFlags,
bool sharedTarget);
virtual void OutputSharedLibraryRule(std::ostream&, const char* name,
const cmTarget &);
virtual void OutputModuleLibraryRule(std::ostream&, const char* name,
const cmTarget &);
virtual void OutputStaticLibraryRule(std::ostream&, const char* name,
const cmTarget &);
virtual void OutputExecutableRule(std::ostream&, const char* name,
const cmTarget &);
virtual std::string GetOutputExtension(const char* sourceExtension);
///! return true if the two paths are the same (checks short paths)
virtual bool SamePath(const char* path1, const char* path2);
virtual std::string CreateMakeVariable(const char* s, const char* s2);
std::map<cmStdString, cmStdString> m_MakeVariableMap;
std::map<cmStdString, cmStdString> m_ShortMakeVariableMap;
2001-11-28 19:12:15 +03:00
};
#endif