cmGlobalUnixMakefileGenerator.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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 cmGlobalUnixMakefileGenerator_h
  14. #define cmGlobalUnixMakefileGenerator_h
  15. #include "cmGlobalGenerator.h"
  16. /** \class cmGlobalUnixMakefileGenerator
  17. * \brief Write a Unix makefiles.
  18. *
  19. * cmGlobalUnixMakefileGenerator manages UNIX build process for a tree
  20. */
  21. class cmGlobalUnixMakefileGenerator : public cmGlobalGenerator
  22. {
  23. public:
  24. ///! Get the name for the generator.
  25. virtual const char* GetName() {
  26. return cmGlobalUnixMakefileGenerator::GetActualName();}
  27. static const char* GetActualName() {return "Unix Makefiles";}
  28. ///! Create a local generator appropriate to this Global Generator
  29. virtual cmLocalGenerator *CreateLocalGenerator();
  30. /**
  31. * Try to determine system infomation such as shared library
  32. * extension, pthreads, byte order etc.
  33. */
  34. virtual void EnableLanguage(const char*, cmMakefile *mf);
  35. /**
  36. * Try to determine system infomation, get it from another generator
  37. */
  38. virtual void EnableLanguagesFromGenerator(cmGlobalGenerator *, cmMakefile *);
  39. };
  40. #endif