Makefile.am 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554
  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.h\
  38. RecoverableException.h\
  39. DlAbortEx.h\
  40. DlRetryEx.h\
  41. DownloadFailureException.h\
  42. Logger.cc Logger.h\
  43. SimpleLogger.cc SimpleLogger.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. HandleRegistry.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. BDE.cc BDE.h\
  199. CreateRequestCommand.cc CreateRequestCommand.h\
  200. DownloadResultCode.h\
  201. wallclock.h\
  202. download_helper.cc download_helper.h\
  203. MetadataInfo.cc MetadataInfo.h\
  204. SessionSerializer.cc SessionSerializer.h\
  205. Event.h\
  206. timespec.h
  207. if ENABLE_XML_RPC
  208. SRCS += XmlRpcRequestParserController.cc XmlRpcRequestParserController.h\
  209. XmlRpcRequestParserStateMachine.cc XmlRpcRequestParserStateMachine.h\
  210. XmlRpcRequestParserState.h\
  211. XmlRpcRequestParserStateImpl.cc XmlRpcRequestParserStateImpl.h\
  212. XmlRpcElements.cc XmlRpcElements.h\
  213. XmlRpcRequest.h\
  214. XmlRpcRequestProcessor.h\
  215. HttpServerBodyCommand.cc HttpServerBodyCommand.h\
  216. XmlRpcMethod.cc XmlRpcMethod.h\
  217. XmlRpcMethodImpl.cc XmlRpcMethodImpl.h\
  218. XmlRpcMethodFactory.cc XmlRpcMethodFactory.h\
  219. XmlRpcResponse.cc XmlRpcResponse.h\
  220. HttpListenCommand.cc HttpListenCommand.h\
  221. HttpServerCommand.cc HttpServerCommand.h\
  222. HttpServerResponseCommand.cc HttpServerResponseCommand.h\
  223. HttpServer.cc HttpServer.h
  224. if HAVE_LIBXML2
  225. SRCS += Xml2XmlRpcRequestProcessor.cc Xml2XmlRpcRequestProcessor.h
  226. endif # HAVE_LIBXML2
  227. if HAVE_LIBEXPAT
  228. SRCS += ExpatXmlRpcRequestProcessor.cc ExpatXmlRpcRequestProcessor.h
  229. endif # HAVE_LIBEXPAT
  230. endif # ENABLE_XML_RPC
  231. if HAVE_POSIX_FALLOCATE
  232. SRCS += FallocFileAllocationIterator.cc FallocFileAllocationIterator.h
  233. endif # HAVE_POSIX_FALLOCATE
  234. if HAVE_EPOLL
  235. SRCS += EpollEventPoll.cc EpollEventPoll.h
  236. endif # HAVE_EPOLL
  237. if ENABLE_SSL
  238. SRCS += TLSContext.h
  239. endif # ENABLE_SSL
  240. if HAVE_LIBGNUTLS
  241. SRCS += LibgnutlsTLSContext.cc LibgnutlsTLSContext.h
  242. endif # HAVE_LIBGNUTLS
  243. if HAVE_LIBSSL
  244. SRCS += LibsslTLSContext.cc LibsslTLSContext.h
  245. endif # HAVE_LIBSSL
  246. if HAVE_LIBZ
  247. SRCS += GZipDecoder.cc GZipDecoder.h\
  248. GZipEncoder.cc GZipEncoder.h
  249. endif # HAVE_LIBZ
  250. if HAVE_SQLITE3
  251. SRCS += Sqlite3MozCookieParser.cc Sqlite3MozCookieParser.h
  252. endif # HAVE_SQLITE3
  253. if ENABLE_ASYNC_DNS
  254. SRCS += AsyncNameResolver.cc AsyncNameResolver.h
  255. endif # ENABLE_ASYNC_DNS
  256. if ENABLE_MESSAGE_DIGEST
  257. SRCS += IteratableChunkChecksumValidator.cc IteratableChunkChecksumValidator.h\
  258. IteratableChecksumValidator.cc IteratableChecksumValidator.h\
  259. CheckIntegrityDispatcherCommand.cc CheckIntegrityDispatcherCommand.h\
  260. CheckIntegrityCommand.cc CheckIntegrityCommand.h\
  261. ChecksumCheckIntegrityEntry.cc ChecksumCheckIntegrityEntry.h\
  262. messageDigest.cc messageDigest.h\
  263. MessageDigestHelper.cc MessageDigestHelper.h\
  264. Checksum.h\
  265. ChunkChecksum.h
  266. endif # ENABLE_MESSAGE_DIGEST
  267. if ENABLE_BITTORRENT
  268. SRCS += PeerAbstractCommand.cc PeerAbstractCommand.h\
  269. PeerInitiateConnectionCommand.cc PeerInitiateConnectionCommand.h\
  270. PeerInteractionCommand.cc PeerInteractionCommand.h\
  271. Peer.cc Peer.h\
  272. PeerListenCommand.cc PeerListenCommand.h\
  273. RequestSlot.cc RequestSlot.h\
  274. TrackerWatcherCommand.cc TrackerWatcherCommand.h\
  275. PeerChokeCommand.cc PeerChokeCommand.h\
  276. SeedCriteria.h\
  277. TimeSeedCriteria.h\
  278. ShareRatioSeedCriteria.h\
  279. UnionSeedCriteria.h\
  280. SeedCheckCommand.cc SeedCheckCommand.h\
  281. PeerListProcessor.h\
  282. AnnounceTier.h\
  283. AnnounceList.h AnnounceList.cc\
  284. PeerStorage.h\
  285. DefaultPeerStorage.cc DefaultPeerStorage.h\
  286. BtAnnounce.cc BtAnnounce.h\
  287. DefaultBtAnnounce.cc DefaultBtAnnounce.h\
  288. BtRuntime.h\
  289. BtMessage.h\
  290. AbstractBtMessage.cc AbstractBtMessage.h\
  291. SimpleBtMessage.cc SimpleBtMessage.h\
  292. BtAllowedFastMessage.cc BtAllowedFastMessage.h\
  293. BtBitfieldMessage.cc BtBitfieldMessage.h\
  294. BtCancelMessage.cc BtCancelMessage.h\
  295. BtChokeMessage.cc BtChokeMessage.h\
  296. BtHaveAllMessage.cc BtHaveAllMessage.h\
  297. BtHaveMessage.cc BtHaveMessage.h\
  298. BtHaveNoneMessage.cc BtHaveNoneMessage.h\
  299. BtInterestedMessage.cc BtInterestedMessage.h\
  300. BtKeepAliveMessage.cc BtKeepAliveMessage.h\
  301. BtNotInterestedMessage.cc BtNotInterestedMessage.h\
  302. BtPieceMessage.cc BtPieceMessage.h\
  303. BtPortMessage.cc BtPortMessage.h\
  304. BtRejectMessage.cc BtRejectMessage.h\
  305. BtRequestMessage.cc BtRequestMessage.h\
  306. BtSuggestPieceMessage.cc BtSuggestPieceMessage.h\
  307. BtUnchokeMessage.cc BtUnchokeMessage.h\
  308. BtHandshakeMessage.cc BtHandshakeMessage.h\
  309. BtMessageValidator.h\
  310. BtBitfieldMessageValidator.h\
  311. BtPieceMessageValidator.h\
  312. BtHandshakeMessageValidator.h\
  313. BtMessageFactory.h\
  314. DefaultBtMessageFactory.cc DefaultBtMessageFactory.h\
  315. BtMessageDispatcher.h\
  316. DefaultBtMessageDispatcher.cc DefaultBtMessageDispatcher.h\
  317. BtMessageReceiver.h\
  318. DefaultBtMessageReceiver.cc DefaultBtMessageReceiver.h\
  319. BtRequestFactory.h\
  320. DefaultBtRequestFactory.cc DefaultBtRequestFactory.h\
  321. BtCancelSendingPieceEvent.h\
  322. BtAbortOutstandingRequestEvent.h\
  323. BtChokingEvent.h\
  324. BtInteractive.h\
  325. DefaultBtInteractive.cc DefaultBtInteractive.h\
  326. ActivePeerConnectionCommand.cc ActivePeerConnectionCommand.h\
  327. BtDependency.cc BtDependency.h\
  328. PeerReceiveHandshakeCommand.cc PeerReceiveHandshakeCommand.h\
  329. BtSetup.cc BtSetup.h\
  330. BtFileAllocationEntry.cc BtFileAllocationEntry.h\
  331. BtPostDownloadHandler.cc BtPostDownloadHandler.h\
  332. BtCheckIntegrityEntry.cc BtCheckIntegrityEntry.h\
  333. BtExtendedMessage.cc BtExtendedMessage.h\
  334. ExtensionMessage.h\
  335. ExtensionMessageFactory.h\
  336. DefaultExtensionMessageFactory.cc DefaultExtensionMessageFactory.h\
  337. HandshakeExtensionMessage.cc HandshakeExtensionMessage.h\
  338. UTPexExtensionMessage.cc UTPexExtensionMessage.h\
  339. UTMetadataExtensionMessage.cc UTMetadataExtensionMessage.h\
  340. UTMetadataRequestExtensionMessage.cc\
  341. UTMetadataRequestExtensionMessage.h\
  342. UTMetadataRejectExtensionMessage.cc UTMetadataRejectExtensionMessage.h\
  343. UTMetadataDataExtensionMessage.cc UTMetadataDataExtensionMessage.h\
  344. UTMetadataRequestTracker.cc UTMetadataRequestTracker.h\
  345. UTMetadataRequestFactory.cc UTMetadataRequestFactory.h\
  346. UTMetadataPostDownloadHandler.cc UTMetadataPostDownloadHandler.h\
  347. magnet.cc magnet.h\
  348. DHTNode.cc DHTNode.h\
  349. DHTBucket.cc DHTBucket.h\
  350. DHTRoutingTable.cc DHTRoutingTable.h\
  351. DHTMessageEntry.cc DHTMessageEntry.h\
  352. DHTMessageDispatcher.h\
  353. DHTMessageDispatcherImpl.cc DHTMessageDispatcherImpl.h\
  354. DHTMessageReceiver.cc DHTMessageReceiver.h\
  355. DHTMessageTracker.cc DHTMessageTracker.h\
  356. DHTMessageTrackerEntry.cc DHTMessageTrackerEntry.h\
  357. DHTMessage.cc DHTMessage.h\
  358. DHTConnection.h\
  359. DHTConnectionImpl.cc DHTConnectionImpl.h\
  360. DHTAbstractMessage.cc DHTAbstractMessage.h\
  361. DHTQueryMessage.cc DHTQueryMessage.h\
  362. DHTResponseMessage.cc DHTResponseMessage.h\
  363. DHTPingMessage.cc DHTPingMessage.h\
  364. DHTPingReplyMessage.cc DHTPingReplyMessage.h\
  365. DHTFindNodeMessage.cc DHTFindNodeMessage.h\
  366. DHTFindNodeReplyMessage.cc DHTFindNodeReplyMessage.h\
  367. DHTGetPeersMessage.cc DHTGetPeersMessage.h\
  368. DHTGetPeersReplyMessage.cc DHTGetPeersReplyMessage.h\
  369. DHTAnnouncePeerMessage.cc DHTAnnouncePeerMessage.h\
  370. DHTAnnouncePeerReplyMessage.cc DHTAnnouncePeerReplyMessage.h\
  371. DHTUnknownMessage.cc DHTUnknownMessage.h\
  372. DHTMessageFactory.h\
  373. DHTMessageFactoryImpl.cc DHTMessageFactoryImpl.h\
  374. DHTNodeLookupTask.cc DHTNodeLookupTask.h\
  375. DHTNodeLookupEntry.cc DHTNodeLookupEntry.h\
  376. BNode.cc BNode.h\
  377. DHTMessageCallback.h\
  378. DHTMessageCallbackImpl.cc DHTMessageCallbackImpl.h\
  379. DHTMessageCallbackListener.h\
  380. DHTAbstractTask.cc DHTAbstractTask.h\
  381. DHTTask.h\
  382. DHTPingTask.cc DHTPingTask.h\
  383. DHTTaskQueue.h\
  384. DHTTaskQueueImpl.cc DHTTaskQueueImpl.h\
  385. DHTBucketRefreshTask.cc DHTBucketRefreshTask.h\
  386. DHTAbstractNodeLookupTask.cc DHTAbstractNodeLookupTask.h\
  387. DHTPeerLookupTask.cc DHTPeerLookupTask.h\
  388. DHTSetup.cc DHTSetup.h\
  389. DHTTaskFactory.h\
  390. DHTTaskFactoryImpl.cc DHTTaskFactoryImpl.h\
  391. DHTInteractionCommand.cc DHTInteractionCommand.h\
  392. DHTPeerAnnounceEntry.cc DHTPeerAnnounceEntry.h\
  393. DHTPeerAnnounceStorage.cc DHTPeerAnnounceStorage.h\
  394. DHTTokenTracker.cc DHTTokenTracker.h\
  395. DHTGetPeersCommand.cc DHTGetPeersCommand.h\
  396. DHTTokenUpdateCommand.cc DHTTokenUpdateCommand.h\
  397. DHTBucketRefreshCommand.cc DHTBucketRefreshCommand.h\
  398. DHTPeerAnnounceCommand.cc DHTPeerAnnounceCommand.h\
  399. DHTReplaceNodeTask.cc DHTReplaceNodeTask.h\
  400. DHTEntryPointNameResolveCommand.cc DHTEntryPointNameResolveCommand.h\
  401. DHTRoutingTableSerializer.cc DHTRoutingTableSerializer.h\
  402. DHTRoutingTableDeserializer.cc DHTRoutingTableDeserializer.h\
  403. DHTAutoSaveCommand.cc DHTAutoSaveCommand.h\
  404. DHTRegistry.cc DHTRegistry.h\
  405. DHTIDCloser.h\
  406. DHTConstants.h\
  407. XORCloser.h\
  408. PeerAddrEntry.h\
  409. InitiatorMSEHandshakeCommand.cc InitiatorMSEHandshakeCommand.h\
  410. ReceiverMSEHandshakeCommand.cc ReceiverMSEHandshakeCommand.h\
  411. MSEHandshake.cc MSEHandshake.h\
  412. ARC4Decryptor.h\
  413. ARC4Encryptor.h\
  414. DHKeyExchange.h\
  415. LibgcryptARC4Context.h\
  416. LibgcryptARC4Decryptor.h\
  417. LibgcryptARC4Encryptor.h\
  418. LibgcryptDHKeyExchange.h\
  419. LibsslARC4Context.h\
  420. LibsslARC4Decryptor.h\
  421. LibsslARC4Encryptor.h\
  422. LibsslDHKeyExchange.h\
  423. BtConstants.h\
  424. BtLeecherStateChoke.cc BtLeecherStateChoke.h\
  425. BtSeederStateChoke.cc BtSeederStateChoke.h\
  426. RangeBtMessage.cc RangeBtMessage.h\
  427. IndexBtMessage.cc IndexBtMessage.h\
  428. ZeroBtMessage.cc ZeroBtMessage.h\
  429. RangeBtMessageValidator.h\
  430. IndexBtMessageValidator.h\
  431. ExtensionMessageRegistry.h\
  432. bencode.cc bencode.h\
  433. bittorrent_helper.cc bittorrent_helper.h\
  434. BtStopDownloadCommand.cc BtStopDownloadCommand.h\
  435. PriorityPieceSelector.cc PriorityPieceSelector.h\
  436. LpdMessageDispatcher.cc LpdMessageDispatcher.h\
  437. LpdMessageReceiver.cc LpdMessageReceiver.h\
  438. LpdMessage.h\
  439. LpdReceiveMessageCommand.cc LpdReceiveMessageCommand.h\
  440. LpdDispatchMessageCommand.cc LpdDispatchMessageCommand.h
  441. endif # ENABLE_BITTORRENT
  442. if ENABLE_METALINK
  443. SRCS += Metalinker.cc Metalinker.h\
  444. MetalinkEntry.cc MetalinkEntry.h\
  445. MetalinkResource.cc MetalinkResource.h\
  446. MetalinkMetaurl.cc MetalinkMetaurl.h\
  447. MetalinkProcessor.h\
  448. MetalinkParserController.cc MetalinkParserController.h\
  449. MetalinkParserStateMachine.cc MetalinkParserStateMachine.h\
  450. MetalinkParserState.h\
  451. MetalinkParserStateImpl.cc MetalinkParserStateImpl.h\
  452. MetalinkParserStateV3Impl.cc MetalinkParserStateV3Impl.h\
  453. MetalinkParserStateV4Impl.cc MetalinkParserStateV4Impl.h\
  454. Metalink2RequestGroup.cc Metalink2RequestGroup.h\
  455. MetalinkPostDownloadHandler.cc MetalinkPostDownloadHandler.h\
  456. MetalinkHelper.cc MetalinkHelper.h
  457. endif # ENABLE_METALINK
  458. if ENABLE_METALINK_LIBXML2
  459. SRCS += XML2SAXMetalinkProcessor.cc XML2SAXMetalinkProcessor.h
  460. endif # ENABLE_METALINK_LIBXML2
  461. if ENABLE_METALINK_LIBEXPAT
  462. SRCS += ExpatMetalinkProcessor.cc ExpatMetalinkProcessor.h
  463. endif # ENABLE_METALINK_LIBEXPAT
  464. if !HAVE_ASCTIME_R
  465. SRCS += asctime_r.c asctime_r.h
  466. endif # !HAVE_ASCTIME_R
  467. if !HAVE_BASENAME
  468. SRCS += libgen.c libgen.h
  469. endif # !HAVE_BASENAME
  470. if !HAVE_GETADDRINFO
  471. SRCS += getaddrinfo.c getaddrinfo.h
  472. endif # !HAVE_GETADDRINFO
  473. if !HAVE_GAI_STRERROR
  474. SRCS += gai_strerror.c gai_strerror.h
  475. endif # !HAVE_GAI_STRERROR
  476. if !HAVE_GETTIMEOFDAY
  477. SRCS += gettimeofday.c gettimeofday.h
  478. endif # !HAVE_GETTIMEOFDAY
  479. if !HAVE_INET_ATON
  480. SRCS += inet_aton.c inet_aton.h
  481. endif # !HAVE_INET_ATON
  482. if !HAVE_LOCALTIME_R
  483. SRCS += localtime_r.c localtime_r.h
  484. endif # !HAVE_LOCALTIME_R
  485. if !HAVE_STRPTIME
  486. SRCS += strptime.c strptime.h
  487. endif # !HAVE_STRPTIME
  488. if !HAVE_TIMEGM
  489. SRCS += timegm.c timegm.h
  490. endif # !HAVE_TIMEGM
  491. if !HAVE_DAEMON
  492. SRCS += daemon.cc daemon.h
  493. endif # !HAVE_DAEMON
  494. if HAVE_TIMEGETTIME
  495. SRCS += clock_gettime_mingw.cc clock_gettime_mingw.h
  496. endif # HAVE_TIMEGETTIME
  497. if HAVE_MACH_ABSOLUTE_TIME
  498. SRCS += clock_gettime_osx.cc clock_gettime_osx.h
  499. endif # HAVE_MACH_ABSOLUTE_TIME
  500. if HAVE_POLL
  501. SRCS += PollEventPoll.cc PollEventPoll.h
  502. endif # HAVE_POLL
  503. if HAVE_PORT_ASSOCIATE
  504. SRCS += PortEventPoll.cc PortEventPoll.h
  505. endif # HAVE_PORT_ASSOCIATE
  506. if HAVE_KQUEUE
  507. SRCS += KqueueEventPoll.cc KqueueEventPoll.h
  508. endif # HAVE_KQUEUE
  509. noinst_LIBRARIES = libaria2c.a
  510. libaria2c_a_SOURCES = $(SRCS)
  511. aria2c_LDADD = libaria2c.a @LIBINTL@ @ALLOCA@ @LIBGNUTLS_LIBS@\
  512. @LIBGCRYPT_LIBS@ @OPENSSL_LIBS@ @XML_LIBS@\
  513. @LIBCARES_LIBS@ @LIBEXPAT_LIBS@ @LIBZ_LIBS@\
  514. @SQLITE3_LIBS@ #-lprofiler
  515. #aria2c_LDFLAGS = -pg
  516. AM_CPPFLAGS = -Wall\
  517. -I../lib -I../intl -I$(top_srcdir)/intl\
  518. @LIBGNUTLS_CFLAGS@ @LIBGCRYPT_CFLAGS@ @OPENSSL_CFLAGS@ @XML_CPPFLAGS@\
  519. @LIBCARES_CPPFLAGS@ @LIBEXPAT_CPPFLAGS@\
  520. @LIBZ_CPPFLAGS@ @SQLITE3_CFLAGS@\
  521. -DLOCALEDIR=\"@localedir@\" -DCA_BUNDLE=\"$(ca_bundle)\" @DEFS@ #-pg