Add comments to include.am files to note where new sources go

This mechanism isn't perfect, and sometimes it will guess wrong,
but it will help our automation.
This commit is contained in:
Nick Mathewson 2019-05-02 09:37:18 -04:00
parent 3d13841fa5
commit 721e65a1d5
40 changed files with 76 additions and 3 deletions

View File

@ -6,6 +6,7 @@ noinst_LIBRARIES += \
src/core/libtor-app-testing.a src/core/libtor-app-testing.a
endif endif
# ADD_C_FILE: INSERT SOURCES HERE.
LIBTOR_APP_A_SOURCES = \ LIBTOR_APP_A_SOURCES = \
src/app/config/config.c \ src/app/config/config.c \
src/app/config/confparse.c \ src/app/config/confparse.c \
@ -205,6 +206,7 @@ AM_CPPFLAGS += -DSHARE_DATADIR="\"$(datadir)\"" \
src_core_libtor_app_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS) src_core_libtor_app_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
src_core_libtor_app_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS) src_core_libtor_app_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
# ADD_C_FILE: INSERT HEADERS HERE.
noinst_HEADERS += \ noinst_HEADERS += \
src/app/config/config.h \ src/app/config/config.h \
src/app/config/confparse.h \ src/app/config/confparse.h \

View File

@ -1,3 +1,4 @@
# ADD_C_FILE: INSERT HEADERS HERE.
noinst_HEADERS += \ noinst_HEADERS += \
src/lib/arch/bytes.h src/lib/arch/bytes.h

View File

@ -5,6 +5,7 @@ if UNITTESTS_ENABLED
noinst_LIBRARIES += src/lib/libtor-buf-testing.a noinst_LIBRARIES += src/lib/libtor-buf-testing.a
endif endif
# ADD_C_FILE: INSERT SOURCES HERE.
src_lib_libtor_buf_a_SOURCES = \ src_lib_libtor_buf_a_SOURCES = \
src/lib/buf/buffers.c src/lib/buf/buffers.c
@ -13,5 +14,6 @@ src_lib_libtor_buf_testing_a_SOURCES = \
src_lib_libtor_buf_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS) src_lib_libtor_buf_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
src_lib_libtor_buf_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS) src_lib_libtor_buf_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
# ADD_C_FILE: INSERT HEADERS HERE.
noinst_HEADERS += \ noinst_HEADERS += \
src/lib/buf/buffers.h src/lib/buf/buffers.h

View File

@ -1,4 +1,5 @@
# ADD_C_FILE: INSERT HEADERS HERE.
noinst_HEADERS += \ noinst_HEADERS += \
src/lib/cc/compat_compiler.h \ src/lib/cc/compat_compiler.h \
src/lib/cc/ctassert.h \ src/lib/cc/ctassert.h \

View File

@ -5,6 +5,7 @@ if UNITTESTS_ENABLED
noinst_LIBRARIES += src/lib/libtor-compress-testing.a noinst_LIBRARIES += src/lib/libtor-compress-testing.a
endif endif
# ADD_C_FILE: INSERT SOURCES HERE.
src_lib_libtor_compress_a_SOURCES = \ src_lib_libtor_compress_a_SOURCES = \
src/lib/compress/compress.c \ src/lib/compress/compress.c \
src/lib/compress/compress_buf.c \ src/lib/compress/compress_buf.c \
@ -18,6 +19,7 @@ src_lib_libtor_compress_testing_a_SOURCES = \
src_lib_libtor_compress_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS) src_lib_libtor_compress_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
src_lib_libtor_compress_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS) src_lib_libtor_compress_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
# ADD_C_FILE: INSERT HEADERS HERE.
noinst_HEADERS += \ noinst_HEADERS += \
src/lib/compress/compress.h \ src/lib/compress/compress.h \
src/lib/compress/compress_lzma.h \ src/lib/compress/compress_lzma.h \

View File

@ -5,6 +5,7 @@ if UNITTESTS_ENABLED
noinst_LIBRARIES += src/lib/libtor-container-testing.a noinst_LIBRARIES += src/lib/libtor-container-testing.a
endif endif
# ADD_C_FILE: INSERT SOURCES HERE.
src_lib_libtor_container_a_SOURCES = \ src_lib_libtor_container_a_SOURCES = \
src/lib/container/bloomfilt.c \ src/lib/container/bloomfilt.c \
src/lib/container/map.c \ src/lib/container/map.c \
@ -17,6 +18,7 @@ src_lib_libtor_container_testing_a_SOURCES = \
src_lib_libtor_container_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS) src_lib_libtor_container_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
src_lib_libtor_container_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS) src_lib_libtor_container_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
# ADD_C_FILE: INSERT HEADERS HERE.
noinst_HEADERS += \ noinst_HEADERS += \
src/lib/container/bitarray.h \ src/lib/container/bitarray.h \
src/lib/container/bloomfilt.h \ src/lib/container/bloomfilt.h \

View File

@ -5,6 +5,7 @@ if UNITTESTS_ENABLED
noinst_LIBRARIES += src/lib/libtor-crypt-ops-testing.a noinst_LIBRARIES += src/lib/libtor-crypt-ops-testing.a
endif endif
# ADD_C_FILE: INSERT SOURCES HERE.
src_lib_libtor_crypt_ops_a_SOURCES = \ src_lib_libtor_crypt_ops_a_SOURCES = \
src/lib/crypt_ops/crypto_cipher.c \ src/lib/crypt_ops/crypto_cipher.c \
src/lib/crypt_ops/crypto_curve25519.c \ src/lib/crypt_ops/crypto_curve25519.c \
@ -52,6 +53,7 @@ src_lib_libtor_crypt_ops_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
src_lib_libtor_crypt_ops_testing_a_CFLAGS = \ src_lib_libtor_crypt_ops_testing_a_CFLAGS = \
$(AM_CFLAGS) $(TOR_CFLAGS_CRYPTLIB) $(TEST_CFLAGS) $(AM_CFLAGS) $(TOR_CFLAGS_CRYPTLIB) $(TEST_CFLAGS)
# ADD_C_FILE: INSERT HEADERS HERE.
noinst_HEADERS += \ noinst_HEADERS += \
src/lib/crypt_ops/aes.h \ src/lib/crypt_ops/aes.h \
src/lib/crypt_ops/compat_openssl.h \ src/lib/crypt_ops/compat_openssl.h \

View File

@ -11,6 +11,7 @@ else
mulodi4_source= mulodi4_source=
endif endif
# ADD_C_FILE: INSERT SOURCES HERE.
src_lib_libtor_ctime_a_SOURCES = \ src_lib_libtor_ctime_a_SOURCES = \
$(mulodi4_source) \ $(mulodi4_source) \
src/ext/csiphash.c \ src/ext/csiphash.c \
@ -21,5 +22,6 @@ src_lib_libtor_ctime_testing_a_SOURCES = \
src_lib_libtor_ctime_a_CFLAGS = @CFLAGS_CONSTTIME@ src_lib_libtor_ctime_a_CFLAGS = @CFLAGS_CONSTTIME@
src_lib_libtor_ctime_testing_a_CFLAGS = @CFLAGS_CONSTTIME@ $(TEST_CFLAGS) src_lib_libtor_ctime_testing_a_CFLAGS = @CFLAGS_CONSTTIME@ $(TEST_CFLAGS)
# ADD_C_FILE: INSERT HEADERS HERE.
noinst_HEADERS += \ noinst_HEADERS += \
src/lib/ctime/di_ops.h src/lib/ctime/di_ops.h

View File

@ -1,4 +1,5 @@
# ADD_C_FILE: INSERT HEADERS HERE.
noinst_HEADERS += \ noinst_HEADERS += \
src/lib/defs/dh_sizes.h \ src/lib/defs/dh_sizes.h \
src/lib/defs/digest_sizes.h \ src/lib/defs/digest_sizes.h \

View File

@ -5,6 +5,7 @@ if UNITTESTS_ENABLED
noinst_LIBRARIES += src/lib/libtor-dispatch-testing.a noinst_LIBRARIES += src/lib/libtor-dispatch-testing.a
endif endif
# ADD_C_FILE: INSERT SOURCES HERE.
src_lib_libtor_dispatch_a_SOURCES = \ src_lib_libtor_dispatch_a_SOURCES = \
src/lib/dispatch/dispatch_cfg.c \ src/lib/dispatch/dispatch_cfg.c \
src/lib/dispatch/dispatch_core.c \ src/lib/dispatch/dispatch_core.c \
@ -16,6 +17,7 @@ src_lib_libtor_dispatch_testing_a_SOURCES = \
src_lib_libtor_dispatch_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS) src_lib_libtor_dispatch_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
src_lib_libtor_dispatch_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS) src_lib_libtor_dispatch_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
# ADD_C_FILE: INSERT HEADERS HERE.
noinst_HEADERS += \ noinst_HEADERS += \
src/lib/dispatch/dispatch.h \ src/lib/dispatch/dispatch.h \
src/lib/dispatch/dispatch_cfg.h \ src/lib/dispatch/dispatch_cfg.h \

View File

@ -4,6 +4,7 @@ if UNITTESTS_ENABLED
noinst_LIBRARIES += src/lib/libtor-encoding-testing.a noinst_LIBRARIES += src/lib/libtor-encoding-testing.a
endif endif
# ADD_C_FILE: INSERT SOURCES HERE.
src_lib_libtor_encoding_a_SOURCES = \ src_lib_libtor_encoding_a_SOURCES = \
src/lib/encoding/binascii.c \ src/lib/encoding/binascii.c \
src/lib/encoding/confline.c \ src/lib/encoding/confline.c \
@ -19,6 +20,7 @@ src_lib_libtor_encoding_testing_a_SOURCES = \
src_lib_libtor_encoding_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS) src_lib_libtor_encoding_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
src_lib_libtor_encoding_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS) src_lib_libtor_encoding_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
# ADD_C_FILE: INSERT HEADERS HERE.
noinst_HEADERS += \ noinst_HEADERS += \
src/lib/encoding/binascii.h \ src/lib/encoding/binascii.h \
src/lib/encoding/confline.h \ src/lib/encoding/confline.h \

