1 martin 1.176 #//%LICENSE////////////////////////////////////////////////////////////////
|
2 martin 1.177 #//
|
3 martin 1.176 #// 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
8 #// License.
|
9 martin 1.177 #//
|
10 martin 1.176 #// 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:
|
16 martin 1.177 #//
|
17 martin 1.176 #// The above copyright notice and this permission notice shall be included
18 #// in all copies or substantial portions of the Software.
|
19 martin 1.177 #//
|
20 martin 1.176 #// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
21 martin 1.177 #// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
22 martin 1.176 #// 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.
|
27 martin 1.177 #//
|
28 martin 1.176 #//////////////////////////////////////////////////////////////////////////
|
29 mike 1.51 ROOT = ../../..
30
31 DIR = Pegasus/Common
32
|
33 kumpf 1.170 HAS_PAM_DEPENDENCY=true
|
34 kumpf 1.169 HAS_ICU_DEPENDENCY=true
35
|
36 mike 1.51 include $(ROOT)/mak/config.mak
37
|
38 kumpf 1.77 ifdef PEGASUS_HAS_SSL
|
39 denise.eckstein 1.159 ifdef OPENSSL_HOME
40 SYS_INCLUDES += -I$(OPENSSL_HOME)/include
|
41 carson.hovey 1.167 endif
|
42 kumpf 1.77 endif
|
43 carson.hovey 1.167
|
44 kumpf 1.100 LOCAL_DEFINES = -DPEGASUS_COMMON_INTERNAL -DPEGASUS_INTERNALONLY
|
45 mike 1.51
|
46 carson.hovey 1.167 ifeq ($(OS_TYPE),vms)
47 STATIC=1
48 endif
49
|
50 mike 1.51 LIBRARY = pegcommon
51
|
52 ouyang.jian 1.161 ifeq ($(PEGASUS_PLATFORM),PASE_ISERIES_IBMCXX)
|
53 carson.hovey 1.167 LIBRARIES = ILEWrapperUtils
|
54 ouyang.jian 1.161 endif
55
|
56 mike 1.129 ##
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 kumpf 1.153 ## (see bug #2754 for details). As a precaution, limit SOURCES1 and SOURCES2
|
60 mike 1.129 ## to 75 source files each.
61 ##
62
63 SOURCES1 = \
|
64 marek 1.181.2.2 SCMO.cpp \
65 SCMOXmlWriter.cpp \
|
66 mike 1.175 Print.cpp \
|
67 kumpf 1.155 Executor.cpp \
|
68 mike 1.149 Once.cpp \
69 Time.cpp \
70 Threads.cpp \
71 TSDKey.cpp \
72 Semaphore.cpp \
73 ReadWriteSem.cpp \
74 Condition.cpp \
|
75 kumpf 1.108 AnonymousPipe.cpp \
|
76 mike 1.51 Array.cpp \
77 AsyncOpNode.cpp \
|
78 mike 1.131 AtomicInt.cpp \
|
79 kumpf 1.61 AuthenticationInfoRep.cpp \
|
80 karl 1.57 Base64.cpp \
|
81 mike 1.134 Buffer.cpp \
|
82 mike 1.133 CharSet.cpp \
|
83 chuck 1.91 LanguageParser.cpp \
|
84 kumpf 1.141 AcceptLanguageList.cpp \
85 ContentLanguageList.cpp \
|
86 kumpf 1.140 LanguageTag.cpp \
|
87 chuck 1.91 MessageLoader.cpp \
|
88 mike 1.130 Char16Inline.cpp \
|
89 mike 1.51 CIMClass.cpp \
90 CIMClassRep.cpp \
91 CIMDateTime.cpp \
92 CIMFlavor.cpp \
93 CIMInstance.cpp \
94 CIMInstanceRep.cpp \
95 CIMMessage.cpp \
|
96 r.kieninger 1.181 CIMResponseData.cpp \
|
97 mike 1.51 CIMMethod.cpp \
98 CIMMethodRep.cpp \
99 CIMName.cpp \
|
100 r.kieninger 1.138 CIMNameInline.cpp \
|
101 mike 1.51 CIMObject.cpp \
|
102 mike 1.52 CIMObjectRep.cpp \
|
103 chip 1.60 CIMObjectPath.cpp \
|
104 mike 1.62 Cimom.cpp \
|
105 mday 1.55 CimomMessage.cpp \
|
106 mike 1.51 CIMParameter.cpp \
107 CIMParameterRep.cpp \
108 CIMParamValue.cpp \
109 CIMParamValueRep.cpp \
110 CIMProperty.cpp \
111 CIMPropertyList.cpp \
112 CIMPropertyRep.cpp \
113 CIMQualifier.cpp \
114 CIMQualifierDecl.cpp \
115 CIMQualifierDeclRep.cpp \
116 CIMQualifierList.cpp \
117 CIMQualifierNames.cpp \
118 CIMQualifierRep.cpp \
119 CIMScope.cpp \
120 CIMStatusCode.cpp \
121 CIMType.cpp \
|
122 mike 1.137 CIMValue.cpp \
|
123 mike 1.136 CIMValueInline.cpp \
|
124 mike 1.51 Config.cpp \
125 DeclContext.cpp \
126 Dir.cpp \
|
127 mike 1.145 List.cpp \
128 AsyncQueue.cpp \
129 IDFactory.cpp \
|
130 yi.zhou 1.151 AuditLogger.cpp \
|
131 mike 1.145 Magic.cpp
|
132 mike 1.129
133 SOURCES2 = \
|
134 mike 1.51 Exception.cpp \
|
135 kumpf 1.81 InternalException.cpp \
|
136 mike 1.51 FileSystem.cpp \
137 Formatter.cpp \
138 HashTable.cpp \
139 HTTPAcceptor.cpp \
140 HTTPConnection.cpp \
141 HTTPConnector.cpp \
142 HTTPMessage.cpp \
143 Logger.cpp \
144 Memory.cpp \
145 Message.cpp \
146 MessageQueue.cpp \
|
147 mday 1.55 MessageQueueService.cpp \
|
148 kumpf 1.63 ModuleController.cpp \
|
149 mike 1.51 Monitor.cpp \
|
150 mike 1.131 Mutex.cpp \
|
151 chip 1.104 ObjectNormalizer.cpp \
|
152 david.dillard 1.115 OperationContext.cpp \
|
153 kumpf 1.85 OperationContextInternal.cpp \
|
154 mike 1.51 Pair.cpp \
|
155 schuur 1.99 QueryExpressionRep.cpp \
|
156 kumpf 1.79 Resolver.cpp \
|
157 kumpf 1.84 ResponseHandler.cpp \
|
158 chuck 1.96 ResponseHandlerRep.cpp \
|
159 mike 1.51 Sharable.cpp \
|
160 kumpf 1.89 Signal.cpp \
|
161 mike 1.51 Socket.cpp \
|
162 mike 1.135 SpinLock.cpp \
|
163 mike 1.51 Stack.cpp \
|
164 sage 1.68 StatisticalData.cpp \
|
165 mike 1.51 String.cpp \
|
166 mike 1.162 StringConversion.cpp \
|
167 mike 1.130 StringInline.cpp \
|
168 mike 1.51 System.cpp \
169 TimeValue.cpp \
|
170 kumpf 1.74 SSLContext.cpp \
|
171 mike 1.52 TLS.cpp \
|
172 mike 1.51 TraceFileHandler.cpp \
|
173 r.kieninger 1.168 TraceLogHandler.cpp \
|
174 thilo.boehm 1.171 TraceMemoryHandler.cpp \
|
175 mike 1.51 Tracer.cpp \
176 Thread.cpp \
|
177 mike 1.149 ThreadPool.cpp \
|
178 mike 1.51 Union.cpp \
|
179 kumpf 1.166 XmlGenerator.cpp \
|
180 mike 1.51 XmlParser.cpp \
181 XmlReader.cpp \
|
182 mday 1.64 XmlWriter.cpp \
|
183 karl 1.150 CommonUTF.cpp \
|
184 dave.sudlik 1.156 Constants.cpp \
185 HostAddress.cpp \
|
186 mike 1.175 HostLocator.cpp \
|
187 s.kodali 1.179 BinaryCodec.cpp \
|
188 marek 1.181.2.2 CIMBuffer.cpp
|
189 mike 1.51
|
190 ouyang.jian 1.161 ifeq ($(PEGASUS_PLATFORM),PASE_ISERIES_IBMCXX)
|
191 carson.hovey 1.167 SOURCES2 += PaseCcsid.cpp
|
192 ouyang.jian 1.161 endif
193
|
194 david.dillard 1.115 SOURCES_SLP = Attribute.cpp \
195 CIMServerDescription.cpp
196
|
197 jim.wunderlich 1.139 ifeq ($(PEGASUS_ENABLE_SLP),true)
|
198 carson.hovey 1.167 SOURCES2 += $(SOURCES_SLP)
|
199 kumpf 1.142 endif
200
201 ifeq ($(PEGASUS_PLATFORM),HPUX_PARISC_ACC)
|
202 carson.hovey 1.167 SOURCES2 += LoadAndClearWord_HPUX_PARISC_ACC.s
|
203 david.dillard 1.115 endif
204
|
205 mike 1.175 ifeq ($(PEGASUS_ENABLE_PROTOCOL_INTERNAL_BINARY),true)
|
206 mike 1.173 SOURCES2 += CIMBinMsgSerializer.cpp
207 SOURCES2 += CIMBinMsgDeserializer.cpp
208 else
209 SOURCES2 += CIMMessageSerializer.cpp
210 SOURCES2 += CIMMessageDeserializer.cpp
211 endif
212
|
213 kumpf 1.142 SOURCES = $(SOURCES1) $(SOURCES2)
214
|
215 denise.eckstein 1.159 ifdef PEGASUS_HAS_SSL
|
216 carson.hovey 1.167 ifeq ($(OS_TYPE),windows)
217 SYS_LIBS += /libpath:$(OPENSSL_HOME)/lib libeay32.lib ssleay32.lib
218 else
|
219 john.eisenbraun 1.174 ifeq ($(OS_TYPE), vms)
220 EXTRA_LIBRARIES += -L$(OPENSSL_LIB) \
221 -lssl$$libssl_shr32 -lssl$$libcrypto_shr32
222 else
223 ifdef OPENSSL_HOME
224 EXTRA_LIBRARIES += -L$(OPENSSL_HOME)/lib
225 endif
226 EXTRA_LIBRARIES += -lssl -lcrypto
|
227 carson.hovey 1.167 endif
|
228 john.eisenbraun 1.174 endif
229 endif
230
231 ifeq ($(OS_TYPE),vms)
232 ifeq ($(PEGASUS_USE_STATIC_LIBRARIES),false)
233 SYS_LIBS += tcpip$$library:tcpip$$lib/lib
234 LIBRARIES = vms/include=(vms_crtl_init)
235 LINK_OPT1 = COLLECT=crtl_init,lib$$initializdz,lib$$initializd_,
236 LINK_OPT2 = lib$$initialize,lib$$initialize$$
237 LINKER_OPTIONS = $(LINK_OPT1)$(LINK_OPT2)
|
238 denise.eckstein 1.159 endif
|
239 david.eger 1.92 endif
240
|
241 r.kieninger 1.172 ifeq ($(OS),zos)
|
242 carson.hovey 1.167 SOURCES2 += Audit_zOS_SMF.cpp \
243 PegasusAssertZOS.cpp
|
244 marek 1.98 endif
245
|
246 sage 1.58 ifeq ($(PEGASUS_PLATFORM),AIX_RS_IBMCXX)
|
247 carson.hovey 1.167 AIX_LIB_PRIORITY=-20
|
248 denise.eckstein 1.112 endif
249
|
250 ouyang.jian 1.161 ifeq ($(PEGASUS_PLATFORM),PASE_ISERIES_IBMCXX)
|
251 carson.hovey 1.167 AIX_LIB_PRIORITY=-20
|
252 ouyang.jian 1.161 endif
253
|
254 h.sterling 1.125 # Note that PEGASUS_WINDOWS_SDK_HOME only needs to be specified if using VC6.
|
255 a.dunfey 1.154 ifeq ($(OS_TYPE),windows)
|
256 carson.hovey 1.167 SYS_LIBS += ws2_32.lib advapi32.lib netapi32.lib
257 ifdef PEGASUS_WINDOWS_SDK_HOME
258 FLAGS += -DPEGASUS_WINDOWS_SDK_HOME
259 SYS_LIBS += /libpath:$(PEGASUS_WINDOWS_SDK_HOME)/lib secur32.lib
260 else
261 ifneq ($(CL_MAJOR_VERSION), 12)
262 SYS_LIBS += secur32.lib
263 endif
264 endif
|
265 kumpf 1.77 endif
|
266 mike 1.51
|
267 carson.hovey 1.167 include $(ROOT)/mak/dynamic-library.mak
|
268 kumpf 1.65 # DO NOT DELETE
|