diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-06-21 17:33:49 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-06-22 09:49:13 -0400 |
commit | 9426751b72e922b5ee2b00bcc6158f5651a81014 (patch) | |
tree | 08b063dca1b75c7239ed62554b0cc851ea6b026e /src/lib/wallclock/include.am | |
parent | d1cada5a8a7e1631e25f5f413c66d5c9e5113e7a (diff) | |
download | tor-9426751b72e922b5ee2b00bcc6158f5651a81014.tar.gz tor-9426751b72e922b5ee2b00bcc6158f5651a81014.zip |
Extract our code for answering "what time is it right now".
The other time stuff is higher-level
Diffstat (limited to 'src/lib/wallclock/include.am')
-rw-r--r-- | src/lib/wallclock/include.am | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/lib/wallclock/include.am b/src/lib/wallclock/include.am new file mode 100644 index 0000000000..d414eb4688 --- /dev/null +++ b/src/lib/wallclock/include.am @@ -0,0 +1,19 @@ + +noinst_LIBRARIES += src/lib/libtor-wallclock.a + +if UNITTESTS_ENABLED +noinst_LIBRARIES += src/lib/libtor-wallclock-testing.a +endif + +src_lib_libtor_wallclock_a_SOURCES = \ + src/lib/wallclock/approx_time.c \ + src/lib/wallclock/tor_gettimeofday.c + +src_lib_libtor_wallclock_testing_a_SOURCES = \ + $(src_lib_libtor_wallclock_a_SOURCES) +src_lib_libtor_wallclock_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS) +src_lib_libtor_wallclock_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS) + +noinst_HEADERS += \ + src/lib/wallclock/approx_time.h \ + src/lib/wallclock/tor_gettimeofday.h |