View File

@ -5,6 +5,7 @@ if UNITTESTS_ENABLED
noinst_LIBRARIES += src/lib/libtor-err-testing.a noinst_LIBRARIES += src/lib/libtor-err-testing.a
endif endif
# ADD_C_FILE: INSERT SOURCES HERE.
src_lib_libtor_err_a_SOURCES = \ src_lib_libtor_err_a_SOURCES = \
src/lib/err/backtrace.c \ src/lib/err/backtrace.c \
src/lib/err/torerr.c \ src/lib/err/torerr.c \
@ -15,6 +16,7 @@ src_lib_libtor_err_testing_a_SOURCES = \
src_lib_libtor_err_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS) src_lib_libtor_err_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
src_lib_libtor_err_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS) src_lib_libtor_err_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
# ADD_C_FILE: INSERT HEADERS HERE.
noinst_HEADERS += \ noinst_HEADERS += \
src/lib/err/backtrace.h \ src/lib/err/backtrace.h \
src/lib/err/torerr.h \ src/lib/err/torerr.h \

View File

@ -5,6 +5,7 @@ if UNITTESTS_ENABLED
noinst_LIBRARIES += src/lib/libtor-evloop-testing.a noinst_LIBRARIES += src/lib/libtor-evloop-testing.a
endif endif
# ADD_C_FILE: INSERT SOURCES HERE.
src_lib_libtor_evloop_a_SOURCES = \ src_lib_libtor_evloop_a_SOURCES = \
src/lib/evloop/compat_libevent.c \ src/lib/evloop/compat_libevent.c \
src/lib/evloop/procmon.c \ src/lib/evloop/procmon.c \
@ -12,12 +13,12 @@ src_lib_libtor_evloop_a_SOURCES = \
src/lib/evloop/token_bucket.c \ src/lib/evloop/token_bucket.c \
src/lib/evloop/workqueue.c src/lib/evloop/workqueue.c
src_lib_libtor_evloop_testing_a_SOURCES = \ src_lib_libtor_evloop_testing_a_SOURCES = \
$(src_lib_libtor_evloop_a_SOURCES) $(src_lib_libtor_evloop_a_SOURCES)
src_lib_libtor_evloop_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS) src_lib_libtor_evloop_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
src_lib_libtor_evloop_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS) src_lib_libtor_evloop_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
# ADD_C_FILE: INSERT HEADERS HERE.
noinst_HEADERS += \ noinst_HEADERS += \
src/lib/evloop/compat_libevent.h \ src/lib/evloop/compat_libevent.h \
src/lib/evloop/procmon.h \ src/lib/evloop/procmon.h \

View File

@ -5,6 +5,7 @@ if UNITTESTS_ENABLED
noinst_LIBRARIES += src/lib/libtor-fdio-testing.a noinst_LIBRARIES += src/lib/libtor-fdio-testing.a
endif endif
# ADD_C_FILE: INSERT SOURCES HERE.
src_lib_libtor_fdio_a_SOURCES = \ src_lib_libtor_fdio_a_SOURCES = \
src/lib/fdio/fdio.c src/lib/fdio/fdio.c
@ -13,5 +14,6 @@ src_lib_libtor_fdio_testing_a_SOURCES = \
src_lib_libtor_fdio_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS) src_lib_libtor_fdio_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
src_lib_libtor_fdio_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS) src_lib_libtor_fdio_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
# ADD_C_FILE: INSERT HEADERS HERE.
noinst_HEADERS += \ noinst_HEADERS += \
src/lib/fdio/fdio.h src/lib/fdio/fdio.h

View File

@ -5,6 +5,7 @@ if UNITTESTS_ENABLED
noinst_LIBRARIES += src/lib/libtor-fs-testing.a noinst_LIBRARIES += src/lib/libtor-fs-testing.a
endif endif
# ADD_C_FILE: INSERT SOURCES HERE.
src_lib_libtor_fs_a_SOURCES = \ src_lib_libtor_fs_a_SOURCES = \
src/lib/fs/conffile.c \ src/lib/fs/conffile.c \
src/lib/fs/dir.c \ src/lib/fs/dir.c \
@ -25,6 +26,7 @@ src_lib_libtor_fs_testing_a_SOURCES = \
src_lib_libtor_fs_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS) src_lib_libtor_fs_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
src_lib_libtor_fs_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS) src_lib_libtor_fs_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
# ADD_C_FILE: INSERT HEADERS HERE.
noinst_HEADERS += \ noinst_HEADERS += \
src/lib/fs/conffile.h \ src/lib/fs/conffile.h \
src/lib/fs/dir.h \ src/lib/fs/dir.h \

View File

