Extract tor_malloc and friends to a new module.

This commit is contained in:
Nick Mathewson
2018-06-21 15:17:54 -04:00
parent eb784aa9ea
commit e066966bf4
11 changed files with 352 additions and 281 deletions
+17
View File
@@ -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