version 1.13, 2002/04/01 02:43:00
|
version 1.45, 2008/12/02 09:00:00
|
|
|
############################################################################### |
#//%LICENSE//////////////////////////////////////////////////////////////// |
## |
#// |
## Makefile for Pegasus CIMOM |
#// Licensed to The Open Group (TOG) under one or more contributor license |
## |
#// agreements. Refer to the OpenPegasusNOTICE.txt file distributed with |
## NOTE: Makefile needs to be executed from the parent directory of |
#// this work for additional information regarding copyright ownership. |
## pegasus directory because the path settings are relative and this |
#// Each contributor licenses this file to you under the OpenPegasus Open |
## Makefile may remove and recheckout the pegasus source tree. |
#// Source License; you may not use this file except in compliance with the |
|
#// License. |
|
#// |
|
#// Permission is hereby granted, free of charge, to any person obtaining a |
|
#// copy of this software and associated documentation files (the "Software"), |
|
#// to deal in the Software without restriction, including without limitation |
|
#// the rights to use, copy, modify, merge, publish, distribute, sublicense, |
|
#// and/or sell copies of the Software, and to permit persons to whom the |
|
#// Software is furnished to do so, subject to the following conditions: |
|
#// |
|
#// The above copyright notice and this permission notice shall be included |
|
#// in all copies or substantial portions of the Software. |
|
#// |
|
#// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS |
|
#// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
|
#// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
|
#// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY |
|
#// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, |
|
#// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE |
|
#// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
|
#// |
|
#////////////////////////////////////////////////////////////////////////// |
|
############################################################################### |
|
## |
|
## Makefile for managing a Pegasus source tree |
|
## |
|
## NOTE: This Makefile should be executed from the parent directory of the |
|
## pegasus directory because it may remove and recheckout the pegasus source |
|
## tree. |
## | ## |
## Options: | ## Options: |
## cleanbuild - Removes the existing pegasus directory contents, performs |
## cleanbuild - Remove the existing pegasus directory, perform a CVS |
## checkout, build and runs tests. |
## checkout of the pegasus source, build, and run tests. |
## rebuild - Rebuild and execute tests. |
## removeall - Remove the existing pegasus directory. |
## |
## checkout - Perform a CVS checkout of the pegasus source. |
############################################################################### |
## recheckout - Remove the existing pegasus directory and perform a CVS |
|
## checkout of the pegasus source. |
############################################################################### |
|
## |
|
## Platform specific settings for HP-UX |
|
## | ## |
## NOTE: Please add platform specific environment variables as appropriate. |
## All pegasus/TestMakefile options are also supported by this Makefile. |
## | ## |
############################################################################### | ############################################################################### |
| |
ifeq ($(PEGASUS_PLATFORM),WIN32_IX86_MSVC) |
include $(PEGASUS_ROOT)/TestMakefile |
CIMSERVER_START_SERVICE = |
|
CIMSERVER_STOP_SERVICE = |
|
SLEEP = |
|
REMOVE_PEGASUS_DIRECTORY = mu rmdirhier pegasus |
|
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"}' |
|
SLEEP = sleep 5 |
|
REMOVE_PEGASUS_DIRECTORY = rm -Rf pegasus.old; mv pegasus pegasus.old |
|
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 |
|
|
|
ifeq ($(PEGASUS_PLATFORM),LINUX_IX86_GNU) |
|
CIMSERVER_START_SERVICE = cimserver -d |
|
CIMSERVER_STOP_SERVICE = /bin/ps -ef | /bin/grep cimserver | /bin/grep -v grep | /usr/bin/awk '{print "kill -9 "$$2 |"/bin/bash"}' |
|
SLEEP = sleep 5 |
|
REMOVE_PEGASUS_DIRECTORY = rm -Rf pegasus.old; mv pegasus pegasus.old |
|
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 |
|
|
|
ifeq ($(PEGASUS_PLATFORM),LINUX_IA64_GNU) |
|
CIMSERVER_START_SERVICE = cimserver -d |
|
CIMSERVER_STOP_SERVICE = /bin/ps -ef | /bin/grep cimserver | /bin/grep -v grep | /usr/bin/awk '{print "kill -9 "$$2 |"/bin/bash"}' |
|
SLEEP = sleep 5 |
|
REMOVE_PEGASUS_DIRECTORY = rm -Rf pegasus.old; mv pegasus pegasus.old |
|
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 |
|
| |
ifeq ($(DYNAMIC_SOCKSIFY),TRUE) | ifeq ($(DYNAMIC_SOCKSIFY),TRUE) |
CVS = socksify cvs | CVS = socksify cvs |
|
|
CVS = cvs | CVS = cvs |
endif | endif |
| |
error: |
# Explicitly invoke the TestMakefile so that the re-checked-out copy is used. |
@ echo "Specify desired makefile option (i.e., cleanbuild, rebuild)" |
cleanbuild: recheckout |
|
$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile build |
buildmu: |
$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile alltests |
$(MAKE) --directory=pegasus/src/utils/mu -f Makefile |
|
$(COPYMU) |
|
|
|
cleanbuild: removeall recheckout buildmu 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 |
|
|
|
build: all tests |
|
|
|
all: buildmu |
|
$(MAKE) --directory=pegasus -f Makefile depend |
|
$(MAKE) --directory=pegasus -f Makefile all |
|
|
|
doc: |
|
$(MAKE) --directory=pegasus/doc/ProviderSpec -f Makefile |
|
$(MAKE) --directory=pegasus/doc/DevManual -f Makefile |
|
|
|
clean: |
|
$(MAKE) --directory=pegasus -f Makefile clean |
|
|
|
|
|
prestarttests: |
|
$(CIMSERVER_STOP_SERVICE) |
|
$(SLEEP) |
|
$(MAKE) --directory=pegasus -f Makefile repository |
|
$(MAKE) --directory=pegasus -f Makefile testrepository |
|
$(MAKE) --directory=pegasus -f Makefile tests |
|
$(MAKE) --directory=pegasus/src/Server -f Makefile install |
|
|
|
poststarttests: |
|
$(MAKE) --directory=pegasus/test/wetest -f Makefile clean |
|
$(CIMSERVER_START_SERVICE) |
|
$(SLEEP) |
|
$(MAKE) --directory=pegasus -f Makefile poststarttests |
|
@ $(CIMSERVER_STOP_SERVICE) |
|
$(SLEEP) |
|
|
|
tests: $(TESTS) |
|
@ echo Finished Tests |
|
|
|
############################################################################### |
|
## |
|
## 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: |
|
cimconfig -s traceComponents=XmlIO -c |
|
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 |
|