version 1.24, 2003/06/13 09:36:46
|
version 1.32, 2005/01/11 21:26:29
|
|
|
## | ## |
############################################################################### | ############################################################################### |
| |
include pegasus/mak/config.mak |
include $(PEGASUS_ROOT)/mak/config.mak |
| |
# There is a start command for cimserver but no stop today. Because of problems with | # 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 | # the use of cimserver as a service, we simply used the start command to allow us to |
|
|
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) |
MKDIR = $(MUEXE) mkdirhier |
MKDIR = pegasus/src/utils/mu/mu mkdirhier |
|
TESTS = prestarttests poststarttests | TESTS = prestarttests poststarttests |
endif | endif |
| |
ifeq ($(OS),HPUX) | ifeq ($(OS),HPUX) |
CIMSERVER_START_SERVICE = cimserver | CIMSERVER_START_SERVICE = cimserver |
CIMSERVER_STOP_SERVICE = cimserver -s |
CIMSERVER_STOP_SERVICE = cimserver -s; true |
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) $(BIN_DIR)/$(MUEXE) |
MKDIR = $(MUEXE) 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),SOLARIS_SPARC_CC) |
CIMSERVER_START_SERVICE = cimserver | 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 = /usr/bin/ps -ef | /usr/bin/grep cimserver | /usr/bin/grep -v grep | /usr/bin/awk '{print "kill -9 "$$2 |"/usr/bin/ksh"}' |
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) $(BIN_DIR)/$(MUEXE) |
MKDIR = $(MUEXE) mkdirhier |
MKDIR = pegasus/src/utils/mu/mu mkdirhier |
|
TESTS = prestarttests poststarttests | TESTS = prestarttests poststarttests |
endif | endif |
| |
ifeq ($(PEGASUS_PLATFORM),LINUX_IA64_GNU) |
ifdef PEGASUS_PLATFORM_LINUX_GENERIC_GNU |
CIMSERVER_START_SERVICE = cimserver | 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) $(BIN_DIR)/$(MUEXE) |
MKDIR = $(MUEXE) mkdirhier |
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"}' |
|
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 | TESTS = prestarttests poststarttests |
endif | endif |
| |
|
|
buildmu: | buildmu: |
$(MAKE) --directory=$(PEGASUS_ROOT)/src/utils/mu -f Makefile | $(MAKE) --directory=$(PEGASUS_ROOT)/src/utils/mu -f Makefile |
$(MKDIR) $(BIN_DIR) | $(MKDIR) $(BIN_DIR) |
$(COPYMU) |
|
| |
cleanbuild: removeall recheckout buildmu all $(TESTS) | cleanbuild: removeall recheckout buildmu all $(TESTS) |
| |
|
|
| |
rebuild: clean buildmu all tests | rebuild: clean buildmu all tests |
| |
|
rebuild-notest: clean buildmu all |
|
|
build: all tests | build: all tests |
| |
|
build-notest: all |
|
|
all: buildmu | all: buildmu |
$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile depend | $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile depend |
$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile all | $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile all |
|
|
$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository | $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository |
$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository | $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository |
$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile tests | $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile tests |
$(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile install |
$(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile install_run |
| |
poststarttests: | poststarttests: |
|
$(MAKE) --directory=$(PEGASUS_ROOT)/src/Pegasus/CQL/tests/Queries -f Makefile clean |
|
$(MAKE) --directory=$(PEGASUS_ROOT)/src/Pegasus/Query/QueryExpression/tests/Queries -f Makefile clean |
$(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile clean | $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile clean |
$(CIMSERVER_START_SERVICE) | $(CIMSERVER_START_SERVICE) |
$(SLEEP) | $(SLEEP) |