(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           ## Platform specific settings for HP-UX
 19           ##
 20           ## NOTE: Please add platform specific environment variables as appropriate. 
 21           ##
 22 mike  1.2 ###############################################################################
 23           
 24           ifeq ($(PEGASUS_PLATFORM),WIN32_IX86_MSVC)
 25             CIMSERVER_START_SERVICE = cimserver -install
 26             CIMSERVER_STOP_SERVICE = cimserver -remove
 27             REMOVE_PEGASUS_DIRECTORY = mu rmdirhier pegasus
 28             SLEEP =  
 29             MUEXE = mu.exe
 30             COPYMU = copy pegasus\src\utils\mu\$(MUEXE) /y $(MUEXE)
 31             MKDIR = pegasus/src/utils/mu/mu mkdirhier
 32             TESTS = prestarttests
 33           endif
 34           
 35           ifeq ($(PEGASUS_PLATFORM),HPUX_PARISC_ACC)
 36             CIMSERVER_START_SERVICE = cimserver -d
 37             CIMSERVER_STOP_SERVICE = /usr/bin/ps -ef | /usr/bin/grep cimserver | /usr/bin/grep -v grep | /usr/bin/awk '{print "kill -9 "$$2 |"/usr/bin/sh"}'
 38             REMOVE_PEGASUS_DIRECTORY = rm -Rf pegasus.old; mv pegasus pegasus.old
 39             SLEEP = sleep 2
 40             MUEXE = mu
 41             COPYMU = cp -f pegasus/src/utils/mu/$(MUEXE) /usr/local/bin/$(MUEXE)
 42             MKDIR = pegasus/src/utils/mu/mu mkdirhier
 43 mike  1.2   TESTS = prestarttests poststarttests
 44           endif
 45           
 46           error: 
 47           	@ echo "Specify desired makefile option (i.e., cleanbuild, rebuild)"
 48           
 49           buildmu:
 50           	$(MAKE) --directory=pegasus/src/utils/mu -f Makefile
 51           	$(COPYMU)
 52           	
 53           cleanbuild: removeall recheckout buildmu all $(TESTS) 
 54           
 55           recheckout: removeall checkout
 56           
 57           removeall:
 58           	$(REMOVE_PEGASUS_DIRECTORY)
 59           
 60           checkout:
 61 kumpf 1.3 	cvs checkout pegasus
 62 mike  1.2 	
 63           rebuild: clean buildmu all tests
 64           
 65           all: buildmu
 66           	$(MAKE) --directory=pegasus -f Makefile depend
 67           	$(MAKE) --directory=pegasus -f Makefile all
 68           
 69           clean:
 70           	$(MAKE) --directory=pegasus -f Makefile clean
 71           
 72           		
 73           prestarttests: 
 74           	$(MAKE) --directory=pegasus -f Makefile repository
 75           	$(MAKE) --directory=pegasus -f Makefile config
 76           	$(MAKE) --directory=pegasus -f Makefile user
 77           	$(MAKE) --directory=pegasus -f Makefile shutdownService
 78           	$(MAKE) --directory=pegasus -f Makefile tests
 79           	$(MAKE) --directory=pegasus/src/Server -f Makefile install
 80           	$(MAKE) --directory=pegasus/test -f Makefile clean
 81           
 82           poststarttests:
 83 mike  1.2 	$(CIMSERVER_START_SERVICE)
 84           	$(SLEEP)
 85           	TestClient
 86           	Client
 87           	$(MAKE) --directory=pegasus/test -f Makefile tests
 88           	@ echo Terminating cimserver...
 89           	@ $(CIMSERVER_STOP_SERVICE)
 90           
 91           tests: $(TESTS)
 92           	@ echo Finished Tests
 93           
 94           ###############################################################################
 95           ##
 96           ## Trace Configuration
 97           ##
 98           ## Options:
 99           ##      XMLTraceOn: Enables XML request and response tracing.
100           ##      ProviderLoadTraceOn: Enables Provider load tracing.
101           ##      XML+ProviderLoadTraceOn: Enables both XML request/response and Provider
102           ##                                 load tracing.
103           ##      AllTraceOn: Enables all tracing.
104 mike  1.2 ##      AllTraceOff: Disables all tracing.
105           ##      list: Lists trace settings.
106           ##
107           ###############################################################################
108           
109           XMLTraceOn:
110           	cimconfig -s traceComponents=XmlIO -c
111           	cimconfig -s traceLevel=3 -c
112           	cimconfig -g traceComponents
113           	cimconfig -g traceLevel
114           
115           ProviderLoadTraceOn:
116           	cimconfig -s traceComponents=ProvManager,OsAbstraction
117           	cimconfig -s traceLevel=3 -c
118           	cimconfig -g traceComponents
119           	cimconfig -g traceLevel
120           
121           XML+ProviderLoadTraceOn:
122           	cimconfig -s traceComponents=XmlIO,ProvManager,OsAbstraction
123           	cimconfig -s traceLevel=3 -c
124           	cimconfig -g traceComponents
125 mike  1.2 	cimconfig -g traceLevel
126           
127           AllTraceOn:
128           	cimconfig -s traceComponents=ALL
129           	cimconfig -s traceLevel=3 -c
130           	cimconfig -g traceComponents
131           	cimconfig -g traceLevel
132           
133           AllTraceOff:
134           	cimconfig -s traceComponents=
135           	cimconfig -g traceComponents
136           	cimconfig -g traceLevel
137           
138           list:
139           	cimconfig -g traceComponents
140           	cimconfig -g traceLevel
141           	cimconfig -g traceFilePath
142           
143           # DO NOT DELETE

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2