cmBorlandMakefileGenerator.h 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /*=========================================================================
  2. Program: Insight Segmentation & Registration Toolkit
  3. Module: $RCSfile$
  4. Language: C++
  5. Date: $Date$
  6. Version: $Revision$
  7. Copyright (c) 2002 Insight Consortium. All rights reserved.
  8. See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
  9. This software is distributed WITHOUT ANY WARRANTY; without even
  10. the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  11. PURPOSE. See the above copyright notices for more information.
  12. =========================================================================*/
  13. #ifndef cmBorlandMakefileGenerator_h
  14. #define cmBorlandMakefileGenerator_h
  15. #include "cmNMakeMakefileGenerator.h"
  16. /** \class cmBorlandMakefileGenerator
  17. * \brief Write an NMake makefile.
  18. *
  19. * cmBorlandMakefileGenerator produces a Unix makefile from its
  20. * member m_Makefile.
  21. */
  22. class cmBorlandMakefileGenerator : public cmNMakeMakefileGenerator
  23. {
  24. public:
  25. ///! Set cache only and recurse to false by default.
  26. cmBorlandMakefileGenerator();
  27. virtual ~cmBorlandMakefileGenerator();
  28. ///! Get the name for the generator.
  29. virtual const char* GetName() {return "Borland Makefiles";}
  30. ///! virtual copy constructor
  31. virtual cmMakefileGenerator* CreateObject()
  32. { return new cmBorlandMakefileGenerator;}
  33. ///! figure out about the current system information
  34. virtual void EnableLanguage(const char*);
  35. protected:
  36. virtual void OutputMakeVariables(std::ostream&);
  37. virtual void OutputBuildObjectFromSource(std::ostream& fout,
  38. const char* shortName,
  39. const cmSourceFile& source,
  40. const char* extraCompileFlags,
  41. bool sharedTarget);
  42. virtual void OutputSharedLibraryRule(std::ostream&, const char* name,
  43. const cmTarget &);
  44. virtual void OutputModuleLibraryRule(std::ostream&, const char* name,
  45. const cmTarget &);
  46. virtual void OutputStaticLibraryRule(std::ostream&, const char* name,
  47. const cmTarget &);
  48. virtual void OutputExecutableRule(std::ostream&, const char* name,
  49. const cmTarget &);
  50. virtual std::string GetOutputExtension(const char* sourceExtension);
  51. ///! return true if the two paths are the same (checks short paths)
  52. virtual bool SamePath(const char* path1, const char* path2);
  53. virtual std::string CreateMakeVariable(const char* s, const char* s2);
  54. std::map<cmStdString, cmStdString> m_MakeVariableMap;
  55. std::map<cmStdString, cmStdString> m_ShortMakeVariableMap;
  56. };
  57. #endif