cmLocalBorlandMakefileGenerator.h 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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 "cmLocalNMakeMakefileGenerator.h"
  16. /** \class cmLocalBorlandMakefileGenerator
  17. * \brief Write an Borland makefile.
  18. *
  19. * cmLocalBorlandMakefileGenerator produces a Unix makefile from its
  20. * member m_Makefile.
  21. */
  22. class cmLocalBorlandMakefileGenerator : public cmLocalNMakeMakefileGenerator
  23. {
  24. public:
  25. ///! Set cache only and recurse to false by default.
  26. cmLocalBorlandMakefileGenerator();
  27. virtual ~cmLocalBorlandMakefileGenerator();
  28. protected:
  29. virtual void OutputMakeVariables(std::ostream&);
  30. virtual void OutputBuildObjectFromSource(std::ostream& fout,
  31. const char* shortName,
  32. const cmSourceFile& source,
  33. const char* extraCompileFlags,
  34. bool sharedTarget);
  35. virtual void OutputSharedLibraryRule(std::ostream&, const char* name,
  36. const cmTarget &);
  37. virtual void OutputModuleLibraryRule(std::ostream&, const char* name,
  38. const cmTarget &);
  39. virtual void OutputStaticLibraryRule(std::ostream&, const char* name,
  40. const cmTarget &);
  41. virtual void OutputExecutableRule(std::ostream&, const char* name,
  42. const cmTarget &);
  43. virtual std::string GetOutputExtension(const char* sourceExtension);
  44. ///! return true if the two paths are the same (checks short paths)
  45. virtual bool SamePath(const char* path1, const char* path2);
  46. virtual std::string CreateMakeVariable(const char* s, const char* s2);
  47. std::map<cmStdString, cmStdString> m_MakeVariableMap;
  48. std::map<cmStdString, cmStdString> m_ShortMakeVariableMap;
  49. };
  50. #endif