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

  1 martin 1.31 #//%2005////////////////////////////////////////////////////////////////////////
  2             #//
  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             #//
 12             #// Permission is hereby granted, free of charge, to any person obtaining a copy
 13             #// of this software and associated documentation files (the "Software"), to
 14             #// deal in the Software without restriction, including without limitation the
 15             #// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 16             #// sell copies of the Software, and to permit persons to whom the Software is
 17             #// furnished to do so, subject to the following conditions:
 18             #// 
 19             #// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
 20             #// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
 21             #// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
 22 martin 1.31 #// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
 23             #// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 24             #// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
 25             #// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 26             #// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 27             #//
 28             #//==============================================================================
 29 karl   1.6  # Pegasus top level make file
 30 jim.wunderlich 1.34 # see the usage rule for options
 31                     
 32 mike           1.1  ROOT = .
 33                     
 34 konrad.r       1.24 include $(ROOT)/env_var.status
 35 mike           1.1  include $(ROOT)/mak/config.mak
 36                     
 37 karl           1.11 # This is a recurse make file
 38 karl           1.6  # Defines subdirectorys to go to recursively
 39                     
 40 mike           1.3  # DIRS = src cgi
 41 konrad.r       1.23 DIRS = src test rpm Schemas
 42 mike           1.1  
 43 karl           1.11 # Define the inclusion of the recurse.mak file to execute the next
 44                     # level of makefiles defined by the DIRS variable
 45 karl           1.6  
 46 jim.wunderlich 1.34 defaultrule: all setupdevserver
 47                     
 48 mike           1.1  include $(ROOT)/mak/recurse.mak
 49                     
 50 jim.wunderlich 1.34 .PHONY: FORCE
 51 jim.wunderlich 1.32 
 52 jim.wunderlich 1.34 FORCE:
 53 jim.wunderlich 1.32 
 54 jim.wunderlich 1.34 usage: FORCE
 55                     	$(USAGE)
 56                     	$(USAGE)"Makefile targets:"
 57                     	$(USAGE)
 58                     	$(USAGE)"Recursive rules - These are the primatives that traverse the tree"
 59                     	$(USAGE)"invoking the specified command in each subdirectory directory."
 60                     	$(USAGE)"NOTE: all is special, it specifies no target and therefore invokes"
 61                     	$(USAGE)"the default rule for that directory."
 62                     	$(USAGE)"all                 - recursive DEFAULT rule"
 63                     	$(USAGE)"clean               - recursive clean"
 64                     	$(USAGE)"depend              - buildmu recursive depend"
 65                     	$(USAGE)"messages            - rootbundle recursive messages"
 66                     	$(USAGE)"tests               - recursive tests"
 67                     	$(USAGE)"poststarttests      - recursive poststarttests"
 68                     	$(USAGE) 
 69                     	$(USAGE)"Combinational rules - Combine other rules to achieve results"
 70                     	$(USAGE)"DEFAULT RULE        - all, setupdevserver"
 71                     	$(USAGE)"new                 - clean repositoryclean"
 72                     	$(USAGE)"build               - depend all, setupdevserver"
 73                     	$(USAGE)"smallworld          - build unittests serverquicktests"
 74                     	$(USAGE)"world               - build unittests servertests"
 75 jim.wunderlich 1.34 	$(USAGE)
 76                     	$(USAGE)"Functional rules - Other rules to achieve specified results"
 77 jim.wunderlich 1.35 	$(USAGE)"clobber             -removes objects built during compile"
 78                     	$(USAGE)"                     specifically the following directories are removed:"
 79                     	$(USAGE)"                      $(PEGASUS_HOME)/bin"
 80                     	$(USAGE)"                      $(PEGASUS_HOME)/lib"
 81                     	$(USAGE)"                      $(PEGASUS_HOME)/obj"
 82 jim.wunderlich 1.34 	$(USAGE)"buildmu             - builds the mu utility"
 83                     	$(USAGE)"setupdevserver      - setup the development server env"
 84                     	$(USAGE)"cleandevserver      - cleans the development server env"
 85                     	$(USAGE)"repository          - builds the base repository"
 86                     	$(USAGE)"testrepository      - builds items for the test suites into the repository"
 87                     	$(USAGE)"removetestrepository- removes test items from the repository"
 88                     	$(USAGE)"repositoryclean     - cleans the repository"
 89                     	$(USAGE)"listplatforms       - List all valid platforms"
 90                     	$(USAGE)
 91                     	$(USAGE)"Test rules (accessable here but implemented in TestMakefile)"
 92                     	$(USAGE)"alltests            - unittests and servertests"
 93                     	$(USAGE)"unittests           - runs the unit functional test"
 94                     	$(USAGE)"serverquicktests    - runs quick server tests"
 95                     	$(USAGE)"servertests         - runs basic server tests"
 96 jim.wunderlich 1.35 	$(USAGE)"perftests           - runs basic server performance tests"
 97 jim.wunderlich 1.34 	$(USAGE)"standardtests       - runs server extended tests"
 98                     	$(USAGE)"testusage           - TestMakefile usage"
 99                     	$(USAGE)"testusage2          - TestMakefile usage2"
