version 1.28, 2005/05/11 10:41:40
|
version 1.34, 2005/09/29 20:33:10
|
|
|
|
#//%2005//////////////////////////////////////////////////////////////////////// |
|
#// |
|
#// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development |
|
#// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. |
|
#// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.; |
|
#// IBM Corp.; EMC Corporation, The Open Group. |
|
#// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; |
|
#// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. |
|
#// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; |
|
#// EMC Corporation; VERITAS Software Corporation; The Open Group. |
|
#// |
|
#// 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. |
|
#// |
|
#//============================================================================== |
# commands.mak is a helper Makefile that is intended to be included in an upper level Makefile. | # commands.mak is a helper Makefile that is intended to be included in an upper level Makefile. |
| |
# Ensure that config.mak is included (so that the ROOT variable is set correctly) | # Ensure that config.mak is included (so that the ROOT variable is set correctly) |
|
|
CIMSERVER_START_SERVICE = $(CIMSERVER_PATH)cimserver $(CIMSERVER_CONFIG_OPTIONS) -start | CIMSERVER_START_SERVICE = $(CIMSERVER_PATH)cimserver $(CIMSERVER_CONFIG_OPTIONS) -start |
CIMSERVER_STOP_SERVICE = $(CIMSERVER_PATH)cimserver -stop | CIMSERVER_STOP_SERVICE = $(CIMSERVER_PATH)cimserver -stop |
SLEEP = mu sleep | SLEEP = mu sleep |
|
WINDOWS_ONLY_SLEEP = mu sleep 10 |
REMOVE_PEGASUS_DIRECTORY = mu rmdirhier pegasus | REMOVE_PEGASUS_DIRECTORY = mu rmdirhier pegasus |
MUEXE = mu.exe | MUEXE = mu.exe |
RM = mu rm | RM = mu rm |
|
|
CHOWN = | CHOWN = |
CHGRP = | CHGRP = |
CURRENT_USER=Administrator | CURRENT_USER=Administrator |
|
else |
|
WINDOWS_ONLY_SLEEP = |
endif | endif |
| |
ifeq ($(OS),HPUX) | ifeq ($(OS),HPUX) |
|
|
| |
Prwxr_xr_x = 755 | Prwxr_xr_x = 755 |
Prwxrwxrwx = 777 | Prwxrwxrwx = 777 |
|
Prwxrwxrwt = 1777 |
Pr_xr__r__ = 744 | Pr_xr__r__ = 744 |
Pr__r__r__ = 444 | Pr__r__r__ = 444 |
Pr________ = 400 | Pr________ = 400 |
|
|
DIFF = diff | DIFF = diff |
SORT = sort | SORT = sort |
REDIRECTERROR = 2>&1 | REDIRECTERROR = 2>&1 |
|
# |
|
# Refer to bug 4205 for the description of the problem with the SIGUSR1 |
|
# signal. That problem required changing the server to be started in the |
|
# background with a sleep 30 to prevent the makefile from receiving the |
|
# SIGUSR1 signal and exiting |
|
# |
|
ifdef PEGASUS_PLATFORM_SPARC_GNU |
|
CIMSERVER_START_SERVICE = $(CIMSERVER_PATH)cimserver $(CIMSERVER_CONFIG_OPTIONS) & $(SLEEP) 30 |
|
CIMSERVER_STOP_SERVICE = $(CIMSERVER_PATH)cimserver -s |
|
else |
CIMSERVER_START_SERVICE = $(CIMSERVER_PATH)cimserver $(CIMSERVER_CONFIG_OPTIONS) | CIMSERVER_START_SERVICE = $(CIMSERVER_PATH)cimserver $(CIMSERVER_CONFIG_OPTIONS) |
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"}' | 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"}' |
|
endif |
SLEEP = sleep | SLEEP = sleep |
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 |
|
|
CHMOD = | CHMOD = |
CHOWN = | CHOWN = |
CHGRP = | CHGRP = |
|
CURRENT_USER=`whoami` |
endif | endif |
| |
ifeq ($(OS),linux) | ifeq ($(OS),linux) |
|
|
LIB_LINK_SUFFIX = .so | LIB_LINK_SUFFIX = .so |
| |
Prwxrwxrwx = 777 | Prwxrwxrwx = 777 |
|
Prwxrwxrwt = 1777 |
Prwxr_xr_x = 755 | Prwxr_xr_x = 755 |
Pr_xr__r__ = 744 | Pr_xr__r__ = 744 |
Pr__r__r__ = 444 | Pr__r__r__ = 444 |
|
|
| |
runTestSuite: CMDSFORCE | runTestSuite: CMDSFORCE |
$(CIMSERVER_START_SERVICE) | $(CIMSERVER_START_SERVICE) |
$(foreach i, $(TESTSUITE_CMDS), $(subst @@, ,$(i));) |
$(WINDOWS_ONLY_SLEEP) |
|
$(foreach i, $(TESTSUITE_CMDS), $(subst @@, ,$(i))) |
$(CIMSERVER_STOP_SERVICE) | $(CIMSERVER_STOP_SERVICE) |
| |
ifndef PEGASUS_SSLCNF_FULLY_QUALIFIED_DSN | ifndef PEGASUS_SSLCNF_FULLY_QUALIFIED_DSN |