version 1.13, 2002/04/01 02:43:00
|
version 1.24, 2003/06/13 09:36:46
|
|
|
| |
############################################################################### | ############################################################################### |
## | ## |
## Platform specific settings for HP-UX |
## Platform specific settings for several platforms. |
## | ## |
## NOTE: Please add platform specific environment variables as appropriate. | ## NOTE: Please add platform specific environment variables as appropriate. |
## | ## |
############################################################################### | ############################################################################### |
| |
|
include pegasus/mak/config.mak |
|
|
|
# There is a start command for cimserver but no stop today. Because of problems with |
|
# the use of cimserver as a service, we simply used the start command to allow us to |
|
# get on with testing. I know of no CLI to stop a window started with start so that |
|
# field is blank. ks 7 April 2002 |
ifeq ($(PEGASUS_PLATFORM),WIN32_IX86_MSVC) | ifeq ($(PEGASUS_PLATFORM),WIN32_IX86_MSVC) |
CIMSERVER_START_SERVICE = |
CIMSERVER_START_SERVICE = cimserver -start |
CIMSERVER_STOP_SERVICE = |
CIMSERVER_STOP_SERVICE = cimserver -stop |
SLEEP = | SLEEP = |
REMOVE_PEGASUS_DIRECTORY = mu rmdirhier pegasus | REMOVE_PEGASUS_DIRECTORY = mu rmdirhier pegasus |
MUEXE = mu.exe | MUEXE = mu.exe |
COPYMU = copy pegasus\src\utils\mu\$(MUEXE) /y $(MUEXE) | COPYMU = copy pegasus\src\utils\mu\$(MUEXE) /y $(MUEXE) |
MKDIR = pegasus/src/utils/mu/mu mkdirhier | MKDIR = pegasus/src/utils/mu/mu mkdirhier |
TESTS = prestarttests |
TESTS = prestarttests poststarttests |
endif | endif |
| |
ifeq ($(PEGASUS_PLATFORM),HPUX_PARISC_ACC) |
ifeq ($(OS),HPUX) |
CIMSERVER_START_SERVICE = cimserver -d |
CIMSERVER_START_SERVICE = cimserver |
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"}' |
CIMSERVER_STOP_SERVICE = cimserver -s |
SLEEP = sleep 5 | SLEEP = sleep 5 |
REMOVE_PEGASUS_DIRECTORY = rm -Rf pegasus.old; mv pegasus pegasus.old | REMOVE_PEGASUS_DIRECTORY = rm -Rf pegasus.old; mv pegasus pegasus.old |
MUEXE = mu | MUEXE = mu |
COPYMU = cp -f pegasus/src/utils/mu/$(MUEXE) /usr/local/bin/$(MUEXE) |
COPYMU = cp -f pegasus/src/utils/mu/$(MUEXE) $(BIN_DIR)/$(MUEXE) |
MKDIR = pegasus/src/utils/mu/mu mkdirhier | MKDIR = pegasus/src/utils/mu/mu mkdirhier |
TESTS = prestarttests poststarttests | TESTS = prestarttests poststarttests |
endif | endif |
| |
ifeq ($(PEGASUS_PLATFORM),LINUX_IX86_GNU) | ifeq ($(PEGASUS_PLATFORM),LINUX_IX86_GNU) |
CIMSERVER_START_SERVICE = cimserver -d |
CIMSERVER_START_SERVICE = cimserver |
CIMSERVER_STOP_SERVICE = /bin/ps -ef | /bin/grep cimserver | /bin/grep -v grep | /usr/bin/awk '{print "kill -9 "$$2 |"/bin/bash"}' | 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 | SLEEP = sleep 5 |
REMOVE_PEGASUS_DIRECTORY = rm -Rf pegasus.old; mv pegasus pegasus.old | REMOVE_PEGASUS_DIRECTORY = rm -Rf pegasus.old; mv pegasus pegasus.old |
MUEXE = mu | MUEXE = mu |
COPYMU = cp -f pegasus/src/utils/mu/$(MUEXE) /usr/local/bin/$(MUEXE) |
COPYMU = cp -f pegasus/src/utils/mu/$(MUEXE) $(BIN_DIR)/$(MUEXE) |
MKDIR = pegasus/src/utils/mu/mu mkdirhier | MKDIR = pegasus/src/utils/mu/mu mkdirhier |
TESTS = prestarttests poststarttests | TESTS = prestarttests poststarttests |
endif | endif |
| |
ifeq ($(PEGASUS_PLATFORM),LINUX_IA64_GNU) | ifeq ($(PEGASUS_PLATFORM),LINUX_IA64_GNU) |
CIMSERVER_START_SERVICE = cimserver -d |
CIMSERVER_START_SERVICE = cimserver |
|
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) $(BIN_DIR)/$(MUEXE) |
|
MKDIR = pegasus/src/utils/mu/mu mkdirhier |
|
TESTS = prestarttests poststarttests |
|
endif |
|
|
|
ifeq ($(PEGASUS_PLATFORM),LINUX_PPC_GNU) |
|
CIMSERVER_START_SERVICE = cimserver |
CIMSERVER_STOP_SERVICE = /bin/ps -ef | /bin/grep cimserver | /bin/grep -v grep | /usr/bin/awk '{print "kill -9 "$$2 |"/bin/bash"}' | 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 | SLEEP = sleep 5 |
REMOVE_PEGASUS_DIRECTORY = rm -Rf pegasus.old; mv pegasus pegasus.old | REMOVE_PEGASUS_DIRECTORY = rm -Rf pegasus.old; mv pegasus pegasus.old |
MUEXE = mu | MUEXE = mu |
COPYMU = cp -f pegasus/src/utils/mu/$(MUEXE) /usr/local/bin/$(MUEXE) |
COPYMU = cp -f pegasus/src/utils/mu/$(MUEXE) $(BIN_DIR)/$(MUEXE) |
MKDIR = pegasus/src/utils/mu/mu mkdirhier | MKDIR = pegasus/src/utils/mu/mu mkdirhier |
TESTS = prestarttests poststarttests | TESTS = prestarttests poststarttests |
endif | endif |
|
|
@ echo "Specify desired makefile option (i.e., cleanbuild, rebuild)" | @ echo "Specify desired makefile option (i.e., cleanbuild, rebuild)" |
| |
buildmu: | buildmu: |
$(MAKE) --directory=pegasus/src/utils/mu -f Makefile |
$(MAKE) --directory=$(PEGASUS_ROOT)/src/utils/mu -f Makefile |
|
$(MKDIR) $(BIN_DIR) |
$(COPYMU) | $(COPYMU) |
| |
cleanbuild: removeall recheckout buildmu all $(TESTS) | cleanbuild: removeall recheckout buildmu all $(TESTS) |
|
|
build: all tests | build: all tests |
| |
all: buildmu | all: buildmu |
$(MAKE) --directory=pegasus -f Makefile depend |
$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile depend |
$(MAKE) --directory=pegasus -f Makefile all |
$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile all |
| |
doc: | doc: |
$(MAKE) --directory=pegasus/doc/ProviderSpec -f Makefile |
$(MAKE) --directory=$(PEGASUS_ROOT)/doc/ProviderSpec -f Makefile |
$(MAKE) --directory=pegasus/doc/DevManual -f Makefile |
$(MAKE) --directory=$(PEGASUS_ROOT)/doc/DevManual -f Makefile |
| |
clean: | clean: |
$(MAKE) --directory=pegasus -f Makefile clean |
$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile clean |
| |
|
repositoryServer: |
|
$(CIMSERVER_STOP_SERVICE) |
|
$(SLEEP) |
|
$(RMDIRHIER) $(REPOSITORY_ROOT) |
|
$(CIMSERVER_START_SERVICE) |
|
$(SLEEP) |
|
$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryServer |
|
$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepositoryServer |
| |
prestarttests: | prestarttests: |
$(CIMSERVER_STOP_SERVICE) | $(CIMSERVER_STOP_SERVICE) |
$(SLEEP) | $(SLEEP) |
$(MAKE) --directory=pegasus -f Makefile repository |
$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository |
$(MAKE) --directory=pegasus -f Makefile testrepository |
$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository |
$(MAKE) --directory=pegasus -f Makefile tests |
$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile tests |
$(MAKE) --directory=pegasus/src/Server -f Makefile install |
$(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile install |
| |
poststarttests: | poststarttests: |
$(MAKE) --directory=pegasus/test/wetest -f Makefile clean |
$(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile clean |
$(CIMSERVER_START_SERVICE) | $(CIMSERVER_START_SERVICE) |
$(SLEEP) | $(SLEEP) |
$(MAKE) --directory=pegasus -f Makefile poststarttests |
$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests |
@ $(CIMSERVER_STOP_SERVICE) |
|
$(SLEEP) |
|
| |
tests: $(TESTS) | tests: $(TESTS) |
|
ifeq ($(PEGASUS_PLATFORM),WIN32_IX86_MSVC) |
|
$(CIMSERVER_STOP_SERVICE) |
|
$(MAKE) --directory=$(PEGASUS_ROOT)src/Server -f Makefile uninstall |
|
endif |
@ echo Finished Tests | @ echo Finished Tests |
| |
############################################################################### | ############################################################################### |