cmLocalUnixMakefileGenerator2.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /*=========================================================================
  2. Program: CMake - Cross-Platform Makefile Generator
  3. Module: $RCSfile$
  4. Language: C++
  5. Date: $Date$
  6. Version: $Revision$
  7. Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
  8. See Copyright.txt or http://www.cmake.org/HTML/Copyright.html 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 cmLocalUnixMakefileGenerator2_h
  14. #define cmLocalUnixMakefileGenerator2_h
  15. #include "cmLocalUnixMakefileGenerator.h"
  16. class cmDependInformation;
  17. class cmMakeDepend;
  18. class cmTarget;
  19. class cmSourceFile;
  20. /** \class cmLocalUnixMakefileGenerator2
  21. * \brief Write a LocalUnix makefiles.
  22. *
  23. * cmLocalUnixMakefileGenerator2 produces a LocalUnix makefile from its
  24. * member m_Makefile.
  25. */
  26. class cmLocalUnixMakefileGenerator2 : public cmLocalUnixMakefileGenerator
  27. {
  28. public:
  29. ///! Set cache only and recurse to false by default.
  30. cmLocalUnixMakefileGenerator2();
  31. virtual ~cmLocalUnixMakefileGenerator2();
  32. /**
  33. * Generate the makefile for this directory. fromTheTop indicates if this
  34. * is being invoked as part of a global Generate or specific to this
  35. * directory. The difference is that when done from the Top we might skip
  36. * some steps to save time, such as dependency generation for the
  37. * makefiles. This is done by a direct invocation from make.
  38. */
  39. virtual void Generate(bool fromTheTop);
  40. protected:
  41. void GenerateMakefile();
  42. void GenerateCMakefile();
  43. void GenerateTargetRuleFile(const cmTarget& target);
  44. void GenerateObjectRuleFile(const cmTarget& target,
  45. const cmSourceFile& source);
  46. void WriteDisclaimer(std::ostream& os);
  47. std::string GetTargetDirectory(const cmTarget& target);
  48. std::string GetObjectFileName(const cmSourceFile& source);
  49. private:
  50. };
  51. #endif