aboutsummaryrefslogtreecommitdiff
path: root/src/core/include.am
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/include.am')
-rw-r--r--src/core/include.am330
1 files changed, 330 insertions, 0 deletions
diff --git a/src/core/include.am b/src/core/include.am
new file mode 100644
index 0000000000..d6162196fc
--- /dev/null
+++ b/src/core/include.am
@@ -0,0 +1,330 @@
+
+noinst_LIBRARIES += \
+ src/core/libtor-app.a
+if UNITTESTS_ENABLED
+noinst_LIBRARIES += \
+ src/core/libtor-app-testing.a
+endif
+
+LIBTOR_APP_A_SOURCES = \
+ src/or/addressmap.c \
+ src/or/address_set.c \
+ src/or/bridges.c \
+ src/or/channel.c \
+ src/or/channelpadding.c \
+ src/or/channeltls.c \
+ src/or/circpathbias.c \
+ src/or/circuitbuild.c \
+ src/or/circuitlist.c \
+ src/or/circuitmux.c \
+ src/or/circuitmux_ewma.c \
+ src/or/circuitstats.c \
+ src/or/circuituse.c \
+ src/or/command.c \
+ src/or/config.c \
+ src/or/confparse.c \
+ src/or/connection.c \
+ src/or/connection_edge.c \
+ src/or/connection_or.c \
+ src/or/conscache.c \
+ src/or/consdiff.c \
+ src/or/consdiffmgr.c \
+ src/or/control.c \
+ src/or/cpuworker.c \
+ src/or/directory.c \
+ src/or/dirserv.c \
+ src/or/dns.c \
+ src/or/dnsserv.c \
+ src/or/dos.c \
+ src/or/fp_pair.c \
+ src/or/geoip.c \
+ src/or/entrynodes.c \
+ src/or/ext_orport.c \
+ src/or/git_revision.c \
+ src/or/hibernate.c \
+ src/or/hs_cache.c \
+ src/or/hs_cell.c \
+ src/or/hs_circuit.c \
+ src/or/hs_circuitmap.c \
+ src/or/hs_client.c \
+ src/or/hs_common.c \
+ src/or/hs_config.c \
+ src/or/hs_control.c \
+ src/or/hs_descriptor.c \
+ src/or/hs_ident.c \
+ src/or/hs_intropoint.c \
+ src/or/hs_ntor.c \
+ src/or/hs_service.c \
+ src/or/hs_stats.c \
+ src/or/keypin.c \
+ src/or/main.c \
+ src/or/microdesc.c \
+ src/or/networkstatus.c \
+ src/or/nodelist.c \
+ src/or/onion.c \
+ src/or/onion_fast.c \
+ src/or/onion_tap.c \
+ src/or/transports.c \
+ src/or/parsecommon.c \
+ src/or/periodic.c \
+ src/or/protover.c \
+ src/or/protover_rust.c \
+ src/or/proto_cell.c \
+ src/or/proto_control0.c \
+ src/or/proto_ext_or.c \
+ src/or/proto_http.c \
+ src/or/proto_socks.c \
+ src/or/policies.c \
+ src/or/reasons.c \
+ src/or/relay.c \
+ src/or/relay_crypto.c \
+ src/or/rendcache.c \
+ src/or/rendclient.c \
+ src/or/rendcommon.c \
+ src/or/rendmid.c \
+ src/or/rendservice.c \
+ src/or/rephist.c \
+ src/or/replaycache.c \
+ src/or/router.c \
+ src/or/routerkeys.c \
+ src/or/routerlist.c \
+ src/or/routerparse.c \
+ src/or/routerset.c \
+ src/or/scheduler.c \
+ src/or/scheduler_kist.c \
+ src/or/scheduler_vanilla.c \
+ src/or/shared_random_client.c \
+ src/or/statefile.c \
+ src/or/status.c \
+ src/or/torcert.c \
+ src/or/tor_api.c \
+ src/or/voting_schedule.c \
+ src/or/onion_ntor.c
+
+#
+# Modules are conditionnally compiled in tor starting here. We add the C files
+# only if the modules has been enabled at configure time. We always add the
+# source files of every module to libtor-testing.a so we can build the unit
+# tests for everything. See the UNITTESTS_ENABLED branch below.
+#
+LIBTOR_APP_TESTING_A_SOURCES = $(LIBTOR_APP_A_SOURCES)
+
+# The Directory Authority module.
+MODULE_DIRAUTH_SOURCES = \
+ src/or/dirauth/dircollate.c \
+ src/or/dirauth/dirvote.c \
+ src/or/dirauth/shared_random.c \
+ src/or/dirauth/shared_random_state.c
+if BUILD_MODULE_DIRAUTH
+LIBTOR_APP_A_SOURCES += $(MODULE_DIRAUTH_SOURCES)
+endif
+
+src_core_libtor_app_a_SOURCES = $(LIBTOR_APP_A_SOURCES)
+if UNITTESTS_ENABLED
+
+# Add the sources of the modules that are needed for tests to work here.
+LIBTOR_APP_TESTING_A_SOURCES += $(MODULE_DIRAUTH_SOURCES)
+
+src_core_libtor_app_testing_a_SOURCES = $(LIBTOR_APP_TESTING_A_SOURCES)
+else
+src_core_libtor_app_testing_a_SOURCES =
+endif
+
+src/or/git_revision.$(OBJEXT) \
+ src/or/src_core_libtor_app_testing_a-git_revision.$(OBJEXT): micro-revision.i
+
+AM_CPPFLAGS += -DSHARE_DATADIR="\"$(datadir)\"" \
+ -DLOCALSTATEDIR="\"$(localstatedir)\"" \
+ -DBINDIR="\"$(bindir)\""
+
+src_core_libtor_app_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
+src_core_libtor_app_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
+
+ORHEADERS = \
+ src/or/addressmap.h \
+ src/or/address_set.h \
+ src/or/addr_policy_st.h \
+ src/or/authority_cert_st.h \
+ src/or/auth_dirs.inc \
+ src/or/bridges.h \
+ src/or/cell_st.h \
+ src/or/cell_queue_st.h \
+ src/or/channel.h \
+ src/or/channelpadding.h \
+ src/or/channeltls.h \
+ src/or/circpathbias.h \
+ src/or/circuitbuild.h \
+ src/or/circuitlist.h \
+ src/or/circuitmux.h \
+ src/or/circuitmux_ewma.h \
+ src/or/circuitstats.h \
+ src/or/circuituse.h \
+ src/or/circuit_st.h \
+ src/or/cached_dir_st.h \
+ src/or/command.h \
+ src/or/config.h \
+ src/or/confparse.h \
+ src/or/connection.h \
+ src/or/connection_st.h \
+ src/or/connection_edge.h \
+ src/or/connection_or.h \
+ src/or/conscache.h \
+ src/or/consdiff.h \
+ src/or/consdiffmgr.h \
+ src/or/control_connection_st.h \
+ src/or/control.h \
+ src/or/cpath_build_state_st.h \
+ src/or/crypt_path_st.h \
+ src/or/crypt_path_reference_st.h \
+ src/or/cpuworker.h \
+ src/or/desc_store_st.h \
+ src/or/destroy_cell_queue_st.h \
+ src/or/directory.h \
+ src/or/dirserv.h \
+ src/or/dir_connection_st.h \
+ src/or/dir_server_st.h \
+ src/or/document_signature_st.h \
+ src/or/download_status_st.h \
+ src/or/dns.h \
+ src/or/dns_structs.h \
+ src/or/dnsserv.h \
+ src/or/dos.h \
+ src/or/edge_connection_st.h \
+ src/or/entry_connection_st.h \
+ src/or/entry_port_cfg_st.h \
+ src/or/ext_orport.h \
+ src/or/extend_info_st.h \
+ src/or/extrainfo_st.h \
+ src/or/fallback_dirs.inc \
+ src/or/fp_pair.h \
+ src/or/geoip.h \
+ src/or/entrynodes.h \
+ src/or/git_revision.h \
+ src/or/hibernate.h \
+ src/or/hs_cache.h \
+ src/or/hs_cell.h \
+ src/or/hs_circuit.h \
+ src/or/hs_circuitmap.h \
+ src/or/hs_client.h \
+ src/or/hs_common.h \
+ src/or/hs_config.h \
+ src/or/hs_control.h \
+ src/or/hs_descriptor.h \
+ src/or/hs_ident.h \
+ src/or/hs_intropoint.h \
+ src/or/hs_ntor.h \
+ src/or/hs_stats.h \
+ src/or/hs_service.h \
+ src/or/hsdir_index_st.h \
+ src/or/keypin.h \
+ src/or/listener_connection_st.h \
+ src/or/main.h \
+ src/or/microdesc.h \
+ src/or/microdesc_st.h \
+ src/or/networkstatus.h \
+ src/or/networkstatus_st.h \
+ src/or/networkstatus_sr_info_st.h \
+ src/or/networkstatus_voter_info_st.h \
+ src/or/nodelist.h \
+ src/or/node_st.h \
+ src/or/ns_detached_signatures_st.h \
+ src/or/onion.h \
+ src/or/onion_fast.h \
+ src/or/onion_ntor.h \
+ src/or/onion_tap.h \
+ src/or/or.h \
+ src/or/or_circuit_st.h \
+ src/or/or_connection_st.h \
+ src/or/or_handshake_certs_st.h \
+ src/or/or_handshake_state_st.h \
+ src/or/or_options_st.h \
+ src/or/or_state_st.h \
+ src/or/origin_circuit_st.h \
+ src/or/transports.h \
+ src/or/parsecommon.h \
+ src/or/periodic.h \
+ src/or/port_cfg_st.h \
+ src/or/policies.h \
+ src/or/protover.h \
+ src/or/proto_cell.h \
+ src/or/proto_control0.h \
+ src/or/proto_ext_or.h \
+ src/or/proto_http.h \
+ src/or/proto_socks.h \
+ src/or/reasons.h \
+ src/or/relay.h \
+ src/or/relay_crypto.h \
+ src/or/relay_crypto_st.h \
+ src/or/rendcache.h \
+ src/or/rendclient.h \
+ src/or/rendcommon.h \
+ src/or/rendmid.h \
+ src/or/rendservice.h \
+ src/or/rend_authorized_client_st.h \
+ src/or/rend_encoded_v2_service_descriptor_st.h \
+ src/or/rend_intro_point_st.h \
+ src/or/rend_service_descriptor_st.h \
+ src/or/rephist.h \
+ src/or/replaycache.h \
+ src/or/router.h \
+ src/or/routerinfo_st.h \
+ src/or/routerkeys.h \
+ src/or/routerlist.h \
+ src/or/routerlist_st.h \
+ src/or/routerkeys.h \
+ src/or/routerset.h \
+ src/or/routerparse.h \
+ src/or/routerstatus_st.h \
+ src/or/scheduler.h \
+ src/or/server_port_cfg_st.h \
+ src/or/shared_random_client.h \
+ src/or/signed_descriptor_st.h \
+ src/or/socks_request_st.h \
+ src/or/statefile.h \
+ src/or/status.h \
+ src/or/torcert.h \
+ src/or/tor_api_internal.h \
+ src/or/tor_version_st.h \
+ src/or/var_cell_st.h \
+ src/or/vote_microdesc_hash_st.h \
+ src/or/vote_routerstatus_st.h \
+ src/or/vote_timing_st.h \
+ src/or/voting_schedule.h
+
+# We add the headers of the modules even though they are disabled so we can
+# properly compiled the entry points stub.
+
+# The Directory Authority module headers.
+ORHEADERS += \
+ src/or/dirauth/dircollate.h \
+ src/or/dirauth/dirvote.h \
+ src/or/dirauth/mode.h \
+ src/or/dirauth/shared_random.h \
+ src/or/dirauth/shared_random_state.h
+
+# This may someday want to be an installed file?
+noinst_HEADERS += src/or/tor_api.h
+
+noinst_HEADERS += $(ORHEADERS) micro-revision.i
+
+micro-revision.i: FORCE
+ $(AM_V_at)rm -f micro-revision.tmp; \
+ if test -r "$(top_srcdir)/.git" && \
+ test -x "`which git 2>&1;true`"; then \
+ HASH="`cd "$(top_srcdir)" && git rev-parse --short=16 HEAD`"; \
+ echo \"$$HASH\" > micro-revision.tmp; \
+ fi; \
+ if test ! -f micro-revision.tmp; then \
+ if test ! -f micro-revision.i; then \
+ echo '""' > micro-revision.i; \
+ fi; \
+ elif test ! -f micro-revision.i || \
+ test x"`cat micro-revision.tmp`" != x"`cat micro-revision.i`"; then \
+ mv micro-revision.tmp micro-revision.i; \
+ fi; \
+ rm -f micro-revision.tmp; \
+ true
+
+CLEANFILES+= micro-revision.i src/or/micro-revision.i micro-revision.tmp
+
+FORCE: