Makefile.am 18 KB

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