(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 kumpf 1.6   CIMSERVER_START_SERVICE =
 26             CIMSERVER_STOP_SERVICE =
 27             SLEEP =
 28 mike  1.2   REMOVE_PEGASUS_DIRECTORY = mu rmdirhier pegasus
 29             MUEXE = mu.exe
 30 kumpf 1.6   COPYMU = copy pegasus\src\utils\mu\$(MUEXE) /y $(MUEXE)
 31             MKDIR = pegasus/src/utils/mu/mu mkdirhier
 32 mike  1.2   TESTS = prestarttests
 33           endif
 34           
 35           ifeq ($(PEGASUS_PLATFORM),HPUX_PARISC_ACC)
 36 kumpf 1.6   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             SLEEP = sleep 5
 39             REMOVE_PEGASUS_DIRECTORY = rm -Rf pegasus.old; mv pegasus pegasus.old
 40 mike  1.2   MUEXE = mu
 41 kumpf 1.6   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 kumpf 1.6 	$(MAKE) --directory=pegasus/src/utils/mu -f Makefile
 51 mike  1.2 	$(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 kumpf 1.6 	$(MAKE) --directory=pegasus -f Makefile depend
 67           	$(MAKE) --directory=pegasus -f Makefile all
 68 mike  1.2 
 69 kumpf 1.8 doc:
 70           	$(MAKE) --directory=pegasus/doc/ProviderSpec -f Makefile
 71           	$(MAKE) --directory=pegasus/doc/DevManual -f Makefile
 72           
 73 mike  1.2 clean:
 74 kumpf 1.6 	$(MAKE) --directory=pegasus -f Makefile clean
 75 mike  1.2 
 76           		
 77           prestarttests: 
 78 kumpf 1.7 	$(CIMSERVER_STOP_SERVICE)
 79           	$(SLEEP)
 80 kumpf 1.6 	$(MAKE) --directory=pegasus -f Makefile repository
 81           	$(MAKE) --directory=pegasus -f Makefile config
 82           	$(MAKE) --directory=pegasus -f Makefile user
 83           	$(MAKE) --directory=pegasus -f Makefile shutdownService
 84           	$(MAKE) --directory=pegasus -f Makefile registration
 85           	$(MAKE) --directory=pegasus -f Makefile tests
 86           	$(MAKE) --directory=pegasus/src/Server -f Makefile install
 87           	$(MAKE) --directory=pegasus/test -f Makefile clean
 88 mike  1.2 
 89           poststarttests:
 90 kumpf 1.6 	$(CIMSERVER_START_SERVICE)
 91           	$(SLEEP)
 92 mike  1.2 	TestClient
 93           	Client
 94 kumpf 1.6 	$(MAKE) --directory=pegasus/test -f Makefile tests
 95 mike  1.2 	@ echo Terminating cimserver...
 96 kumpf 1.6 	@ $(CIMSERVER_STOP_SERVICE)
 97 mike  1.2 
 98           tests: $(TESTS)
 99           	@ echo Finished Tests
100           
101           ###############################################################################
102           ##
103           ## Trace Configuration
104           ##
105           ## Options:
106           ##      XMLTraceOn: Enables XML request and response tracing.
107           ##      ProviderLoadTraceOn: Enables Provider load tracing.
108           ##      XML+ProviderLoadTraceOn: Enables both XML request/response and Provider
109           ##                                 load tracing.
110           ##      AllTraceOn: Enables all tracing.
111           ##      AllTraceOff: Disables all tracing.
112           ##      list: Lists trace settings.
113           ##
114           ###############################################################################
115           
116           XMLTraceOn:
117           	cimconfig -s traceComponents=XmlIO -c
118 mike  1.2 	cimconfig -s traceLevel=3 -c
119           	cimconfig -g traceComponents
120           	cimconfig -g traceLevel
121           
122           ProviderLoadTraceOn:
123           	cimconfig -s traceComponents=ProvManager,OsAbstraction
124           	cimconfig -s traceLevel=3 -c
125           	cimconfig -g traceComponents
126           	cimconfig -g traceLevel
127           
128           XML+ProviderLoadTraceOn:
129           	cimconfig -s traceComponents=XmlIO,ProvManager,OsAbstraction
130           	cimconfig -s traceLevel=3 -c
131           	cimconfig -g traceComponents
132           	cimconfig -g traceLevel
133           
134           AllTraceOn:
135           	cimconfig -s traceComponents=ALL
136           	cimconfig -s traceLevel=3 -c
137           	cimconfig -g traceComponents
138           	cimconfig -g traceLevel
139 mike  1.2 
140           AllTraceOff:
141           	cimconfig -s traceComponents=
142           	cimconfig -g traceComponents
143           	cimconfig -g traceLevel
144           
145           list:
146           	cimconfig -g traceComponents
147           	cimconfig -g traceLevel
148           	cimconfig -g traceFilePath
149           
150           # DO NOT DELETE

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2