1 karl 1.34 #//%2006////////////////////////////////////////////////////////////////////////
|
2 martin 1.28 #//
3 #// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
4 #// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
5 #// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
6 #// IBM Corp.; EMC Corporation, The Open Group.
7 #// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
8 #// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
9 #// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
10 #// EMC Corporation; VERITAS Software Corporation; The Open Group.
|
11 karl 1.34 #// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
12 #// EMC Corporation; Symantec Corporation; The Open Group.
|
13 martin 1.28 #//
14 #// Permission is hereby granted, free of charge, to any person obtaining a copy
15 #// of this software and associated documentation files (the "Software"), to
16 #// deal in the Software without restriction, including without limitation the
17 #// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
18 #// sell copies of the Software, and to permit persons to whom the Software is
19 #// furnished to do so, subject to the following conditions:
20 #//
21 #// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
22 #// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
23 #// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
24 #// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
25 #// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
26 #// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
27 #// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 #// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 #//
30 #//==============================================================================
|
31 mike 1.1 ROOT = ../../..
32
33 DIR = Pegasus/Repository
34
35 include $(ROOT)/mak/config.mak
36
|
37 jim.wunderlich 1.25 EXTRA_INCLUDES = -I..
|
38 mike 1.1
|
39 kumpf 1.19 LOCAL_DEFINES = -DPEGASUS_REPOSITORY_INTERNAL -DPEGASUS_INTERNALONLY
|
40 mike 1.1
|
41 chuck 1.24 LIBRARIES = pegcommon pegquerycommon pegconfig
|
42 kumpf 1.12
|
43 keith.petley 1.20 ifeq ($(PEGASUS_PLATFORM),SOLARIS_SPARC_CC)
|
44 keith.petley 1.21 EXTRA_LIBRARIES += -lCstd
|
45 keith.petley 1.20 endif
46
|
47 jim.wunderlich 1.25 ##
48 ## PEP214 Compressed repository
49 ## ----------------------------
50 ##
51 ## This PEP added the capability to utilize compression algorithms
52 ## on the repository. The compressed repository is approximatley 70%
53 ## smaller than a regular xml text based repository. This allows
54 ## significant disk space savings and also results in shorter file
55 ## load times.
56 ##
57 ## The compression logic is installed as a conditionally compiled option.
58 ## To enable the compressed repository functionality:
59 ## 1. Install zlib
|
60 jim.wunderlich 1.27 ## 2. define PEGASUS_ENABLE_COMPRESSED_REPOSITORY=on in the environment
|
61 jim.wunderlich 1.25 ## 3. build Pegasus.
62 ##
63 ## Please refer to readme.compression in the main pegasus directory
64 ## for more information about repository compression.
65 ##
66
|
67 jim.wunderlich 1.27 ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY
68 LOCAL_DEFINES += -DPEGASUS_ENABLE_COMPRESSED_REPOSITORY
|
69 jim.wunderlich 1.25
70 ifeq ($(PEGASUS_PLATFORM), WIN32_IX86_MSVC)
71 EXTRA_LINK_FLAGS += -defaultlib:libz -libpath:/"Program Files"/GnuWin32/lib
72 EXTRA_INCLUDES += -I/"Program Files"/GnuWin32/include
73 else
74 EXTRA_LINK_FLAGS += -lz
75 endif
76
77 endif
78
79 ifeq ($(PEGASUS_PLATFORM), WIN32_IX86_MSVC)
80 ##
81 ## The following .PHONY rule gets around the problem in Windows for
82 ## the "Program Files" directory name. The depends program strips the
83 ## quotes when the depends file is built and upon subsequent compile
84 ## it fails with no rule to make these fragments.
85 ##
86 ##
87 .PHONY: /Program Files/GnuWin32/include/zlib.h Files/GnuWin32/include/zconf.h
88 endif
89
|
90 mike 1.35 STATIC=1
|
91 mike 1.1 LIBRARY = pegrepository
92
|
93 mike 1.2 SOURCES = \
|
94 mike 1.18 InstanceIndexFile.cpp \
95 InstanceDataFile.cpp \
96 CIMRepository.cpp \
|
97 mike 1.14 AssocClassTable.cpp \
|
98 r.kieninger 1.33 AssocClassCache.cpp \
|
99 mike 1.13 AssocInstTable.cpp \
|
100 mike 1.7 NameSpaceManager.cpp \
|
101 mike 1.32 ObjectCache.cpp \
|
102 mike 1.5 InheritanceTree.cpp \
|
103 chuck 1.24 RepositoryDeclContext.cpp \
104 RepositoryQueryContext.cpp
|
105 mike 1.1
106 include $(ROOT)/mak/library.mak
|
107 jim.wunderlich 1.25
108 compress:
109 make clean
|
110 jim.wunderlich 1.27 make depend PEGASUS_ENABLE_COMPRESSED_REPOSITORY=1
111 make PEGASUS_ENABLE_COMPRESSED_REPOSITORY=1
|