os-cmpi-xen

view Makefile.am @ 143:fc498265d293

Fixed warning (and bug) in Xen_DiskSettingData.

Signed-off-by: Jim Fehlig <jfehlig@novell.com>
author Jim Fehlig <jfehlig@novell.com>
date Thu Aug 16 17:49:08 2007 -0600 (2007-08-16)
parents be22f410b2a3
children
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 # Luke Szymanski <Lukasz.Szymanski@unisys.com>
23 # Description:
24 # Automake input file for the CMPI Xen CIM provider.
25 # =============================================================================
27 AUTOMAKE_OPTIONS=dist-bzip2
29 # Start with an empty extra distribution file list
30 EXTRA_DIST=
32 # Add the RPM spec file to the distribution file list
33 EXTRA_DIST+=$(PACKAGE).spec
35 # Remove hg directories when building a distribution package
36 dist-hook:
37 test -d "$(distdir)" && (find $(distdir) -type d -name .hg | xargs -i rm -rf {})
40 # -----------------------------------------------------------------------------
41 # Automake instructions for documentation
42 # -----------------------------------------------------------------------------
44 # MAKE CHANGES HERE TO INSTALL THE DOCUMENTATION FILES FOR YOUR PROVIDER
45 # docdir specifies where the documentation will be installed
46 docdir=$(datadir)/doc/packages/$(PACKAGE)
48 # Add standard package doc files
49 doc_DATA=README AUTHORS COPYING
51 # ADD ANY EXTRA DOCUMENTATION FILES HERE
52 #doc_DATA+=README.RPM README.DEBUG
53 #EXTRA_DIST+=doc README.RPM README.DEBUG
56 # -----------------------------------------------------------------------------
57 # Automake instructions for source
58 # -----------------------------------------------------------------------------
59 # MAKE CHANGES HERE TO COMPILE ALL THE SOURCE FILES FOR YOUR PROVIDER
61 # providerdir specifies where provider libraries will be installed.
62 # @PROVIDERDIR@ is set by the configure script.
63 providerdir=@PROVIDERDIR@
66 SUBDIRS = src
68 # -----------------------------------------------------------------------------
69 # Automake instructions for schema
70 # -----------------------------------------------------------------------------
72 # LIST ALL THE CLASS DEFINITION FILES (MOFS) HERE
73 XEN_MOFS = \
74 schema/Xen_ComputerSystem.mof \
75 schema/Xen_HostedComputerSystem.mof \
76 schema/Xen_VirtualSystemManagementService.mof \
77 schema/Xen_HostedVirtualSystemManagementService.mof \
78 schema/Xen_Memory.mof \
79 schema/Xen_HostedMemory.mof \
80 schema/Xen_ComputerSystemMemory.mof \
81 schema/Xen_Processor.mof \
82 schema/Xen_ComputerSystemProcessor.mof \
83 schema/Xen_Disk.mof \
84 schema/Xen_HostedDisk.mof \
85 schema/Xen_ComputerSystemDisk.mof \
86 schema/Xen_NetworkPort.mof \
87 schema/Xen_ComputerSystemNetworkPort.mof \
88 schema/Xen_Console.mof \
89 schema/Xen_ComputerSystemConsole.mof \
90 schema/Xen_ComputerSystemIndication.mof \
91 schema/Xen_VirtualizationCapabilities.mof \
92 schema/Xen_HasVirtualizationCapabilities.mof \
93 schema/Xen_ComputerSystemSettingData.mof \
94 schema/Xen_CSElementSettingData.mof \
95 schema/Xen_CSSettingsDefineState.mof \
96 schema/Xen_ProcessorSettingData.mof \
97 schema/Xen_ProcessorSettingsDefineState.mof \
98 schema/Xen_ProcessorElementSettingData.mof \
99 schema/Xen_MemorySettingData.mof \
100 schema/Xen_MemorySettingsDefineState.mof \
101 schema/Xen_MemoryElementSettingData.mof \
102 schema/Xen_NetworkPortSettingData.mof \
103 schema/Xen_NPSettingsDefineState.mof \
104 schema/Xen_NetworkPortElementSettingData.mof \
105 schema/Xen_DiskSettingData.mof \
106 schema/Xen_DiskSettingsDefineState.mof \
107 schema/Xen_DiskElementSettingData.mof \
108 schema/Xen_ConsoleSettingData.mof \
109 schema/Xen_MemoryPool.mof \
110 schema/Xen_HostedMemoryPool.mof \
111 schema/Xen_MemoryPoolComponent.mof \
112 schema/Xen_ProcessorPool.mof \
113 schema/Xen_HostedProcessorPool.mof \
114 schema/Xen_ProcessorPoolComponent.mof \
115 schema/Xen_CSSettingDataComponent.mof \
116 schema/Xen_ProcessorCapabilitiesSettingData.mof \
117 schema/Xen_MemoryCapabilitiesSettingData.mof \
118 schema/Xen_ProcessorAllocatedFromPool.mof \
119 schema/Xen_ProcessorSettingAllocationFromPool.mof \
120 schema/Xen_MemoryAllocatedFromPool.mof \
121 schema/Xen_MemorySettingAllocationFromPool.mof \
122 schema/Xen_RegisteredSVProfile.mof \
123 schema/Xen_ElementConformsToSVProfile.mof \
124 schema/Xen_RegisteredVSProfile.mof \
125 schema/Xen_ElementConformsToVSProfile.mof \
126 schema/Xen_ComputerSystemCapabilities.mof \
127 schema/Xen_VirtualSystemManagementCapabilities.mof \
128 schema/Xen_CSElementCapabilities.mof \
129 schema/Xen_VSMSElementCapabilities.mof
130 # schema/Xen_HostedProcessor.mof
131 # schema/Xen_HostedNetworkPort.mof
133 # LIST ALL THE CLASS CIMOM REGISTRATION FILES HERE
134 XEN_REGS = \
135 schema/Xen_ComputerSystem.registration \
136 schema/Xen_HostedComputerSystem.registration \
137 schema/Xen_VirtualSystemManagementService.registration \
138 schema/Xen_HostedVirtualSystemManagementService.registration \
139 schema/Xen_Memory.registration \
140 schema/Xen_HostedMemory.registration \
141 schema/Xen_ComputerSystemMemory.registration \
142 schema/Xen_Processor.registration \
143 schema/Xen_ComputerSystemProcessor.registration \
144 schema/Xen_Disk.registration \
145 schema/Xen_HostedDisk.registration \
146 schema/Xen_ComputerSystemDisk.registration \
147 schema/Xen_NetworkPort.registration \
148 schema/Xen_ComputerSystemNetworkPort.registration \
149 schema/Xen_Console.registration \
150 schema/Xen_ComputerSystemConsole.registration \
151 schema/Xen_ComputerSystemIndication.registration \
152 schema/Xen_VirtualizationCapabilities.registration \
153 schema/Xen_HasVirtualizationCapabilities.registration \
154 schema/Xen_ComputerSystemSettingData.registration \
155 schema/Xen_CSElementSettingData.registration \
156 schema/Xen_CSSettingsDefineState.registration \
157 schema/Xen_ProcessorSettingData.registration \
158 schema/Xen_ProcessorSettingsDefineState.registration \
159 schema/Xen_ProcessorElementSettingData.registration \
160 schema/Xen_MemorySettingData.registration \
161 schema/Xen_MemorySettingsDefineState.registration \
162 schema/Xen_MemoryElementSettingData.registration \
163 schema/Xen_NetworkPortSettingData.registration \
164 schema/Xen_NPSettingsDefineState.registration \
165 schema/Xen_NetworkPortElementSettingData.registration \
166 schema/Xen_DiskSettingData.registration \
167 schema/Xen_DiskSettingsDefineState.registration \
168 schema/Xen_DiskElementSettingData.registration \
169 schema/Xen_ConsoleSettingData.registration \
170 schema/Xen_MemoryPool.registration \
171 schema/Xen_HostedMemoryPool.registration \
172 schema/Xen_MemoryPoolComponent.registration \
173 schema/Xen_ProcessorPool.registration \
174 schema/Xen_HostedProcessorPool.registration \
175 schema/Xen_ProcessorPoolComponent.registration \
176 schema/Xen_CSSettingDataComponent.registration \
177 schema/Xen_ProcessorCapabilitiesSettingData.registration \
178 schema/Xen_MemoryCapabilitiesSettingData.registration \
179 schema/Xen_ProcessorAllocatedFromPool.registration \
180 schema/Xen_ProcessorSettingAllocationFromPool.registration \
181 schema/Xen_MemoryAllocatedFromPool.registration \
182 schema/Xen_MemorySettingAllocationFromPool.registration \
183 schema/Xen_RegisteredSVProfile.registration \
184 schema/Xen_ElementConformsToSVProfile.registration \
185 schema/Xen_RegisteredVSProfile.registration \
186 schema/Xen_ElementConformsToVSProfile.registration \
187 schema/Xen_ComputerSystemCapabilities.registration \
188 schema/Xen_VirtualSystemManagementCapabilities.registration \
189 schema/Xen_CSElementCapabilities.registration \
190 schema/Xen_VSMSElementCapabilities.registration
191 # schema/Xen_HostedProcessor.registration
192 # schema/Xen_HostedNetworkPort.registration
195 # Until the SPVC schema is public, we keep associated mof files in
196 # the project.
197 SPVC_MOFS = \
198 schema/dmtf/CIM_AffectedJobElement.mof \
199 schema/dmtf/CIM_ResourcePool.mof \
200 schema/dmtf/CIM_ElementAllocatedFromPool.mof \
201 schema/dmtf/CIM_AllocationCapabilities.mof \
202 schema/dmtf/CIM_HostedResourcePool.mof \
203 schema/dmtf/CIM_ResourceAllocationSettingData.mof \
204 schema/dmtf/CIM_ResourcePoolConfigurationService.mof \
205 schema/dmtf/CIM_VirtualSystemSettingData.mof \
206 schema/dmtf/CIM_VirtualSystemManagementService.mof \
207 schema/dmtf/CIM_AggregatedVirtualSystemManagementService.mof \
208 schema/dmtf/CIM_ResourcePoolConfigurationCapabilities.mof \
209 schema/dmtf/CIM_VirtualSystemManagementCapabilities.mof \
210 schema/dmtf/CIM_ResourceAllocationFromPool.mof \
211 schema/dmtf/CIM_SettingsDefineState.mof
213 # Until the SPVC schema is public, we keep associated registration
214 # files in the project.
215 SPVC_REGS = \
216 schema/dmtf/CIM_AffectedJobElement.registration \
217 schema/dmtf/CIM_AggregatedVirtualSystemManagementService.registration \
218 schema/dmtf/CIM_ResourcePool.registration \
219 schema/dmtf/CIM_ElementAllocatedFromPool.registration \
220 schema/dmtf/CIM_AllocationCapabilities.registration \
221 schema/dmtf/CIM_HostedResourcePool.registration \
222 schema/dmtf/CIM_ResourceAllocationSettingData.registration \
223 schema/dmtf/CIM_ResourcePoolConfigurationService.registration \
224 schema/dmtf/CIM_VirtualSystemSettingData.registration \
225 schema/dmtf/CIM_VirtualSystemManagementService.registration \
226 schema/dmtf/CIM_ResourcePoolConfigurationCapabilities.registration \
227 schema/dmtf/CIM_VirtualSystemManagementCapabilities.registration \
228 schema/dmtf/CIM_ResourceAllocationFromPool.registration \
229 schema/dmtf/CIM_SettingsDefineState.registration
231 # Some classes must reside in multiple namespaces. We list these here.
232 INTEROP_MOFS = \
233 schema/Xen_ComputerSystem.mof \
234 schema/Xen_RegisteredSVProfile.mof \
235 schema/Xen_RegisteredVSProfile.mof \
236 schema/Xen_ElementConformsToSVProfile.mof \
237 schema/Xen_ElementConformsToVSProfile.mof
240 HOST_NS_MOFS = \
241 schema/dmtf/CIM_VirtualSystemManagementService.mof \
242 schema/Xen_VirtualSystemManagementService.mof \
243 schema/Xen_HostedVirtualSystemManagementService.mof \
244 schema/dmtf/CIM_ResourcePool.mof \
245 schema/dmtf/CIM_HostedResourcePool.mof \
246 schema/Xen_MemoryPool.mof \
247 schema/Xen_MemoryPoolComponent.mof \
248 schema/Xen_HostedMemoryPool.mof \
249 schema/Xen_ProcessorPool.mof \
250 schema/Xen_ProcessorPoolComponent.mof \
251 schema/Xen_HostedProcessorPool.mof \
252 schema/Xen_ComputerSystem.mof \
253 schema/Xen_HostedComputerSystem.mof \
254 schema/Xen_RegisteredSVProfile.mof \
255 schema/Xen_ElementConformsToSVProfile.mof
258 MOFS = $(SPVC_MOFS) $(XEN_MOFS)
259 REGS = $(XEN_REGS)
261 # Un/Register the providers and class definitions from/to the current CIMOM.
262 # @CIMSERVER@ is set by the configure script
263 postinstall:
264 sh provider-register.sh -t @CIMSERVER@ -r $(REGS) -m $(MOFS)
265 sh provider-register.sh -t @CIMSERVER@ -n Interop -m $(INTEROP_MOFS) \
266 -r schema/Xen_RegisteredSVProfile.registration
267 sh provider-register.sh -t @CIMSERVER@ -n @HOST_INSTRUMENTATION_NS@ \
268 -m $(HOST_NS_MOFS) -r schema/Xen_ComputerSystem.registration
270 preuninstall:
271 sh provider-register.sh -d -t @CIMSERVER@ -r $(REGS) -m $(MOFS)
273 runtest:
274 cd test && ./setup-test.sh && ./run-test.sh @XMTESTDIR@
276 # Add the schema files to the distribution file list
277 pkgdata_DATA=$(MOFS) $(REGS)
278 pkgdata_SCRIPTS=provider-register.sh
279 EXTRA_DIST+=schema $(pkgdata_DATA) $(pkgdata_SCRIPTS)
281 # -----------------------------------------------------------------------------
282 # Automake instructions to generate source tarball for cmpi-xen
283 # -----------------------------------------------------------------------------
285 #dist:
286 # sh make-srcpkg.sh