@ -4,6 +4,7 @@ if UNITTESTS_ENABLED
noinst_LIBRARIES += src/lib/libtor-geoip-testing.a noinst_LIBRARIES += src/lib/libtor-geoip-testing.a
endif endif
# ADD_C_FILE: INSERT SOURCES HERE.
src_lib_libtor_geoip_a_SOURCES = \ src_lib_libtor_geoip_a_SOURCES = \
src/lib/geoip/geoip.c src/lib/geoip/geoip.c
@ -12,6 +13,7 @@ src_lib_libtor_geoip_testing_a_SOURCES = \
src_lib_libtor_geoip_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS) src_lib_libtor_geoip_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
src_lib_libtor_geoip_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS) src_lib_libtor_geoip_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
# ADD_C_FILE: INSERT HEADERS HERE.
noinst_HEADERS += \ noinst_HEADERS += \
src/lib/geoip/geoip.h \ src/lib/geoip/geoip.h \
src/lib/geoip/country.h src/lib/geoip/country.h

View File

@ -5,6 +5,7 @@ if UNITTESTS_ENABLED
noinst_LIBRARIES += src/lib/libtor-intmath-testing.a noinst_LIBRARIES += src/lib/libtor-intmath-testing.a
endif endif
# ADD_C_FILE: INSERT SOURCES HERE.
src_lib_libtor_intmath_a_SOURCES = \ src_lib_libtor_intmath_a_SOURCES = \
src/lib/intmath/addsub.c \ src/lib/intmath/addsub.c \
src/lib/intmath/bits.c \ src/lib/intmath/bits.c \
@ -16,6 +17,7 @@ src_lib_libtor_intmath_testing_a_SOURCES = \
src_lib_libtor_intmath_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS) src_lib_libtor_intmath_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
src_lib_libtor_intmath_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS) src_lib_libtor_intmath_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
# ADD_C_FILE: INSERT HEADERS HERE.
noinst_HEADERS += \ noinst_HEADERS += \
src/lib/intmath/addsub.h \ src/lib/intmath/addsub.h \
src/lib/intmath/cmp.h \ src/lib/intmath/cmp.h \

View File

@ -5,6 +5,7 @@ if UNITTESTS_ENABLED
noinst_LIBRARIES += src/lib/libtor-lock-testing.a noinst_LIBRARIES += src/lib/libtor-lock-testing.a
endif endif
# ADD_C_FILE: INSERT SOURCES HERE.
src_lib_libtor_lock_a_SOURCES = \ src_lib_libtor_lock_a_SOURCES = \
src/lib/lock/compat_mutex.c src/lib/lock/compat_mutex.c
@ -20,5 +21,6 @@ src_lib_libtor_lock_testing_a_SOURCES = \
src_lib_libtor_lock_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS) src_lib_libtor_lock_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
src_lib_libtor_lock_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS) src_lib_libtor_lock_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
# ADD_C_FILE: INSERT HEADERS HERE.
noinst_HEADERS += \ noinst_HEADERS += \
src/lib/lock/compat_mutex.h src/lib/lock/compat_mutex.h

View File

@ -5,6 +5,7 @@ if UNITTESTS_ENABLED
noinst_LIBRARIES += src/lib/libtor-log-testing.a noinst_LIBRARIES += src/lib/libtor-log-testing.a
endif endif
# ADD_C_FILE: INSERT SOURCES HERE.
src_lib_libtor_log_a_SOURCES = \ src_lib_libtor_log_a_SOURCES = \
src/lib/log/escape.c \ src/lib/log/escape.c \
src/lib/log/ratelim.c \ src/lib/log/ratelim.c \
@ -21,6 +22,7 @@ src_lib_libtor_log_testing_a_SOURCES = \
src_lib_libtor_log_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS) src_lib_libtor_log_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
src_lib_libtor_log_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS) src_lib_libtor_log_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
# ADD_C_FILE: INSERT HEADERS HERE.
noinst_HEADERS += \ noinst_HEADERS += \
src/lib/log/escape.h \ src/lib/log/escape.h \
src/lib/log/ratelim.h \ src/lib/log/ratelim.h \

View File

@ -5,6 +5,7 @@ if UNITTESTS_ENABLED
noinst_LIBRARIES += src/lib/libtor-malloc-testing.a noinst_LIBRARIES += src/lib/libtor-malloc-testing.a
endif endif
# ADD_C_FILE: INSERT SOURCES HERE.
src_lib_libtor_malloc_a_SOURCES = \ src_lib_libtor_malloc_a_SOURCES = \
src/lib/malloc/malloc.c \ src/lib/malloc/malloc.c \
src/lib/malloc/map_anon.c src/lib/malloc/map_anon.c
@ -18,6 +19,7 @@ src_lib_libtor_malloc_testing_a_SOURCES = \
src_lib_libtor_malloc_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS) src_lib_libtor_malloc_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
src_lib_libtor_malloc_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS) src_lib_libtor_malloc_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
# ADD_C_FILE: INSERT HEADERS HERE.
noinst_HEADERS += \ noinst_HEADERS += \
src/lib/malloc/malloc.h \ src/lib/malloc/malloc.h \
src/lib/malloc/map_anon.h src/lib/malloc/map_anon.h

