1 #//%2005////////////////////////////////////////////////////////////////////////
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.
12 #// Permission is hereby granted, free of charge, to any person obtaining a copy
13 #// of this software and associated documentation files (the "Software"), to
14 #// deal in the Software without restriction, including without limitation the
15 #// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
16 #// sell copies of the Software, and to permit persons to whom the Software is
17 #// furnished to do so, subject to the following conditions:
19 #// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
20 #// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
21 #// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
22 #// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
23 #// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
24 #// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
25 #// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
26 #// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
28 #//==============================================================================
29 # Makefile builds a test cimv2 namespace
30 # ATTN: Today this makefile is implementation dependent.
31 # It assumes that the repository is a set of directories
32 # that can be removed by removing the directories.
33 # This must be updated to an implementation independent repository
36 ROOT = $(PEGASUS_ROOT)
37 include $(ROOT)/mak/config.mak
38 include $(ROOT)/mak/configschema.mak
40 # The following variable determine the version of the Schema to
41 # be loaded into the test cimv2 namespace.
42 # Update the following variable to change the version.
44 TESTCIMV2NS=test/cimv2
45 TESTCIMV2NSDIRECTORY=$(REPOSITORY_ROOT)/test\#cimv2
48 CIM_SCHEMA_DIR=$(PEGASUS_ROOT)/Schemas/CIM25
50 # ***** CIM_SCHEMA_DIR INFO ****
51 # If CIM_SCHEMA_DIR changes to use a preliminary schema which
52 # has experimentals make sure and change the path below to appopriate
53 # directory path. Example: CIMPrelim271 is preliminary and has
54 # experimental classes. Since experimental classes exist the -aE
55 # option of the mof compiler needs to be set.
57 ifeq ($(CIM_SCHEMA_DIR), $(PEGASUS_ROOT)/Schemas/CIMPrelim271)
58 ALLOW_EXPERIMENTAL = "-aE"
64 @ $(ECHO) +++++ Removing existing repository named $(TESTCIMV2NS)
65 @$(RMREPOSITORY) $(TESTCIMV2NSDIRECTORY)
66 @ $(ECHO) +++++ Loading CIM_Schema$(CIM_SCHEMA_VER) into $(TESTCIMV2NS) namespace ...
67 @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(CIM_SCHEMA_DIR)" -n$(TESTCIMV2NS) $(ALLOW_EXPERIMENTAL) $(CIM_SCHEMA_DIR)/CIM_Schema$(CIM_SCHEMA_VER).mof
70 @ $(ECHO) +++++ Loading CIM_Schema$(CIM_SCHEMA_VER) into $(TESTCIMV2NS) namespace ...
71 @ cimmof "-I$(CIM_SCHEMA_DIR)" -n$(TESTCIMV2NS) $(ALLOW_EXPERIMENTAL) $(CIM_SCHEMA_DIR)/CIM_Schema$(CIM_SCHEMA_VER).mof
74 @ $(ECHO) +++++ Removing existing repository named $(TESTCIMV2NS)
75 @$(RMREPOSITORY) $(TESTCIMV2NSDIRECTORY)