Makefile.am 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567
  1. bin_PROGRAMS = aria2c
  2. aria2c_SOURCES = main.cc\
  3. option_processing.cc\
  4. version_usage.cc
  5. SRCS = Socket.h\
  6. SocketCore.cc SocketCore.h\
  7. BinaryStream.h\
  8. Command.cc Command.h\
  9. AbstractCommand.cc AbstractCommand.h\
  10. InitiateConnectionCommandFactory.cc InitiateConnectionCommandFactory.h\
  11. DownloadCommand.cc DownloadCommand.h\
  12. HttpInitiateConnectionCommand.cc HttpInitiateConnectionCommand.h\
  13. HttpRequestCommand.cc HttpRequestCommand.h\
  14. HttpResponseCommand.cc HttpResponseCommand.h\
  15. HttpProxyRequestCommand.cc HttpProxyRequestCommand.h\
  16. HttpProxyResponseCommand.cc HttpProxyResponseCommand.h\
  17. HttpDownloadCommand.cc HttpDownloadCommand.h\
  18. HttpHeader.cc HttpHeader.h\
  19. HttpConnection.cc HttpConnection.h\
  20. FtpConnection.cc FtpConnection.h\
  21. FtpInitiateConnectionCommand.cc FtpInitiateConnectionCommand.h\
  22. FtpNegotiationCommand.cc FtpNegotiationCommand.h\
  23. FtpDownloadCommand.cc FtpDownloadCommand.h\
  24. FtpTunnelRequestCommand.cc FtpTunnelRequestCommand.h\
  25. FtpTunnelResponseCommand.cc FtpTunnelResponseCommand.h\
  26. SleepCommand.cc SleepCommand.h\
  27. DownloadEngine.cc DownloadEngine.h\
  28. Segment.h\
  29. GrowSegment.cc GrowSegment.h\
  30. PiecedSegment.cc PiecedSegment.h\
  31. SegmentMan.cc SegmentMan.h\
  32. util.cc util.h\
  33. Request.cc Request.h\
  34. common.h\
  35. message.h\
  36. Exception.cc Exception.h\
  37. FatalException.cc FatalException.h\
  38. RecoverableException.cc RecoverableException.h\
  39. DlAbortEx.cc DlAbortEx.h\
  40. DlRetryEx.cc DlRetryEx.h\
  41. DownloadFailureException.cc DownloadFailureException.h\
  42. Logger.cc Logger.h\
  43. fmt.cc fmt.h\
  44. DiskWriter.h\
  45. DiskWriterFactory.h\
  46. AbstractDiskWriter.cc AbstractDiskWriter.h\
  47. DefaultDiskWriter.cc DefaultDiskWriter.h\
  48. DefaultDiskWriterFactory.cc DefaultDiskWriterFactory.h\
  49. File.cc File.h\
  50. Option.cc Option.h\
  51. Base64.cc Base64.h\
  52. base32.cc base32.h\
  53. LogFactory.cc LogFactory.h\
  54. TimerA2.cc TimerA2.h\
  55. TimeA2.cc TimeA2.h\
  56. SharedHandle.h\
  57. FeatureConfig.cc FeatureConfig.h\
  58. DownloadEngineFactory.cc DownloadEngineFactory.h\
  59. SpeedCalc.cc SpeedCalc.h\
  60. PeerStat.cc PeerStat.h\
  61. BitfieldMan.cc BitfieldMan.h\
  62. Randomizer.h\
  63. SimpleRandomizer.cc SimpleRandomizer.h\
  64. HttpResponse.cc HttpResponse.h\
  65. HttpRequest.cc HttpRequest.h\
  66. Range.cc Range.h\
  67. AbstractProxyRequestCommand.cc AbstractProxyRequestCommand.h\
  68. AbstractProxyResponseCommand.cc AbstractProxyResponseCommand.h\
  69. Netrc.cc Netrc.h\
  70. AuthConfig.cc AuthConfig.h\
  71. AuthResolver.h\
  72. AbstractAuthResolver.cc AbstractAuthResolver.h\
  73. DefaultAuthResolver.cc DefaultAuthResolver.h\
  74. NetrcAuthResolver.cc NetrcAuthResolver.h\
  75. AuthConfigFactory.cc AuthConfigFactory.h\
  76. OptionParser.cc OptionParser.h\
  77. OptionHandlerFactory.cc OptionHandlerFactory.h\
  78. OptionHandler.cc OptionHandler.h\
  79. OptionHandlerImpl.cc OptionHandlerImpl.h\
  80. NameMatchOptionHandler.cc NameMatchOptionHandler.h\
  81. NameResolver.cc NameResolver.h\
  82. RequestGroup.cc RequestGroup.h\
  83. RequestGroupMan.cc RequestGroupMan.h\
  84. FileAllocationMan.h\
  85. FileAllocationCommand.cc FileAllocationCommand.h\
  86. FillRequestGroupCommand.cc FillRequestGroupCommand.h\
  87. FileAllocationDispatcherCommand.cc FileAllocationDispatcherCommand.h\
  88. FileAllocationEntry.cc FileAllocationEntry.h\
  89. StreamFileAllocationEntry.cc StreamFileAllocationEntry.h\
  90. MultiUrlRequestInfo.cc MultiUrlRequestInfo.h\
  91. UriListParser.cc UriListParser.h\
  92. RealtimeCommand.cc RealtimeCommand.h\
  93. ProgressAwareEntry.h\
  94. RequestGroupEntry.cc RequestGroupEntry.h\
  95. Cookie.cc Cookie.h\
  96. HttpHeaderProcessor.cc HttpHeaderProcessor.h\
  97. FileEntry.cc FileEntry.h\
  98. Platform.cc Platform.h\
  99. PStringDatum.h\
  100. PStringSegment.cc PStringSegment.h\
  101. PStringNumLoop.cc PStringNumLoop.h\
  102. PStringSelect.cc PStringSelect.h\
  103. PStringVisitor.h\
  104. PStringBuildVisitor.cc PStringBuildVisitor.h\
  105. ParameterizedStringParser.cc ParameterizedStringParser.h\
  106. FixedWidthNumberDecorator.cc FixedWidthNumberDecorator.h\
  107. NumberDecorator.h\
  108. AlphaNumberDecorator.cc AlphaNumberDecorator.h\
  109. TimeBasedCommand.cc TimeBasedCommand.h\
  110. AutoSaveCommand.cc AutoSaveCommand.h\
  111. PieceStorage.h\
  112. DefaultPieceStorage.cc DefaultPieceStorage.h\
  113. UnknownLengthPieceStorage.cc UnknownLengthPieceStorage.h\
  114. PieceStatMan.cc PieceStatMan.h\
  115. StatCalc.h\
  116. ConsoleStatCalc.cc ConsoleStatCalc.h\
  117. TransferStat.cc TransferStat.h\
  118. Dependency.h\
  119. BtProgressInfoFile.h\
  120. DefaultBtProgressInfoFile.cc DefaultBtProgressInfoFile.h\
  121. NullProgressInfoFile.h\
  122. FileAllocationIterator.h\
  123. SingleFileAllocationIterator.cc SingleFileAllocationIterator.h\
  124. RequestGroupCriteria.h\
  125. ContentTypeRequestGroupCriteria.cc ContentTypeRequestGroupCriteria.h\
  126. DownloadHandler.cc DownloadHandler.h\
  127. DownloadHandlerConstants.cc DownloadHandlerConstants.h\
  128. DownloadHandlerFactory.cc DownloadHandlerFactory.h\
  129. MemoryBufferPreDownloadHandler.cc MemoryBufferPreDownloadHandler.h\
  130. HaveEraseCommand.cc HaveEraseCommand.h\
  131. Piece.cc Piece.h\
  132. CheckIntegrityMan.h\
  133. CheckIntegrityEntry.cc CheckIntegrityEntry.h\
  134. PieceHashCheckIntegrityEntry.cc PieceHashCheckIntegrityEntry.h\
  135. StreamCheckIntegrityEntry.cc StreamCheckIntegrityEntry.h\
  136. IteratableValidator.h\
  137. DiskAdaptor.cc DiskAdaptor.h\
  138. AbstractSingleDiskAdaptor.cc AbstractSingleDiskAdaptor.h\
  139. DirectDiskAdaptor.cc DirectDiskAdaptor.h\
  140. MultiDiskAdaptor.cc MultiDiskAdaptor.h\
  141. PeerSessionResource.cc PeerSessionResource.h\
  142. BtRegistry.cc BtRegistry.h\
  143. MultiFileAllocationIterator.cc MultiFileAllocationIterator.h\
  144. PeerConnection.cc PeerConnection.h\
  145. ByteArrayDiskWriter.cc ByteArrayDiskWriter.h\
  146. ByteArrayDiskWriterFactory.cc ByteArrayDiskWriterFactory.h\
  147. DownloadContext.cc DownloadContext.h\
  148. TimedHaltCommand.cc TimedHaltCommand.h\
  149. CUIDCounter.cc CUIDCounter.h\
  150. DNSCache.cc DNSCache.h\
  151. DownloadResult.cc DownloadResult.h\
  152. Sequence.h\
  153. IntSequence.h\
  154. PostDownloadHandler.h\
  155. PreDownloadHandler.h\
  156. SingletonHolder.h\
  157. TrueRequestGroupCriteria.h\
  158. a2algo.h\
  159. a2functional.h\
  160. a2io.h\
  161. a2netcompat.h\
  162. a2time.h\
  163. array_fun.h\
  164. help_tags.h\
  165. prefs.cc prefs.h\
  166. usage_text.h\
  167. ProtocolDetector.cc ProtocolDetector.h\
  168. NullStatCalc.h\
  169. HttpSkipResponseCommand.cc HttpSkipResponseCommand.h\
  170. InitiateConnectionCommand.cc InitiateConnectionCommand.h\
  171. FtpFinishDownloadCommand.cc FtpFinishDownloadCommand.h\
  172. A2STR.cc A2STR.h\
  173. RarestPieceSelector.cc RarestPieceSelector.h\
  174. Decoder.h\
  175. Signature.cc Signature.h\
  176. ServerStat.cc ServerStat.h\
  177. ServerStatMan.cc ServerStatMan.h\
  178. URISelector.h\
  179. AdaptiveURISelector.cc AdaptiveURISelector.h\
  180. InOrderURISelector.cc InOrderURISelector.h\
  181. FeedbackURISelector.cc FeedbackURISelector.h\
  182. NsCookieParser.cc NsCookieParser.h\
  183. CookieStorage.cc CookieStorage.h\
  184. SocketBuffer.cc SocketBuffer.h\
  185. OptionHandlerException.cc OptionHandlerException.h\
  186. URIResult.cc URIResult.h\
  187. EventPoll.h\
  188. SelectEventPoll.cc SelectEventPoll.h\
  189. SequentialPicker.h\
  190. SequentialDispatcherCommand.h\
  191. PieceSelector.h\
  192. LongestSequencePieceSelector.cc LongestSequencePieceSelector.h\
  193. bitfield.cc bitfield.h\
  194. CreateRequestCommand.cc CreateRequestCommand.h\
  195. error_code.h\
  196. wallclock.h\
  197. download_helper.cc download_helper.h\
  198. MetadataInfo.cc MetadataInfo.h\
  199. SessionSerializer.cc SessionSerializer.h\
  200. Event.h\
  201. timespec.h\
  202. ValueBase.cc ValueBase.h\
  203. ContextAttribute.h\
  204. TorrentAttribute.cc TorrentAttribute.h\
  205. AdaptiveFileAllocationIterator.cc AdaptiveFileAllocationIterator.h\
  206. StreamFilter.cc StreamFilter.h\
  207. SinkStreamFilter.cc SinkStreamFilter.h\
  208. ChunkedDecodingStreamFilter.cc ChunkedDecodingStreamFilter.h\
  209. NullSinkStreamFilter.cc NullSinkStreamFilter.h\
  210. uri.cc uri.h\
  211. Triplet.h\
  212. cookie_helper.cc cookie_helper.h
  213. if ENABLE_XML_RPC
  214. SRCS += XmlRpcRequestParserController.cc XmlRpcRequestParserController.h\
  215. XmlRpcRequestParserStateMachine.cc XmlRpcRequestParserStateMachine.h\
  216. XmlRpcRequestParserState.h\
  217. XmlRpcRequestParserStateImpl.cc XmlRpcRequestParserStateImpl.h\
  218. XmlRpcElements.cc XmlRpcElements.h\
  219. XmlRpcRequest.cc XmlRpcRequest.h\
  220. XmlRpcRequestProcessor.h\
  221. HttpServerBodyCommand.cc HttpServerBodyCommand.h\
  222. XmlRpcMethod.cc XmlRpcMethod.h\
  223. XmlRpcMethodImpl.cc XmlRpcMethodImpl.h\
  224. XmlRpcMethodFactory.cc XmlRpcMethodFactory.h\
  225. XmlRpcResponse.cc XmlRpcResponse.h\
  226. HttpListenCommand.cc HttpListenCommand.h\
  227. HttpServerCommand.cc HttpServerCommand.h\
  228. HttpServerResponseCommand.cc HttpServerResponseCommand.h\
  229. HttpServer.cc HttpServer.h
  230. if HAVE_LIBXML2
  231. SRCS += Xml2XmlRpcRequestProcessor.cc Xml2XmlRpcRequestProcessor.h
  232. endif # HAVE_LIBXML2
  233. if HAVE_LIBEXPAT
  234. SRCS += ExpatXmlRpcRequestProcessor.cc ExpatXmlRpcRequestProcessor.h
  235. endif # HAVE_LIBEXPAT
  236. endif # ENABLE_XML_RPC
  237. if HAVE_SOME_FALLOCATE
  238. SRCS += FallocFileAllocationIterator.cc FallocFileAllocationIterator.h
  239. endif # HAVE_SOME_FALLOCATE
  240. if HAVE_EPOLL
  241. SRCS += EpollEventPoll.cc EpollEventPoll.h
  242. endif # HAVE_EPOLL
  243. if ENABLE_SSL
  244. SRCS += TLSContext.h
  245. endif # ENABLE_SSL
  246. if HAVE_LIBGNUTLS
  247. SRCS += LibgnutlsTLSContext.cc LibgnutlsTLSContext.h\
  248. LibgcryptMessageDigestImpl.cc LibgcryptMessageDigestImpl.h\
  249. LibgcryptARC4Context.cc LibgcryptARC4Context.h\
  250. LibgcryptARC4Decryptor.cc LibgcryptARC4Decryptor.h\
  251. LibgcryptARC4Encryptor.cc LibgcryptARC4Encryptor.h\
  252. LibgcryptDHKeyExchange.cc LibgcryptDHKeyExchange.h
  253. endif # HAVE_LIBGNUTLS
  254. if HAVE_LIBSSL
  255. SRCS += LibsslTLSContext.cc LibsslTLSContext.h\
  256. LibsslMessageDigestImpl.cc LibsslMessageDigestImpl.h\
  257. LibsslARC4Context.cc LibsslARC4Context.h\
  258. LibsslARC4Decryptor.cc LibsslARC4Decryptor.h\
  259. LibsslARC4Encryptor.cc LibsslARC4Encryptor.h\
  260. LibsslDHKeyExchange.cc LibsslDHKeyExchange.h
  261. endif # HAVE_LIBSSL
  262. if HAVE_LIBZ
  263. SRCS += GZipDecoder.cc GZipDecoder.h\
  264. GZipEncoder.cc GZipEncoder.h\
  265. GZipDecodingStreamFilter.cc GZipDecodingStreamFilter.h
  266. endif # HAVE_LIBZ
  267. if HAVE_SQLITE3
  268. SRCS += Sqlite3CookieParser.cc Sqlite3CookieParser.h\
  269. Sqlite3CookieParserImpl.cc Sqlite3CookieParserImpl.h
  270. endif # HAVE_SQLITE3
  271. if ENABLE_ASYNC_DNS
  272. SRCS += AsyncNameResolver.cc AsyncNameResolver.h
  273. endif # ENABLE_ASYNC_DNS
  274. if ENABLE_MESSAGE_DIGEST
  275. SRCS += IteratableChunkChecksumValidator.cc IteratableChunkChecksumValidator.h\
  276. IteratableChecksumValidator.cc IteratableChecksumValidator.h\
  277. CheckIntegrityDispatcherCommand.cc CheckIntegrityDispatcherCommand.h\
  278. CheckIntegrityCommand.cc CheckIntegrityCommand.h\
  279. ChecksumCheckIntegrityEntry.cc ChecksumCheckIntegrityEntry.h\
  280. MessageDigestHelper.cc MessageDigestHelper.h\
  281. Checksum.cc Checksum.h\
  282. ChunkChecksum.cc ChunkChecksum.h\
  283. MessageDigest.cc MessageDigest.h\
  284. MessageDigestImpl.h\
  285. HashFuncEntry.h
  286. endif # ENABLE_MESSAGE_DIGEST
  287. if ENABLE_BITTORRENT
  288. SRCS += PeerAbstractCommand.cc PeerAbstractCommand.h\
  289. PeerInitiateConnectionCommand.cc PeerInitiateConnectionCommand.h\
  290. PeerInteractionCommand.cc PeerInteractionCommand.h\
  291. Peer.cc Peer.h\
  292. PeerListenCommand.cc PeerListenCommand.h\
  293. RequestSlot.cc RequestSlot.h\
  294. TrackerWatcherCommand.cc TrackerWatcherCommand.h\
  295. PeerChokeCommand.cc PeerChokeCommand.h\
  296. SeedCriteria.h\
  297. TimeSeedCriteria.cc TimeSeedCriteria.h\
  298. ShareRatioSeedCriteria.cc ShareRatioSeedCriteria.h\
  299. UnionSeedCriteria.cc UnionSeedCriteria.h\
  300. SeedCheckCommand.cc SeedCheckCommand.h\
  301. AnnounceTier.cc AnnounceTier.h\
  302. AnnounceList.h AnnounceList.cc\
  303. PeerStorage.h\
  304. DefaultPeerStorage.cc DefaultPeerStorage.h\
  305. BtAnnounce.cc BtAnnounce.h\
  306. DefaultBtAnnounce.cc DefaultBtAnnounce.h\
  307. BtRuntime.cc BtRuntime.h\
  308. BtMessage.h\
  309. AbstractBtMessage.cc AbstractBtMessage.h\
  310. SimpleBtMessage.cc SimpleBtMessage.h\
  311. BtAllowedFastMessage.cc BtAllowedFastMessage.h\
  312. BtBitfieldMessage.cc BtBitfieldMessage.h\
  313. BtCancelMessage.cc BtCancelMessage.h\
  314. BtChokeMessage.cc BtChokeMessage.h\
  315. BtHaveAllMessage.cc BtHaveAllMessage.h\
  316. BtHaveMessage.cc BtHaveMessage.h\
  317. BtHaveNoneMessage.cc BtHaveNoneMessage.h\
  318. BtInterestedMessage.cc BtInterestedMessage.h\
  319. BtKeepAliveMessage.cc BtKeepAliveMessage.h\
  320. BtNotInterestedMessage.cc BtNotInterestedMessage.h\
  321. BtPieceMessage.cc BtPieceMessage.h\
  322. BtPortMessage.cc BtPortMessage.h\
  323. BtRejectMessage.cc BtRejectMessage.h\
  324. BtRequestMessage.cc BtRequestMessage.h\
  325. BtSuggestPieceMessage.cc BtSuggestPieceMessage.h\
  326. BtUnchokeMessage.cc BtUnchokeMessage.h\
  327. BtHandshakeMessage.cc BtHandshakeMessage.h\
  328. BtMessageValidator.h\
  329. BtBitfieldMessageValidator.cc BtBitfieldMessageValidator.h\
  330. BtPieceMessageValidator.cc BtPieceMessageValidator.h\
  331. BtHandshakeMessageValidator.cc BtHandshakeMessageValidator.h\
  332. BtMessageFactory.h\
  333. DefaultBtMessageFactory.cc DefaultBtMessageFactory.h\
  334. BtMessageDispatcher.h\
  335. DefaultBtMessageDispatcher.cc DefaultBtMessageDispatcher.h\
  336. BtMessageReceiver.h\
  337. DefaultBtMessageReceiver.cc DefaultBtMessageReceiver.h\
  338. BtRequestFactory.h\
  339. DefaultBtRequestFactory.cc DefaultBtRequestFactory.h\
  340. BtCancelSendingPieceEvent.h\
  341. BtAbortOutstandingRequestEvent.cc BtAbortOutstandingRequestEvent.h\
  342. BtChokingEvent.h\
  343. BtInteractive.h\
  344. DefaultBtInteractive.cc DefaultBtInteractive.h\
  345. ActivePeerConnectionCommand.cc ActivePeerConnectionCommand.h\
  346. BtDependency.cc BtDependency.h\
  347. PeerReceiveHandshakeCommand.cc PeerReceiveHandshakeCommand.h\
  348. BtSetup.cc BtSetup.h\
  349. BtFileAllocationEntry.cc BtFileAllocationEntry.h\
  350. BtPostDownloadHandler.cc BtPostDownloadHandler.h\
  351. BtCheckIntegrityEntry.cc BtCheckIntegrityEntry.h\
  352. BtExtendedMessage.cc BtExtendedMessage.h\
  353. ExtensionMessage.h\
  354. ExtensionMessageFactory.h\
  355. DefaultExtensionMessageFactory.cc DefaultExtensionMessageFactory.h\
  356. HandshakeExtensionMessage.cc HandshakeExtensionMessage.h\
  357. UTPexExtensionMessage.cc UTPexExtensionMessage.h\
  358. UTMetadataExtensionMessage.cc UTMetadataExtensionMessage.h\
  359. UTMetadataRequestExtensionMessage.cc\
  360. UTMetadataRequestExtensionMessage.h\
  361. UTMetadataRejectExtensionMessage.cc UTMetadataRejectExtensionMessage.h\
  362. UTMetadataDataExtensionMessage.cc UTMetadataDataExtensionMessage.h\
  363. UTMetadataRequestTracker.cc UTMetadataRequestTracker.h\
  364. UTMetadataRequestFactory.cc UTMetadataRequestFactory.h\
  365. UTMetadataPostDownloadHandler.cc UTMetadataPostDownloadHandler.h\
  366. magnet.cc magnet.h\
  367. DHTNode.cc DHTNode.h\
  368. DHTBucket.cc DHTBucket.h\
  369. DHTRoutingTable.cc DHTRoutingTable.h\
  370. DHTMessageEntry.cc DHTMessageEntry.h\
  371. DHTMessageDispatcher.h\
  372. DHTMessageDispatcherImpl.cc DHTMessageDispatcherImpl.h\
  373. DHTMessageReceiver.cc DHTMessageReceiver.h\
  374. DHTMessageTracker.cc DHTMessageTracker.h\
  375. DHTMessageTrackerEntry.cc DHTMessageTrackerEntry.h\
  376. DHTMessage.cc DHTMessage.h\
  377. DHTConnection.h\
  378. DHTConnectionImpl.cc DHTConnectionImpl.h\
  379. DHTAbstractMessage.cc DHTAbstractMessage.h\
  380. DHTQueryMessage.cc DHTQueryMessage.h\
  381. DHTResponseMessage.cc DHTResponseMessage.h\
  382. DHTPingMessage.cc DHTPingMessage.h\
  383. DHTPingReplyMessage.cc DHTPingReplyMessage.h\
  384. DHTFindNodeMessage.cc DHTFindNodeMessage.h\
  385. DHTFindNodeReplyMessage.cc DHTFindNodeReplyMessage.h\
  386. DHTGetPeersMessage.cc DHTGetPeersMessage.h\
  387. DHTGetPeersReplyMessage.cc DHTGetPeersReplyMessage.h\
  388. DHTAnnouncePeerMessage.cc DHTAnnouncePeerMessage.h\
  389. DHTAnnouncePeerReplyMessage.cc DHTAnnouncePeerReplyMessage.h\
  390. DHTUnknownMessage.cc DHTUnknownMessage.h\
  391. DHTMessageFactory.h\
  392. DHTMessageFactoryImpl.cc DHTMessageFactoryImpl.h\
  393. DHTNodeLookupTask.cc DHTNodeLookupTask.h\
  394. DHTNodeLookupEntry.cc DHTNodeLookupEntry.h\
  395. DHTBucketTree.cc DHTBucketTree.h\
  396. DHTMessageCallback.h\
  397. DHTNodeLookupTaskCallback.cc DHTNodeLookupTaskCallback.h\
  398. DHTPingReplyMessageCallback.h\
  399. DHTPeerLookupTaskCallback.cc DHTPeerLookupTaskCallback.h\
  400. DHTAbstractTask.cc DHTAbstractTask.h\
  401. DHTTask.h\
  402. DHTPingTask.cc DHTPingTask.h\
  403. DHTTaskQueue.h\
  404. DHTTaskQueueImpl.cc DHTTaskQueueImpl.h\
  405. DHTTaskExecutor.cc DHTTaskExecutor.h\
  406. DHTBucketRefreshTask.cc DHTBucketRefreshTask.h\
  407. DHTAbstractNodeLookupTask.h\
  408. DHTPeerLookupTask.cc DHTPeerLookupTask.h\
  409. DHTSetup.cc DHTSetup.h\
  410. DHTTaskFactory.h\
  411. DHTTaskFactoryImpl.cc DHTTaskFactoryImpl.h\
  412. DHTInteractionCommand.cc DHTInteractionCommand.h\
  413. DHTPeerAnnounceEntry.cc DHTPeerAnnounceEntry.h\
  414. DHTPeerAnnounceStorage.cc DHTPeerAnnounceStorage.h\
  415. DHTTokenTracker.cc DHTTokenTracker.h\
  416. DHTGetPeersCommand.cc DHTGetPeersCommand.h\
  417. DHTTokenUpdateCommand.cc DHTTokenUpdateCommand.h\
  418. DHTBucketRefreshCommand.cc DHTBucketRefreshCommand.h\
  419. DHTPeerAnnounceCommand.cc DHTPeerAnnounceCommand.h\
  420. DHTReplaceNodeTask.cc DHTReplaceNodeTask.h\
  421. DHTEntryPointNameResolveCommand.cc DHTEntryPointNameResolveCommand.h\
  422. DHTRoutingTableSerializer.cc DHTRoutingTableSerializer.h\
  423. DHTRoutingTableDeserializer.cc DHTRoutingTableDeserializer.h\
  424. DHTAutoSaveCommand.cc DHTAutoSaveCommand.h\
  425. DHTRegistry.cc DHTRegistry.h\
  426. DHTIDCloser.h\
  427. DHTConstants.h\
  428. XORCloser.h\
  429. PeerAddrEntry.cc PeerAddrEntry.h\
  430. InitiatorMSEHandshakeCommand.cc InitiatorMSEHandshakeCommand.h\
  431. ReceiverMSEHandshakeCommand.cc ReceiverMSEHandshakeCommand.h\
  432. MSEHandshake.cc MSEHandshake.h\
  433. ARC4Decryptor.h\
  434. ARC4Encryptor.h\
  435. DHKeyExchange.h\
  436. BtConstants.h\
  437. BtLeecherStateChoke.cc BtLeecherStateChoke.h\
  438. BtSeederStateChoke.cc BtSeederStateChoke.h\
  439. RangeBtMessage.cc RangeBtMessage.h\
  440. IndexBtMessage.cc IndexBtMessage.h\
  441. ZeroBtMessage.cc ZeroBtMessage.h\
  442. RangeBtMessageValidator.cc RangeBtMessageValidator.h\
  443. IndexBtMessageValidator.cc IndexBtMessageValidator.h\
  444. ExtensionMessageRegistry.cc ExtensionMessageRegistry.h\
  445. bittorrent_helper.cc bittorrent_helper.h\
  446. BtStopDownloadCommand.cc BtStopDownloadCommand.h\
  447. PriorityPieceSelector.cc PriorityPieceSelector.h\
  448. LpdMessageDispatcher.cc LpdMessageDispatcher.h\
  449. LpdMessageReceiver.cc LpdMessageReceiver.h\
  450. LpdMessage.cc LpdMessage.h\
  451. LpdReceiveMessageCommand.cc LpdReceiveMessageCommand.h\
  452. LpdDispatchMessageCommand.cc LpdDispatchMessageCommand.h\
  453. bencode2.cc bencode2.h
  454. endif # ENABLE_BITTORRENT
  455. if ENABLE_METALINK
  456. SRCS += Metalinker.cc Metalinker.h\
  457. MetalinkEntry.cc MetalinkEntry.h\
  458. MetalinkResource.cc MetalinkResource.h\
  459. MetalinkMetaurl.cc MetalinkMetaurl.h\
  460. MetalinkProcessor.h\
  461. MetalinkParserController.cc MetalinkParserController.h\
  462. MetalinkParserStateMachine.cc MetalinkParserStateMachine.h\
  463. MetalinkParserState.cc MetalinkParserState.h\
  464. MetalinkParserStateImpl.cc MetalinkParserStateImpl.h\
  465. MetalinkParserStateV3Impl.cc MetalinkParserStateV3Impl.h\
  466. MetalinkParserStateV4Impl.cc MetalinkParserStateV4Impl.h\
  467. Metalink2RequestGroup.cc Metalink2RequestGroup.h\
  468. MetalinkPostDownloadHandler.cc MetalinkPostDownloadHandler.h\
  469. MetalinkHelper.cc MetalinkHelper.h
  470. endif # ENABLE_METALINK
  471. if ENABLE_METALINK_LIBXML2
  472. SRCS += XML2SAXMetalinkProcessor.cc XML2SAXMetalinkProcessor.h
  473. endif # ENABLE_METALINK_LIBXML2
  474. if ENABLE_METALINK_LIBEXPAT
  475. SRCS += ExpatMetalinkProcessor.cc ExpatMetalinkProcessor.h
  476. endif # ENABLE_METALINK_LIBEXPAT
  477. if !HAVE_ASCTIME_R
  478. SRCS += asctime_r.c asctime_r.h
  479. endif # !HAVE_ASCTIME_R
  480. if !HAVE_BASENAME
  481. SRCS += libgen.c libgen.h
  482. endif # !HAVE_BASENAME
  483. if !HAVE_GETADDRINFO
  484. SRCS += getaddrinfo.c getaddrinfo.h
  485. endif # !HAVE_GETADDRINFO
  486. if !HAVE_GAI_STRERROR
  487. SRCS += gai_strerror.c gai_strerror.h
  488. endif # !HAVE_GAI_STRERROR
  489. if !HAVE_GETTIMEOFDAY
  490. SRCS += gettimeofday.c gettimeofday.h
  491. endif # !HAVE_GETTIMEOFDAY
  492. if !HAVE_INET_ATON
  493. SRCS += inet_aton.c inet_aton.h
  494. endif # !HAVE_INET_ATON
  495. if !HAVE_LOCALTIME_R
  496. SRCS += localtime_r.c localtime_r.h
  497. endif # !HAVE_LOCALTIME_R
  498. if !HAVE_STRPTIME
  499. SRCS += strptime.c strptime.h
  500. endif # !HAVE_STRPTIME
  501. if !HAVE_TIMEGM
  502. SRCS += timegm.c timegm.h
  503. endif # !HAVE_TIMEGM
  504. if !HAVE_DAEMON
  505. SRCS += daemon.cc daemon.h
  506. endif # !HAVE_DAEMON
  507. if HAVE_TIMEGETTIME
  508. SRCS += clock_gettime_mingw.cc clock_gettime_mingw.h
  509. endif # HAVE_TIMEGETTIME
  510. if HAVE_MACH_ABSOLUTE_TIME
  511. SRCS += clock_gettime_osx.cc clock_gettime_osx.h
  512. endif # HAVE_MACH_ABSOLUTE_TIME
  513. if HAVE_POLL
  514. SRCS += PollEventPoll.cc PollEventPoll.h
  515. endif # HAVE_POLL
  516. if HAVE_PORT_ASSOCIATE
  517. SRCS += PortEventPoll.cc PortEventPoll.h
  518. endif # HAVE_PORT_ASSOCIATE
  519. if HAVE_KQUEUE
  520. SRCS += KqueueEventPoll.cc KqueueEventPoll.h
  521. endif # HAVE_KQUEUE
  522. noinst_LIBRARIES = libaria2c.a
  523. libaria2c_a_SOURCES = $(SRCS)
  524. aria2c_LDADD = libaria2c.a @LIBINTL@ @ALLOCA@ @LIBGNUTLS_LIBS@\
  525. @LIBGCRYPT_LIBS@ @OPENSSL_LIBS@ @XML_LIBS@\
  526. @LIBCARES_LIBS@ @LIBEXPAT_LIBS@ @LIBZ_LIBS@\
  527. @SQLITE3_LIBS@ #-lprofiler
  528. #aria2c_LDFLAGS = -pg
  529. AM_CPPFLAGS = -Wall\
  530. -I$(top_srcdir)/lib -I$(top_srcdir)/intl\
  531. @LIBGNUTLS_CFLAGS@ @LIBGCRYPT_CFLAGS@ @OPENSSL_CFLAGS@ @XML_CPPFLAGS@\
  532. @LIBCARES_CPPFLAGS@ @LIBEXPAT_CPPFLAGS@\
  533. @LIBZ_CPPFLAGS@ @SQLITE3_CFLAGS@\
  534. -DLOCALEDIR=\"@localedir@\" -DCA_BUNDLE=\"$(ca_bundle)\" @DEFS@ #-pg