(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 kumpf 1.26   CIMSERVER_STOP_SERVICE = cimserver -s; true
 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 keith.petley 1.27 ifeq ($(PEGASUS_PLATFORM),SOLARIS_SPARC_CC)
 53                     CIMSERVER_START_SERVICE = cimserver
 54                     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/ksh"}'
 55                     SLEEP = sleep 5
 56                     REMOVE_PEGASUS_DIRECTORY = rm -Rf pegasus.old; mv pegasus pegasus.old
 57                     MUEXE = mu
 58                     COPYMU = cp -f pegasus/src/utils/mu/$(MUEXE) $(BIN_DIR)/$(MUEXE)
 59                     MKDIR = pegasus/src/utils/mu/mu mkdirhier
 60                     TESTS = prestarttests poststarttests
 61                   endif
 62                   
 63 david.eger   1.25 ifdef PEGASUS_PLATFORM_LINUX_GENERIC_GNU
 64 david.eger   1.23   CIMSERVER_START_SERVICE = cimserver
 65                     CIMSERVER_STOP_SERVICE = /bin/ps -ef | /bin/grep cimserver | /bin/grep -v grep | /usr/bin/awk '{print "kill -9 "$$2 |"/bin/bash"}'
 66                     SLEEP = sleep 5
 67                     REMOVE_PEGASUS_DIRECTORY = rm -Rf pegasus.old; mv pegasus pegasus.old
 68                     MUEXE = mu
 69                     COPYMU = cp -f pegasus/src/utils/mu/$(MUEXE) $(BIN_DIR)/$(MUEXE)
 70                     MKDIR = pegasus/src/utils/mu/mu mkdirhier
 71                     TESTS = prestarttests poststarttests
 72                   endif
 73                   
 74 kumpf        1.12 ifeq ($(DYNAMIC_SOCKSIFY),TRUE)
 75                     CVS = socksify cvs
 76                   else
 77                     CVS = cvs
 78                   endif
 79                   
 80 mike         1.2  error: 
 81                   	@ echo "Specify desired makefile option (i.e., cleanbuild, rebuild)"
 82                   
 83                   buildmu:
 84 david.eger   1.24 	$(MAKE) --directory=$(PEGASUS_ROOT)/src/utils/mu -f Makefile
 85 kumpf        1.15 	$(MKDIR) $(BIN_DIR)
 86 mike         1.2  	$(COPYMU)
 87 david.eger   1.24 
 88 mike         1.2  cleanbuild: removeall recheckout buildmu all $(TESTS) 
 89                   
 90                   recheckout: removeall checkout
 91                   
 92                   removeall:
 93                   	$(REMOVE_PEGASUS_DIRECTORY)
 94                   
 95                   checkout:
 96 kumpf        1.12 	$(CVS) checkout pegasus
 97 david.eger   1.24 
 98 mike         1.2  rebuild: clean buildmu all tests
 99                   
100 kumpf        1.28 rebuild-notest: clean buildmu all
101                   
102 kumpf        1.13 build: all tests
103 kumpf        1.28 
104                   build-notest: all
105 kumpf        1.13 
106 mike         1.2  all: buildmu
107 david.eger   1.24 	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile depend
108                   	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile all
109 mike         1.2  
110 kumpf        1.8  doc:
111 david.eger   1.24 	$(MAKE) --directory=$(PEGASUS_ROOT)/doc/ProviderSpec -f Makefile
112                   	$(MAKE) --directory=$(PEGASUS_ROOT)/doc/DevManual -f Makefile
113 kumpf        1.8  
114 mike         1.2  clean:
115 david.eger   1.24 	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile clean
116 mike         1.2  
117 kumpf        1.17 repositoryServer: 
118                   	$(CIMSERVER_STOP_SERVICE)
119                   	$(SLEEP)
120                   	$(RMDIRHIER) $(REPOSITORY_ROOT)
121                   	$(CIMSERVER_START_SERVICE)
122                   	$(SLEEP)
123 david.eger   1.24 	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryServer
124                   	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepositoryServer
125                   
126 mike         1.2  prestarttests: 
127 kumpf        1.7  	$(CIMSERVER_STOP_SERVICE)
128                   	$(SLEEP)
129 david.eger   1.24 	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository
130                   	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository
131                   	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile tests
132                   	$(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile install
133 mike         1.2  
134                   poststarttests:
135 david.eger   1.24 	$(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile clean
136 kumpf        1.6  	$(CIMSERVER_START_SERVICE)
137                   	$(SLEEP)
138 david.eger   1.24 	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests
139 mike         1.2  
140                   tests: $(TESTS)
141 tony         1.21 ifeq ($(PEGASUS_PLATFORM),WIN32_IX86_MSVC)
142                   	$(CIMSERVER_STOP_SERVICE)
143 david.eger   1.24 	$(MAKE) --directory=$(PEGASUS_ROOT)src/Server -f Makefile uninstall
144 tony         1.21 endif
145 mike         1.2  	@ echo Finished Tests
146                   
147                   ###############################################################################
148                   ##
149                   ## Trace Configuration
150                   ##
151                   ## Options:
152                   ##      XMLTraceOn: Enables XML request and response tracing.
153                   ##      ProviderLoadTraceOn: Enables Provider load tracing.
154                   ##      XML+ProviderLoadTraceOn: Enables both XML request/response and Provider
155                   ##                                 load tracing.
156                   ##      AllTraceOn: Enables all tracing.
157                   ##      AllTraceOff: Disables all tracing.
158                   ##      list: Lists trace settings.
159                   ##
160                   ###############################################################################
161                   
162                   XMLTraceOn:
163                   	cimconfig -s traceComponents=XmlIO -c
164                   	cimconfig -s traceLevel=3 -c
165                   	cimconfig -g traceComponents
166 mike         1.2  	cimconfig -g traceLevel
167                   
168                   ProviderLoadTraceOn:
169                   	cimconfig -s traceComponents=ProvManager,OsAbstraction
170                   	cimconfig -s traceLevel=3 -c
171                   	cimconfig -g traceComponents
172                   	cimconfig -g traceLevel
173                   
174                   XML+ProviderLoadTraceOn:
175                   	cimconfig -s traceComponents=XmlIO,ProvManager,OsAbstraction
176                   	cimconfig -s traceLevel=3 -c
177                   	cimconfig -g traceComponents
178                   	cimconfig -g traceLevel
179                   
180                   AllTraceOn:
181                   	cimconfig -s traceComponents=ALL
182                   	cimconfig -s traceLevel=3 -c
183                   	cimconfig -g traceComponents
184                   	cimconfig -g traceLevel
185                   
186                   AllTraceOff:
187 mike         1.2  	cimconfig -s traceComponents=
188                   	cimconfig -g traceComponents
189                   	cimconfig -g traceLevel
190                   
191                   list:
192                   	cimconfig -g traceComponents
193                   	cimconfig -g traceLevel
194                   	cimconfig -g traceFilePath
195                   
196                   # DO NOT DELETE

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2