summaryrefslogtreecommitdiff
path: root/src/lib/time/include.am
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-06-28 12:57:01 -0400
committerNick Mathewson <nickm@torproject.org>2018-06-28 13:01:54 -0400
commita097ddb4f5105d33146eb8f6afa7d6cd01d47fea (patch)
tree95672fa21f374915677bd3b9fec3b3cb74d269b7 /src/lib/time/include.am
parentbdea94a6653240e0e477eda186ceccbe6be00535 (diff)
downloadtor-a097ddb4f5105d33146eb8f6afa7d6cd01d47fea.tar.gz
tor-a097ddb4f5105d33146eb8f6afa7d6cd01d47fea.zip
Extract time functionality into lib/wallclock and lib/time
Diffstat (limited to 'src/lib/time/include.am')
-rw-r--r--src/lib/time/include.am19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/lib/time/include.am b/src/lib/time/include.am
new file mode 100644
index 0000000000..a3f93a3744
--- /dev/null
+++ b/src/lib/time/include.am
@@ -0,0 +1,19 @@
+
+noinst_LIBRARIES += src/lib/libtor-time.a
+
+if UNITTESTS_ENABLED
+noinst_LIBRARIES += src/lib/libtor-time-testing.a
+endif
+
+src_lib_libtor_time_a_SOURCES = \
+ src/lib/time/compat_time.c \
+ src/lib/time/tvdiff.c
+
+src_lib_libtor_time_testing_a_SOURCES = \
+ $(src_lib_libtor_time_a_SOURCES)
+src_lib_libtor_time_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
+src_lib_libtor_time_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
+
+noinst_HEADERS += \
+ src/lib/time/compat_time.h \
+ src/lib/time/tvdiff.h