Makefile.am 17 KB

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