(file) Return to Makefile CVS log (file) (dir) Up to [Pegasus] / pegasus

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

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2