blob: fff5d03974a899255e890ba2817d6c5a40e70af0 [file] [log] [blame]
njn53044572009-02-19 09:52:05 +00001
2include $(top_srcdir)/Makefile.tool-tests.am
sewardjaf44c822007-11-25 14:01:38 +00003
njn8b68b642009-06-24 00:37:09 +00004dist_noinst_SCRIPTS = \
bart66f196d2009-08-15 10:50:35 +00005 compare_error_count_with \
bart9e87dca2009-03-10 09:19:26 +00006 filter_error_summary \
7 filter_stderr \
8 filter_stderr_and_thread_no \
9 run_openmp_test \
njn26139fa2009-08-11 00:18:31 +000010 supported_libpthread \
11 supported_sem_init
sewardjaf44c822007-11-25 14:01:38 +000012
njn8b68b642009-06-24 00:37:09 +000013noinst_HEADERS = \
14 tsan_thread_wrappers_pthread.h
15
bart40605eb2008-03-04 18:37:20 +000016EXTRA_DIST = \
bartea2a03c2010-03-21 17:24:47 +000017 annotate_barrier.stderr.exp \
18 annotate_barrier.vgtest \
bartcf3eb1b2010-03-07 10:47:59 +000019 annotate_hb_err.stderr.exp \
20 annotate_hb_err.vgtest \
bartb43825e2010-03-07 19:59:35 +000021 annotate_hb_race.stderr.exp \
22 annotate_hb_race.vgtest \
bartf64a8aa2009-08-14 13:25:38 +000023 annotate_hbefore.stderr.exp \
24 annotate_hbefore.vgtest \
bartd45d9952009-05-31 18:53:54 +000025 annotate_order_1.stderr.exp \
26 annotate_order_1.vgtest \
bart3a6fff22009-08-14 06:45:16 +000027 annotate_order_2.stderr.exp \
28 annotate_order_2.vgtest \
29 annotate_order_3.stderr.exp \
30 annotate_order_3.vgtest \
bart66f196d2009-08-15 10:50:35 +000031 annotate_publish_hg.stderr.exp \
32 annotate_publish_hg.vgtest \
bartcf3eb1b2010-03-07 10:47:59 +000033 annotate_smart_pointer.stderr.exp \
34 annotate_smart_pointer.vgtest \
bart2ffad9c2009-06-03 09:30:19 +000035 annotate_spinlock.stderr.exp \
36 annotate_spinlock.vgtest \
bartd45d9952009-05-31 18:53:54 +000037 annotate_rwlock.stderr.exp \
38 annotate_rwlock.vgtest \
bart66f196d2009-08-15 10:50:35 +000039 annotate_rwlock_hg.stderr.exp \
40 annotate_rwlock_hg.vgtest \
bartd45d9952009-05-31 18:53:54 +000041 annotate_ignore_read.stderr.exp \
42 annotate_ignore_read.vgtest \
bart5f3be752009-08-11 15:00:54 +000043 annotate_ignore_rw.stderr.exp \
44 annotate_ignore_rw.vgtest \
barta5225b82009-08-12 09:45:18 +000045 annotate_ignore_rw2.stderr.exp \
46 annotate_ignore_rw2.vgtest \
barte6361362009-08-13 09:30:57 +000047 annotate_ignore_write.stderr.exp \
48 annotate_ignore_write.vgtest \
49 annotate_ignore_write2.stderr.exp \
50 annotate_ignore_write2.vgtest \
bartd45d9952009-05-31 18:53:54 +000051 annotate_trace_memory.stderr.exp \
52 annotate_trace_memory.vgtest \
bartea2a03c2010-03-21 17:24:47 +000053 annotate_static.stderr.exp \
54 annotate_static.vgtest \
bart2ffad9c2009-06-03 09:30:19 +000055 atomic_var.stderr.exp \
bartcca440b2008-07-10 11:58:08 +000056 atomic_var.vgtest \
bartc4a9e0f2008-11-17 17:38:28 +000057 bar_bad.stderr.exp \
58 bar_bad.vgtest \
59 bar_trivial.stderr.exp \
bart7f08c732009-05-16 06:24:40 +000060 bar_trivial.stdout.exp \
bartc4a9e0f2008-11-17 17:38:28 +000061 bar_trivial.vgtest \
62 boost_thread.stderr.exp \
63 boost_thread.vgtest \
bart2ffad9c2009-06-03 09:30:19 +000064 circular_buffer.stderr.exp \
bart6fd7d742008-12-17 19:21:17 +000065 circular_buffer.vgtest \
bart6c7c76e2009-05-01 12:23:47 +000066 custom_alloc.stderr.exp \
bart7f08c732009-05-16 06:24:40 +000067 custom_alloc.vgtest \
bart40605eb2008-03-04 18:37:20 +000068 fp_race.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000069 fp_race.vgtest \
70 fp_race2.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000071 fp_race2.vgtest \
72 hg01_all_ok.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000073 hg01_all_ok.vgtest \
74 hg02_deadlock.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000075 hg02_deadlock.vgtest \
76 hg03_inherit.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000077 hg03_inherit.vgtest \
78 hg04_race.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000079 hg04_race.vgtest \
80 hg05_race2.stderr.exp \
barte65b4c62008-07-04 11:47:06 +000081 hg05_race2.stderr.exp-powerpc \
bart40605eb2008-03-04 18:37:20 +000082 hg05_race2.vgtest \
83 hg06_readshared.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000084 hg06_readshared.vgtest \
bart1d4070d2008-05-14 12:22:15 +000085 hold_lock_1.stderr.exp \
86 hold_lock_1.vgtest \
87 hold_lock_2.stderr.exp \
88 hold_lock_2.vgtest \
bart96f892f2008-03-09 16:16:06 +000089 linuxthreads_det.stderr.exp \
90 linuxthreads_det.stderr.exp-linuxthreads \
91 linuxthreads_det.stdout.exp \
92 linuxthreads_det.stdout.exp-linuxthreads \
barte65b4c62008-07-04 11:47:06 +000093 linuxthreads_det.vgtest \
bart40605eb2008-03-04 18:37:20 +000094 matinv.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000095 matinv.stdout.exp \
bart40605eb2008-03-04 18:37:20 +000096 matinv.vgtest \
bart412efe52008-04-20 08:29:04 +000097 memory_allocation.stderr.exp \
98 memory_allocation.vgtest \
barte64f11d2008-10-05 17:37:06 +000099 monitor_example.stderr.exp \
100 monitor_example.vgtest \
bart3d4c3322008-05-10 08:48:14 +0000101 new_delete.stderr.exp \
102 new_delete.vgtest \
bart805043e2008-03-12 17:49:57 +0000103 omp_matinv.stderr.exp \
104 omp_matinv.stdout.exp \
105 omp_matinv.vgtest \
barte8acf492008-03-12 17:27:20 +0000106 omp_matinv_racy.stderr.exp \
107 omp_matinv_racy.stdout.exp \
108 omp_matinv_racy.vgtest \
bart805043e2008-03-12 17:49:57 +0000109 omp_prime_racy.stderr.exp \
bart805043e2008-03-12 17:49:57 +0000110 omp_prime_racy.vgtest \
bartbbd3dcf2008-10-11 18:04:52 +0000111 omp_printf.stderr.exp \
112 omp_printf.vgtest \
bart40605eb2008-03-04 18:37:20 +0000113 pth_barrier.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000114 pth_barrier.vgtest \
115 pth_barrier2.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000116 pth_barrier2.vgtest \
117 pth_barrier3.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000118 pth_barrier3.vgtest \
bartb235a672009-02-22 09:26:22 +0000119 pth_barrier_race.stderr.exp \
120 pth_barrier_race.vgtest \
bartd9e39ec2008-06-28 15:03:26 +0000121 pth_barrier_reinit.stderr.exp \
122 pth_barrier_reinit.vgtest \
bart40605eb2008-03-04 18:37:20 +0000123 pth_broadcast.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000124 pth_broadcast.vgtest \
bart032424f2008-09-27 12:26:17 +0000125 pth_cancel_locked.stderr.exp \
bartdbaced02009-07-31 18:49:29 +0000126 pth_cancel_locked.stderr.exp-darwin \
bart032424f2008-09-27 12:26:17 +0000127 pth_cancel_locked.vgtest \
bart505a4962009-07-04 12:20:04 +0000128 pth_cleanup_handler.stderr.exp \
129 pth_cleanup_handler.vgtest \
bart40605eb2008-03-04 18:37:20 +0000130 pth_cond_race.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000131 pth_cond_race.vgtest \
132 pth_cond_race2.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000133 pth_cond_race2.vgtest \
bart46b5fce2008-06-28 13:01:30 +0000134 pth_cond_race3.stderr.exp \
135 pth_cond_race3.vgtest \
bart40605eb2008-03-04 18:37:20 +0000136 pth_create_chain.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000137 pth_create_chain.vgtest \
bartfaec72f2009-04-26 07:14:15 +0000138 pth_create_glibc_2_0.stderr.exp \
139 pth_create_glibc_2_0.vgtest \
bart40605eb2008-03-04 18:37:20 +0000140 pth_detached.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000141 pth_detached.stdout.exp \
bart40605eb2008-03-04 18:37:20 +0000142 pth_detached.vgtest \
143 pth_detached2.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000144 pth_detached2.stdout.exp \
bart40605eb2008-03-04 18:37:20 +0000145 pth_detached2.vgtest \
bart3b9f3bf2008-03-16 07:48:07 +0000146 pth_detached_sem.stderr.exp \
bart178cc162008-05-10 12:52:02 +0000147 pth_detached_sem.stdout.exp \
bart3b9f3bf2008-03-16 07:48:07 +0000148 pth_detached_sem.vgtest \
bart5639ce12009-01-20 14:25:22 +0000149 pth_inconsistent_cond_wait.stderr.exp1 \
150 pth_inconsistent_cond_wait.stderr.exp2 \
barte65b4c62008-07-04 11:47:06 +0000151 pth_inconsistent_cond_wait.vgtest \
bart7f08c732009-05-16 06:24:40 +0000152 pth_mutex_reinit.stderr.exp \
153 pth_mutex_reinit.vgtest \
bart7caef852009-07-26 15:27:27 +0000154 pth_once.stderr.exp \
155 pth_once.vgtest \
njnff5bdd42009-05-18 23:24:26 +0000156 pth_process_shared_mutex.stderr.exp \
bartf1473ad2009-05-19 17:26:20 +0000157 pth_process_shared_mutex.vgtest \
bart19c42602008-07-07 08:04:08 +0000158 pth_spinlock.stderr.exp \
159 pth_spinlock.vgtest \
bart28c7a052009-11-09 15:44:53 +0000160 qt4_atomic.stderr.exp \
161 qt4_atomic.vgtest \
bart4c853992008-07-07 16:53:45 +0000162 qt4_mutex.stderr.exp \
163 qt4_mutex.vgtest \
bart4f578bf2008-07-07 18:35:13 +0000164 qt4_rwlock.stderr.exp \
165 qt4_rwlock.vgtest \
bartef9603e2008-07-07 17:22:41 +0000166 qt4_semaphore.stderr.exp \
167 qt4_semaphore.vgtest \
bart9e4efbf2009-07-22 19:04:23 +0000168 recursive_mutex.stderr.exp-linux \
169 recursive_mutex.stderr.exp-darwin \
bart40605eb2008-03-04 18:37:20 +0000170 recursive_mutex.vgtest \
171 rwlock_race.stderr.exp \
bartb920b662008-04-09 17:44:28 +0000172 rwlock_race.stderr.exp2 \
bart40605eb2008-03-04 18:37:20 +0000173 rwlock_race.vgtest \
bart178cc162008-05-10 12:52:02 +0000174 rwlock_test.stderr.exp \
175 rwlock_test.vgtest \
bartc8441502009-07-27 16:03:51 +0000176 rwlock_type_checking.stderr.exp \
177 rwlock_type_checking.vgtest \
bart40605eb2008-03-04 18:37:20 +0000178 sem_as_mutex.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000179 sem_as_mutex.vgtest \
180 sem_as_mutex2.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000181 sem_as_mutex2.vgtest \
bartb20f69b2009-05-03 17:43:55 +0000182 sem_as_mutex3.stderr.exp \
183 sem_as_mutex3.vgtest \
bart25f9f542009-07-23 16:31:39 +0000184 sem_open.stderr.exp \
185 sem_open.vgtest \
186 sem_open2.stderr.exp \
187 sem_open2.vgtest \
188 sem_open3.stderr.exp \
189 sem_open3.vgtest \
bart0f83d482009-07-26 09:16:56 +0000190 sem_open_traced.stderr.exp \
191 sem_open_traced.vgtest \
barte8acf492008-03-12 17:27:20 +0000192 sigalrm.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000193 sigalrm.vgtest \
194 tc01_simple_race.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000195 tc01_simple_race.vgtest \
196 tc02_simple_tls.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000197 tc02_simple_tls.vgtest \
198 tc03_re_excl.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000199 tc03_re_excl.vgtest \
200 tc04_free_lock.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000201 tc04_free_lock.vgtest \
202 tc05_simple_race.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000203 tc05_simple_race.vgtest \
204 tc06_two_races.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000205 tc06_two_races.vgtest \
bart8360df52008-03-07 17:34:22 +0000206 tc07_hbl1.stderr.exp \
207 tc07_hbl1.stdout.exp \
208 tc07_hbl1.vgtest \
209 tc08_hbl2.stderr.exp \
bart43409c92008-03-07 19:29:03 +0000210 tc08_hbl2.stdout.exp \
bart8360df52008-03-07 17:34:22 +0000211 tc08_hbl2.vgtest \
bart40605eb2008-03-04 18:37:20 +0000212 tc09_bad_unlock.stderr.exp \
bartdf961972008-04-28 16:51:24 +0000213 tc09_bad_unlock.stderr.exp-glibc2.8 \
bart40605eb2008-03-04 18:37:20 +0000214 tc09_bad_unlock.vgtest \
215 tc10_rec_lock.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000216 tc10_rec_lock.vgtest \
217 tc11_XCHG.stderr.exp tc11_XCHG.stdout.exp \
bart40605eb2008-03-04 18:37:20 +0000218 tc11_XCHG.vgtest \
219 tc12_rwl_trivial.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000220 tc12_rwl_trivial.vgtest \
221 tc13_laog1.stderr.exp \
222 tc13_laog1.vgtest \
223 tc15_laog_lockdel.stderr.exp \
224 tc15_laog_lockdel.vgtest \
225 tc16_byterace.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000226 tc16_byterace.vgtest \
227 tc17_sembar.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000228 tc17_sembar.vgtest \
229 tc18_semabuse.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000230 tc18_semabuse.vgtest \
bartf9d96e02009-05-03 17:54:47 +0000231 tc19_shadowmem.stderr.exp-32bit \
232 tc19_shadowmem.stderr.exp-64bit \
bart40605eb2008-03-04 18:37:20 +0000233 tc19_shadowmem.vgtest \
bart40605eb2008-03-04 18:37:20 +0000234 tc21_pthonce.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000235 tc21_pthonce.stdout.exp \
bart40605eb2008-03-04 18:37:20 +0000236 tc21_pthonce.vgtest \
237 tc22_exit_w_lock.stderr.exp-32bit \
238 tc22_exit_w_lock.stderr.exp-64bit \
bart40605eb2008-03-04 18:37:20 +0000239 tc22_exit_w_lock.vgtest \
bartb00ec8c2010-01-04 12:04:38 +0000240 tc23_bogus_condwait.stderr.exp-linux-x86 \
241 tc23_bogus_condwait.stderr.exp-linux-ppc \
bartdfca61f2009-07-22 19:06:22 +0000242 tc23_bogus_condwait.stderr.exp-darwin \
bart40605eb2008-03-04 18:37:20 +0000243 tc23_bogus_condwait.vgtest \
244 tc24_nonzero_sem.stderr.exp \
245 tc24_nonzero_sem.vgtest \
bartd45d9952009-05-31 18:53:54 +0000246 thread_name.stderr.exp \
247 thread_name.vgtest \
barte65b4c62008-07-04 11:47:06 +0000248 trylock.stderr.exp \
bart8f822af2009-06-08 18:20:42 +0000249 trylock.vgtest \
250 unit_bitmap.stderr.exp \
251 unit_bitmap.vgtest \
252 unit_vc.stderr.exp \
253 unit_vc.vgtest
254
sewardjaf44c822007-11-25 14:01:38 +0000255
bartcca440b2008-07-10 11:58:08 +0000256check_PROGRAMS = \
bartcf3eb1b2010-03-07 10:47:59 +0000257 annotate_hb_err \
bartb43825e2010-03-07 19:59:35 +0000258 annotate_hb_race \
bart5f3be752009-08-11 15:00:54 +0000259 annotate_ignore_rw \
barte6361362009-08-13 09:30:57 +0000260 annotate_ignore_write \
bart66f196d2009-08-15 10:50:35 +0000261 annotate_publish_hg \
bartea2a03c2010-03-21 17:24:47 +0000262 annotate_static \
njn32f8d8c2009-07-15 02:31:45 +0000263 custom_alloc \
bart60389da2008-02-25 19:58:25 +0000264 fp_race \
bart1d4070d2008-05-14 12:22:15 +0000265 hold_lock \
bart96f892f2008-03-09 16:16:06 +0000266 linuxthreads_det \
bart412efe52008-04-20 08:29:04 +0000267 memory_allocation \
barte64f11d2008-10-05 17:37:06 +0000268 monitor_example \
bart3d4c3322008-05-10 08:48:14 +0000269 new_delete \
bart60389da2008-02-25 19:58:25 +0000270 pth_broadcast \
bart032424f2008-09-27 12:26:17 +0000271 pth_cancel_locked \
bart505a4962009-07-04 12:20:04 +0000272 pth_cleanup_handler \
bart60389da2008-02-25 19:58:25 +0000273 pth_cond_race \
274 pth_create_chain \
275 pth_detached \
bart3b9f3bf2008-03-16 07:48:07 +0000276 pth_detached_sem \
bart3bb1cec2008-06-28 16:01:43 +0000277 pth_inconsistent_cond_wait \
bart7f08c732009-05-16 06:24:40 +0000278 pth_mutex_reinit \
279 pth_process_shared_mutex \
bart5357fcb2008-02-27 15:46:00 +0000280 recursive_mutex \
njn6ab37c72009-02-23 01:33:40 +0000281 rwlock_race \
282 rwlock_test \
bartc8441502009-07-27 16:03:51 +0000283 rwlock_type_checking \
bart5bd9f2d2008-03-03 20:31:58 +0000284 sem_as_mutex \
bart25f9f542009-07-23 16:31:39 +0000285 sem_open \
bart60389da2008-02-25 19:58:25 +0000286 sigalrm \
bartd45d9952009-05-31 18:53:54 +0000287 thread_name \
bart8f822af2009-06-08 18:20:42 +0000288 trylock \
289 unit_bitmap \
290 unit_vc
sewardjaf44c822007-11-25 14:01:38 +0000291
bart61e34a12008-11-10 18:54:46 +0000292if HAVE_BOOST_1_35
bartc4a9e0f2008-11-17 17:38:28 +0000293check_PROGRAMS += boost_thread
bartda7c0982008-07-28 11:36:11 +0000294endif
bart29cc9db2008-03-09 15:59:30 +0000295
bartd45d9952009-05-31 18:53:54 +0000296if HAVE_BUILTIN_ATOMIC
bart21e49d72010-03-02 08:57:50 +0000297check_PROGRAMS += \
bartea2a03c2010-03-21 17:24:47 +0000298 annotate_barrier \
bart21e49d72010-03-02 08:57:50 +0000299 annotate_rwlock \
300 annotate_smart_pointer \
301 atomic_var \
302 circular_buffer \
303 tsan_unittest
bart0ae59c32009-06-03 06:25:04 +0000304endif
bartd45d9952009-05-31 18:53:54 +0000305
bart4c853992008-07-07 16:53:45 +0000306if HAVE_OPENMP
bartbbd3dcf2008-10-11 18:04:52 +0000307check_PROGRAMS += omp_matinv omp_prime omp_printf
bart4c853992008-07-07 16:53:45 +0000308endif
sewardjaf44c822007-11-25 14:01:38 +0000309
bart5a8c67f2009-01-20 14:02:22 +0000310if HAVE_PTHREAD_BARRIER
bartb235a672009-02-22 09:26:22 +0000311check_PROGRAMS += matinv pth_barrier pth_barrier_race pth_barrier_reinit
bart5a8c67f2009-01-20 14:02:22 +0000312endif
313
bartfaec72f2009-04-26 07:14:15 +0000314if HAVE_PTHREAD_CREATE_GLIBC_2_0
315check_PROGRAMS += pth_create_glibc_2_0
316endif
317
bart5a8c67f2009-01-20 14:02:22 +0000318if HAVE_PTHREAD_SPINLOCK
319check_PROGRAMS += pth_spinlock
320endif
321
bart61e34a12008-11-10 18:54:46 +0000322if HAVE_QTCORE
bart4f43e002009-11-09 16:07:43 +0000323check_PROGRAMS += qt4_mutex qt4_rwlock qt4_semaphore
324endif
325
326if HAVE_QTCORE_QATOMICINT
327check_PROGRAMS += qt4_atomic
bart61e34a12008-11-10 18:54:46 +0000328endif
329
sewardjaf44c822007-11-25 14:01:38 +0000330
njn07891f92009-02-22 23:38:10 +0000331AM_CFLAGS += $(AM_FLAG_M3264_PRI) @FLAG_W_EXTRA@ -Wno-inline -Wno-unused-parameter
332AM_CXXFLAGS += $(AM_FLAG_M3264_PRI) @FLAG_W_EXTRA@ -Wno-inline -Wno-unused-parameter
333
njn53044572009-02-19 09:52:05 +0000334LDADD = -lpthread
bartcca440b2008-07-10 11:58:08 +0000335
bart6fd7d742008-12-17 19:21:17 +0000336
barte64f11d2008-10-05 17:37:06 +0000337monitor_example_SOURCES = monitor_example.cpp
bart3d4c3322008-05-10 08:48:14 +0000338new_delete_SOURCES = new_delete.cpp
bart412efe52008-04-20 08:29:04 +0000339
bart20009c12009-07-10 06:38:20 +0000340pth_cleanup_handler_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_EMPTY_BODY@
bart505a4962009-07-04 12:20:04 +0000341
bartd45d9952009-05-31 18:53:54 +0000342tsan_unittest_SOURCES = tsan_unittest.cpp
bartdf5a1e22009-06-03 08:11:02 +0000343tsan_unittest_CXXFLAGS = $(AM_CXXFLAGS) \
bart962c72c2009-06-04 09:11:28 +0000344 -DTHREAD_WRAPPERS='"tsan_thread_wrappers_pthread.h"'
bartd45d9952009-05-31 18:53:54 +0000345
bart8f822af2009-06-08 18:20:42 +0000346unit_bitmap_CFLAGS = $(AM_CFLAGS) -O2 \
347 -DENABLE_DRD_CONSISTENCY_CHECKS \
348 @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@
349unit_bitmap_LDADD = # nothing, i.e. not -lpthread
350
351unit_vc_CFLAGS = $(AM_CFLAGS) -DENABLE_DRD_CONSISTENCY_CHECKS
352unit_vc_LDADD = # nothing, i.e. not -lpthread
353
bart61e34a12008-11-10 18:54:46 +0000354if HAVE_BOOST_1_35
bartc4a9e0f2008-11-17 17:38:28 +0000355boost_thread_SOURCES = boost_thread.cpp
356boost_thread_CXXFLAGS = $(AM_CXXFLAGS) $(BOOST_CFLAGS)
357boost_thread_LDADD = $(BOOST_LIBS)
bart61e34a12008-11-10 18:54:46 +0000358endif
359
bart21e49d72010-03-02 08:57:50 +0000360if HAVE_BUILTIN_ATOMIC
361annotate_smart_pointer_SOURCES = annotate_smart_pointer.cpp
362endif
363
bartea2a03c2010-03-21 17:24:47 +0000364annotate_static_SOURCES = annotate_static.cpp
365
bart1f52b822008-03-12 17:11:48 +0000366if HAVE_OPENMP
bartf3b72852008-06-26 07:31:15 +0000367omp_matinv_CFLAGS = $(AM_CFLAGS) -fopenmp
bart805043e2008-03-12 17:49:57 +0000368omp_matinv_LDFLAGS = -fopenmp
njn53044572009-02-19 09:52:05 +0000369omp_matinv_LDADD = $(LDADD) -lm
bart0aeb1862008-03-10 19:26:42 +0000370
bartf3b72852008-06-26 07:31:15 +0000371omp_prime_CFLAGS = $(AM_CFLAGS) -fopenmp
bartbaa3c2d2008-03-12 16:50:09 +0000372omp_prime_LDFLAGS = -fopenmp
njn53044572009-02-19 09:52:05 +0000373omp_prime_LDADD = $(LDADD) -lm
bartbbd3dcf2008-10-11 18:04:52 +0000374
bartbbd3dcf2008-10-11 18:04:52 +0000375omp_printf_CFLAGS = $(AM_CFLAGS) -fopenmp
376omp_printf_LDFLAGS = -fopenmp
njn53044572009-02-19 09:52:05 +0000377omp_printf_LDADD = $(LDADD) -lm
bart0aeb1862008-03-10 19:26:42 +0000378endif
bart61e34a12008-11-10 18:54:46 +0000379
bart5a8c67f2009-01-20 14:02:22 +0000380if HAVE_PTHREAD_BARRIER
njn53044572009-02-19 09:52:05 +0000381matinv_LDADD = $(LDADD) -lm
bart5a8c67f2009-01-20 14:02:22 +0000382endif
383
bart61e34a12008-11-10 18:54:46 +0000384if HAVE_QTCORE
385qt4_mutex_SOURCES = qt4_mutex.cpp
386qt4_mutex_CXXFLAGS = $(AM_CXXFLAGS) $(QTCORE_CFLAGS)
njn53044572009-02-19 09:52:05 +0000387qt4_mutex_LDADD = $(LDADD) $(QTCORE_LIBS)
bart61e34a12008-11-10 18:54:46 +0000388
389qt4_rwlock_SOURCES = qt4_rwlock.cpp
390qt4_rwlock_CXXFLAGS = $(AM_CXXFLAGS) $(QTCORE_CFLAGS)
njn53044572009-02-19 09:52:05 +0000391qt4_rwlock_LDADD = $(LDADD) $(QTCORE_LIBS)
bart61e34a12008-11-10 18:54:46 +0000392
393qt4_semaphore_SOURCES = qt4_semaphore.cpp
394qt4_semaphore_CXXFLAGS = $(AM_CXXFLAGS) $(QTCORE_CFLAGS)
njn53044572009-02-19 09:52:05 +0000395qt4_semaphore_LDADD = $(LDADD) $(QTCORE_LIBS)
bart61e34a12008-11-10 18:54:46 +0000396endif
bart4f43e002009-11-09 16:07:43 +0000397
398if HAVE_QTCORE_QATOMICINT
399qt4_atomic_SOURCES = qt4_atomic.cpp
400qt4_atomic_CXXFLAGS = $(AM_CXXFLAGS) $(QTCORE_CFLAGS)
401qt4_atomic_LDADD = $(LDADD) $(QTCORE_LIBS)
402endif