packaging: Initial packaging
[platform/upstream/cmake.git] / Source / cmMakefileLibraryTargetGenerator.h
1 /*============================================================================
2   CMake - Cross Platform Makefile Generator
3   Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
4
5   Distributed under the OSI-approved BSD License (the "License");
6   see accompanying file Copyright.txt for details.
7
8   This software is distributed WITHOUT ANY WARRANTY; without even the
9   implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10   See the License for more information.
11 ============================================================================*/
12 #ifndef cmMakefileLibraryTargetGenerator_h
13 #define cmMakefileLibraryTargetGenerator_h
14
15 #include "cmMakefileTargetGenerator.h"
16
17 class cmMakefileLibraryTargetGenerator:
18   public cmMakefileTargetGenerator
19 {
20 public:
21   cmMakefileLibraryTargetGenerator(cmTarget* target);
22   virtual ~cmMakefileLibraryTargetGenerator();
23
24   /* the main entry point for this class. Writes the Makefiles associated
25      with this target */
26   virtual void WriteRuleFiles();
27
28 protected:
29   void WriteObjectLibraryRules();
30   void WriteStaticLibraryRules();
31   void WriteSharedLibraryRules(bool relink);
32   void WriteModuleLibraryRules(bool relink);
33   void WriteLibraryRules(const char *linkRule, const char *extraFlags,
34                          bool relink);
35   // MacOSX Framework support methods
36   void WriteFrameworkRules(bool relink);
37
38   // Store the computd framework version for OS X Frameworks.
39   std::string FrameworkVersion;
40
41   void AppendOSXVerFlag(std::string& flags, const char* lang,
42                         const char* name, bool so);
43 };
44
45 #endif