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

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

src_lib_libtor_intmath_a_SOURCES =			\
	src/lib/intmath/addsub.c			\
	src/lib/intmath/bits.c				\
	src/lib/intmath/muldiv.c			\
	src/lib/intmath/weakrng.c

src_lib_libtor_intmath_testing_a_SOURCES = \
	$(src_lib_libtor_intmath_a_SOURCES)
src_lib_libtor_intmath_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
src_lib_libtor_intmath_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)

noinst_HEADERS +=					\
	src/lib/intmath/addsub.h			\
	src/lib/intmath/cmp.h				\
	src/lib/intmath/bits.h				\
	src/lib/intmath/logic.h				\
	src/lib/intmath/muldiv.h			\
	src/lib/intmath/weakrng.h
