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

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2