1 karl 1.143 #//%2006////////////////////////////////////////////////////////////////////////
|
2 martin 1.127 #//
3 #// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
4 #// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
5 #// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
6 #// IBM Corp.; EMC Corporation, The Open Group.
7 #// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
8 #// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
9 #// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
10 #// EMC Corporation; VERITAS Software Corporation; The Open Group.
|
11 karl 1.143 #// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
12 #// EMC Corporation; Symantec Corporation; The Open Group.
|
13 martin 1.127 #//
14 #// Permission is hereby granted, free of charge, to any person obtaining a copy
15 #// of this software and associated documentation files (the "Software"), to
16 #// deal in the Software without restriction, including without limitation the
17 #// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
18 #// sell copies of the Software, and to permit persons to whom the Software is
19 #// furnished to do so, subject to the following conditions:
20 #//
21 #// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
22 #// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
23 #// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
24 #// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
25 #// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
26 #// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
27 #// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 #// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 #//
30 #//==============================================================================
|
31 mike 1.51 ROOT = ../../..
32
33 DIR = Pegasus/Common
34
35 include $(ROOT)/mak/config.mak
36
|
37 kumpf 1.77 # SSL support
38 ifdef PEGASUS_HAS_SSL
|
39 kumpf 1.88 FLAGS += -DPEGASUS_HAS_SSL -DPEGASUS_SSL_RANDOMFILE
|
40 kumpf 1.77 SYS_INCLUDES += -I$(OPENSSL_HOME)/include
41 endif
42
|
43 kumpf 1.100 LOCAL_DEFINES = -DPEGASUS_COMMON_INTERNAL -DPEGASUS_INTERNALONLY
|
44 mike 1.51
45 LIBRARY = pegcommon
46
|
47 mike 1.129 ##
48 ## CAUTION: the source files are divided evenly (more or less) between SOURCES1
49 ## and SOURCES2. This avoids a command line buffer overflow on Windows 2000
|
50 kumpf 1.153 ## (see bug #2754 for details). As a precaution, limit SOURCES1 and SOURCES2
|
51 mike 1.129 ## to 75 source files each.
52 ##
53
54 SOURCES1 = \
|
55 kumpf 1.154.4.1 Executor.cpp \
56 SessionKey.cpp \
|
57 karl 1.152 CIMError.cpp \
58 PropertyAccessor.cpp \
|
59 mike 1.149 Once.cpp \
60 Time.cpp \
61 Threads.cpp \
62 TSDKey.cpp \
63 Semaphore.cpp \
64 ReadWriteSem.cpp \
65 Condition.cpp \
|
66 kumpf 1.108 AnonymousPipe.cpp \
|
67 mike 1.51 Array.cpp \
68 AsyncOpNode.cpp \
|
69 mike 1.131 AtomicInt.cpp \
|
70 kumpf 1.61 AuthenticationInfoRep.cpp \
|
71 schuur 1.105 AutoStreamer.cpp \
|
72 karl 1.57 Base64.cpp \
|
73 schuur 1.105 BinaryStreamer.cpp \
|
74 mike 1.134 Buffer.cpp \
|
75 mike 1.133 CharSet.cpp \
|
76 chuck 1.91 LanguageParser.cpp \
|
77 kumpf 1.141 AcceptLanguageList.cpp \
78 ContentLanguageList.cpp \
|
79 kumpf 1.140 LanguageTag.cpp \
|
80 chuck 1.91 MessageLoader.cpp \
|
81 mike 1.130 Char16Inline.cpp \
|
82 mike 1.51 CIMClass.cpp \
83 CIMClassRep.cpp \
84 CIMDateTime.cpp \
85 CIMFlavor.cpp \
86 CIMInstance.cpp \
87 CIMInstanceRep.cpp \
88 CIMMessage.cpp \
|
89 kumpf 1.108 CIMMessageSerializer.cpp \
90 CIMMessageDeserializer.cpp \
|
91 mike 1.51 CIMMethod.cpp \
92 CIMMethodRep.cpp \
93 CIMName.cpp \
|
94 r.kieninger 1.138 CIMNameInline.cpp \
|
95 mike 1.51 CIMObject.cpp \
|
96 mike 1.52 CIMObjectRep.cpp \
|
97 chip 1.60 CIMObjectPath.cpp \
|
98 mike 1.62 Cimom.cpp \
|
99 mday 1.55 CimomMessage.cpp \
|
100 mike 1.51 CIMParameter.cpp \
101 CIMParameterRep.cpp \
102 CIMParamValue.cpp \
103 CIMParamValueRep.cpp \
104 CIMProperty.cpp \
105 CIMPropertyList.cpp \
106 CIMPropertyRep.cpp \
107 CIMQualifier.cpp \
108 CIMQualifierDecl.cpp \
109 CIMQualifierDeclRep.cpp \
110 CIMQualifierList.cpp \
111 CIMQualifierNames.cpp \
112 CIMQualifierRep.cpp \
113 CIMScope.cpp \
114 CIMStatusCode.cpp \
115 CIMType.cpp \
|
116 mike 1.137 CIMValue.cpp \
|
117 mike 1.136 CIMValueInline.cpp \
|
118 mike 1.51 Config.cpp \
119 DeclContext.cpp \
120 Dir.cpp \
|
121 mike 1.145 List.cpp \
122 AsyncQueue.cpp \
123 IDFactory.cpp \
|
124 yi.zhou 1.151 AuditLogger.cpp \
|
125 mike 1.145 Magic.cpp
|
126 mike 1.129
127 SOURCES2 = \
|
128 chip 1.95 DynamicLibrary.cpp \
|
129 mike 1.51 Exception.cpp \
|
130 kumpf 1.81 InternalException.cpp \
|
131 mike 1.51 FileSystem.cpp \
132 Formatter.cpp \
133 HashTable.cpp \
134 HTTPAcceptor.cpp \
135 HTTPConnection.cpp \
136 HTTPConnector.cpp \
137 HTTPMessage.cpp \
138 Indentor.cpp \
|
139 kumpf 1.123 IndicationFormatter.cpp \
|
140 mike 1.51 Logger.cpp \
141 Memory.cpp \
142 Message.cpp \
143 MessageQueue.cpp \
|
144 mday 1.55 MessageQueueService.cpp \
|
145 kumpf 1.63 ModuleController.cpp \
|
146 mike 1.51 Monitor.cpp \
|
147 mike 1.131 Mutex.cpp \
|
148 chip 1.104 ObjectNormalizer.cpp \
|
149 david.dillard 1.115 OperationContext.cpp \
|
150 kumpf 1.85 OperationContextInternal.cpp \
|
151 mike 1.51 OptionManager.cpp \
|
152 jim.wunderlich 1.128 Packer.cpp \
|
153 mike 1.51 Pair.cpp \
|
154 schuur 1.99 QueryExpressionRep.cpp \
|
155 kumpf 1.79 Resolver.cpp \
|
156 kumpf 1.84 ResponseHandler.cpp \
|
157 chuck 1.96 ResponseHandlerRep.cpp \
|
158 mike 1.51 Sharable.cpp \
|
159 kumpf 1.89 Signal.cpp \
|
160 mike 1.51 Socket.cpp \
|
161 mike 1.135 SpinLock.cpp \
|
162 mike 1.51 Stack.cpp \
|
163 sage 1.68 StatisticalData.cpp \
|
164 mike 1.51 Stopwatch.cpp \
165 String.cpp \
|
166 mike 1.130 StringInline.cpp \
|
167 mike 1.51 System.cpp \
168 TimeValue.cpp \
|
169 kumpf 1.74 SSLContext.cpp \
|
170 nag.boranna 1.118 SSLContextManager.cpp \
|
171 mike 1.52 TLS.cpp \
|
172 mike 1.51 TraceFileHandler.cpp \
173 Tracer.cpp \
174 Thread.cpp \
|
175 mike 1.149 ThreadPool.cpp \
|
176 mike 1.51 Union.cpp \
177 XmlParser.cpp \
178 XmlReader.cpp \
|
179 schuur 1.105 XmlStreamer.cpp \
|
180 mday 1.64 XmlWriter.cpp \
|
181 kumpf 1.73 MofWriter.cpp \
|
182 karl 1.150 CommonUTF.cpp \
183 Constants.cpp
|
184 mike 1.51
|
185 david.dillard 1.115 SOURCES_SLP = Attribute.cpp \
186 CIMServerDescription.cpp
187
|
188 marek 1.148 SOURCES_SECURITY_ZOS = MustStayCleanzOS.c
|
189 jim.wunderlich 1.139 ifeq ($(PEGASUS_ENABLE_SLP),true)
|
190 kumpf 1.142 SOURCES2 += $(SOURCES_SLP)
191 endif
192
193 ifeq ($(PEGASUS_PLATFORM),HPUX_PARISC_ACC)
194 SOURCES2 += LoadAndClearWord_HPUX_PARISC_ACC.s
|
195 david.dillard 1.115 endif
196
|
197 kumpf 1.142 SOURCES = $(SOURCES1) $(SOURCES2)
198
|
199 kumpf 1.110 ifeq ($(OS),linux)
|
200 denise.eckstein 1.114 EXTRA_LIBRARIES += -lcrypt
|
201 david.eger 1.92 ifdef PEGASUS_HAS_SSL
|
202 denise.eckstein 1.114 EXTRA_LIBRARIES += -L$(OPENSSL_HOME)/lib -lssl -lcrypto
|
203 david.eger 1.92 endif
204 endif
205
|
206 marek 1.98 ifeq ($(PEGASUS_PLATFORM),ZOS_ZSERIES_IBM)
207 ifdef PEGASUS_HAS_SSL
|
208 denise.eckstein 1.112 EXTRA_LIBRARIES += -L$(OPENSSL_HOME)/lib -lssl -lcrypto
|
209 marek 1.98 endif
|
210 marek 1.148 ifdef PEGASUS_ZOS_SECURITY
211 SOURCES += $(SOURCES_SECURITY_ZOS)
212 endif
|
213 marek 1.98 endif
214
215
|
216 sage 1.58 ifeq ($(PEGASUS_PLATFORM),AIX_RS_IBMCXX)
|
217 sage 1.78 AIX_LIB_PRIORITY=-20
|
218 dan 1.82 ifdef PEGASUS_HAS_SSL
|
219 david.dillard 1.111 EXTRA_LIBRARIES += -L$(OPENSSL_HOME)/lib -lssl -lcrypto
|
220 dan 1.82 endif
|
221 sage 1.58 endif
222
|
223 kumpf 1.83 ifeq ($(OS),HPUX)
|
224 kumpf 1.77 ifdef PEGASUS_HAS_SSL
225 EXTRA_LIBRARIES += -L$(OPENSSL_HOME)/lib -lssl -lcrypto
226 endif
|
227 kumpf 1.67 endif
228
|
229 denise.eckstein 1.112 ifeq ($(PEGASUS_PLATFORM),SOLARIS_SPARC_GNU)
230 ifdef PEGASUS_HAS_SSL
231 EXTRA_LIBRARIES += -L$(OPENSSL_HOME)/lib -lssl -lcrypto
232 endif
233 endif
234
235 ifeq ($(PEGASUS_PLATFORM),SOLARIS_SPARC_CC)
236 ifdef PEGASUS_HAS_SSL
237 EXTRA_LIBRARIES += -L$(OPENSSL_HOME)/lib -lssl -lcrypto
238 endif
239 endif
240
|
241 h.sterling 1.125 # Note that PEGASUS_WINDOWS_SDK_HOME only needs to be specified if using VC6.
|
242 a.dunfey 1.154 ifeq ($(OS_TYPE),windows)
|
243 kumpf 1.106 SYS_LIBS = ws2_32.lib advapi32.lib netapi32.lib
|
244 chip 1.104 ifdef PEGASUS_HAS_SSL
|
245 a.dunfey 1.107 SYS_LIBS += /libpath:$(OPENSSL_HOME)/lib libeay32.lib ssleay32.lib
|
246 kumpf 1.102 endif
|
247 h.sterling 1.125 ifdef PEGASUS_WINDOWS_SDK_HOME
248 FLAGS += -DPEGASUS_WINDOWS_SDK_HOME
249 SYS_LIBS += /libpath:$(PEGASUS_WINDOWS_SDK_HOME)/lib secur32.lib
250 else
|
251 h.sterling 1.126 ifneq ($(CL_MAJOR_VERSION), 12)
|
252 h.sterling 1.125 SYS_LIBS += secur32.lib
|
253 kumpf 1.153 endif
|
254 h.sterling 1.125 endif
|
255 kumpf 1.77 endif
|
256 mike 1.51
257 include $(ROOT)/mak/library.mak
|
258 kumpf 1.65 # DO NOT DELETE
|