1 #//%LICENSE////////////////////////////////////////////////////////////////
3 #// Licensed to The Open Group (TOG) under one or more contributor license
4 #// agreements. Refer to the OpenPegasusNOTICE.txt file distributed with
5 #// this work for additional information regarding copyright ownership.
6 #// Each contributor licenses this file to you under the OpenPegasus Open
7 #// Source License; you may not use this file except in compliance with the
10 #// Permission is hereby granted, free of charge, to any person obtaining a
11 #// copy of this software and associated documentation files (the "Software"),
12 #// to deal in the Software without restriction, including without limitation
13 #// the rights to use, copy, modify, merge, publish, distribute, sublicense,
14 #// and/or sell copies of the Software, and to permit persons to whom the
15 #// Software is furnished to do so, subject to the following conditions:
17 #// The above copyright notice and this permission notice shall be included
18 #// in all copies or substantial portions of the Software.
20 #// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
21 #// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22 #// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
23 #// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
24 #// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
25 #// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
26 #// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
28 #//////////////////////////////////////////////////////////////////////////
33 HAS_PAM_DEPENDENCY=true
34 HAS_ICU_DEPENDENCY=true
36 include $(ROOT)/mak/config.mak
40 SYS_INCLUDES += -I$(OPENSSL_HOME)/include
44 LOCAL_DEFINES = -DPEGASUS_COMMON_INTERNAL -DPEGASUS_INTERNALONLY
52 ifeq ($(PEGASUS_PLATFORM),PASE_ISERIES_IBMCXX)
53 LIBRARIES = ILEWrapperUtils
57 ## CAUTION: the source files are divided evenly (more or less) between SOURCES1
58 ## and SOURCES2. This avoids a command line buffer overflow on Windows 2000
59 ## (see bug #2754 for details). As a precaution, limit SOURCES1 and SOURCES2
60 ## to 75 source files each.
67 PropertyAccessor.cpp \
79 AuthenticationInfoRep.cpp \
86 AcceptLanguageList.cpp \
87 ContentLanguageList.cpp \
108 CIMParameterRep.cpp \
110 CIMParamValueRep.cpp \
112 CIMPropertyList.cpp \
115 CIMQualifierDecl.cpp \
116 CIMQualifierDeclRep.cpp \
117 CIMQualifierList.cpp \
118 CIMQualifierNames.cpp \
119 CIMQualifierRep.cpp \
137 InternalException.cpp \
145 IndicationFormatter.cpp \
150 MessageQueueService.cpp \
151 ModuleController.cpp \
154 ObjectNormalizer.cpp \
155 OperationContext.cpp \
156 OperationContextInternal.cpp \
160 QueryExpressionRep.cpp \
162 ResponseHandler.cpp \
163 ResponseHandlerRep.cpp \
169 StatisticalData.cpp \
172 StringConversion.cpp \
177 SSLContextManager.cpp \
179 TraceFileHandler.cpp \
180 TraceLogHandler.cpp \
181 TraceMemoryHandler.cpp \
198 ifeq ($(PEGASUS_PLATFORM),PASE_ISERIES_IBMCXX)
199 SOURCES2 += PaseCcsid.cpp
202 SOURCES_SLP = Attribute.cpp \
203 CIMServerDescription.cpp
205 ifeq ($(PEGASUS_ENABLE_SLP),true)
206 SOURCES2 += $(SOURCES_SLP)
209 ifeq ($(PEGASUS_PLATFORM),HPUX_PARISC_ACC)
210 SOURCES2 += LoadAndClearWord_HPUX_PARISC_ACC.s
213 ifeq ($(PEGASUS_ENABLE_PROTOCOL_INTERNAL_BINARY),true)
214 SOURCES2 += CIMBuffer.cpp
215 SOURCES2 += CIMBinMsgSerializer.cpp
216 SOURCES2 += CIMBinMsgDeserializer.cpp
218 SOURCES2 += CIMMessageSerializer.cpp
219 SOURCES2 += CIMMessageDeserializer.cpp
222 SOURCES = $(SOURCES1) $(SOURCES2)
224 ifdef PEGASUS_HAS_SSL
225 ifeq ($(OS_TYPE),windows)
226 SYS_LIBS += /libpath:$(OPENSSL_HOME)/lib libeay32.lib ssleay32.lib
228 ifeq ($(OS_TYPE), vms)
229 EXTRA_LIBRARIES += -L$(OPENSSL_LIB) \
230 -lssl$$libssl_shr32 -lssl$$libcrypto_shr32
233 EXTRA_LIBRARIES += -L$(OPENSSL_HOME)/lib
235 EXTRA_LIBRARIES += -lssl -lcrypto
240 ifeq ($(OS_TYPE),vms)
241 ifeq ($(PEGASUS_USE_STATIC_LIBRARIES),false)
242 SYS_LIBS += tcpip$$library:tcpip$$lib/lib
243 LIBRARIES = vms/include=(vms_crtl_init)
244 LINK_OPT1 = COLLECT=crtl_init,lib$$initializdz,lib$$initializd_,
245 LINK_OPT2 = lib$$initialize,lib$$initialize$$
246 LINKER_OPTIONS = $(LINK_OPT1)$(LINK_OPT2)
251 SOURCES2 += Audit_zOS_SMF.cpp \
255 ifeq ($(PEGASUS_PLATFORM),AIX_RS_IBMCXX)
259 ifeq ($(PEGASUS_PLATFORM),PASE_ISERIES_IBMCXX)
263 # Note that PEGASUS_WINDOWS_SDK_HOME only needs to be specified if using VC6.
264 ifeq ($(OS_TYPE),windows)
265 SYS_LIBS += ws2_32.lib advapi32.lib netapi32.lib
266 ifdef PEGASUS_WINDOWS_SDK_HOME
267 FLAGS += -DPEGASUS_WINDOWS_SDK_HOME
268 SYS_LIBS += /libpath:$(PEGASUS_WINDOWS_SDK_HOME)/lib secur32.lib
270 ifneq ($(CL_MAJOR_VERSION), 12)
271 SYS_LIBS += secur32.lib
276 include $(ROOT)/mak/dynamic-library.mak