View File

@ -5,17 +5,18 @@ if UNITTESTS_ENABLED
noinst_LIBRARIES += src/lib/libtor-math-testing.a noinst_LIBRARIES += src/lib/libtor-math-testing.a
endif endif
# ADD_C_FILE: INSERT SOURCES HERE.
src_lib_libtor_math_a_SOURCES = \ src_lib_libtor_math_a_SOURCES = \
src/lib/math/fp.c \ src/lib/math/fp.c \
src/lib/math/laplace.c \ src/lib/math/laplace.c \
src/lib/math/prob_distr.c src/lib/math/prob_distr.c
src_lib_libtor_math_testing_a_SOURCES = \ src_lib_libtor_math_testing_a_SOURCES = \
$(src_lib_libtor_math_a_SOURCES) $(src_lib_libtor_math_a_SOURCES)
src_lib_libtor_math_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS) src_lib_libtor_math_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
src_lib_libtor_math_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS) src_lib_libtor_math_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
# ADD_C_FILE: INSERT HEADERS HERE.
noinst_HEADERS += \ noinst_HEADERS += \
src/lib/math/fp.h \ src/lib/math/fp.h \
src/lib/math/laplace.h \ src/lib/math/laplace.h \

View File

@ -5,6 +5,7 @@ if UNITTESTS_ENABLED
noinst_LIBRARIES += src/lib/libtor-memarea-testing.a noinst_LIBRARIES += src/lib/libtor-memarea-testing.a
endif endif
# ADD_C_FILE: INSERT SOURCES HERE.
src_lib_libtor_memarea_a_SOURCES = \ src_lib_libtor_memarea_a_SOURCES = \
src/lib/memarea/memarea.c src/lib/memarea/memarea.c
@ -13,5 +14,6 @@ src_lib_libtor_memarea_testing_a_SOURCES = \
src_lib_libtor_memarea_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS) src_lib_libtor_memarea_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
src_lib_libtor_memarea_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS) src_lib_libtor_memarea_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
# ADD_C_FILE: INSERT HEADERS HERE.
noinst_HEADERS += \ noinst_HEADERS += \
src/lib/memarea/memarea.h src/lib/memarea/memarea.h

View File

@ -5,6 +5,7 @@ if UNITTESTS_ENABLED
noinst_LIBRARIES += src/lib/libtor-meminfo-testing.a noinst_LIBRARIES += src/lib/libtor-meminfo-testing.a
endif endif
# ADD_C_FILE: INSERT SOURCES HERE.
src_lib_libtor_meminfo_a_SOURCES = \ src_lib_libtor_meminfo_a_SOURCES = \
src/lib/meminfo/meminfo.c src/lib/meminfo/meminfo.c
@ -13,5 +14,6 @@ src_lib_libtor_meminfo_testing_a_SOURCES = \
src_lib_libtor_meminfo_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS) src_lib_libtor_meminfo_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
src_lib_libtor_meminfo_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS) src_lib_libtor_meminfo_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
# ADD_C_FILE: INSERT HEADERS HERE.
noinst_HEADERS += \ noinst_HEADERS += \
src/lib/meminfo/meminfo.h src/lib/meminfo/meminfo.h

View File

@ -5,6 +5,7 @@ if UNITTESTS_ENABLED
noinst_LIBRARIES += src/lib/libtor-net-testing.a noinst_LIBRARIES += src/lib/libtor-net-testing.a
endif endif
# ADD_C_FILE: INSERT SOURCES HERE.
src_lib_libtor_net_a_SOURCES = \ src_lib_libtor_net_a_SOURCES = \
src/lib/net/address.c \ src/lib/net/address.c \
src/lib/net/alertsock.c \ src/lib/net/alertsock.c \
@ -21,6 +22,7 @@ src_lib_libtor_net_testing_a_SOURCES = \
src_lib_libtor_net_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS) src_lib_libtor_net_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
src_lib_libtor_net_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS) src_lib_libtor_net_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
# ADD_C_FILE: INSERT HEADERS HERE.
noinst_HEADERS += \ noinst_HEADERS += \
src/lib/net/address.h \ src/lib/net/address.h \
src/lib/net/alertsock.h \ src/lib/net/alertsock.h \

View File

@ -5,6 +5,7 @@ if UNITTESTS_ENABLED
noinst_LIBRARIES += src/lib/libtor-osinfo-testing.a noinst_LIBRARIES += src/lib/libtor-osinfo-testing.a
endif endif
# ADD_C_FILE: INSERT SOURCES HERE.
src_lib_libtor_osinfo_a_SOURCES = \ src_lib_libtor_osinfo_a_SOURCES = \
src/lib/osinfo/uname.c src/lib/osinfo/uname.c
@ -13,5 +14,6 @@ src_lib_libtor_osinfo_testing_a_SOURCES = \
src_lib_libtor_osinfo_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS) src_lib_libtor_osinfo_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
src_lib_libtor_osinfo_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS) src_lib_libtor_osinfo_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
# ADD_C_FILE: INSERT HEADERS HERE.
noinst_HEADERS += \ noinst_HEADERS += \
src/lib/osinfo/uname.h src/lib/osinfo/uname.h

