(file) Return to Makefile CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Repository

  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 mike           1.39.12.8 ifdef PEGASUS_USE_META_REPOSITORY
 42                              LOCAL_DEFINES += -DPEGASUS_USE_META_REPOSITORY
 43                          endif
 44                          
 45 mike           1.39.12.9 #LOCAL_DEFINES += -DPEGASUS_USE_META_REPOSITORY
 46 mike           1.39.12.8 
 47 chuck          1.24      LIBRARIES = pegcommon pegquerycommon pegconfig
 48 kumpf          1.12      
 49 keith.petley   1.20      ifeq ($(PEGASUS_PLATFORM),SOLARIS_SPARC_CC)
 50 keith.petley   1.21      EXTRA_LIBRARIES += -lCstd
 51 keith.petley   1.20      endif
 52                          
 53 jim.wunderlich 1.25      ##
 54                          ##  PEP214 Compressed repository
 55                          ##  ----------------------------
 56                          ##
 57                          ##    This PEP added the capability to utilize compression algorithms
 58                          ##    on the repository. The compressed repository is approximatley 70%
 59                          ##    smaller than a regular xml text based repository. This allows
 60 kumpf          1.37      ##    significant disk space savings and also results in shorter file
 61 jim.wunderlich 1.25      ##    load times.
 62 kumpf          1.37      ##
 63                          ##    The compression logic is installed as a conditionally compiled option.
 64 jim.wunderlich 1.25      ##    To enable the compressed repository functionality:
 65                          ##	1. Install zlib
 66 jim.wunderlich 1.27      ##	2. define PEGASUS_ENABLE_COMPRESSED_REPOSITORY=on in the environment
 67 jim.wunderlich 1.25      ##      3. build Pegasus.
 68 kumpf          1.37      ##
 69                          ##   Please refer to readme.compression in the main pegasus directory
 70 jim.wunderlich 1.25      ##   for more information about repository compression.
 71                          ##
 72                          
 73 jim.wunderlich 1.27      ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY
 74                            LOCAL_DEFINES += -DPEGASUS_ENABLE_COMPRESSED_REPOSITORY
 75 jim.wunderlich 1.25      
 76 carson.hovey   1.39        ifeq ($(OS_TYPE),windows)
 77 jim.wunderlich 1.25          EXTRA_LINK_FLAGS += -defaultlib:libz -libpath:/"Program Files"/GnuWin32/lib
 78                              EXTRA_INCLUDES += -I/"Program Files"/GnuWin32/include
 79                            else
 80 carson.hovey   1.39          ifeq ($(OS_TYPE),vms)
 81                                 EXTRA_INCLUDES += -I/libz
 82                              else
 83                                 EXTRA_LINK_FLAGS += -lz
 84                              endif
 85 jim.wunderlich 1.25        endif
 86                          
 87                          endif
 88                          
 89 a.dunfey       1.38      ifeq ($(OS_TYPE),windows)
 90 kumpf          1.37      ##
 91                          ## The following .PHONY rule gets around the problem in Windows for
 92 jim.wunderlich 1.25      ## the "Program Files" directory name. The depends program strips the
 93                          ## quotes when the depends file is built and upon subsequent compile
 94                          ## it fails with no rule to make these fragments.
 95                          ##
 96                          ##
 97                          .PHONY: /Program Files/GnuWin32/include/zlib.h Files/GnuWin32/include/zconf.h
 98                          endif
 99                          
100 mike           1.35      STATIC=1
101 mike           1.1       LIBRARY = pegrepository
102                          
103 mike           1.2       SOURCES = \
104 mike           1.39.12.6     MetaTypes.cpp \
105 mike           1.18          InstanceIndexFile.cpp \
106                              InstanceDataFile.cpp \
107                              CIMRepository.cpp \
108 mike           1.14          AssocClassTable.cpp \
109 r.kieninger    1.33          AssocClassCache.cpp \
110 mike           1.13          AssocInstTable.cpp \
111 mike           1.7           NameSpaceManager.cpp \
112 mike           1.32          ObjectCache.cpp \
113 mike           1.5           InheritanceTree.cpp \
114 chuck          1.24          RepositoryDeclContext.cpp \
115 mike           1.39.12.5     RepositoryQueryContext.cpp \
116 mike           1.39.12.6     MetaRepository.cpp
117 mike           1.39.12.5 
118 mike           1.39.12.8 SOURCES += \
119 mike           1.39.12.5     root_cimv2_namespace.cpp \
120                              root_PG_InterOp_namespace.cpp \
121                              root_PG_Internal_namespace.cpp
122 mike           1.1       
123                          include $(ROOT)/mak/library.mak
124 jim.wunderlich 1.25      
125                          compress:
126                          	make clean
127 jim.wunderlich 1.27      	make depend PEGASUS_ENABLE_COMPRESSED_REPOSITORY=1
128                          	make PEGASUS_ENABLE_COMPRESSED_REPOSITORY=1
129 mike           1.39.12.1 
130 mike           1.39.12.5 SCHEMAS=$(PEGASUS_ROOT)/Schemas
131 mike           1.39.12.7 CIMMOFL=$(PEGASUS_HOME)/bin/cimmofl -W -d -m
132 mike           1.39.12.5 
133 mike           1.39.12.1 rep:
134 mike           1.39.12.5 	@ $(CIMMOFL) -n root/PG_Internal -I $(SCHEMAS) root_PG_Internal.mof
135                          	@ $(CIMMOFL) -n root/PG_InterOp -I $(SCHEMAS) root_PG_InterOp.mof
136                          	@ $(CIMMOFL) -n root/cimv2 -I $(SCHEMAS) root_cimv2.mof
137                          

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2