include.am 719 B

123456789101112131415161718192021222324252627
  1. noinst_LIBRARIES += src/lib/libtor-thread.a
  2. if UNITTESTS_ENABLED
  3. noinst_LIBRARIES += src/lib/libtor-thread-testing.a
  4. endif
  5. if THREADS_PTHREADS
  6. threads_impl_source=src/lib/thread/compat_pthreads.c
  7. endif
  8. if THREADS_WIN32
  9. threads_impl_source=src/lib/thread/compat_winthreads.c
  10. endif
  11. src_lib_libtor_thread_a_SOURCES = \
  12. src/lib/thread/compat_threads.c \
  13. src/lib/thread/numcpus.c \
  14. $(threads_impl_source)
  15. src_lib_libtor_thread_testing_a_SOURCES = \
  16. $(src_lib_libtor_thread_a_SOURCES)
  17. src_lib_libtor_thread_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
  18. src_lib_libtor_thread_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
  19. noinst_HEADERS += \
  20. src/lib/thread/threads.h \
  21. src/lib/thread/numcpus.h