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

  1 mike  1.2 ###############################################################################
  2           ##
  3           ## Makefile for Pegasus CIMOM
  4           ##
  5           ## NOTE: Makefile needs to be executed from the parent directory of 
  6           ## pegasus directory because the path settings are relative and this
  7           ## Makefile may remove and recheckout the pegasus source tree.
  8           ##
  9           ## Options:
 10           ##      cleanbuild - Removes the existing pegasus directory contents, performs
 11           ##                   checkout, build and runs tests. 
 12           ##      rebuild    - Rebuild and execute tests.
 13           ## 
 14           ###############################################################################
 15           
 16           ###############################################################################
 17           ##
 18 karl  1.16 ## Platform specific settings for several platforms.
 19 mike  1.2  ##
 20            ## NOTE: Please add platform specific environment variables as appropriate. 
 21            ##
 22            ###############################################################################
 23            
 24 kumpf 1.14 include pegasus/mak/config.mak
 25            
 26 karl  1.16 # There is a start command for cimserver but no stop today.  Because of problems with
 27            # the use of cimserver as a service, we simply used the start command to allow us to
 28            # get on with testing. I know of no CLI to stop a window started with start so that
 29            # field is blank.  ks 7 April 2002
 30 mike  1.2  ifeq ($(PEGASUS_PLATFORM),WIN32_IX86_MSVC)
 31 tony  1.21   CIMSERVER_START_SERVICE = cimserver -start
 32              CIMSERVER_STOP_SERVICE = cimserver -stop
 33 kumpf 1.6    SLEEP =
 34 mike  1.2    REMOVE_PEGASUS_DIRECTORY = mu rmdirhier pegasus
 35              MUEXE = mu.exe
 36 kumpf 1.6    COPYMU = copy pegasus\src\utils\mu\$(MUEXE) /y $(MUEXE)
 37              MKDIR = pegasus/src/utils/mu/mu mkdirhier
 38 tony  1.21   TESTS = prestarttests poststarttests
 39 mike  1.2  endif
 40            
 41 kumpf 1.20 ifeq ($(OS),HPUX)
 42 kumpf 1.18   CIMSERVER_START_SERVICE = cimserver
 43              CIMSERVER_STOP_SERVICE = cimserver -s
 44 kumpf 1.6    SLEEP = sleep 5
 45              REMOVE_PEGASUS_DIRECTORY = rm -Rf pegasus.old; mv pegasus pegasus.old
 46 mike  1.2    MUEXE = mu
 47 kumpf 1.14   COPYMU = cp -f pegasus/src/utils/mu/$(MUEXE) $(BIN_DIR)/$(MUEXE)
 48 kumpf 1.6    MKDIR = pegasus/src/utils/mu/mu mkdirhier
 49 mike  1.2    TESTS = prestarttests poststarttests
 50            endif
 51            
 52 karl  1.10 ifeq ($(PEGASUS_PLATFORM),LINUX_IX86_GNU)
 53 kumpf 1.18   CIMSERVER_START_SERVICE = cimserver
 54 kumpf 1.11   CIMSERVER_STOP_SERVICE = /bin/ps -ef | /bin/grep cimserver | /bin/grep -v grep | /usr/bin/awk '{print "kill -9 "$$2 |"/bin/bash"}'
 55              SLEEP = sleep 5
 56              REMOVE_PEGASUS_DIRECTORY = rm -Rf pegasus.old; mv pegasus pegasus.old
 57              MUEXE = mu
 58 kumpf 1.14   COPYMU = cp -f pegasus/src/utils/mu/$(MUEXE) $(BIN_DIR)/$(MUEXE)
 59 kumpf 1.11   MKDIR = pegasus/src/utils/mu/mu mkdirhier
 60              TESTS = prestarttests poststarttests
 61            endif
 62            
 63            ifeq ($(PEGASUS_PLATFORM),LINUX_IA64_GNU)
 64 kumpf 1.18   CIMSERVER_START_SERVICE = cimserver
 65 kumpf 1.11   CIMSERVER_STOP_SERVICE = /bin/ps -ef | /bin/grep cimserver | /bin/grep -v grep | /usr/bin/awk '{print "kill -9 "$$2 |"/bin/bash"}'
 66 karl  1.10   SLEEP = sleep 5
 67              REMOVE_PEGASUS_DIRECTORY = rm -Rf pegasus.old; mv pegasus pegasus.old
 68              MUEXE = mu
 69 kumpf 1.14   COPYMU = cp -f pegasus/src/utils/mu/$(MUEXE) $(BIN_DIR)/$(MUEXE)
 70 karl  1.10   MKDIR = pegasus/src/utils/mu/mu mkdirhier
 71              TESTS = prestarttests poststarttests
 72            endif
 73            
 74 david.eger 1.23 ifeq ($(PEGASUS_PLATFORM),LINUX_PPC_GNU)
 75                   CIMSERVER_START_SERVICE = cimserver
 76                   CIMSERVER_STOP_SERVICE = /bin/ps -ef | /bin/grep cimserver | /bin/grep -v grep | /usr/bin/awk '{print "kill -9 "$$2 |"/bin/bash"}'
 77                   SLEEP = sleep 5
 78                   REMOVE_PEGASUS_DIRECTORY = rm -Rf pegasus.old; mv pegasus pegasus.old
 79                   MUEXE = mu
 80                   COPYMU = cp -f pegasus/src/utils/mu/$(MUEXE) $(BIN_DIR)/$(MUEXE)
 81                   MKDIR = pegasus/src/utils/mu/mu mkdirhier
 82                   TESTS = prestarttests poststarttests
 83                 endif
 84                 
 85 kumpf      1.12 ifeq ($(DYNAMIC_SOCKSIFY),TRUE)
 86                   CVS = socksify cvs
 87                 else
 88                   CVS = cvs
 89                 endif
 90                 
 91 mike       1.2  error: 
 92                 	@ echo "Specify desired makefile option (i.e., cleanbuild, rebuild)"
 93                 
 94                 buildmu:
 95 david.eger 1.23 	$(MAKE) --directory=pegasus/src/utils/mu -f Makefile
 96 kumpf      1.15 	$(MKDIR) $(BIN_DIR)
 97 mike       1.2  	$(COPYMU)
 98 david.eger 1.23 	
 99 mike       1.2  cleanbuild: removeall recheckout buildmu all $(TESTS) 
