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