version 1.4, 2002/01/14 03:48:59
|
version 1.38, 2005/02/15 20:57:14
|
|
|
## | ## |
## Makefile for Pegasus CIMOM | ## Makefile for Pegasus CIMOM |
## | ## |
## NOTE: Makefile needs to be executed from the parent directory of |
## NOTE: This Makefile should be executed from the parent directory of the |
## pegasus directory because the path settings are relative and this |
## pegasus directory because it may remove and recheckout the pegasus source |
## Makefile may remove and recheckout the pegasus source tree. |
## tree. |
## | ## |
## Options: | ## Options: |
## cleanbuild - Removes the existing pegasus directory contents, performs | ## cleanbuild - Removes the existing pegasus directory contents, performs |
|
|
## | ## |
############################################################################### | ############################################################################### |
| |
############################################################################### |
|
## |
|
## Platform specific settings for HP-UX |
|
## |
|
## NOTE: Please add platform specific environment variables as appropriate. |
|
## |
|
############################################################################### |
|
|
|
ifeq ($(PEGASUS_PLATFORM),WIN32_IX86_MSVC) |
|
CIMSERVER_START_SERVICE = cimserver -install |
|
CIMSERVER_STOP_SERVICE = cimserver -remove |
|
REMOVE_PEGASUS_DIRECTORY = mu rmdirhier pegasus |
|
SLEEP = |
|
MUEXE = mu.exe |
|
COPYMU = copy pegasus\src\utils\mu\$(MUEXE) /y $(MUEXE) |
|
MKDIR = pegasus/src/utils/mu/mu mkdirhier |
|
TESTS = prestarttests |
|
endif |
|
|
|
ifeq ($(PEGASUS_PLATFORM),HPUX_PARISC_ACC) |
|
CIMSERVER_START_SERVICE = cimserver -d |
|
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"}' |
|
REMOVE_PEGASUS_DIRECTORY = rm -Rf pegasus.old; mv pegasus pegasus.old |
|
SLEEP = sleep 2 |
|
MUEXE = mu |
|
COPYMU = cp -f pegasus/src/utils/mu/$(MUEXE) /usr/local/bin/$(MUEXE) |
|
MKDIR = pegasus/src/utils/mu/mu mkdirhier |
|
TESTS = prestarttests poststarttests |
|
endif |
|
|
|
error: | error: |
@ echo "Specify desired makefile option (i.e., cleanbuild, rebuild)" | @ echo "Specify desired makefile option (i.e., cleanbuild, rebuild)" |
| |
buildmu: |
include $(PEGASUS_ROOT)/mak/config.mak |
$(MAKE) --directory=pegasus/src/utils/mu -f Makefile |
include $(PEGASUS_ROOT)/mak/commands.mak |
$(COPYMU) |
|
|
ifeq ($(DYNAMIC_SOCKSIFY),TRUE) |
|
CVS = socksify cvs |
|
else |
|
CVS = cvs |
|
endif |
| |
cleanbuild: removeall recheckout buildmu all $(TESTS) |
cleanbuild: recheckout all tests |
| |
recheckout: removeall checkout | recheckout: removeall checkout |
| |
|
|
$(REMOVE_PEGASUS_DIRECTORY) | $(REMOVE_PEGASUS_DIRECTORY) |
| |
checkout: | checkout: |
cvs checkout pegasus |
$(CVS) checkout -P pegasus |
| |
rebuild: clean buildmu all tests |
rebuild: |
|
$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile rebuild |
| |
all: buildmu |
build: |
$(MAKE) --directory=pegasus -f Makefile depend |
$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile build |
$(MAKE) --directory=pegasus -f Makefile all |
|
| |
clean: | clean: |
$(MAKE) --directory=pegasus -f Makefile clean |
$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile clean |
| |
|
buildmu: |
|
$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile buildmu |
| |
prestarttests: |
all: |
$(MAKE) --directory=pegasus -f Makefile repository |
$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile all |
$(MAKE) --directory=pegasus -f Makefile config |
|
$(MAKE) --directory=pegasus -f Makefile user |
|
$(MAKE) --directory=pegasus -f Makefile shutdownService |
|
$(MAKE) --directory=pegasus -f Makefile registration |
|
$(MAKE) --directory=pegasus -f Makefile tests |
|
$(MAKE) --directory=pegasus/src/Server -f Makefile install |
|
$(MAKE) --directory=pegasus/test -f Makefile clean |
|
| |
poststarttests: |
doc: |
$(CIMSERVER_START_SERVICE) |
$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile doc |
$(SLEEP) |
|
TestClient |
|
Client |
|
$(MAKE) --directory=pegasus/test -f Makefile tests |
|
@ echo Terminating cimserver... |
|
@ $(CIMSERVER_STOP_SERVICE) |
|
| |
tests: $(TESTS) |
repositoryServer: |
@ echo Finished Tests |
$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile repositoryServer |
| |
############################################################################### |
prestarttests: |
## |
$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile prestarttests |
## Trace Configuration |
|
## |
|
## Options: |
|
## XMLTraceOn: Enables XML request and response tracing. |
|
## ProviderLoadTraceOn: Enables Provider load tracing. |
|
## XML+ProviderLoadTraceOn: Enables both XML request/response and Provider |
|
## load tracing. |
|
## AllTraceOn: Enables all tracing. |
|
## AllTraceOff: Disables all tracing. |
|
## list: Lists trace settings. |
|
## |
|
############################################################################### |
|
| |
XMLTraceOn: |
poststarttests: |
cimconfig -s traceComponents=XmlIO -c |
$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile poststarttests |
cimconfig -s traceLevel=3 -c |
|
cimconfig -g traceComponents |
|
cimconfig -g traceLevel |
|
|
|
ProviderLoadTraceOn: |
|
cimconfig -s traceComponents=ProvManager,OsAbstraction |
|
cimconfig -s traceLevel=3 -c |
|
cimconfig -g traceComponents |
|
cimconfig -g traceLevel |
|
|
|
XML+ProviderLoadTraceOn: |
|
cimconfig -s traceComponents=XmlIO,ProvManager,OsAbstraction |
|
cimconfig -s traceLevel=3 -c |
|
cimconfig -g traceComponents |
|
cimconfig -g traceLevel |
|
|
|
AllTraceOn: |
|
cimconfig -s traceComponents=ALL |
|
cimconfig -s traceLevel=3 -c |
|
cimconfig -g traceComponents |
|
cimconfig -g traceLevel |
|
|
|
AllTraceOff: |
|
cimconfig -s traceComponents= |
|
cimconfig -g traceComponents |
|
cimconfig -g traceLevel |
|
|
|
list: |
|
cimconfig -g traceComponents |
|
cimconfig -g traceLevel |
|
cimconfig -g traceFilePath |
|
| |
# DO NOT DELETE |
tests: |
|
$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile tests |