View File

@ -5,6 +5,7 @@ if UNITTESTS_ENABLED
noinst_LIBRARIES += src/lib/libtor-process-testing.a noinst_LIBRARIES += src/lib/libtor-process-testing.a
endif endif
# ADD_C_FILE: INSERT SOURCES HERE.
src_lib_libtor_process_a_SOURCES = \ src_lib_libtor_process_a_SOURCES = \
src/lib/process/daemon.c \ src/lib/process/daemon.c \
src/lib/process/env.c \ src/lib/process/env.c \
@ -23,6 +24,7 @@ src_lib_libtor_process_testing_a_SOURCES = \
src_lib_libtor_process_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS) src_lib_libtor_process_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
src_lib_libtor_process_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS) src_lib_libtor_process_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
# ADD_C_FILE: INSERT HEADERS HERE.
noinst_HEADERS += \ noinst_HEADERS += \
src/lib/process/daemon.h \ src/lib/process/daemon.h \
src/lib/process/env.h \ src/lib/process/env.h \

View File

@ -5,6 +5,7 @@ if UNITTESTS_ENABLED
noinst_LIBRARIES += src/lib/libtor-pubsub-testing.a noinst_LIBRARIES += src/lib/libtor-pubsub-testing.a
endif endif
# ADD_C_FILE: INSERT SOURCES HERE.
src_lib_libtor_pubsub_a_SOURCES = \ src_lib_libtor_pubsub_a_SOURCES = \
src/lib/pubsub/pubsub_build.c \ src/lib/pubsub/pubsub_build.c \
src/lib/pubsub/pubsub_check.c \ src/lib/pubsub/pubsub_check.c \
@ -15,6 +16,7 @@ src_lib_libtor_pubsub_testing_a_SOURCES = \
src_lib_libtor_pubsub_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS) src_lib_libtor_pubsub_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
src_lib_libtor_pubsub_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS) src_lib_libtor_pubsub_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
# ADD_C_FILE: INSERT HEADERS HERE.
noinst_HEADERS += \ noinst_HEADERS += \
src/lib/pubsub/pub_binding_st.h \ src/lib/pubsub/pub_binding_st.h \
src/lib/pubsub/pubsub.h \ src/lib/pubsub/pubsub.h \

View File

@ -5,6 +5,7 @@ if UNITTESTS_ENABLED
noinst_LIBRARIES += src/lib/libtor-sandbox-testing.a noinst_LIBRARIES += src/lib/libtor-sandbox-testing.a
endif endif
# ADD_C_FILE: INSERT SOURCES HERE.
src_lib_libtor_sandbox_a_SOURCES = \ src_lib_libtor_sandbox_a_SOURCES = \
src/lib/sandbox/sandbox.c src/lib/sandbox/sandbox.c
@ -13,6 +14,7 @@ src_lib_libtor_sandbox_testing_a_SOURCES = \
src_lib_libtor_sandbox_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS) src_lib_libtor_sandbox_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
src_lib_libtor_sandbox_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS) src_lib_libtor_sandbox_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
# ADD_C_FILE: INSERT HEADERS HERE.
noinst_HEADERS += \ noinst_HEADERS += \
src/lib/sandbox/linux_syscalls.inc \ src/lib/sandbox/linux_syscalls.inc \
src/lib/sandbox/sandbox.h src/lib/sandbox/sandbox.h

View File

@ -5,6 +5,7 @@ if UNITTESTS_ENABLED
noinst_LIBRARIES += src/lib/libtor-smartlist-core-testing.a noinst_LIBRARIES += src/lib/libtor-smartlist-core-testing.a
endif endif
# ADD_C_FILE: INSERT SOURCES HERE.
src_lib_libtor_smartlist_core_a_SOURCES = \ src_lib_libtor_smartlist_core_a_SOURCES = \
src/lib/smartlist_core/smartlist_core.c \ src/lib/smartlist_core/smartlist_core.c \
src/lib/smartlist_core/smartlist_split.c src/lib/smartlist_core/smartlist_split.c
@ -15,6 +16,7 @@ src_lib_libtor_smartlist_core_testing_a_CPPFLAGS = \
$(AM_CPPFLAGS) $(TEST_CPPFLAGS) $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
src_lib_libtor_smartlist_core_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS) src_lib_libtor_smartlist_core_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
# ADD_C_FILE: INSERT HEADERS HERE.
noinst_HEADERS += \ noinst_HEADERS += \
src/lib/smartlist_core/smartlist_core.h \ src/lib/smartlist_core/smartlist_core.h \
src/lib/smartlist_core/smartlist_foreach.h \ src/lib/smartlist_core/smartlist_foreach.h \

View File

