os-cmpi-xen

view Makefile.am @ 121:4868ace2726b

Add initial consistence checks in test suite for Xen_MemoryPool, Xen_ProcessorPool and Xen_VirtualSystemManagementService.

Signed-off-by: Luke Szymanski <Lukasz.Szymanski@Unisys.com>
author Jim Fehlig <jfehlig@novell.com>
date Fri Jun 08 10:22:05 2007 -0600 (2007-06-08)
parents 060610260121
children be22f410b2a3
line source
1 # =============================================================================
2 # (C) Copyright IBM Corp. 2006
3 #
4 # This library is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU Lesser General Public
6 # License as published by the Free Software Foundation; either
7 # version 2.1 of the License, or (at your option) any later version.
8 #
9 # This library is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 # Lesser General Public License for more details.
13 #
14 # You should have received a copy of the GNU Lesser General Public
15 # License along with this library; if not, write to the Free Software
16 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 # =============================================================================
18 # Author: Dr. Gareth S. Bestor <bestor@us.ibm.com>
19 # Contributors: Tokunbo Adeshiyan <tokunbo@us.ibm.com>
20 # Jim Fehlig <jfehlig@novell.com>
21 # Rajagopalan Subrahmanian <raj.subrahmanian@unisys.com>
22 # Description:
23 # Automake input file for the CMPI Xen CIM provider.
24 # =============================================================================
26 AUTOMAKE_OPTIONS=dist-bzip2
28 # Start with an empty extra distribution file list
29 EXTRA_DIST=
31 # Add the RPM spec file to the distribution file list
32 EXTRA_DIST+=$(PACKAGE).spec
34 # Remove hg directories when building a distribution package
35 dist-hook:
36 test -d "$(distdir)" && (find $(distdir) -type d -name .hg | xargs -i rm -rf {})
39 # -----------------------------------------------------------------------------
40 # Automake instructions for documentation
41 # -----------------------------------------------------------------------------
43 # MAKE CHANGES HERE TO INSTALL THE DOCUMENTATION FILES FOR YOUR PROVIDER
44 # docdir specifies where the documentation will be installed
45 docdir=$(datadir)/doc/packages/$(PACKAGE)
47 # Add standard package doc files
48 doc_DATA=README AUTHORS COPYING
50 # ADD ANY EXTRA DOCUMENTATION FILES HERE
51 #doc_DATA+=README.RPM README.DEBUG
52 #EXTRA_DIST+=doc README.RPM README.DEBUG
55 # -----------------------------------------------------------------------------
56 # Automake instructions for source
57 # -----------------------------------------------------------------------------
58 # MAKE CHANGES HERE TO COMPILE ALL THE SOURCE FILES FOR YOUR PROVIDER
60 # providerdir specifies where provider libraries will be installed.
61 # @PROVIDERDIR@ is set by the configure script.
62 providerdir=@PROVIDERDIR@
65 SUBDIRS = src
67 # -----------------------------------------------------------------------------
68 # Automake instructions for schema
69 # -----------------------------------------------------------------------------
71 # LIST ALL THE CLASS DEFINITION FILES (MOFS) HERE
72 XEN_MOFS = \
73 schema/Xen_ComputerSystem.mof \
74 schema/Xen_HostedComputerSystem.mof \
75 schema/Xen_VirtualSystemManagementService.mof \
76 schema/Xen_HostedVirtualSystemManagementService.mof \
77 schema/Xen_Memory.mof \
78 schema/Xen_HostedMemory.mof \
79 schema/Xen_ComputerSystemMemory.mof \
80 schema/Xen_Processor.mof \
81 schema/Xen_ComputerSystemProcessor.mof \
82 schema/Xen_Disk.mof \
83 schema/Xen_HostedDisk.mof \
84 schema/Xen_ComputerSystemDisk.mof \
85 schema/Xen_NetworkPort.mof \
86 schema/Xen_ComputerSystemNetworkPort.mof \
87 schema/Xen_Console.mof \
88 schema/Xen_ComputerSystemConsole.mof \
89 schema/Xen_ComputerSystemIndication.mof \
90 schema/Xen_VirtualizationCapabilities.mof \
91 schema/Xen_HasVirtualizationCapabilities.mof \
92 schema/Xen_ComputerSystemSettingData.mof \
93 schema/Xen_CSElementSettingData.mof \
94 schema/Xen_CSSettingsDefineState.mof \
95 schema/Xen_ProcessorSettingData.mof \
96 schema/Xen_ProcessorSettingsDefineState.mof \
97 schema/Xen_ProcessorElementSettingData.mof \
98 schema/Xen_MemorySettingData.mof \
99 schema/Xen_MemorySettingsDefineState.mof \
100 schema/Xen_MemoryElementSettingData.mof \
101 schema/Xen_NetworkPortSettingData.mof \
102 schema/Xen_NPSettingsDefineState.mof \
103 schema/Xen_NetworkPortElementSettingData.mof \
104 schema/Xen_DiskSettingData.mof \
105 schema/Xen_DiskSettingsDefineState.mof \
106 schema/Xen_DiskElementSettingData.mof \
107 schema/Xen_ConsoleSettingData.mof \
108 schema/Xen_MemoryPool.mof \
109 schema/Xen_HostedMemoryPool.mof \
110 schema/Xen_MemoryPoolComponent.mof \
111 schema/Xen_ProcessorPool.mof \
112 schema/Xen_HostedProcessorPool.mof \
113 schema/Xen_ProcessorPoolComponent.mof \
114 schema/Xen_CSSettingDataComponent.mof \
115 schema/Xen_ProcessorCapabilitiesSettingData.mof \
116 schema/Xen_MemoryCapabilitiesSettingData.mof \
117 schema/Xen_ProcessorAllocatedFromPool.mof \
118 schema/Xen_ProcessorSettingAllocationFromPool.mof \
119 schema/Xen_MemoryAllocatedFromPool.mof \
120 schema/Xen_MemorySettingAllocationFromPool.mof \
121 schema/Xen_RegisteredSVProfile.mof \
122 schema/Xen_ElementConformsToSVProfile.mof \
123 schema/Xen_RegisteredVSProfile.mof \
124 schema/Xen_ElementConformsToVSProfile.mof \
125 schema/Xen_ComputerSystemCapabilities.mof \
126 schema/Xen_VirtualSystemManagementCapabilities.mof \
127 schema/Xen_CSElementCapabilities.mof \
128 schema/Xen_VSMSElementCapabilities.mof
129 # schema/Xen_HostedProcessor.mof
130 # schema/Xen_HostedNetworkPort.mof
132 # LIST ALL THE CLASS CIMOM REGISTRATION FILES HERE
133 XEN_REGS = \
134 schema/Xen_ComputerSystem.registration \
135 schema/Xen_HostedComputerSystem.registration \
136 schema/Xen_VirtualSystemManagementService.registration \
137 schema/Xen_HostedVirtualSystemManagementService.registration \
138 schema/Xen_Memory.registration \
139 schema/Xen_HostedMemory.registration \
140 schema/Xen_ComputerSystemMemory.registration \
141 schema/Xen_Processor.registration \
142 schema/Xen_ComputerSystemProcessor.registration \
143 schema/Xen_Disk.registration \
144 schema/Xen_HostedDisk.registration \
145 schema/Xen_ComputerSystemDisk.registration \
146 schema/Xen_NetworkPort.registration \
147 schema/Xen_ComputerSystemNetworkPort.registration \
148 schema/Xen_Console.registration \
149 schema/Xen_ComputerSystemConsole.registration \
150 schema/Xen_ComputerSystemIndication.registration \
151 schema/Xen_VirtualizationCapabilities.registration \
152 schema/Xen_HasVirtualizationCapabilities.registration \
153 schema/Xen_ComputerSystemSettingData.registration \
154 schema/Xen_CSElementSettingData.registration \
155 schema/Xen_CSSettingsDefineState.registration \
156 schema/Xen_ProcessorSettingData.registration \
157 schema/Xen_ProcessorSettingsDefineState.registration \
158 schema/Xen_ProcessorElementSettingData.registration \
159 schema/Xen_MemorySettingData.registration \
160 schema/Xen_MemorySettingsDefineState.registration \
161 schema/Xen_MemoryElementSettingData.registration \
162 schema/Xen_NetworkPortSettingData.registration \
163 schema/Xen_NPSettingsDefineState.registration \
164 schema/Xen_NetworkPortElementSettingData.registration \
165 schema/Xen_DiskSettingData.registration \
166 schema/Xen_DiskSettingsDefineState.registration \
167 schema/Xen_DiskElementSettingData.registration \
168 schema/Xen_ConsoleSettingData.registration \
169 schema/Xen_MemoryPool.registration \
170 schema/Xen_HostedMemoryPool.registration \
171 schema/Xen_MemoryPoolComponent.registration \
172 schema/Xen_ProcessorPool.registration \
173 schema/Xen_HostedProcessorPool.registration \
174 schema/Xen_ProcessorPoolComponent.registration \
175 schema/Xen_CSSettingDataComponent.registration \
176 schema/Xen_ProcessorCapabilitiesSettingData.registration \
177 schema/Xen_MemoryCapabilitiesSettingData.registration \
178 schema/Xen_ProcessorAllocatedFromPool.registration \
179 schema/Xen_ProcessorSettingAllocationFromPool.registration \
180 schema/Xen_MemoryAllocatedFromPool.registration \
181 schema/Xen_MemorySettingAllocationFromPool.registration \
182 schema/Xen_RegisteredSVProfile.registration \
183 schema/Xen_ElementConformsToSVProfile.registration \
184 schema/Xen_RegisteredVSProfile.registration \
185 schema/Xen_ElementConformsToVSProfile.registration \
186 schema/Xen_ComputerSystemCapabilities.registration \
187 schema/Xen_VirtualSystemManagementCapabilities.registration \
188 schema/Xen_CSElementCapabilities.registration \
189 schema/Xen_VSMSElementCapabilities.registration
190 # schema/Xen_HostedProcessor.registration
191 # schema/Xen_HostedNetworkPort.registration
194 # Until the SPVC schema is public, we keep associated mof files in
195 # the project.
196 SPVC_MOFS = \
197 schema/dmtf/CIM_AffectedJobElement.mof \
198 schema/dmtf/CIM_ResourcePool.mof \
199 schema/dmtf/CIM_ElementAllocatedFromPool.mof \
200 schema/dmtf/CIM_AllocationCapabilities.mof \
201 schema/dmtf/CIM_HostedResourcePool.mof \
202 schema/dmtf/CIM_ResourceAllocationSettingData.mof \
203 schema/dmtf/CIM_ResourcePoolConfigurationService.mof \
204 schema/dmtf/CIM_VirtualSystemSettingData.mof \
205 schema/dmtf/CIM_VirtualSystemManagementService.mof \
206 schema/dmtf/CIM_AggregatedVirtualSystemManagementService.mof \
207 schema/dmtf/CIM_ResourcePoolConfigurationCapabilities.mof \
208 schema/dmtf/CIM_VirtualSystemManagementCapabilities.mof \
209 schema/dmtf/CIM_ResourceAllocationFromPool.mof \
210 schema/dmtf/CIM_SettingsDefineState.mof
212 # Until the SPVC schema is public, we keep associated registration
213 # files in the project.
214 SPVC_REGS = \
215 schema/dmtf/CIM_AffectedJobElement.registration \
216 schema/dmtf/CIM_AggregatedVirtualSystemManagementService.registration \
217 schema/dmtf/CIM_ResourcePool.registration \
218 schema/dmtf/CIM_ElementAllocatedFromPool.registration \
219 schema/dmtf/CIM_AllocationCapabilities.registration \
220 schema/dmtf/CIM_HostedResourcePool.registration \
221 schema/dmtf/CIM_ResourceAllocationSettingData.registration \
222 schema/dmtf/CIM_ResourcePoolConfigurationService.registration \
223 schema/dmtf/CIM_VirtualSystemSettingData.registration \
224 schema/dmtf/CIM_VirtualSystemManagementService.registration \
225 schema/dmtf/CIM_ResourcePoolConfigurationCapabilities.registration \
226 schema/dmtf/CIM_VirtualSystemManagementCapabilities.registration \
227 schema/dmtf/CIM_ResourceAllocationFromPool.registration \
228 schema/dmtf/CIM_SettingsDefineState.registration
230 # Some classes must reside in multiple namespaces. We list these here.
231 INTEROP_MOFS = \
232 schema/Xen_ComputerSystem.mof \
233 schema/Xen_RegisteredSVProfile.mof \
234 schema/Xen_RegisteredVSProfile.mof \
235 schema/Xen_ElementConformsToSVProfile.mof \
236 schema/Xen_ElementConformsToVSProfile.mof
239 HOST_NS_MOFS = \
240 schema/dmtf/CIM_VirtualSystemManagementService.mof \
241 schema/Xen_VirtualSystemManagementService.mof \
242 schema/Xen_HostedVirtualSystemManagementService.mof \
243 schema/dmtf/CIM_ResourcePool.mof \
244 schema/dmtf/CIM_HostedResourcePool.mof \
245 schema/Xen_MemoryPool.mof \
246 schema/Xen_MemoryPoolComponent.mof \
247 schema/Xen_HostedMemoryPool.mof \
248 schema/Xen_ProcessorPool.mof \
249 schema/Xen_ProcessorPoolComponent.mof \
250 schema/Xen_HostedProcessorPool.mof \
251 schema/Xen_ComputerSystem.mof \
252 schema/Xen_HostedComputerSystem.mof \
253 schema/Xen_RegisteredSVProfile.mof \
254 schema/Xen_ElementConformsToSVProfile.mof
257 MOFS = $(SPVC_MOFS) $(XEN_MOFS)
258 REGS = $(XEN_REGS)
260 # Un/Register the providers and class definitions from/to the current CIMOM.
261 # @CIMSERVER@ is set by the configure script
262 postinstall:
263 sh provider-register.sh -t @CIMSERVER@ -r $(REGS) -m $(MOFS)
264 sh provider-register.sh -t @CIMSERVER@ -n Interop -m $(INTEROP_MOFS) \
265 -r schema/Xen_RegisteredSVProfile.registration
266 sh provider-register.sh -t @CIMSERVER@ -n @HOST_INSTRUMENTATION_NS@ \
267 -m $(HOST_NS_MOFS) -r schema/Xen_ComputerSystem.registration
269 preuninstall:
270 sh provider-register.sh -d -t @CIMSERVER@ -r $(REGS) -m $(MOFS)
272 # Add the schema files to the distribution file list
273 pkgdata_DATA=$(MOFS) $(REGS)
274 pkgdata_SCRIPTS=provider-register.sh
275 EXTRA_DIST+=schema $(pkgdata_DATA) $(pkgdata_SCRIPTS)
277 # -----------------------------------------------------------------------------
278 # Automake instructions to generate source tarball for cmpi-xen
279 # -----------------------------------------------------------------------------
281 #dist:
282 # sh make-srcpkg.sh