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

  1 kumpf 1.1.2.1 ###############################################################################
  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 kumpf 1.1.2.1 ###############################################################################
 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
 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 kumpf 1.1.2.1   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               	cvs checkout -r dev pegasus
 62               	
 63               rebuild: clean buildmu all tests
 64 kumpf 1.1.2.1 
 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 tests
 77               	$(MAKE) --directory=pegasus/src/Server -f Makefile install
 78               	$(MAKE) --directory=pegasus/test -f Makefile clean
 79               
 80               poststarttests:
 81               	$(CIMSERVER_START_SERVICE)
 82               	$(SLEEP)
 83               	TestClient
 84               	Client
 85 kumpf 1.1.2.1 	$(MAKE) --directory=pegasus/test -f Makefile tests
 86               	@ echo Terminating cimserver...
 87               	@ $(CIMSERVER_STOP_SERVICE)
 88               
 89               tests: $(TESTS)
 90               	@ echo Finished Tests
 91               
 92               ###############################################################################
 93               ##
 94               ## Trace Configuration
 95               ##
 96               ## Options:
 97               ##      XMLTraceOn: Enables XML request and response tracing.
 98               ##      ProviderLoadTraceOn: Enables Provider load tracing.
 99               ##      XML+ProviderLoadTraceOn: Enables both XML request/response and Provider
100               ##                                 load tracing.
101               ##      AllTraceOn: Enables all tracing.
102               ##      AllTraceOff: Disables all tracing.
103               ##      list: Lists trace settings.
104               ##
105               ###############################################################################
106 kumpf 1.1.2.1 
107               XMLTraceOn:
108               	cimconfig -s traceComponents=XmlIO -c
109               	cimconfig -s traceLevel=3 -c
110               	cimconfig -g traceComponents
111               	cimconfig -g traceLevel
112               
113               ProviderLoadTraceOn:
114               	cimconfig -s traceComponents=ProvManager,OsAbstraction
115               	cimconfig -s traceLevel=3 -c
116               	cimconfig -g traceComponents
117               	cimconfig -g traceLevel
118               
119               XML+ProviderLoadTraceOn:
120               	cimconfig -s traceComponents=XmlIO,ProvManager,OsAbstraction
121               	cimconfig -s traceLevel=3 -c
122               	cimconfig -g traceComponents
123               	cimconfig -g traceLevel
124               
125               AllTraceOn:
126               	cimconfig -s traceComponents=ALL
127 kumpf 1.1.2.1 	cimconfig -s traceLevel=3 -c
128               	cimconfig -g traceComponents
129               	cimconfig -g traceLevel
130               
131               AllTraceOff:
132               	cimconfig -s traceComponents=
133               	cimconfig -g traceComponents
134               	cimconfig -g traceLevel
135               
136               list:
137               	cimconfig -g traceComponents
138               	cimconfig -g traceLevel
139               	cimconfig -g traceFilePath
140               
141               # DO NOT DELETE

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2