@ -5,6 +5,7 @@ if UNITTESTS_ENABLED
noinst_LIBRARIES += src/lib/libtor-string-testing.a noinst_LIBRARIES += src/lib/libtor-string-testing.a
endif endif
# ADD_C_FILE: INSERT SOURCES HERE.
src_lib_libtor_string_a_SOURCES = \ src_lib_libtor_string_a_SOURCES = \
src/lib/string/compat_ctype.c \ src/lib/string/compat_ctype.c \
src/lib/string/compat_string.c \ src/lib/string/compat_string.c \
@ -18,6 +19,7 @@ src_lib_libtor_string_testing_a_SOURCES = \
src_lib_libtor_string_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS) src_lib_libtor_string_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
src_lib_libtor_string_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS) src_lib_libtor_string_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
# ADD_C_FILE: INSERT HEADERS HERE.
noinst_HEADERS += \ noinst_HEADERS += \
src/lib/string/compat_ctype.h \ src/lib/string/compat_ctype.h \
src/lib/string/compat_string.h \ src/lib/string/compat_string.h \

View File

@ -1,3 +1,4 @@
# ADD_C_FILE: INSERT HEADERS HERE.
noinst_HEADERS += \ noinst_HEADERS += \
src/lib/subsys/subsys.h src/lib/subsys/subsys.h

View File

@ -11,6 +11,7 @@ else
readpassphrase_source= readpassphrase_source=
endif endif
# ADD_C_FILE: INSERT SOURCES HERE.
src_lib_libtor_term_a_SOURCES = \ src_lib_libtor_term_a_SOURCES = \
src/lib/term/getpass.c \ src/lib/term/getpass.c \
$(readpassphrase_source) $(readpassphrase_source)
@ -20,5 +21,6 @@ src_lib_libtor_term_testing_a_SOURCES = \
src_lib_libtor_term_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS) src_lib_libtor_term_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
src_lib_libtor_term_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS) src_lib_libtor_term_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
# ADD_C_FILE: INSERT HEADERS HERE.
noinst_HEADERS += \ noinst_HEADERS += \
src/lib/term/getpass.h src/lib/term/getpass.h

View File

@ -1,3 +1,4 @@
# ADD_C_FILE: INSERT HEADERS HERE.
noinst_HEADERS += \ noinst_HEADERS += \
src/lib/testsupport/testsupport.h src/lib/testsupport/testsupport.h

View File

@ -12,6 +12,7 @@ if THREADS_WIN32
threads_impl_source=src/lib/thread/compat_winthreads.c threads_impl_source=src/lib/thread/compat_winthreads.c
endif endif
# ADD_C_FILE: INSERT SOURCES HERE.
src_lib_libtor_thread_a_SOURCES = \ src_lib_libtor_thread_a_SOURCES = \
src/lib/thread/compat_threads.c \ src/lib/thread/compat_threads.c \
src/lib/thread/numcpus.c \ src/lib/thread/numcpus.c \
@ -22,6 +23,7 @@ src_lib_libtor_thread_testing_a_SOURCES = \
src_lib_libtor_thread_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS) src_lib_libtor_thread_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
src_lib_libtor_thread_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS) src_lib_libtor_thread_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
# ADD_C_FILE: INSERT HEADERS HERE.
noinst_HEADERS += \ noinst_HEADERS += \
src/lib/thread/numcpus.h \ src/lib/thread/numcpus.h \
src/lib/thread/thread_sys.h \ src/lib/thread/thread_sys.h \

View File

@ -5,6 +5,7 @@ if UNITTESTS_ENABLED
noinst_LIBRARIES += src/lib/libtor-time-testing.a noinst_LIBRARIES += src/lib/libtor-time-testing.a
endif endif
# ADD_C_FILE: INSERT SOURCES HERE.
src_lib_libtor_time_a_SOURCES = \ src_lib_libtor_time_a_SOURCES = \
src/lib/time/compat_time.c \ src/lib/time/compat_time.c \
src/lib/time/time_sys.c \ src/lib/time/time_sys.c \
@ -15,6 +16,7 @@ src_lib_libtor_time_testing_a_SOURCES = \
src_lib_libtor_time_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS) src_lib_libtor_time_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
src_lib_libtor_time_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS) src_lib_libtor_time_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
# ADD_C_FILE: INSERT HEADERS HERE.
noinst_HEADERS += \ noinst_HEADERS += \
src/lib/time/compat_time.h \ src/lib/time/compat_time.h \
src/lib/time/time_sys.h \ src/lib/time/time_sys.h \

View File

