| 1 |
include ../extra.mk |
| 2 |
|
| 3 |
SUBDIRS = ${RUNTIME} exceptions encodings forwarding |
| 4 |
SUBDIRS_AFTER = ${BRIDGE} ${TLS} hid test |
| 5 |
DISTCLEAN = Info.plist objfw-defs.h |
| 6 |
|
| 7 |
SHARED_LIB = ${OBJFW_SHARED_LIB} |
| 8 |
STATIC_LIB = ${OBJFW_STATIC_LIB} |
| 9 |
FRAMEWORK = ${OBJFW_FRAMEWORK} |
| 10 |
LIB_MAJOR = ${OBJFW_LIB_MAJOR} |
| 11 |
LIB_MINOR = ${OBJFW_LIB_MINOR} |
| 12 |
LIB_PATCH = ${OBJFW_LIB_PATCH} |
| 13 |
|
| 14 |
SRCS = OFApplication.m \ |
| 15 |
OFArray.m \ |
| 16 |
OFBlock.m \ |
| 17 |
OFCanvas.m \ |
| 18 |
OFCharacterSet.m \ |
| 19 |
OFColor.m \ |
| 20 |
OFColorSpace.m \ |
| 21 |
OFConstantString.m \ |
| 22 |
OFCountedSet.m \ |
| 23 |
OFData.m \ |
| 24 |
OFData+CryptographicHashing.m \ |
| 25 |
OFData+MessagePackParsing.m \ |
| 26 |
OFDate.m \ |
| 27 |
OFDeflate64Stream.m \ |
| 28 |
OFDeflateStream.m \ |
| 29 |
OFDictionary.m \ |
| 30 |
OFEmbeddedIRIHandler.m \ |
| 31 |
OFEnumerator.m \ |
| 32 |
OFFileManager.m \ |
| 33 |
OFGZIPStream.m \ |
| 34 |
OFHMAC.m \ |
| 35 |
OFINICategory.m \ |
| 36 |
OFINIFile.m \ |
| 37 |
OFINISection.m \ |
| 38 |
OFIRI.m \ |
| 39 |
OFIRIHandler.m \ |
| 40 |
OFImage.m \ |
| 41 |
OFImageFormatHandler.m \ |
| 42 |
OFIndexSet.m \ |
| 43 |
OFInflate64Stream.m \ |
| 44 |
OFInflateStream.m \ |
| 45 |
OFInvocation.m \ |
| 46 |
OFLHAArchive.m \ |
| 47 |
OFLHAArchiveEntry.m \ |
| 48 |
OFList.m \ |
| 49 |
OFLocale.m \ |
| 50 |
OFMD5Hash.m \ |
| 51 |
OFMapTable.m \ |
| 52 |
OFMatrix4x4.m \ |
| 53 |
OFMemoryStream.m \ |
| 54 |
OFMessagePackExtension.m \ |
| 55 |
OFMethodSignature.m \ |
| 56 |
OFMutableArray.m \ |
| 57 |
OFMutableData.m \ |
| 58 |
OFMutableDictionary.m \ |
| 59 |
OFMutableIRI.m \ |
| 60 |
OFMutableImage.m \ |
| 61 |
OFMutableIndexSet.m \ |
| 62 |
OFMutableLHAArchiveEntry.m \ |
| 63 |
OFMutablePair.m \ |
| 64 |
OFMutableSet.m \ |
| 65 |
OFMutableString.m \ |
| 66 |
OFMutableTarArchiveEntry.m \ |
| 67 |
OFMutableTriple.m \ |
| 68 |
OFMutableZIPArchiveEntry.m \ |
| 69 |
OFMutableZooArchiveEntry.m \ |
| 70 |
OFNotification.m \ |
| 71 |
OFNotificationCenter.m \ |
| 72 |
OFNull.m \ |
| 73 |
OFNumber.m \ |
| 74 |
OFObject.m \ |
| 75 |
OFObject+KeyValueCoding.m \ |
| 76 |
OFOnce.m \ |
| 77 |
OFOptionsParser.m \ |
| 78 |
OFPBKDF2.m \ |
| 79 |
OFPair.m \ |
| 80 |
OFRIPEMD160Hash.m \ |
| 81 |
OFRunLoop.m \ |
| 82 |
OFSHA1Hash.m \ |
| 83 |
OFSHA224Hash.m \ |
| 84 |
OFSHA224Or256Hash.m \ |
| 85 |
OFSHA256Hash.m \ |
| 86 |
OFSHA384Hash.m \ |
| 87 |
OFSHA384Or512Hash.m \ |
| 88 |
OFSHA512Hash.m \ |
| 89 |
OFScrypt.m \ |
| 90 |
OFSecureData.m \ |
| 91 |
OFSeekableStream.m \ |
| 92 |
OFSet.m \ |
| 93 |
OFSettings.m \ |
| 94 |
OFSortedList.m \ |
| 95 |
OFStdIOStream.m \ |
| 96 |
OFStream.m \ |
| 97 |
OFString.m \ |
| 98 |
OFString+CryptographicHashing.m \ |
| 99 |
OFString+JSONParsing.m \ |
| 100 |
OFString+PercentEncoding.m \ |
| 101 |
OFString+PropertyListParsing.m \ |
| 102 |
OFString+XMLEscaping.m \ |
| 103 |
OFString+XMLUnescaping.m \ |
| 104 |
OFSystemInfo.m \ |
| 105 |
OFTarArchive.m \ |
| 106 |
OFTarArchiveEntry.m \ |
| 107 |
OFThread.m \ |
| 108 |
OFTimer.m \ |
| 109 |
OFTriple.m \ |
| 110 |
OFUUID.m \ |
| 111 |
OFValue.m \ |
| 112 |
OFXMLAttribute.m \ |
| 113 |
OFXMLCDATA.m \ |
| 114 |
OFXMLCharacters.m \ |
| 115 |
OFXMLComment.m \ |
| 116 |
OFXMLElement.m \ |
| 117 |
OFXMLElementBuilder.m \ |
| 118 |
OFXMLNode.m \ |
| 119 |
OFXMLParser.m \ |
| 120 |
OFXMLProcessingInstruction.m \ |
| 121 |
OFZIPArchive.m \ |
| 122 |
OFZIPArchiveEntry.m \ |
| 123 |
OFZooArchive.m \ |
| 124 |
OFZooArchiveEntry.m \ |
| 125 |
${USE_SRCS_FILES} \ |
| 126 |
${USE_SRCS_MODULES} \ |
| 127 |
${USE_SRCS_SOCKETS} \ |
| 128 |
${USE_SRCS_SUBPROCESSES} \ |
| 129 |
${USE_SRCS_THREADS} \ |
| 130 |
${USE_SRCS_WINDOWS} |
| 131 |
SRCS_FILES = OFFile.m \ |
| 132 |
OFString+PathAdditions.m |
| 133 |
SRCS_MODULES = OFPlugin.m \ |
| 134 |
OFModule.m |
| 135 |
SRCS_SOCKETS = OFAAAADNSResourceRecord.m \ |
| 136 |
OFADNSResourceRecord.m \ |
| 137 |
OFCNAMEDNSResourceRecord.m \ |
| 138 |
OFDNSQuery.m \ |
| 139 |
OFDNSResolver.m \ |
| 140 |
OFDNSResourceRecord.m \ |
| 141 |
OFDNSResponse.m \ |
| 142 |
OFDatagramSocket.m \ |
| 143 |
OFHINFODNSResourceRecord.m \ |
| 144 |
OFHTTPClient.m \ |
| 145 |
OFHTTPCookie.m \ |
| 146 |
OFHTTPCookieManager.m \ |
| 147 |
OFHTTPRequest.m \ |
| 148 |
OFHTTPResponse.m \ |
| 149 |
OFHTTPServer.m \ |
| 150 |
OFLOCDNSResourceRecord.m \ |
| 151 |
OFMXDNSResourceRecord.m \ |
| 152 |
OFNSDNSResourceRecord.m \ |
| 153 |
OFPTRDNSResourceRecord.m \ |
| 154 |
OFRPDNSResourceRecord.m \ |
| 155 |
OFSOADNSResourceRecord.m \ |
| 156 |
OFSRVDNSResourceRecord.m \ |
| 157 |
OFSequencedPacketSocket.m \ |
| 158 |
OFSocket.m \ |
| 159 |
OFStreamSocket.m \ |
| 160 |
OFSystemInfo+NetworkInterfaces.m \ |
| 161 |
OFTCPSocket.m \ |
| 162 |
OFTLSStream.m \ |
| 163 |
OFTXTDNSResourceRecord.m \ |
| 164 |
OFUDPSocket.m \ |
| 165 |
OFURIDNSResourceRecord.m \ |
| 166 |
OFX509Certificate.m \ |
| 167 |
${USE_SRCS_APPLETALK} \ |
| 168 |
${USE_SRCS_IPX} \ |
| 169 |
${USE_SRCS_SCTP} \ |
| 170 |
${USE_SRCS_UNIX_SOCKETS} |
| 171 |
SRCS_APPLETALK = OFDDPSocket.m |
| 172 |
SRCS_IPX = OFIPXSocket.m \ |
| 173 |
OFSPXSocket.m \ |
| 174 |
OFSPXStreamSocket.m |
| 175 |
SRCS_SCTP = OFSCTPSocket.m |
| 176 |
SRCS_UNIX_SOCKETS = OFUNIXDatagramSocket.m \ |
| 177 |
OFUNIXSequencedPacketSocket.m \ |
| 178 |
OFUNIXStreamSocket.m |
| 179 |
SRCS_SUBPROCESSES = OFSubprocess.m |
| 180 |
SRCS_THREADS = OFCondition.m \ |
| 181 |
OFMutex.m \ |
| 182 |
OFPlainCondition.m \ |
| 183 |
OFPlainMutex.m \ |
| 184 |
OFPlainThread.m \ |
| 185 |
OFRecursiveMutex.m \ |
| 186 |
OFTLSKey.m |
| 187 |
SRCS_WINDOWS = OFWindowsRegistryKey.m |
| 188 |
|
| 189 |
INCLUDES_ATOMIC = OFAtomic.h \ |
| 190 |
platform/GCC4/OFAtomic.h \ |
| 191 |
platform/GCC4.7/OFAtomic.h \ |
| 192 |
platform/PowerPC/OFAtomic.h \ |
| 193 |
platform/macOS/OFAtomic.h \ |
| 194 |
platform/x86/OFAtomic.h |
| 195 |
INCLUDES := ${SRCS:.m=.h} \ |
| 196 |
OFArchiveEntry.h \ |
| 197 |
OFCollection.h \ |
| 198 |
OFCryptographicHash.h \ |
| 199 |
OFJSONRepresentation.h \ |
| 200 |
OFKernelEventObserver.h \ |
| 201 |
OFKeyValueCoding.h \ |
| 202 |
OFLocking.h \ |
| 203 |
OFMessagePackRepresentation.h \ |
| 204 |
OFMutableArchiveEntry.h \ |
| 205 |
ObjFW.h \ |
| 206 |
macros.h \ |
| 207 |
objfw-defs.h \ |
| 208 |
platform.h \ |
| 209 |
${USE_INCLUDES_ATOMIC} |
| 210 |
|
| 211 |
SRCS += OFASPrintF.m \ |
| 212 |
OFArchiveIRIHandler.m \ |
| 213 |
OFBMPImageFormatHandler.m \ |
| 214 |
OFBase64.m \ |
| 215 |
OFBitSetCharacterSet.m \ |
| 216 |
OFCRC16.m \ |
| 217 |
OFCRC32.m \ |
| 218 |
OFConcreteArray.m \ |
| 219 |
OFConcreteColor.m \ |
| 220 |
OFConcreteCountedSet.m \ |
| 221 |
OFConcreteData.m \ |
| 222 |
OFConcreteDate.m \ |
| 223 |
OFConcreteDictionary.m \ |
| 224 |
OFConcreteMutableArray.m \ |
| 225 |
OFConcreteMutableData.m \ |
| 226 |
OFConcreteMutableDictionary.m \ |
| 227 |
OFConcreteMutableSet.m \ |
| 228 |
OFConcreteNumber.m \ |
| 229 |
OFConcreteSet.m \ |
| 230 |
OFConcreteSubarray.m \ |
| 231 |
OFConcreteValue.m \ |
| 232 |
OFHuffmanTree.m \ |
| 233 |
OFINIFileSettings.m \ |
| 234 |
OFInvertedCharacterSet.m \ |
| 235 |
OFLHADecompressingStream.m \ |
| 236 |
OFMutableUTF8String.m \ |
| 237 |
OFQOIImageFormatHandler.m \ |
| 238 |
OFRangeCharacterSet.m \ |
| 239 |
OFSandbox.m \ |
| 240 |
OFStrFTime.m \ |
| 241 |
OFStrPTime.m \ |
| 242 |
OFSubarray.m \ |
| 243 |
OFSubdata.m \ |
| 244 |
OFUTF8String.m \ |
| 245 |
${AUTORELEASE_FOUNDATION_M} \ |
| 246 |
${LIBBASES_M} \ |
| 247 |
${RUNTIME_ARC_M} \ |
| 248 |
${RUNTIME_ASSOCIATION_M} \ |
| 249 |
${RUNTIME_INSTANCE_M} \ |
| 250 |
${UNICODE_M} \ |
| 251 |
${USE_SRCS_TAGGED_POINTERS} |
| 252 |
SRCS_FILES += OFFileIRIHandler.m |
| 253 |
SRCS_SOCKETS += OFAsyncIPSocketConnector.m \ |
| 254 |
OFDNSResolverSettings.m \ |
| 255 |
${OF_EPOLL_KERNEL_EVENT_OBSERVER_M} \ |
| 256 |
OFHTTPIRIHandler.m \ |
| 257 |
OFHostAddressResolver.m \ |
| 258 |
OFKernelEventObserver.m \ |
| 259 |
${OF_KQUEUE_KERNEL_EVENT_OBSERVER_M} \ |
| 260 |
${OF_POLL_KERNEL_EVENT_OBSERVER_M} \ |
| 261 |
${OF_SELECT_KERNEL_EVENT_OBSERVER_M} \ |
| 262 |
OFTCPSocketSOCKS5Connector.m |
| 263 |
SRCS_TAGGED_POINTERS = OFTaggedPointerColor.m \ |
| 264 |
OFTaggedPointerDate.m \ |
| 265 |
OFTaggedPointerNumber.m \ |
| 266 |
OFTaggedPointerString.m |
| 267 |
SRCS_WINDOWS += platform/Windows/OFWin32ConsoleStdIOStream.m \ |
| 268 |
versioninfo.rc |
| 269 |
|
| 270 |
OBJS_EXTRA = exceptions/exceptions.a \ |
| 271 |
encodings/encodings.a \ |
| 272 |
forwarding/forwarding.a |
| 273 |
LIB_OBJS_EXTRA = exceptions/exceptions.lib.a \ |
| 274 |
encodings/encodings.lib.a \ |
| 275 |
forwarding/forwarding.lib.a |
| 276 |
|
| 277 |
include ../buildsys.mk |
| 278 |
|
| 279 |
${TLS} hid: ${BRIDGE} |
| 280 |
|
| 281 |
CPPFLAGS += -I. -I.. -Iexceptions -Iruntime |
| 282 |
LD = ${OBJC} |
| 283 |
FRAMEWORK_LIBS := -Fruntime \ |
| 284 |
${RUNTIME_FRAMEWORK_LIBS} \ |
| 285 |
${REEXPORT_RUNTIME_FRAMEWORK} \ |
| 286 |
${LIBS} |
| 287 |
LIBS := -Lruntime -Lruntime/linklib ${RUNTIME_LIBS} ${REEXPORT_RUNTIME} ${LIBS} |
| 288 |
RCFLAGS = --use-temp-file \ |
| 289 |
-DOBJFW_LIB_MAJOR=${OBJFW_LIB_MAJOR} \ |
| 290 |
-DOBJFW_LIB_MINOR=${OBJFW_LIB_MINOR} \ |
| 291 |
-DOBJFW_LIB_VER=\"${OBJFW_LIB_MAJOR}.${OBJFW_LIB_MINOR}\" \ |
| 292 |
-DOBJFW_SHARED_LIB=\"${OBJFW_SHARED_LIB}\" |
| 293 |
|
| 294 |
uninstall-extra: |
| 295 |
for i in platform/GCC4 platform/GCC4.7 platform/PowerPC platform/macOS \ |
| 296 |
platform/x86 platform ""; do \ |
| 297 |
if test -d ${DESTDIR}${includedir}/${includesubdir}/$$i; then \ |
| 298 |
rmdir ${DESTDIR}${includedir}/${includesubdir}/$$i; \ |
| 299 |
fi; \ |
| 300 |
done |