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

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2