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 kumpf 1.37 ## significant disk space savings and also results in shorter file
|
55 jim.wunderlich 1.25 ## load times.
|
56 kumpf 1.37 ##
57 ## The compression logic is installed as a conditionally compiled option.
|
58 jim.wunderlich 1.25 ## 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 kumpf 1.37 ##
63 ## Please refer to readme.compression in the main pegasus directory
|
64 jim.wunderlich 1.25 ## 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 carson.hovey 1.39 ifeq ($(OS_TYPE),windows)
|
71 jim.wunderlich 1.25 EXTRA_LINK_FLAGS += -defaultlib:libz -libpath:/"Program Files"/GnuWin32/lib
72 EXTRA_INCLUDES += -I/"Program Files"/GnuWin32/include
73 else
|
74 carson.hovey 1.39 ifeq ($(OS_TYPE),vms)
75 EXTRA_INCLUDES += -I/libz
76 else
77 EXTRA_LINK_FLAGS += -lz
78 endif
|
79 jim.wunderlich 1.25 endif
80
81 endif
82
|
83 a.dunfey 1.38 ifeq ($(OS_TYPE),windows)
|
84 kumpf 1.37 ##
85 ## The following .PHONY rule gets around the problem in Windows for
|
86 jim.wunderlich 1.25 ## the "Program Files" directory name. The depends program strips the
87 ## quotes when the depends file is built and upon subsequent compile
88 ## it fails with no rule to make these fragments.
89 ##
90 ##
91 .PHONY: /Program Files/GnuWin32/include/zlib.h Files/GnuWin32/include/zconf.h
92 endif
93
|
94 mike 1.35 STATIC=1
|
95 mike 1.1 LIBRARY = pegrepository
96
|
97 mike 1.2 SOURCES = \
|
98 mike 1.39.12.6 MetaTypes.cpp \
|
99 mike 1.18 InstanceIndexFile.cpp \
100 InstanceDataFile.cpp \
101 CIMRepository.cpp \
|
102 mike 1.14 AssocClassTable.cpp \
|
103 r.kieninger 1.33 AssocClassCache.cpp \
|
104 mike 1.13 AssocInstTable.cpp \
|
105 mike 1.7 NameSpaceManager.cpp \
|
106 mike 1.32 ObjectCache.cpp \
|
107 mike 1.5 InheritanceTree.cpp \
|
108 chuck 1.24 RepositoryDeclContext.cpp \
|
109 mike 1.39.12.5 RepositoryQueryContext.cpp \
|
110 mike 1.39.12.6 MetaRepository.cpp
|
111 mike 1.39.12.5
|
112 mike 1.39.12.6 XSOURCES += \
|
113 mike 1.39.12.5 root_cimv2_namespace.cpp \
114 root_PG_InterOp_namespace.cpp \
115 root_PG_Internal_namespace.cpp
|
116 mike 1.1
117 include $(ROOT)/mak/library.mak
|
118 jim.wunderlich 1.25
119 compress:
120 make clean
|
121 jim.wunderlich 1.27 make depend PEGASUS_ENABLE_COMPRESSED_REPOSITORY=1
122 make PEGASUS_ENABLE_COMPRESSED_REPOSITORY=1
|
123 mike 1.39.12.1
|
124 mike 1.39.12.5 SCHEMAS=$(PEGASUS_ROOT)/Schemas
125 CIMMOFL=$(PEGASUS_HOME)/bin/cimmofl -W -d -s
126
|
127 mike 1.39.12.1 rep:
|
128 mike 1.39.12.5 @ $(CIMMOFL) -n root/PG_Internal -I $(SCHEMAS) root_PG_Internal.mof
129 @ $(CIMMOFL) -n root/PG_InterOp -I $(SCHEMAS) root_PG_InterOp.mof
130 @ $(CIMMOFL) -n root/cimv2 -I $(SCHEMAS) root_cimv2.mof
131
|