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

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2