100                     	$(USAGE)
101                     	$(USAGE)"--------------------"
102                     	$(USAGE)"Quick start:"
103                     	$(USAGE)"  After checkout of new tree:"
104                     	$(USAGE)"  use \"make listplatforms\" to view a list of platforms"
105                     	$(USAGE)"  set PEGASUS_PLATFORM=<your platofrm>"
106                     	$(USAGE)"  set PEGASUS_ROOT=<location of your pegasus source>"
107                     	$(USAGE)"  set PEGASUS_HOME=<build output location"
108                     	$(USAGE)"  make smallworld"
109                     	$(USAGE)
110                     	$(USAGE)"  This will build everthing with a default configuration"
111                     	$(USAGE)"  and run some tests."
112                     	$(USAGE)
113                     	$(USAGE)"  For a more extensive test use \"make world\""
114                     	$(USAGE)
115                     	$(USAGE)"--------------------"
116                     	$(USAGE)"Examples:"
117                     	$(USAGE)"  After \"cvs checkout\" of new tree:    make smallworld"
118 jim.wunderlich 1.34 	$(USAGE)"                          OR           make world"
119                     	$(USAGE)
120                     	$(USAGE)"  After changes to include files:      make"
121                     	$(USAGE)
122                     	$(USAGE)"  After changes to the files included: make build"
123                     	$(USAGE)
124                     	$(USAGE)"  After \"cvs update\" or to start over: make new smallworld" 
125                     	$(USAGE)"                          OR           make new world"
126                     	$(USAGE)
127                     
128                     listplatforms: FORCE
129                     	$(USAGE)
130                     	$(USAGE)"The $(words $(VALID_PLATFORMS)) valid platforms are:"
131                     	$(USAGE)" $(foreach w, $(VALID_PLATFORMS), " $w ")"
132                     	$(USAGE)
133                     	$(USAGE)
134                     
135                     #########################################################################
136                     # This section defines any prerequisites that are required by the 
137                     # recursive rules.
138                     #
139 jim.wunderlich 1.34 # NOTE: You can add prerequisties for the recursive rules but you cannot
140                     #       add any commands to run as part of the rule. You can define them 
141                     #       and make will quietly ignore them and they will not be run either
142                     #       before or after the recursive rule. 
143                     #
144                     #
145                     messages: rootbundle
146 karl           1.6  
147 jim.wunderlich 1.34 depend: buildmu
148 kumpf          1.18 
149 jim.wunderlich 1.34 #########################################################################
150                     # This section defines combinational rules
151                     #
152 jim.wunderlich 1.32 #-----------------------
153 jim.wunderlich 1.34 # build target: builds all source
154 jim.wunderlich 1.32 #
155 jim.wunderlich 1.34 build: depend all setupdevserver
156 jim.wunderlich 1.32 
157 jim.wunderlich 1.34 #------------------------
158                     # rebuild target is being deprecated instead use "make new build"
159                     #
160                     rebuild_msg: FORCE
161                     	@$(ECHO) "==============================================================================="
162                     	@$(ECHO) "Makefile: The rebuild target is being deprecated." 
163                     	@$(ECHO) "          Use \"make usage\" for a description of the usage model."
164                     	@$(ECHO) "          Consider using \"make new smallworld\" ."
165                     	@$(ECHO) "          Invoking the old rebuild rule now."
166                     	@$(ECHO) "==============================================================================="
167                     
168                     rebuild: rebuild_msg shortsleep new build s_unittests repository
169 jim.wunderlich 1.32 
170                     #-----------------------
171 jim.wunderlich 1.34 # new target: cleans everthing
172                     #
173                     # This can be combined on the command line with other rules like:
174 jim.wunderlich 1.32 #
175 jim.wunderlich 1.34 # make new build
176                     # make new world 
177 jim.wunderlich 1.32 
178 jim.wunderlich 1.34 new: clean repositoryclean
179 jim.wunderlich 1.32 
180                     #-----------------------
181 jim.wunderlich 1.34 # world targets: builds everything and dependent on which target may do testing
182 jim.wunderlich 1.32 #
183                     #       Typically used after a fresh checkout from CVS 
184 jim.wunderlich 1.34 
185                     smallworld: build s_unittests serverquicktests
186                     
187                     world: build s_unittests servertests
188                     
189                     
190                     ############################
191                     #
192                     # rules defined in TestMakefile that are repeated here for convenience
193 jim.wunderlich 1.32 #
194 jim.wunderlich 1.34 shortsleep: FORCE
195                     	@$(MAKE)  -f TestMakefile shortsleep
196                     
197                     servertests: FORCE
198                     	@ $(MAKE) -f TestMakefile servertests
199                     
200 jim.wunderlich 1.35 perftests: FORCE
201                     	@ $(MAKE) -f TestMakefile perftests
202                     
203 jim.wunderlich 1.34 s_unittests: FORCE
204                     	@ $(MAKE) -f TestMakefile -s unittests
205                     
206                     unittests: FORCE
207                     	@ $(MAKE) -f TestMakefile unittests
208                     
209                     standardtests: FORCE
210                     	@ $(MAKE) -f TestMakefile standardtests
211                     
212                     serverquicktests: FORCE
213                     	@ $(MAKE) -f TestMakefile serverquicktests
214                     
215                     alltests: FORCE
216                     	@ $(MAKE) -f TestMakefile alltests
217                     
218                     testusage: FORCE
219                     	@ $(MAKE) -f TestMakefile usage
220 jim.wunderlich 1.32 
221 jim.wunderlich 1.34 testusage2: FORCE
222                     	@ $(MAKE) -f TestMakefile usage2
223 mike           1.1  
224 jim.wunderlich 1.34 
225 jim.wunderlich 1.35 
226 jim.wunderlich 1.34 ##########################################################################
227                     #
228                     # This section defines functional rules
229                     #
230 jim.wunderlich 1.32 #---------------------
231                     # buildmu target: build mu the make utility that among other things
232                     #                 includes depend
233                     buildmu: FORCE
234                     	$(MKDIRHIER) $(BIN_DIR)
235                     	$(MAKE) --directory=$(PEGASUS_ROOT)/src/utils/mu -f Makefile
236                     
237                     #----------------------
238                     # setupdevserver and cleandevserver are used to setup and clear the 
239                     # server configuration files needed to run the server in a development
240                     # environment. 
241                     #
242                     setupdevserver: FORCE
243                     	$(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile install_run
244                     	@$(ECHO) "PEGASUS Development Server Runtime Environment configured "
245                     
246                     cleandevserver: FORCE
247                     	$(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile install_run_clean
248 karl           1.6  
249 jim.wunderlich 1.35 clobber: FORCE
250                     	- $(RMDIRHIER) $(PEGASUS_HOME)/bin
251                     	- $(RMDIRHIER) $(PEGASUS_HOME)/lib
252                     	- $(RMDIRHIER) $(PEGASUS_HOME)/obj
253                     
254 jim.wunderlich 1.34 
255                     #---------------------
256 karl           1.6  # The repository Target removes and rebuilds the CIM repository
257 mike           1.4  
258 kumpf          1.25 # Note: Arguments must be quoted to preserve upper case characters in VMS.
259 kumpf          1.18 repository: FORCE
260 kumpf          1.25 	@ $(MAKE) "-SC" Schemas/Pegasus repository
261 mike           1.9  
262 jim.wunderlich 1.29 repositoryclean: FORCE
263                     	@ $(RMREPOSITORY) $(REPOSITORY_ROOT)
264                     
265 kumpf          1.18 repositoryServer: FORCE
266 kumpf          1.25 	@ $(MAKE) "-SC" Schemas/Pegasus repositoryServer
267 kumpf          1.17 
268 kumpf          1.18 testrepository: FORCE
269 kumpf          1.25 	@ $(MAKE) "-SC" src/Providers/sample/Load repository
270                     	@ $(MAKE) "-SC" test/wetest repository
271                     	@ $(MAKE) "-SC" src/Clients/benchmarkTest/Load repository
272 chuck          1.26 	@ $(MAKE) "-SC" src/Pegasus/CQL/CQLCLI repository
273 chuck          1.27 	@ $(MAKE) "-SC" src/Pegasus/Query/QueryExpression/tests repository
274 kumpf          1.28 	@ $(MAKE) "-SC" src/Providers/TestProviders/Load repository
275 a.arora        1.30 	@ $(MAKE) "-SC" src/Pegasus/ControlProviders/QueryCapabilitiesProvider/tests repository
276 kumpf          1.17 
277 kumpf          1.18 testrepositoryServer: FORCE
278 kumpf          1.25 	@ $(MAKE) "-SC" src/Providers/sample/Load repositoryServer
279                     	@ $(MAKE) "-SC" test/wetest repositoryServer
280                     	@ $(MAKE) "-SC" src/Clients/benchmarkTest/Load repositoryServer
281 chuck          1.26 	@ $(MAKE) "-SC" src/Pegasus/CQL/CQLCLI repositoryServer
282 chuck          1.27 	@ $(MAKE) "-SC" src/Pegasus/Query/QueryExpression/tests repositoryServer
283 kumpf          1.28 	@ $(MAKE) "-SC" src/Providers/TestProviders/Load repositoryServer
284 a.arora        1.30 	@ $(MAKE) "-SC" src/Pegasus/ControlProviders/QueryCapabilitiesProvider/tests repositoryServer
285 kumpf          1.16 
286 kumpf          1.18 removetestrepository: FORCE
287 kumpf          1.25 	@ $(MAKE) "-SC" src/Providers/sample/Load removerepository
288                     	@ $(MAKE) "-SC" test/wetest removerepository
289                     	@ $(MAKE) "-SC" src/Clients/benchmarkTest/Load removerepository
290 kumpf          1.28 	@ $(MAKE) "-SC" src/Providers/TestProviders/Load removerepository
291 karl           1.15 
292 konrad.r       1.24 config:
293                     	@ $(ROOT)/SetConfig_EnvVar
294                     
295 humberto       1.21 rootbundle: 
296                     	$(MAKE) --directory=$(PEGASUS_ROOT)/src/utils/cnv2rootbundle -f Makefile
297                     
298 jim.wunderlich 1.34 

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2