Makefile.am 18 KB

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