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

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2