summaryrefslogtreecommitdiff
path: root/src/lib/osinfo/include.am
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-06-29 10:37:35 -0400
committerNick Mathewson <nickm@torproject.org>2018-06-29 12:21:52 -0400
commite0957022bd108696a941bdb284420fc55cbcf187 (patch)
treeeda94f0c14fe023002c24a19386dabb2ef2de8c4 /src/lib/osinfo/include.am
parent207fc4cffe21b58b7f0447706a903e5f66b8bcd8 (diff)
downloadtor-e0957022bd108696a941bdb284420fc55cbcf187.tar.gz
tor-e0957022bd108696a941bdb284420fc55cbcf187.zip
Extract get_uname to lib/osinfo.
Diffstat (limited to 'src/lib/osinfo/include.am')
-rw-r--r--src/lib/osinfo/include.am17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/lib/osinfo/include.am b/src/lib/osinfo/include.am
new file mode 100644
index 0000000000..16c5812604
--- /dev/null
+++ b/src/lib/osinfo/include.am
@@ -0,0 +1,17 @@
+
+noinst_LIBRARIES += src/lib/libtor-osinfo.a
+
+if UNITTESTS_ENABLED
+noinst_LIBRARIES += src/lib/libtor-osinfo-testing.a
+endif
+
+src_lib_libtor_osinfo_a_SOURCES = \
+ src/lib/osinfo/uname.c
+
+src_lib_libtor_osinfo_testing_a_SOURCES = \
+ $(src_lib_libtor_osinfo_a_SOURCES)
+src_lib_libtor_osinfo_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
+src_lib_libtor_osinfo_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
+
+noinst_HEADERS += \
+ src/lib/osinfo/uname.h