100                 
101                 recheckout: removeall checkout
102                 
103                 removeall:
104                 	$(REMOVE_PEGASUS_DIRECTORY)
105                 
106                 checkout:
107 kumpf      1.12 	$(CVS) checkout pegasus
108 david.eger 1.23 	
109 mike       1.2  rebuild: clean buildmu all tests
110                 
111 kumpf      1.13 build: all tests
112                 
113 mike       1.2  all: buildmu
114 david.eger 1.23 	$(MAKE) --directory=pegasus -f Makefile depend
115                 	$(MAKE) --directory=pegasus -f Makefile all
116 mike       1.2  
117 kumpf      1.8  doc:
118 david.eger 1.23 	$(MAKE) --directory=pegasus/doc/ProviderSpec -f Makefile
119                 	$(MAKE) --directory=pegasus/doc/DevManual -f Makefile
120 kumpf      1.8  
121 mike       1.2  clean:
122 david.eger 1.23 	$(MAKE) --directory=pegasus -f Makefile clean
123 mike       1.2  
124 kumpf      1.17 repositoryServer: 
125                 	$(CIMSERVER_STOP_SERVICE)
126                 	$(SLEEP)
127                 	$(RMDIRHIER) $(REPOSITORY_ROOT)
128                 	$(CIMSERVER_START_SERVICE)
129                 	$(SLEEP)
130 david.eger 1.23 	$(MAKE) --directory=pegasus -f Makefile repositoryServer
131                 	$(MAKE) --directory=pegasus -f Makefile testrepositoryServer
132                 		
133 mike       1.2  prestarttests: 
134 kumpf      1.7  	$(CIMSERVER_STOP_SERVICE)
135                 	$(SLEEP)
136 david.eger 1.23 	$(MAKE) --directory=pegasus -f Makefile repository
137                 	$(MAKE) --directory=pegasus -f Makefile testrepository
138                 	$(MAKE) --directory=pegasus -f Makefile tests
139                 	$(MAKE) --directory=pegasus/src/Server -f Makefile install
140 mike       1.2  
141                 poststarttests:
142 david.eger 1.23 	$(MAKE) --directory=pegasus/test/wetest -f Makefile clean
143 kumpf      1.6  	$(CIMSERVER_START_SERVICE)
144                 	$(SLEEP)
145 david.eger 1.23 	$(MAKE) --directory=pegasus -f Makefile poststarttests
146 mike       1.2  
147                 tests: $(TESTS)
148 tony       1.21 ifeq ($(PEGASUS_PLATFORM),WIN32_IX86_MSVC)
149                 	$(CIMSERVER_STOP_SERVICE)
150 david.eger 1.23 	$(MAKE) --directory=src/Server -f Makefile uninstall
151 tony       1.21 endif
152 mike       1.2  	@ echo Finished Tests
153                 
154                 ###############################################################################
155                 ##
156                 ## Trace Configuration
157                 ##
158                 ## Options:
159                 ##      XMLTraceOn: Enables XML request and response tracing.
160                 ##      ProviderLoadTraceOn: Enables Provider load tracing.
161                 ##      XML+ProviderLoadTraceOn: Enables both XML request/response and Provider
162                 ##                                 load tracing.
163                 ##      AllTraceOn: Enables all tracing.
164                 ##      AllTraceOff: Disables all tracing.
165                 ##      list: Lists trace settings.
166                 ##
167                 ###############################################################################
168                 
169                 XMLTraceOn:
170                 	cimconfig -s traceComponents=XmlIO -c
171                 	cimconfig -s traceLevel=3 -c
172                 	cimconfig -g traceComponents
173 mike       1.2  	cimconfig -g traceLevel
174                 
175                 ProviderLoadTraceOn:
176                 	cimconfig -s traceComponents=ProvManager,OsAbstraction
177                 	cimconfig -s traceLevel=3 -c
178                 	cimconfig -g traceComponents
179                 	cimconfig -g traceLevel
180                 
181                 XML+ProviderLoadTraceOn:
182                 	cimconfig -s traceComponents=XmlIO,ProvManager,OsAbstraction
183                 	cimconfig -s traceLevel=3 -c
184                 	cimconfig -g traceComponents
185                 	cimconfig -g traceLevel
186                 
187                 AllTraceOn:
188                 	cimconfig -s traceComponents=ALL
189                 	cimconfig -s traceLevel=3 -c
190                 	cimconfig -g traceComponents
191                 	cimconfig -g traceLevel
192                 
193                 AllTraceOff:
194 mike       1.2  	cimconfig -s traceComponents=
195                 	cimconfig -g traceComponents
196                 	cimconfig -g traceLevel
197                 
198                 list:
199                 	cimconfig -g traceComponents
200                 	cimconfig -g traceLevel
201                 	cimconfig -g traceFilePath
202                 
203                 # DO NOT DELETE

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2