include.am 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331
  1. noinst_LIBRARIES += \
  2. src/core/libtor-app.a
  3. if UNITTESTS_ENABLED
  4. noinst_LIBRARIES += \
  5. src/core/libtor-app-testing.a
  6. endif
  7. LIBTOR_APP_A_SOURCES = \
  8. src/app/config/config.c \
  9. src/app/config/confparse.c \
  10. src/app/config/statefile.c \
  11. src/core/crypto/hs_ntor.c \
  12. src/core/crypto/onion.c \
  13. src/core/crypto/onion_fast.c \
  14. src/core/crypto/onion_ntor.c \
  15. src/core/crypto/onion_tap.c \
  16. src/core/crypto/relay_crypto.c \
  17. src/core/mainloop/connection.c \
  18. src/core/mainloop/cpuworker.c \
  19. src/core/mainloop/main.c \
  20. src/core/mainloop/periodic.c \
  21. src/core/or/address_set.c \
  22. src/core/or/channel.c \
  23. src/core/or/channelpadding.c \
  24. src/core/or/channeltls.c \
  25. src/core/or/circuitbuild.c \
  26. src/core/or/circuitlist.c \
  27. src/core/or/circuitmux.c \
  28. src/core/or/circuitmux_ewma.c \
  29. src/core/or/circuitstats.c \
  30. src/core/or/circuituse.c \
  31. src/core/or/command.c \
  32. src/core/or/connection_edge.c \
  33. src/core/or/connection_or.c \
  34. src/core/or/dos.c \
  35. src/core/or/policies.c \
  36. src/core/or/protover.c \
  37. src/core/or/reasons.c \
  38. src/core/or/relay.c \
  39. src/core/or/scheduler.c \
  40. src/core/or/scheduler_kist.c \
  41. src/core/or/scheduler_vanilla.c \
  42. src/core/or/status.c \
  43. src/core/proto/proto_cell.c \
  44. src/core/proto/proto_control0.c \
  45. src/core/proto/proto_ext_or.c \
  46. src/core/proto/proto_http.c \
  47. src/core/proto/proto_socks.c \
  48. src/core/proto/protover_rust.c \
  49. src/feature/api/tor_api.c \
  50. src/feature/client/addressmap.c \
  51. src/feature/client/bridges.c \
  52. src/feature/client/circpathbias.c \
  53. src/feature/client/dnsserv.c \
  54. src/feature/client/entrynodes.c \
  55. src/feature/client/transports.c \
  56. src/feature/control/control.c \
  57. src/feature/dirauth/keypin.c \
  58. src/feature/dircache/conscache.c \
  59. src/feature/dircache/consdiffmgr.c \
  60. src/feature/dircache/directory.c \
  61. src/feature/dircache/dirserv.c \
  62. src/feature/dircommon/consdiff.c \
  63. src/feature/dircommon/fp_pair.c \
  64. src/feature/dircommon/voting_schedule.c \
  65. src/feature/hibernate/hibernate.c \
  66. src/feature/hs/hs_cache.c \
  67. src/feature/hs/hs_cell.c \
  68. src/feature/hs/hs_circuit.c \
  69. src/feature/hs/hs_circuitmap.c \
  70. src/feature/hs/hs_client.c \
  71. src/feature/hs/hs_common.c \
  72. src/feature/hs/hs_config.c \
  73. src/feature/hs/hs_control.c \
  74. src/feature/hs/hs_descriptor.c \
  75. src/feature/hs/hs_ident.c \
  76. src/feature/hs/hs_intropoint.c \
  77. src/feature/hs/hs_service.c \
  78. src/feature/hs/hs_stats.c \
  79. src/feature/hs_common/replaycache.c \
  80. src/feature/hs_common/shared_random_client.c \
  81. src/feature/nodelist/authcert.c \
  82. src/feature/nodelist/dirlist.c \
  83. src/feature/nodelist/microdesc.c \
  84. src/feature/nodelist/networkstatus.c \
  85. src/feature/nodelist/nodelist.c \
  86. src/feature/nodelist/node_select.c \
  87. src/feature/nodelist/parsecommon.c \
  88. src/feature/nodelist/routerlist.c \
  89. src/feature/nodelist/routerparse.c \
  90. src/feature/nodelist/routerset.c \
  91. src/feature/nodelist/torcert.c \
  92. src/feature/relay/dns.c \
  93. src/feature/relay/ext_orport.c \
  94. src/feature/relay/router.c \
  95. src/feature/relay/routerkeys.c \
  96. src/feature/rend/rendcache.c \
  97. src/feature/rend/rendclient.c \
  98. src/feature/rend/rendcommon.c \
  99. src/feature/rend/rendmid.c \
  100. src/feature/rend/rendservice.c \
  101. src/feature/stats/geoip.c \
  102. src/feature/stats/rephist.c
  103. if BUILD_NT_SERVICES
  104. LIBTOR_APP_A_SOURCES += src/app/main/ntmain.c
  105. endif
  106. #
  107. # Modules are conditionnally compiled in tor starting here. We add the C files
  108. # only if the modules has been enabled at configure time. We always add the
  109. # source files of every module to libtor-testing.a so we can build the unit
  110. # tests for everything. See the UNITTESTS_ENABLED branch below.
  111. #
  112. LIBTOR_APP_TESTING_A_SOURCES = $(LIBTOR_APP_A_SOURCES)
  113. # The Directory Authority module.
  114. MODULE_DIRAUTH_SOURCES = \
  115. src/feature/dirauth/dircollate.c \
  116. src/feature/dirauth/dirvote.c \
  117. src/feature/dirauth/shared_random.c \
  118. src/feature/dirauth/shared_random_state.c
  119. if BUILD_MODULE_DIRAUTH
  120. LIBTOR_APP_A_SOURCES += $(MODULE_DIRAUTH_SOURCES)
  121. endif
  122. src_core_libtor_app_a_SOURCES = $(LIBTOR_APP_A_SOURCES)
  123. if UNITTESTS_ENABLED
  124. # Add the sources of the modules that are needed for tests to work here.
  125. LIBTOR_APP_TESTING_A_SOURCES += $(MODULE_DIRAUTH_SOURCES)
  126. src_core_libtor_app_testing_a_SOURCES = $(LIBTOR_APP_TESTING_A_SOURCES)
  127. else
  128. src_core_libtor_app_testing_a_SOURCES =
  129. endif
  130. AM_CPPFLAGS += -DSHARE_DATADIR="\"$(datadir)\"" \
  131. -DLOCALSTATEDIR="\"$(localstatedir)\"" \
  132. -DBINDIR="\"$(bindir)\""
  133. src_core_libtor_app_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
  134. src_core_libtor_app_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
  135. noinst_HEADERS += \
  136. src/app/config/config.h \
  137. src/app/config/confparse.h \
  138. src/app/config/or_options_st.h \
  139. src/app/config/or_state_st.h \
  140. src/app/config/statefile.h \
  141. src/app/main/ntmain.h \
  142. src/core/crypto/hs_ntor.h \
  143. src/core/crypto/onion.h \
  144. src/core/crypto/onion_fast.h \
  145. src/core/crypto/onion_ntor.h \
  146. src/core/crypto/onion_tap.h \
  147. src/core/crypto/relay_crypto.h \
  148. src/core/mainloop/connection.h \
  149. src/core/mainloop/cpuworker.h \
  150. src/core/mainloop/main.h \
  151. src/core/mainloop/periodic.h \
  152. src/core/or/addr_policy_st.h \
  153. src/core/or/address_set.h \
  154. src/core/or/cell_queue_st.h \
  155. src/core/or/cell_st.h \
  156. src/core/or/channel.h \
  157. src/core/or/channelpadding.h \
  158. src/core/or/channeltls.h \
  159. src/core/or/circuit_st.h \
  160. src/core/or/circuitbuild.h \
  161. src/core/or/circuitlist.h \
  162. src/core/or/circuitmux.h \
  163. src/core/or/circuitmux_ewma.h \
  164. src/core/or/circuitstats.h \
  165. src/core/or/circuituse.h \
  166. src/core/or/command.h \
  167. src/core/or/connection_edge.h \
  168. src/core/or/connection_or.h \
  169. src/core/or/connection_st.h \
  170. src/core/or/cpath_build_state_st.h \
  171. src/core/or/crypt_path_reference_st.h \
  172. src/core/or/crypt_path_st.h \
  173. src/core/or/destroy_cell_queue_st.h \
  174. src/core/or/dos.h \
  175. src/core/or/edge_connection_st.h \
  176. src/core/or/half_edge_st.h \
  177. src/core/or/entry_connection_st.h \
  178. src/core/or/entry_port_cfg_st.h \
  179. src/core/or/extend_info_st.h \
  180. src/core/or/listener_connection_st.h \
  181. src/core/or/or.h \
  182. src/core/or/or_circuit_st.h \
  183. src/core/or/or_connection_st.h \
  184. src/core/or/or_handshake_certs_st.h \
  185. src/core/or/or_handshake_state_st.h \
  186. src/core/or/origin_circuit_st.h \
  187. src/core/or/policies.h \
  188. src/core/or/port_cfg_st.h \
  189. src/core/or/protover.h \
  190. src/core/or/reasons.h \
  191. src/core/or/relay.h \
  192. src/core/or/relay_crypto_st.h \
  193. src/core/or/scheduler.h \
  194. src/core/or/server_port_cfg_st.h \
  195. src/core/or/socks_request_st.h \
  196. src/core/or/status.h \
  197. src/core/or/tor_version_st.h \
  198. src/core/or/var_cell_st.h \
  199. src/core/proto/proto_cell.h \
  200. src/core/proto/proto_control0.h \
  201. src/core/proto/proto_ext_or.h \
  202. src/core/proto/proto_http.h \
  203. src/core/proto/proto_socks.h \
  204. src/feature/api/tor_api_internal.h \
  205. src/feature/client/addressmap.h \
  206. src/feature/client/bridges.h \
  207. src/feature/client/circpathbias.h \
  208. src/feature/client/dnsserv.h \
  209. src/feature/client/entrynodes.h \
  210. src/feature/client/transports.h \
  211. src/feature/control/control.h \
  212. src/feature/control/control_connection_st.h \
  213. src/feature/dirauth/dircollate.h \
  214. src/feature/dirauth/dirvote.h \
  215. src/feature/dirauth/keypin.h \
  216. src/feature/dirauth/mode.h \
  217. src/feature/dirauth/ns_detached_signatures_st.h \
  218. src/feature/dirauth/shared_random.h \
  219. src/feature/dirauth/shared_random_state.h \
  220. src/feature/dirauth/vote_microdesc_hash_st.h \
  221. src/feature/dircache/cached_dir_st.h \
  222. src/feature/dircache/conscache.h \
  223. src/feature/dircache/consdiffmgr.h \
  224. src/feature/dircache/directory.h \
  225. src/feature/dircache/dirserv.h \
  226. src/feature/dirclient/dir_server_st.h \
  227. src/feature/dirclient/download_status_st.h \
  228. src/feature/dircommon/consdiff.h \
  229. src/feature/dircommon/dir_connection_st.h \
  230. src/feature/dircommon/fp_pair.h \
  231. src/feature/dircommon/vote_timing_st.h \
  232. src/feature/dircommon/voting_schedule.h \
  233. src/feature/hibernate/hibernate.h \
  234. src/feature/hs/hs_cache.h \
  235. src/feature/hs/hs_cell.h \
  236. src/feature/hs/hs_circuit.h \
  237. src/feature/hs/hs_circuitmap.h \
  238. src/feature/hs/hs_client.h \
  239. src/feature/hs/hs_common.h \
  240. src/feature/hs/hs_config.h \
  241. src/feature/hs/hs_control.h \
  242. src/feature/hs/hs_descriptor.h \
  243. src/feature/hs/hs_ident.h \
  244. src/feature/hs/hs_intropoint.h \
  245. src/feature/hs/hs_service.h \
  246. src/feature/hs/hs_stats.h \
  247. src/feature/hs/hsdir_index_st.h \
  248. src/feature/hs_common/replaycache.h \
  249. src/feature/hs_common/shared_random_client.h \
  250. src/feature/nodelist/authcert.h \
  251. src/feature/nodelist/authority_cert_st.h \
  252. src/feature/nodelist/desc_store_st.h \
  253. src/feature/nodelist/dirlist.h \
  254. src/feature/nodelist/document_signature_st.h \
  255. src/feature/nodelist/extrainfo_st.h \
  256. src/feature/nodelist/microdesc.h \
  257. src/feature/nodelist/microdesc_st.h \
  258. src/feature/nodelist/networkstatus.h \
  259. src/feature/nodelist/networkstatus_sr_info_st.h \
  260. src/feature/nodelist/networkstatus_st.h \
  261. src/feature/nodelist/networkstatus_voter_info_st.h \
  262. src/feature/nodelist/node_st.h \
  263. src/feature/nodelist/nodelist.h \
  264. src/feature/nodelist/node_select.h \
  265. src/feature/nodelist/parsecommon.h \
  266. src/feature/nodelist/routerinfo_st.h \
  267. src/feature/nodelist/routerlist.h \
  268. src/feature/nodelist/routerlist_st.h \
  269. src/feature/nodelist/routerparse.h \
  270. src/feature/nodelist/routerset.h \
  271. src/feature/nodelist/routerstatus_st.h \
  272. src/feature/nodelist/signed_descriptor_st.h \
  273. src/feature/nodelist/torcert.h \
  274. src/feature/nodelist/vote_routerstatus_st.h \
  275. src/feature/relay/dns.h \
  276. src/feature/relay/dns_structs.h \
  277. src/feature/relay/ext_orport.h \
  278. src/feature/relay/router.h \
  279. src/feature/relay/routerkeys.h \
  280. src/feature/rend/rend_authorized_client_st.h \
  281. src/feature/rend/rend_encoded_v2_service_descriptor_st.h \
  282. src/feature/rend/rend_intro_point_st.h \
  283. src/feature/rend/rend_service_descriptor_st.h \
  284. src/feature/rend/rendcache.h \
  285. src/feature/rend/rendclient.h \
  286. src/feature/rend/rendcommon.h \
  287. src/feature/rend/rendmid.h \
  288. src/feature/rend/rendservice.h \
  289. src/feature/stats/geoip.h \
  290. src/feature/stats/rephist.h
  291. noinst_HEADERS += \
  292. src/app/config/auth_dirs.inc \
  293. src/app/config/fallback_dirs.inc
  294. # This may someday want to be an installed file?
  295. noinst_HEADERS += src/feature/api/tor_api.h
  296. micro-revision.i: FORCE
  297. $(AM_V_at)rm -f micro-revision.tmp; \
  298. if test -r "$(top_srcdir)/.git" && \
  299. test -x "`which git 2>&1;true`"; then \
  300. HASH="`cd "$(top_srcdir)" && git rev-parse --short=16 HEAD`"; \
  301. echo \"$$HASH\" > micro-revision.tmp; \
  302. fi; \
  303. if test ! -f micro-revision.tmp; then \
  304. if test ! -f micro-revision.i; then \
  305. echo '""' > micro-revision.i; \
  306. fi; \
  307. elif test ! -f micro-revision.i || \
  308. test x"`cat micro-revision.tmp`" != x"`cat micro-revision.i`"; then \
  309. mv micro-revision.tmp micro-revision.i; \
  310. fi; \
  311. rm -f micro-revision.tmp; \
  312. true
  313. CLEANFILES+= micro-revision.i micro-revision.tmp
  314. FORCE: