aboutsummaryrefslogtreecommitdiff
path: root/src/lib/malloc/include.am
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-06-21 15:17:54 -0400
committerNick Mathewson <nickm@torproject.org>2018-06-21 15:20:01 -0400
commite066966bf48b4f6ca557175cb2ab3e2dffa5b1db (patch)
tree7cd9b093bddd06349629426fe3a404cb4947b14c /src/lib/malloc/include.am
parenteb784aa9eaced1adb436d752ccdbeb2ff19c9e23 (diff)
downloadtor-e066966bf48b4f6ca557175cb2ab3e2dffa5b1db.tar.gz
tor-e066966bf48b4f6ca557175cb2ab3e2dffa5b1db.zip
Extract tor_malloc and friends to a new module.
Diffstat (limited to 'src/lib/malloc/include.am')
-rw-r--r--src/lib/malloc/include.am17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/lib/malloc/include.am b/src/lib/malloc/include.am
new file mode 100644
index 0000000000..b4c5cae54d
--- /dev/null
+++ b/src/lib/malloc/include.am
@@ -0,0 +1,17 @@
+
+noinst_LIBRARIES += src/lib/libtor-malloc.a
+
+if UNITTESTS_ENABLED
+noinst_LIBRARIES += src/lib/libtor-malloc-testing.a
+endif
+
+src_lib_libtor_malloc_a_SOURCES = \
+ src/lib/malloc/util_malloc.c
+
+src_lib_libtor_malloc_testing_a_SOURCES = \
+ $(src_lib_libtor_malloc_a_SOURCES)
+src_lib_libtor_malloc_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
+src_lib_libtor_malloc_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
+
+noinst_HEADERS += \
+ src/lib/malloc/util_malloc.h