@ -5,6 +5,7 @@ if UNITTESTS_ENABLED
noinst_LIBRARIES += src/lib/libtor-tls-testing.a noinst_LIBRARIES += src/lib/libtor-tls-testing.a
endif endif
# ADD_C_FILE: INSERT SOURCES HERE.
src_lib_libtor_tls_a_SOURCES = \ src_lib_libtor_tls_a_SOURCES = \
src/lib/tls/buffers_tls.c \ src/lib/tls/buffers_tls.c \
src/lib/tls/tortls.c \ src/lib/tls/tortls.c \
@ -29,6 +30,7 @@ src_lib_libtor_tls_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
src_lib_libtor_tls_testing_a_CFLAGS = \ src_lib_libtor_tls_testing_a_CFLAGS = \
$(AM_CFLAGS) $(TOR_CFLAGS_CRYPTLIB) $(TEST_CFLAGS) $(AM_CFLAGS) $(TOR_CFLAGS_CRYPTLIB) $(TEST_CFLAGS)
# ADD_C_FILE: INSERT HEADERS HERE.
noinst_HEADERS += \ noinst_HEADERS += \
src/lib/tls/ciphers.inc \ src/lib/tls/ciphers.inc \
src/lib/tls/buffers_tls.h \ src/lib/tls/buffers_tls.h \

View File

@ -2,6 +2,7 @@
noinst_LIBRARIES += \ noinst_LIBRARIES += \
src/lib/libtor-trace.a src/lib/libtor-trace.a
# ADD_C_FILE: INSERT HEADERS HERE.
TRACEHEADERS = \ TRACEHEADERS = \
src/lib/trace/trace.h \ src/lib/trace/trace.h \
src/lib/trace/events.h src/lib/trace/events.h
@ -11,7 +12,7 @@ TRACEHEADERS += \
src/lib/trace/debug.h src/lib/trace/debug.h
endif endif
# Library source files. # ADD_C_FILE: INSERT SOURCES HERE.
src_lib_libtor_trace_a_SOURCES = \ src_lib_libtor_trace_a_SOURCES = \
src/lib/trace/trace.c src/lib/trace/trace.c

View File

@ -5,6 +5,7 @@ if UNITTESTS_ENABLED
noinst_LIBRARIES += src/lib/libtor-version-testing.a noinst_LIBRARIES += src/lib/libtor-version-testing.a
endif endif
# ADD_C_FILE: INSERT SOURCES HERE.
src_lib_libtor_version_a_SOURCES = \ src_lib_libtor_version_a_SOURCES = \
src/lib/version/git_revision.c \ src/lib/version/git_revision.c \
src/lib/version/version.c src/lib/version/version.c
@ -20,6 +21,7 @@ src/lib/version/git_revision.$(OBJEXT) \
src/lib/version/src_lib_libtor_version_testing_a-git_revision.$(OBJEXT): \ src/lib/version/src_lib_libtor_version_testing_a-git_revision.$(OBJEXT): \
micro-revision.i micro-revision.i
# ADD_C_FILE: INSERT HEADERS HERE.
noinst_HEADERS += \ noinst_HEADERS += \
src/lib/version/git_revision.h \ src/lib/version/git_revision.h \
src/lib/version/torversion.h src/lib/version/torversion.h

View File

@ -5,6 +5,7 @@ if UNITTESTS_ENABLED
noinst_LIBRARIES += src/lib/libtor-wallclock-testing.a noinst_LIBRARIES += src/lib/libtor-wallclock-testing.a
endif endif
# ADD_C_FILE: INSERT SOURCES HERE.
src_lib_libtor_wallclock_a_SOURCES = \ src_lib_libtor_wallclock_a_SOURCES = \
src/lib/wallclock/approx_time.c \ src/lib/wallclock/approx_time.c \
src/lib/wallclock/time_to_tm.c \ src/lib/wallclock/time_to_tm.c \
@ -15,6 +16,7 @@ src_lib_libtor_wallclock_testing_a_SOURCES = \
src_lib_libtor_wallclock_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS) src_lib_libtor_wallclock_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
src_lib_libtor_wallclock_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS) src_lib_libtor_wallclock_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
# ADD_C_FILE: INSERT HEADERS HERE.
noinst_HEADERS += \ noinst_HEADERS += \
src/lib/wallclock/approx_time.h \ src/lib/wallclock/approx_time.h \
src/lib/wallclock/timeval.h \ src/lib/wallclock/timeval.h \

View File

@ -85,6 +85,8 @@ src_test_AM_CPPFLAGS = -DSHARE_DATADIR="\"$(datadir)\"" \
src_test_test_SOURCES = src_test_test_SOURCES =
if UNITTESTS_ENABLED if UNITTESTS_ENABLED
# ADD_C_FILE: INSERT SOURCES HERE.
src_test_test_SOURCES += \ src_test_test_SOURCES += \
src/test/log_test_helpers.c \ src/test/log_test_helpers.c \
src/test/hs_test_helpers.c \ src/test/hs_test_helpers.c \
@ -316,6 +318,7 @@ src_test_test_timers_LDADD = \
@TOR_LZMA_LIBS@ @TOR_LZMA_LIBS@
src_test_test_timers_LDFLAGS = $(src_test_test_LDFLAGS) src_test_test_timers_LDFLAGS = $(src_test_test_LDFLAGS)
# ADD_C_FILE: INSERT HEADERS HERE.
noinst_HEADERS+= \ noinst_HEADERS+= \
src/test/fakechans.h \ src/test/fakechans.h \
src/test/hs_test_helpers.h \ src/test/hs_test_helpers.h \