
noinst_LIBRARIES += src/lib/libtor-err.a

if UNITTESTS_ENABLED
noinst_LIBRARIES += src/lib/libtor-err-testing.a
endif

src_lib_libtor_err_a_SOURCES =			\
	src/lib/err/backtrace.c				\
	src/lib/err/torerr.c

src_lib_libtor_err_testing_a_SOURCES = \
	$(src_lib_libtor_err_a_SOURCES)
src_lib_libtor_err_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
src_lib_libtor_err_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)

noinst_HEADERS +=					\
	src/lib/err/backtrace.h				\
	src/lib/err/torerr.h
