1 martin 1.27 #//%LICENSE////////////////////////////////////////////////////////////////
|
2 martin 1.28 #//
|
3 martin 1.27 #// Licensed to The Open Group (TOG) under one or more contributor license
4 #// agreements. Refer to the OpenPegasusNOTICE.txt file distributed with
5 #// this work for additional information regarding copyright ownership.
6 #// Each contributor licenses this file to you under the OpenPegasus Open
7 #// Source License; you may not use this file except in compliance with the
8 #// License.
|
9 martin 1.28 #//
|
10 martin 1.27 #// Permission is hereby granted, free of charge, to any person obtaining a
11 #// copy of this software and associated documentation files (the "Software"),
12 #// to deal in the Software without restriction, including without limitation
13 #// the rights to use, copy, modify, merge, publish, distribute, sublicense,
14 #// and/or sell copies of the Software, and to permit persons to whom the
15 #// Software is furnished to do so, subject to the following conditions:
|
16 martin 1.28 #//
|
17 martin 1.27 #// The above copyright notice and this permission notice shall be included
18 #// in all copies or substantial portions of the Software.
|
19 martin 1.28 #//
|
20 martin 1.27 #// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
21 martin 1.28 #// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
22 martin 1.27 #// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
23 #// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
24 #// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
25 #// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
26 #// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
27 martin 1.28 #//
|
28 martin 1.27 #//////////////////////////////////////////////////////////////////////////
|
29 kumpf 1.24 # Makefile builds a ManagedSystem Namespace
30 # Note: For best results, ensure that the ManagedSystem namespace does not
31 # exist before calling this Makefile.
|
32 kumpf 1.1
|
33 kumpf 1.29 ROOT = ../../..
|
34 kumpf 1.1 include $(ROOT)/mak/config.mak
35 include $(ROOT)/mak/configschema.mak
36
37 # The following two variables determine the version of the Schema to
38 # be loaded into the Managed System namespace.
39 # Update the following two environment variables to change the version.
40
41 PG_SCHEMA_VER=20
42 PG_SCHEMA_DIR=VER$(PG_SCHEMA_VER)
43 PG_MOF_PATH=$(ROOT)/Schemas/Pegasus/ManagedSystem/$(PG_SCHEMA_DIR)
|
44 tony 1.10 FILE_PREFIX=PG
|
45 kumpf 1.1 # The following defines are used to determine the version of
46 # the platform specific schema to be loaded into Managed System namespace.
47
48 MANAGEDSYSTEM_NS_SUPPORTED = true
49
|
50 kumpf 1.7 ifeq ($(OS), HPUX)
51 EXTENDED_MANAGEDSYSTEM_NS_SUPPORTED = true
52 FILE_PREFIX=HPUX
|
53 kumpf 1.5 endif
54
|
55 gs.keenan 1.14 ifeq ($(OS), VMS)
|
56 gs.keenan 1.21 #EXTENDED_MANAGEDSYSTEM_NS_SUPPORTED = true
|
57 gs.keenan 1.14 FILE_PREFIX=HPUX
58 endif
59
|
60 denise.eckstein 1.26 ifeq ($(OS), linux)
61 ifndef PEGASUS_DISABLE_PROV_USERCTXT
62 SET_USER_CONTEXT_TO_REQUESTOR = true
63 endif
64 endif
65
|
66 kumpf 1.1 ifeq ($(MANAGEDSYSTEM_NS_SUPPORTED),true)
67 repository:
|
68 kumpf 1.12 @ $(ECHO) +++++ Loading CIM_Schema$(CIM_SCHEMA_VER) into $(MANAGEDSYSTEMNS) namespace ...
|
69 carson.hovey 1.20 @ $(CIMMOFCLI) "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(CIM_SCHEMA_DIR)" "-n$(MANAGEDSYSTEMNS)" $(ALLOW_EXPERIMENTAL) "$(CIM_SCHEMA_DIR)/CIM_Schema$(CIM_SCHEMA_VER).mof"
|
70 yi.zhou 1.18 @ $(ECHO) +++++ Loading PG_Events$(PG_INTEROP_SCHEMA_VER) into $(MANAGEDSYSTEMNS) namespace ...
|
71 carson.hovey 1.19 @ $(CIMMOFCLI) "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(PG_INTEROP_MOF_PATH)" "-n$(MANAGEDSYSTEMNS)" "$(PG_INTEROP_MOF_PATH)/PG_Events$(PG_INTEROP_SCHEMA_VER).mof"
|
72 kumpf 1.12 @ $(ECHO) +++++ Loading PG_ManagedSystemSchema$(PG_SCHEMA_VER) into $(MANAGEDSYSTEMNS) namespace ...
|
73 carson.hovey 1.19 @ $(CIMMOFCLI) "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(PG_MOF_PATH)" "-n$(MANAGEDSYSTEMNS)" "$(PG_MOF_PATH)/PG_ManagedSystemSchema$(PG_SCHEMA_VER).mof"
|
74 denise.eckstein 1.26 ifndef SET_USER_CONTEXT_TO_REQUESTOR
|
75 kumpf 1.12 @ $(ECHO) +++++ Registering Providers for PG_ManagedSystemSchema$(PG_SCHEMA_VER) ...
|
76 carson.hovey 1.19 @ $(CIMMOFCLI) "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(PG_MOF_PATH)" "-n$(INTEROPNS)" "$(PG_MOF_PATH)/PG_ManagedSystemSchema$(PG_SCHEMA_VER)R.mof"
|
77 denise.eckstein 1.25 else
78 @ $(ECHO) +++++ Registering Providers for PG_ManagedSystemSchema21R ...
79 @ $(CIMMOFCLI) "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(PG_MOF_PATH)" "-n$(INTEROPNS)" "$(PG_MOF_PATH)/PG_ManagedSystemSchema21R.mof"
80 endif
|
81 s.kodali 1.30 ifeq ($(PEGASUS_USE_RELEASE_CONFIG_OPTIONS),false)
|
82 denise.eckstein 1.13 @ $(ECHO) +++++ Loading PG_ManagedSystemTestSchema$(PG_SCHEMA_VER) into $(MANAGEDSYSTEMNS) namespace ...
|
83 carson.hovey 1.19 @ $(CIMMOFCLI) "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(PG_MOF_PATH)" "-n$(MANAGEDSYSTEMNS)" "$(PG_MOF_PATH)/PG_ManagedSystemTestSchema$(PG_SCHEMA_VER).mof"
|
84 denise.eckstein 1.13 @ $(ECHO) +++++ Registering Providers for PG_ManagedSystemTestSchema$(PG_SCHEMA_VER) ...
|
85 carson.hovey 1.19 @ $(CIMMOFCLI) "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(PG_MOF_PATH)" "-n$(INTEROPNS)" "$(PG_MOF_PATH)/PG_ManagedSystemTestSchema$(PG_SCHEMA_VER)R.mof"
|
86 denise.eckstein 1.13 endif
|
87 kumpf 1.7 ifeq ($(EXTENDED_MANAGEDSYSTEM_NS_SUPPORTED),true)
|
88 kumpf 1.12 @ $(ECHO) +++++ Loading platform specific class definitions in $(MANAGEDSYSTEMNS) namespace ...
|
89 carson.hovey 1.19 @ $(CIMMOFCLI) "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(PG_MOF_PATH)" "-n$(MANAGEDSYSTEMNS)" "$(PG_MOF_PATH)/$(FILE_PREFIX)_ManagedSystemSchema$(PG_SCHEMA_VER).mof"
|
90 kumpf 1.12 @ $(ECHO) +++++ Registering Providers for platform specific classes in $(MANAGEDSYSTEMNS) namespace ...
|
91 carson.hovey 1.19 @ $(CIMMOFCLI) "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(PG_MOF_PATH)" "-n$(INTEROPNS)" "$(PG_MOF_PATH)/$(FILE_PREFIX)_ManagedSystemSchema$(PG_SCHEMA_VER)R.mof"
|
92 kumpf 1.4 endif
|
93 tony 1.10 ifeq ($(PEGASUS_ENABLE_SLP),true)
|
94 kumpf 1.22 @ $(ECHO) +++++ Registering the SLPProvider in $(MANAGEDSYSTEMNS) namespace ...
95 @ $(CIMMOFCLI) "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(PG_MOF_PATH)" "-n$(INTEROPNS)" "$(PG_MOF_PATH)/PG_SLPProvider$(PG_SCHEMA_VER)R.mof"
|
96 tony 1.10 endif
|
97 kumpf 1.12
|
98 kumpf 1.2 repositoryServer:
|
99 kumpf 1.12 @ $(ECHO) +++++ Loading CIM_Schema$(CIM_SCHEMA_VER) into $(MANAGEDSYSTEMNS) namespace ...
|
100 carson.hovey 1.20 @ cimmof "-I$(CIM_SCHEMA_DIR)" "-n$(MANAGEDSYSTEMNS)" $(ALLOW_EXPERIMENTAL) "$(CIM_SCHEMA_DIR)/CIM_Schema$(CIM_SCHEMA_VER).mof"
|
101 yi.zhou 1.18 @ $(ECHO) +++++ Loading PG_Events$(PG_INTEROP_SCHEMA_VER) into $(MANAGEDSYSTEMNS) namespace ...
|
102 carson.hovey 1.19 @ cimmof "-I$(PG_INTEROP_MOF_PATH)" "-n$(MANAGEDSYSTEMNS)" "$(PG_INTEROP_MOF_PATH)/PG_Events$(PG_INTEROP_SCHEMA_VER).mof"
|
103 kumpf 1.12 @ $(ECHO) +++++ Loading PG_ManagedSystemSchema$(PG_SCHEMA_VER) into $(MANAGEDSYSTEMNS) namespace ...
|
104 carson.hovey 1.19 @ cimmof "-I$(PG_MOF_PATH)" "-n$(MANAGEDSYSTEMNS)" "$(PG_MOF_PATH)/PG_ManagedSystemSchema$(PG_SCHEMA_VER).mof"
|
105 kumpf 1.12 @ $(ECHO) +++++ Registering Providers for PG_ManagedSystemSchema$(PG_SCHEMA_VER) ...
|
106 carson.hovey 1.19 @ cimmof "-I$(PG_MOF_PATH)" "-n$(INTEROPNS)" "$(PG_MOF_PATH)/PG_ManagedSystemSchema$(PG_SCHEMA_VER)R.mof"
|
107 s.kodali 1.30 ifeq ($(PEGASUS_USE_RELEASE_CONFIG_OPTIONS),false)
|
108 denise.eckstein 1.13 @ $(ECHO) +++++ Loading PG_ManagedSystemTestSchema$(PG_SCHEMA_VER) into $(MANAGEDSYSTEMNS) namespace ...
|
109 carson.hovey 1.19 @ cimmof "-I$(PG_MOF_PATH)" "-n$(MANAGEDSYSTEMNS)" "$(PG_MOF_PATH)/PG_ManagedSystemTestSchema$(PG_SCHEMA_VER).mof"
|
110 denise.eckstein 1.13 @ $(ECHO) +++++ Registering Providers for PG_ManagedSystemTestSchema$(PG_SCHEMA_VER) ...
|
111 carson.hovey 1.19 @ cimmof "-I$(PG_MOF_PATH)" "-n$(INTEROPNS)" "$(PG_MOF_PATH)/PG_ManagedSystemTestSchema$(PG_SCHEMA_VER)R.mof"
|
112 denise.eckstein 1.13 endif
|
113 kumpf 1.7 ifeq ($(EXTENDED_MANAGEDSYSTEM_NS_SUPPORTED),true)
|
114 kumpf 1.12 @ $(ECHO) +++++ Loading platform specific class definitions in $(MANAGEDSYSTEMNS) namespace ...
|
115 carson.hovey 1.19 @ cimmof "-I$(PG_MOF_PATH)" "-n$(MANAGEDSYSTEMNS)" "$(PG_MOF_PATH)/$(FILE_PREFIX)_ManagedSystemSchema$(PG_SCHEMA_VER).mof"
|
116 kumpf 1.12 @ $(ECHO) +++++ Registering Providers for platform specific classes in $(MANAGEDSYSTEMNS) namespace ...
|
117 carson.hovey 1.19 @ cimmof "-I$(PG_MOF_PATH)" "-n$(INTEROPNS)" "$(PG_MOF_PATH)/$(FILE_PREFIX)_ManagedSystemSchema$(PG_SCHEMA_VER)R.mof"
|
118 kumpf 1.7 endif
|
119 tony 1.10 ifeq ($(PEGASUS_ENABLE_SLP),true)
|
120 kumpf 1.22 @ $(ECHO) +++++ Registering the SLPProvider in $(MANAGEDSYSTEMNS) namespace ...
121 @ cimmof "-I$(PG_MOF_PATH)" "-n$(INTEROPNS)" "$(PG_MOF_PATH)/PG_SLPProvider$(PG_SCHEMA_VER)R.mof"
|
122 tony 1.10 endif
|
123 kumpf 1.1 else
124 repository:
|
125 kumpf 1.12 @ $(ECHO) +++++ No Managed System Namespace defined for this platform ++++
|
126 kumpf 1.24 endif
127
|
128 kumpf 1.1
129 clean:
130
131 depend:
132
133 sub:
134
135 misc:
136
137 tests:
138
139 poststarttests:
140
141 general:
|