(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 david.eger 1.22.2.1 ifdef PEGASUS_PLATFORM_LINUX_GENERIC_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 karl       1.10       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 karl       1.10       MKDIR = pegasus/src/utils/mu/mu mkdirhier
 60                       TESTS = prestarttests poststarttests
 61                     endif
 62                     
 63 kumpf      1.12     ifeq ($(DYNAMIC_SOCKSIFY),TRUE)
 64                       CVS = socksify cvs
 65                     else
 66                       CVS = cvs
 67                     endif
 68                     
 69 mike       1.2      error: 
 70                     	@ echo "Specify desired makefile option (i.e., cleanbuild, rebuild)"
 71                     
 72                     buildmu:
 73 mday       1.22     	$(MAKE) --directory=$(PEGASUS_ROOT)/src/utils/mu -f Makefile
 74 kumpf      1.15     	$(MKDIR) $(BIN_DIR)
 75 mike       1.2      	$(COPYMU)
 76 mday       1.22     
 77 mike       1.2      cleanbuild: removeall recheckout buildmu all $(TESTS) 
 78                     
 79                     recheckout: removeall checkout
 80                     
 81                     removeall:
 82                     	$(REMOVE_PEGASUS_DIRECTORY)
 83                     
 84                     checkout:
 85 kumpf      1.12     	$(CVS) checkout pegasus
 86 mday       1.22     
 87 mike       1.2      rebuild: clean buildmu all tests
 88                     
 89 kumpf      1.13     build: all tests
 90                     
 91 mike       1.2      all: buildmu
 92 mday       1.22     	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile depend
 93                     	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile all
 94 mike       1.2      
 95 kumpf      1.8      doc:
 96 mday       1.22     	$(MAKE) --directory=$(PEGASUS_ROOT)/doc/ProviderSpec -f Makefile
 97                     	$(MAKE) --directory=$(PEGASUS_ROOT)/doc/DevManual -f Makefile
 98 kumpf      1.8      
 99 mike       1.2      clean:
100 mday       1.22     	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile clean
101 mike       1.2      
102 kumpf      1.17     repositoryServer: 
103                     	$(CIMSERVER_STOP_SERVICE)
104                     	$(SLEEP)
105                     	$(RMDIRHIER) $(REPOSITORY_ROOT)
106                     	$(CIMSERVER_START_SERVICE)
107                     	$(SLEEP)
108 mday       1.22     	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryServer
109                     	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepositoryServer
110                     
111 mike       1.2      prestarttests: 
112 kumpf      1.7      	$(CIMSERVER_STOP_SERVICE)
113                     	$(SLEEP)
114 mday       1.22     	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository
115                     	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository
116                     	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile tests
117                     	$(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile install
118 mike       1.2      
119                     poststarttests:
120 mday       1.22     	$(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile clean
121 kumpf      1.6      	$(CIMSERVER_START_SERVICE)
122                     	$(SLEEP)
123 mday       1.22     	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests
124 mike       1.2      
125                     tests: $(TESTS)
126 tony       1.21     ifeq ($(PEGASUS_PLATFORM),WIN32_IX86_MSVC)
127                     	$(CIMSERVER_STOP_SERVICE)
128 mday       1.22     	$(MAKE) --directory=$(PEGASUS_ROOT)src/Server -f Makefile uninstall
129 tony       1.21     endif
130 mike       1.2      	@ echo Finished Tests
131                     
132                     ###############################################################################
133                     ##
134                     ## Trace Configuration
135                     ##
136                     ## Options:
137                     ##      XMLTraceOn: Enables XML request and response tracing.
138                     ##      ProviderLoadTraceOn: Enables Provider load tracing.
139                     ##      XML+ProviderLoadTraceOn: Enables both XML request/response and Provider
140                     ##                                 load tracing.
141                     ##      AllTraceOn: Enables all tracing.
142                     ##      AllTraceOff: Disables all tracing.
143                     ##      list: Lists trace settings.
144                     ##
145                     ###############################################################################
146                     
147                     XMLTraceOn:
148                     	cimconfig -s traceComponents=XmlIO -c
149                     	cimconfig -s traceLevel=3 -c
150                     	cimconfig -g traceComponents
151 mike       1.2      	cimconfig -g traceLevel
152                     
153                     ProviderLoadTraceOn:
154                     	cimconfig -s traceComponents=ProvManager,OsAbstraction
155                     	cimconfig -s traceLevel=3 -c
156                     	cimconfig -g traceComponents
157                     	cimconfig -g traceLevel
158                     
159                     XML+ProviderLoadTraceOn:
160                     	cimconfig -s traceComponents=XmlIO,ProvManager,OsAbstraction
161                     	cimconfig -s traceLevel=3 -c
162                     	cimconfig -g traceComponents
163                     	cimconfig -g traceLevel
164                     
165                     AllTraceOn:
166                     	cimconfig -s traceComponents=ALL
167                     	cimconfig -s traceLevel=3 -c
168                     	cimconfig -g traceComponents
169                     	cimconfig -g traceLevel
170                     
171                     AllTraceOff:
172 mike       1.2      	cimconfig -s traceComponents=
173                     	cimconfig -g traceComponents
174                     	cimconfig -g traceLevel
175                     
176                     list:
177                     	cimconfig -g traceComponents
178                     	cimconfig -g traceLevel
179                     	cimconfig -g traceFilePath
180                     
181                     # DO NOT DELETE

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2