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

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2