1 /*============================================================================
2 CMake - Cross Platform Makefile Generator
3 Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
5 Distributed under the OSI-approved BSD License (the "License");
6 see accompanying file Copyright.txt for details.
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
15 #include "cmMakefileTargetGenerator.h"
17 class cmMakefileLibraryTargetGenerator:
18 public cmMakefileTargetGenerator
21 cmMakefileLibraryTargetGenerator(cmTarget* target);
22 virtual ~cmMakefileLibraryTargetGenerator();
24 /* the main entry point for this class. Writes the Makefiles associated
26 virtual void WriteRuleFiles();
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,
35 // MacOSX Framework support methods
36 void WriteFrameworkRules(bool relink);
38 // Store the computd framework version for OS X Frameworks.
39 std::string FrameworkVersion;
41 void AppendOSXVerFlag(std::string& flags, const char* lang,
42 const char* name, bool so);