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