1 karl 1.36 #//%2006////////////////////////////////////////////////////////////////////////
|
2 martin 1.31 #//
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.36 #// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
12 #// EMC Corporation; Symantec Corporation; The Open Group.
|
13 martin 1.31 #//
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 karl 1.6 # Pegasus top level make file
|
32 jim.wunderlich 1.34 # see the usage rule for options
33
|
34 mike 1.1 ROOT = .
35
|
36 konrad.r 1.24 include $(ROOT)/env_var.status
|
37 mike 1.1 include $(ROOT)/mak/config.mak
38
|
39 karl 1.11 # This is a recurse make file
|
40 karl 1.6 # Defines subdirectorys to go to recursively
41
|
42 mike 1.3 # DIRS = src cgi
|
43 mike 1.43.2.1
44 ifeq ($(OS_TYPE),vxworks)
|
45 mike 1.43.2.2 DIRS = \
46 src/Pegasus/Common \
47 src/Pegasus/Common/tests \
48 src/Pegasus/Config \
49 src/Pegasus/Query/QueryCommon \
50 src/Pegasus/WQL \
51 src/Pegasus/CQL \
52 src/Pegasus/Query/QueryExpression \
53 src/Pegasus/Security/UserManager \
54 src/Pegasus/Client \
55 src/Service \
56 src/Pegasus/Provider \
57 src/Pegasus/Repository \
58 src/Pegasus/Repository/tests \
59 src/Pegasus/Server/ProviderRegistrationManager \
60 src/Pegasus/ProviderManager2 \
61 src/Pegasus/ProviderManager2/Default \
62 src/Pegasus/ExportServer \
63 src/Pegasus/ProviderManagerService \
64 src/Pegasus/Security/Authentication \
65 src/Pegasus/HandlerService \
66 mike 1.43.2.2 src/Pegasus/IndicationService \
67 src/Pegasus/ControlProviders/InteropProvider \
68 src/Pegasus/ControlProviders/Statistic \
69 src/Pegasus/ControlProviders/QueryCapabilitiesProvider \
70 src/Pegasus/ControlProviders/ProviderRegistrationProvider \
71 src/Pegasus/ControlProviders/NamespaceProvider \
72 src/Pegasus/ControlProviders/ConfigSettingProvider \
73 src/Pegasus/ControlProviders/UserAuthProvider \
74 src/Pegasus/Server \
|
75 mike 1.43.2.5 src/Server
|
76 mike 1.43.2.1 else
77 DIRS = src test Schemas
78 endif
|
79 mike 1.1
|
80 karl 1.11 # Define the inclusion of the recurse.mak file to execute the next
81 # level of makefiles defined by the DIRS variable
|
82 karl 1.6
|
83 mike 1.43.2.1 ifeq ($(OS_TYPE),vxworks)
84 defaultrule: all
85 else
86 defaultrule: all setupdevserver
87 endif
|
88 jim.wunderlich 1.34
|
89 mike 1.1 include $(ROOT)/mak/recurse.mak
90
|
91 jim.wunderlich 1.34 .PHONY: FORCE
|
92 jim.wunderlich 1.32
|
93 jim.wunderlich 1.34 FORCE:
|
94 jim.wunderlich 1.32
|
95 jim.wunderlich 1.34 usage: FORCE
96 $(USAGE)
97 $(USAGE)"Makefile targets:"
98 $(USAGE)
99 $(USAGE)"Recursive rules - These are the primatives that traverse the tree"
100 $(USAGE)"invoking the specified command in each subdirectory directory."
101 $(USAGE)"NOTE: all is special, it specifies no target and therefore invokes"
102 $(USAGE)"the default rule for that directory."
103 $(USAGE)"all - recursive DEFAULT rule"
104 $(USAGE)"clean - recursive clean"
105 $(USAGE)"depend - buildmu recursive depend"
106 $(USAGE)"messages - rootbundle recursive messages"
107 $(USAGE)"tests - recursive tests"
108 $(USAGE)"poststarttests - recursive poststarttests"
109 $(USAGE)
110 $(USAGE)"Combinational rules - Combine other rules to achieve results"
111 $(USAGE)"DEFAULT RULE - all, setupdevserver"
112 $(USAGE)"new - clean repositoryclean"
113 $(USAGE)"build - depend all, setupdevserver"
114 $(USAGE)"world - build unittests servertests"
115 $(USAGE)
116 jim.wunderlich 1.34 $(USAGE)"Functional rules - Other rules to achieve specified results"
|
117 jim.wunderlich 1.35 $(USAGE)"clobber -removes objects built during compile"
118 $(USAGE)" specifically the following directories are removed:"
119 $(USAGE)" $(PEGASUS_HOME)/bin"
120 $(USAGE)" $(PEGASUS_HOME)/lib"
121 $(USAGE)" $(PEGASUS_HOME)/obj"
|
122 jim.wunderlich 1.34 $(USAGE)"buildmu - builds the mu utility"
123 $(USAGE)"setupdevserver - setup the development server env"
124 $(USAGE)"cleandevserver - cleans the development server env"
|
125 karl 1.39 $(USAGE)"repository - builds the base repository. Does not remove other"
126 $(USAGE)" namespaces than the base namespaces."
|
127 jim.wunderlich 1.34 $(USAGE)"testrepository - builds items for the test suites into the repository"
128 $(USAGE)"removetestrepository- removes test items from the repository"
|
129 karl 1.39 $(USAGE)"repositoryclean - removes the complete repository"
|
130 jim.wunderlich 1.34 $(USAGE)"listplatforms - List all valid platforms"
131 $(USAGE)
132 $(USAGE)"Test rules (accessable here but implemented in TestMakefile)"
133 $(USAGE)"alltests - unittests and servertests"
134 $(USAGE)"unittests - runs the unit functional test"
135 $(USAGE)"servertests - runs basic server tests"
|
136 jim.wunderlich 1.35 $(USAGE)"perftests - runs basic server performance tests"
|
137 jim.wunderlich 1.34 $(USAGE)"standardtests - runs server extended tests"
138 $(USAGE)"testusage - TestMakefile usage"
139 $(USAGE)"testusage2 - TestMakefile usage2"
|
140 j.alex 1.37 $(USAGE)"stresstests - Runs the default stresstests"
|
141 jim.wunderlich 1.34 $(USAGE)
142 $(USAGE)"--------------------"
143 $(USAGE)"Quick start:"
144 $(USAGE)" After checkout of new tree:"
145 $(USAGE)" use \"make listplatforms\" to view a list of platforms"
146 $(USAGE)" set PEGASUS_PLATFORM=<your platofrm>"
147 $(USAGE)" set PEGASUS_ROOT=<location of your pegasus source>"
148 $(USAGE)" set PEGASUS_HOME=<build output location"
|
149 kumpf 1.42 $(USAGE)" make world"
|
150 jim.wunderlich 1.34 $(USAGE)
151 $(USAGE)" This will build everthing with a default configuration"
|
152 kumpf 1.42 $(USAGE)" and run the automated tests."
|
153 jim.wunderlich 1.34 $(USAGE)
154 $(USAGE)"--------------------"
155 $(USAGE)"Examples:"
|
156 kumpf 1.42 $(USAGE)" After \"cvs checkout\" of new tree: make world"
|
157 jim.wunderlich 1.34 $(USAGE)
158 $(USAGE)" After changes to include files: make"
159 $(USAGE)
160 $(USAGE)" After changes to the files included: make build"
161 $(USAGE)
|
162 kumpf 1.42 $(USAGE)" After \"cvs update\" or to start over: make new world"
|
163 jim.wunderlich 1.34 $(USAGE)
164
165 listplatforms: FORCE
166 $(USAGE)
167 $(USAGE)"The $(words $(VALID_PLATFORMS)) valid platforms are:"
168 $(USAGE)" $(foreach w, $(VALID_PLATFORMS), " $w ")"
169 $(USAGE)
170 $(USAGE)
171
172 #########################################################################
173 # This section defines any prerequisites that are required by the
174 # recursive rules.
175 #
176 # NOTE: You can add prerequisties for the recursive rules but you cannot
177 # add any commands to run as part of the rule. You can define them
178 # and make will quietly ignore them and they will not be run either
179 # before or after the recursive rule.
180 #
181 #
182 messages: rootbundle
|
183 karl 1.6
|
184 jim.wunderlich 1.34 depend: buildmu
|
185 kumpf 1.18
|
186 jim.wunderlich 1.34 #########################################################################
187 # This section defines combinational rules
188 #
|
189 jim.wunderlich 1.32 #-----------------------
|
190 jim.wunderlich 1.34 # build target: builds all source
|
191 jim.wunderlich 1.32 #
|
192 jim.wunderlich 1.34 build: depend all setupdevserver
|
193 jim.wunderlich 1.32
|
194 jim.wunderlich 1.34 #------------------------
195 # rebuild target is being deprecated instead use "make new build"
196 #
197 rebuild_msg: FORCE
198 @$(ECHO) "==============================================================================="
199 @$(ECHO) "Makefile: The rebuild target is being deprecated."
200 @$(ECHO) " Use \"make usage\" for a description of the usage model."
|
201 kumpf 1.42 @$(ECHO) " Consider using \"make new world\" ."
|
202 jim.wunderlich 1.34 @$(ECHO) " Invoking the old rebuild rule now."
203 @$(ECHO) "==============================================================================="
204
205 rebuild: rebuild_msg shortsleep new build s_unittests repository
|
206 jim.wunderlich 1.32
207 #-----------------------
|
208 jim.wunderlich 1.34 # new target: cleans everthing
209 #
210 # This can be combined on the command line with other rules like:
|
211 jim.wunderlich 1.32 #
|
212 jim.wunderlich 1.34 # make new build
213 # make new world
|
214 jim.wunderlich 1.32
|
215 jim.wunderlich 1.34 new: clean repositoryclean
|
216 jim.wunderlich 1.32
217 #-----------------------
|
218 jim.wunderlich 1.34 # world targets: builds everything and dependent on which target may do testing
|
219 jim.wunderlich 1.32 #
220 # Typically used after a fresh checkout from CVS
|
221 jim.wunderlich 1.34
222 world: build s_unittests servertests
223
224
225 ############################
226 #
227 # rules defined in TestMakefile that are repeated here for convenience
|
228 jim.wunderlich 1.32 #
|
229 jim.wunderlich 1.34 shortsleep: FORCE
230 @$(MAKE) -f TestMakefile shortsleep
231
232 servertests: FORCE
233 @ $(MAKE) -f TestMakefile servertests
234
|
235 jim.wunderlich 1.35 perftests: FORCE
236 @ $(MAKE) -f TestMakefile perftests
237
|
238 jim.wunderlich 1.34 s_unittests: FORCE
239 @ $(MAKE) -f TestMakefile -s unittests
240
241 unittests: FORCE
242 @ $(MAKE) -f TestMakefile unittests
243
244 standardtests: FORCE
245 @ $(MAKE) -f TestMakefile standardtests
246
247 alltests: FORCE
248 @ $(MAKE) -f TestMakefile alltests
249
250 testusage: FORCE
251 @ $(MAKE) -f TestMakefile usage
|
252 jim.wunderlich 1.32
|
253 jim.wunderlich 1.34 testusage2: FORCE
254 @ $(MAKE) -f TestMakefile usage2
|
255 mike 1.1
|
256 j.alex 1.37 stresstests:
257 @$(ECHO) "Running OpenPegasus StressTests"
258 @$(MAKE) -f TestMakefile stresstests
259 @$(ECHO) "+++++ OpenPegasus StressTests complete"
|
260 jim.wunderlich 1.35
|
261 jim.wunderlich 1.34 ##########################################################################
262 #
263 # This section defines functional rules
264 #
|
265 jim.wunderlich 1.32 #---------------------
266 # buildmu target: build mu the make utility that among other things
267 # includes depend
268 buildmu: FORCE
269 $(MKDIRHIER) $(BIN_DIR)
270 $(MAKE) --directory=$(PEGASUS_ROOT)/src/utils/mu -f Makefile
271
272 #----------------------
273 # setupdevserver and cleandevserver are used to setup and clear the
274 # server configuration files needed to run the server in a development
275 # environment.
276 #
277 setupdevserver: FORCE
278 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile install_run
279 @$(ECHO) "PEGASUS Development Server Runtime Environment configured "
280
281 cleandevserver: FORCE
282 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile install_run_clean
|
283 karl 1.6
|
284 jim.wunderlich 1.35 clobber: FORCE
285 - $(RMDIRHIER) $(PEGASUS_HOME)/bin
286 - $(RMDIRHIER) $(PEGASUS_HOME)/lib
287 - $(RMDIRHIER) $(PEGASUS_HOME)/obj
288
|
289 jim.wunderlich 1.34
290 #---------------------
|
291 karl 1.39 # The repository Target removes and rebuilds the base repository. It
292 # does not remove all possible namespaces. See
293 # Schemas/Pegasus/Makefile for details. The repository clean has the
294 # same limitation
|
295 mike 1.4
|
296 kumpf 1.25 # Note: Arguments must be quoted to preserve upper case characters in VMS.
|
297 kumpf 1.18 repository: FORCE
|
298 kumpf 1.25 @ $(MAKE) "-SC" Schemas/Pegasus repository
|
299 mike 1.9
|
300 jim.wunderlich 1.29 repositoryclean: FORCE
301 @ $(RMREPOSITORY) $(REPOSITORY_ROOT)
302
|
303 kumpf 1.18 repositoryServer: FORCE
|
304 kumpf 1.25 @ $(MAKE) "-SC" Schemas/Pegasus repositoryServer
|
305 kumpf 1.17
|
306 kumpf 1.18 testrepository: FORCE
|
307 kumpf 1.25 @ $(MAKE) "-SC" src/Providers/sample/Load repository
308 @ $(MAKE) "-SC" test/wetest repository
309 @ $(MAKE) "-SC" src/Clients/benchmarkTest/Load repository
|
310 chuck 1.26 @ $(MAKE) "-SC" src/Pegasus/CQL/CQLCLI repository
|
311 chuck 1.27 @ $(MAKE) "-SC" src/Pegasus/Query/QueryExpression/tests repository
|
312 kumpf 1.28 @ $(MAKE) "-SC" src/Providers/TestProviders/Load repository
|
313 kumpf 1.43 ifndef PEGASUS_DISABLE_CQL
|
314 a.arora 1.30 @ $(MAKE) "-SC" src/Pegasus/ControlProviders/QueryCapabilitiesProvider/tests repository
|
315 kumpf 1.43 endif
|
316 marek 1.38 ifeq ($(PEGASUS_ENABLE_JMPI_PROVIDER_MANAGER), true)
317 @ $(MAKE) "-SC" src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests repository
318 endif
|
319 w.otsuka 1.40 @ $(MAKE) --directory=$(PEGASUS_ROOT)/src/Clients/cimsub/tests/testscript \
320 -f Makefile repository
|
321 kumpf 1.17
|
322 kumpf 1.18 testrepositoryServer: FORCE
|
323 kumpf 1.25 @ $(MAKE) "-SC" src/Providers/sample/Load repositoryServer
324 @ $(MAKE) "-SC" test/wetest repositoryServer
325 @ $(MAKE) "-SC" src/Clients/benchmarkTest/Load repositoryServer
|
326 chuck 1.26 @ $(MAKE) "-SC" src/Pegasus/CQL/CQLCLI repositoryServer
|
327 chuck 1.27 @ $(MAKE) "-SC" src/Pegasus/Query/QueryExpression/tests repositoryServer
|
328 kumpf 1.28 @ $(MAKE) "-SC" src/Providers/TestProviders/Load repositoryServer
|
329 kumpf 1.43 ifndef PEGASUS_DISABLE_CQL
|
330 a.arora 1.30 @ $(MAKE) "-SC" src/Pegasus/ControlProviders/QueryCapabilitiesProvider/tests repositoryServer
|
331 kumpf 1.43 endif
|
332 marek 1.38 ifeq ($(PEGASUS_ENABLE_JMPI_PROVIDER_MANAGER), true)
333 @ $(MAKE) "-SC" src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests repositoryServer
334 endif
|
335 w.otsuka 1.40 @ $(MAKE) --directory=$(PEGASUS_ROOT)/src/Clients/cimsub/tests/testscript \
336 -f Makefile repositoryServer
|
337 kumpf 1.16
|
338 kumpf 1.18 removetestrepository: FORCE
|
339 kumpf 1.25 @ $(MAKE) "-SC" src/Providers/sample/Load removerepository
340 @ $(MAKE) "-SC" test/wetest removerepository
341 @ $(MAKE) "-SC" src/Clients/benchmarkTest/Load removerepository
|
342 kumpf 1.28 @ $(MAKE) "-SC" src/Providers/TestProviders/Load removerepository
|
343 w.otsuka 1.40 @ $(MAKE) "-SC" src/Clients/cimsub/tests/testscript removerepository
|
344 karl 1.15
|
345 konrad.r 1.24 config:
346 @ $(ROOT)/SetConfig_EnvVar
347
|
348 humberto 1.21 rootbundle:
349 $(MAKE) --directory=$(PEGASUS_ROOT)/src/utils/cnv2rootbundle -f Makefile
|