Merge branch 'fix-changelogs' into 'main'
[tor.git] / src / lib / thread / include.am
blobcd8016b5df806b003a515424f1ccab63c7a43621
2 noinst_LIBRARIES += src/lib/libtor-thread.a
4 if UNITTESTS_ENABLED
5 noinst_LIBRARIES += src/lib/libtor-thread-testing.a
6 endif
8 if THREADS_PTHREADS
9 threads_impl_source=src/lib/thread/compat_pthreads.c
10 endif
11 if THREADS_WIN32
12 threads_impl_source=src/lib/thread/compat_winthreads.c
13 endif
15 # ADD_C_FILE: INSERT SOURCES HERE.
16 src_lib_libtor_thread_a_SOURCES =                       \
17         src/lib/thread/compat_threads.c                 \
18         src/lib/thread/numcpus.c                        \
19         $(threads_impl_source)
21 src_lib_libtor_thread_testing_a_SOURCES = \
22         $(src_lib_libtor_thread_a_SOURCES)
23 src_lib_libtor_thread_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
24 src_lib_libtor_thread_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
26 # ADD_C_FILE: INSERT HEADERS HERE.
27 noinst_HEADERS +=                                       \
28         src/lib/thread/numcpus.h                        \
29         src/lib/thread/thread_sys.h                     \
30         src/lib/thread/threads.h