version 1.153.2.1, 2006/12/28 17:56:33
|
version 1.177.2.4, 2009/09/03 14:25:35
|
|
|
#//%2006//////////////////////////////////////////////////////////////////////// |
#//%LICENSE//////////////////////////////////////////////////////////////// |
#// | #// |
#// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development |
#// Licensed to The Open Group (TOG) under one or more contributor license |
#// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. |
#// agreements. Refer to the OpenPegasusNOTICE.txt file distributed with |
#// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.; |
#// this work for additional information regarding copyright ownership. |
#// IBM Corp.; EMC Corporation, The Open Group. |
#// Each contributor licenses this file to you under the OpenPegasus Open |
#// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; |
#// Source License; you may not use this file except in compliance with the |
#// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. |
#// License. |
#// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; |
|
#// EMC Corporation; VERITAS Software Corporation; The Open Group. |
|
#// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.; |
|
#// EMC Corporation; Symantec Corporation; The Open Group. |
|
#// | #// |
#// Permission is hereby granted, free of charge, to any person obtaining a copy |
#// Permission is hereby granted, free of charge, to any person obtaining a |
#// of this software and associated documentation files (the "Software"), to |
#// copy of this software and associated documentation files (the "Software"), |
#// deal in the Software without restriction, including without limitation the |
#// to deal in the Software without restriction, including without limitation |
#// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or |
#// the rights to use, copy, modify, merge, publish, distribute, sublicense, |
#// sell copies of the Software, and to permit persons to whom the Software is |
#// and/or sell copies of the Software, and to permit persons to whom the |
#// furnished to do so, subject to the following conditions: |
#// Software is furnished to do so, subject to the following conditions: |
#// | #// |
#// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN |
#// The above copyright notice and this permission notice shall be included |
#// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED |
#// in all copies or substantial portions of the Software. |
#// "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. |
|
#// | #// |
#//============================================================================== |
#// 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. |
|
#// |
|
#////////////////////////////////////////////////////////////////////////// |
ROOT = ../../.. | ROOT = ../../.. |
| |
DIR = Pegasus/Common | DIR = Pegasus/Common |
| |
|
HAS_PAM_DEPENDENCY=true |
|
HAS_ICU_DEPENDENCY=true |
|
|
include $(ROOT)/mak/config.mak | include $(ROOT)/mak/config.mak |
| |
# SSL support |
|
ifdef PEGASUS_HAS_SSL | ifdef PEGASUS_HAS_SSL |
FLAGS += -DPEGASUS_HAS_SSL -DPEGASUS_SSL_RANDOMFILE |
ifdef OPENSSL_HOME |
SYS_INCLUDES += -I$(OPENSSL_HOME)/include | SYS_INCLUDES += -I$(OPENSSL_HOME)/include |
endif | endif |
|
endif |
| |
LOCAL_DEFINES = -DPEGASUS_COMMON_INTERNAL -DPEGASUS_INTERNALONLY | LOCAL_DEFINES = -DPEGASUS_COMMON_INTERNAL -DPEGASUS_INTERNALONLY |
| |
|
ifeq ($(OS_TYPE),vms) |
|
STATIC=1 |
|
endif |
|
|
LIBRARY = pegcommon | LIBRARY = pegcommon |
| |
|
ifeq ($(PEGASUS_PLATFORM),PASE_ISERIES_IBMCXX) |
|
LIBRARIES = ILEWrapperUtils |
|
endif |
|
|
## | ## |
## CAUTION: the source files are divided evenly (more or less) between SOURCES1 | ## CAUTION: the source files are divided evenly (more or less) between SOURCES1 |
## and SOURCES2. This avoids a command line buffer overflow on Windows 2000 | ## and SOURCES2. This avoids a command line buffer overflow on Windows 2000 |
|
|
## | ## |
| |
SOURCES1 = \ | SOURCES1 = \ |
Backtrace.cpp \ |
Print.cpp \ |
|
Executor.cpp \ |
CIMError.cpp \ | CIMError.cpp \ |
PropertyAccessor.cpp \ | PropertyAccessor.cpp \ |
Once.cpp \ | Once.cpp \ |
|
|
CIMInstance.cpp \ | CIMInstance.cpp \ |
CIMInstanceRep.cpp \ | CIMInstanceRep.cpp \ |
CIMMessage.cpp \ | CIMMessage.cpp \ |
CIMMessageSerializer.cpp \ |
|
CIMMessageDeserializer.cpp \ |
|
CIMMethod.cpp \ | CIMMethod.cpp \ |
CIMMethodRep.cpp \ | CIMMethodRep.cpp \ |
CIMName.cpp \ | CIMName.cpp \ |
|
|
InternalException.cpp \ | InternalException.cpp \ |
FileSystem.cpp \ | FileSystem.cpp \ |
Formatter.cpp \ | Formatter.cpp \ |
|
Guid.cpp \ |
HashTable.cpp \ | HashTable.cpp \ |
HTTPAcceptor.cpp \ | HTTPAcceptor.cpp \ |
HTTPConnection.cpp \ | HTTPConnection.cpp \ |
HTTPConnector.cpp \ | HTTPConnector.cpp \ |
HTTPMessage.cpp \ | HTTPMessage.cpp \ |
Indentor.cpp \ |
|
IndicationFormatter.cpp \ | IndicationFormatter.cpp \ |
Logger.cpp \ | Logger.cpp \ |
Memory.cpp \ | Memory.cpp \ |
|
|
StatisticalData.cpp \ | StatisticalData.cpp \ |
Stopwatch.cpp \ | Stopwatch.cpp \ |
String.cpp \ | String.cpp \ |
|
StringConversion.cpp \ |
StringInline.cpp \ | StringInline.cpp \ |
System.cpp \ | System.cpp \ |
TimeValue.cpp \ | TimeValue.cpp \ |
|
|
SSLContextManager.cpp \ | SSLContextManager.cpp \ |
TLS.cpp \ | TLS.cpp \ |
TraceFileHandler.cpp \ | TraceFileHandler.cpp \ |
|
TraceLogHandler.cpp \ |
|
TraceMemoryHandler.cpp \ |
Tracer.cpp \ | Tracer.cpp \ |
Thread.cpp \ | Thread.cpp \ |
ThreadPool.cpp \ | ThreadPool.cpp \ |
Union.cpp \ | Union.cpp \ |
|
XmlGenerator.cpp \ |
XmlParser.cpp \ | XmlParser.cpp \ |
XmlReader.cpp \ | XmlReader.cpp \ |
XmlStreamer.cpp \ | XmlStreamer.cpp \ |
XmlWriter.cpp \ | XmlWriter.cpp \ |
MofWriter.cpp \ | MofWriter.cpp \ |
CommonUTF.cpp \ | CommonUTF.cpp \ |
Constants.cpp |
Constants.cpp \ |
|
HostAddress.cpp \ |
|
HostLocator.cpp \ |
|
BinaryCodec.cpp \ |
|
CIMBuffer.cpp \ |
|
VersionUtil.cpp |
|
|
|
ifeq ($(PEGASUS_PLATFORM),PASE_ISERIES_IBMCXX) |
|
SOURCES2 += PaseCcsid.cpp |
|
endif |
| |
SOURCES_SLP = Attribute.cpp \ | SOURCES_SLP = Attribute.cpp \ |
CIMServerDescription.cpp | CIMServerDescription.cpp |
|
|
SOURCES2 += LoadAndClearWord_HPUX_PARISC_ACC.s | SOURCES2 += LoadAndClearWord_HPUX_PARISC_ACC.s |
endif | endif |
| |
|
ifeq ($(PEGASUS_ENABLE_PROTOCOL_INTERNAL_BINARY),true) |
|
SOURCES2 += CIMBinMsgSerializer.cpp |
|
SOURCES2 += CIMBinMsgDeserializer.cpp |
|
else |
|
SOURCES2 += CIMMessageSerializer.cpp |
|
SOURCES2 += CIMMessageDeserializer.cpp |
|
endif |
|
|
SOURCES = $(SOURCES1) $(SOURCES2) | SOURCES = $(SOURCES1) $(SOURCES2) |
| |
ifeq ($(OS),linux) |
|
EXTRA_LIBRARIES += -lcrypt |
|
ifdef PEGASUS_HAS_SSL | ifdef PEGASUS_HAS_SSL |
EXTRA_LIBRARIES += -L$(OPENSSL_HOME)/lib -lssl -lcrypto |
ifeq ($(OS_TYPE),windows) |
|
SYS_LIBS += /libpath:$(OPENSSL_HOME)/lib libeay32.lib ssleay32.lib |
|
else |
|
ifeq ($(OS_TYPE), vms) |
|
EXTRA_LIBRARIES += -L$(OPENSSL_LIB) \ |
|
-lssl$$libssl_shr32 -lssl$$libcrypto_shr32 |
|
else |
|
ifdef OPENSSL_HOME |
|
EXTRA_LIBRARIES += -L$(OPENSSL_HOME)/lib |
endif | endif |
|
EXTRA_LIBRARIES += -lssl -lcrypto |
endif | endif |
|
|
ifeq ($(PEGASUS_PLATFORM),ZOS_ZSERIES_IBM) |
|
ifdef PEGASUS_HAS_SSL |
|
EXTRA_LIBRARIES += -L$(OPENSSL_HOME)/lib -lssl -lcrypto |
|
endif | endif |
ifdef PEGASUS_ZOS_SECURITY |
|
SOURCES += $(SOURCES_SECURITY_ZOS) |
|
endif | endif |
endif |
|
|
|
| |
ifeq ($(PEGASUS_PLATFORM),AIX_RS_IBMCXX) |
ifeq ($(OS_TYPE),vms) |
AIX_LIB_PRIORITY=-20 |
ifeq ($(PEGASUS_USE_STATIC_LIBRARIES),false) |
ifdef PEGASUS_HAS_SSL |
SYS_LIBS += tcpip$$library:tcpip$$lib/lib |
EXTRA_LIBRARIES += -L$(OPENSSL_HOME)/lib -lssl -lcrypto |
LIBRARIES = vms/include=(vms_crtl_init) |
|
LINK_OPT1 = COLLECT=crtl_init,lib$$initializdz,lib$$initializd_, |
|
LINK_OPT2 = lib$$initialize,lib$$initialize$$ |
|
LINKER_OPTIONS = $(LINK_OPT1)$(LINK_OPT2) |
endif | endif |
endif | endif |
| |
ifeq ($(OS),HPUX) |
ifeq ($(OS),zos) |
ifdef PEGASUS_HAS_SSL |
ifdef PEGASUS_ZOS_SECURITY |
EXTRA_LIBRARIES += -L$(OPENSSL_HOME)/lib -lssl -lcrypto |
SOURCES += $(SOURCES_SECURITY_ZOS) |
endif | endif |
|
SOURCES2 += Audit_zOS_SMF.cpp \ |
|
PegasusAssertZOS.cpp |
endif | endif |
| |
ifeq ($(PEGASUS_PLATFORM),SOLARIS_SPARC_GNU) |
ifeq ($(PEGASUS_PLATFORM),AIX_RS_IBMCXX) |
ifdef PEGASUS_HAS_SSL |
AIX_LIB_PRIORITY=-20 |
EXTRA_LIBRARIES += -L$(OPENSSL_HOME)/lib -lssl -lcrypto |
|
endif |
|
endif | endif |
| |
ifeq ($(PEGASUS_PLATFORM),SOLARIS_SPARC_CC) |
ifeq ($(PEGASUS_PLATFORM),PASE_ISERIES_IBMCXX) |
ifdef PEGASUS_HAS_SSL |
AIX_LIB_PRIORITY=-20 |
EXTRA_LIBRARIES += -L$(OPENSSL_HOME)/lib -lssl -lcrypto |
|
endif |
|
endif | endif |
| |
# Note that PEGASUS_WINDOWS_SDK_HOME only needs to be specified if using VC6. | # Note that PEGASUS_WINDOWS_SDK_HOME only needs to be specified if using VC6. |
ifeq ($(PEGASUS_PLATFORM),WIN32_IX86_MSVC) |
ifeq ($(OS_TYPE),windows) |
SYS_LIBS = ws2_32.lib advapi32.lib netapi32.lib |
SYS_LIBS += ole32.lib ws2_32.lib advapi32.lib netapi32.lib |
ifdef PEGASUS_HAS_SSL |
|
SYS_LIBS += /libpath:$(OPENSSL_HOME)/lib libeay32.lib ssleay32.lib |
|
endif |
|
ifdef PEGASUS_WINDOWS_SDK_HOME | ifdef PEGASUS_WINDOWS_SDK_HOME |
FLAGS += -DPEGASUS_WINDOWS_SDK_HOME | FLAGS += -DPEGASUS_WINDOWS_SDK_HOME |
SYS_LIBS += /libpath:$(PEGASUS_WINDOWS_SDK_HOME)/lib secur32.lib | SYS_LIBS += /libpath:$(PEGASUS_WINDOWS_SDK_HOME)/lib secur32.lib |
|
|
endif | endif |
endif | endif |
| |
include $(ROOT)/mak/library.mak |
include $(ROOT)/mak/dynamic-library.mak |
# DO NOT DELETE | # DO NOT DELETE |