blob: 21f56bdad80551e265d9d76e245523c8eea29920 [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 = \
bart9e87dca2009-03-10 09:19:26 +00005 filter_error_summary \
6 filter_stderr \
7 filter_stderr_and_thread_no \
8 run_openmp_test \
njn26139fa2009-08-11 00:18:31 +00009 supported_libpthread \
10 supported_sem_init
sewardjaf44c822007-11-25 14:01:38 +000011
njn8b68b642009-06-24 00:37:09 +000012noinst_HEADERS = \
13 tsan_thread_wrappers_pthread.h
14
bart40605eb2008-03-04 18:37:20 +000015EXTRA_DIST = \
bartd45d9952009-05-31 18:53:54 +000016 annotate_order_1.stderr.exp \
17 annotate_order_1.vgtest \
bart2ffad9c2009-06-03 09:30:19 +000018 annotate_spinlock.stderr.exp \
19 annotate_spinlock.vgtest \
bartd45d9952009-05-31 18:53:54 +000020 annotate_rwlock.stderr.exp \
21 annotate_rwlock.vgtest \
22 annotate_ignore_read.stderr.exp \
23 annotate_ignore_read.vgtest \
bart5f3be752009-08-11 15:00:54 +000024 annotate_ignore_rw.stderr.exp \
25 annotate_ignore_rw.vgtest \
barta5225b82009-08-12 09:45:18 +000026 annotate_ignore_rw2.stderr.exp \
27 annotate_ignore_rw2.vgtest \
barte6361362009-08-13 09:30:57 +000028 annotate_ignore_write.stderr.exp \
29 annotate_ignore_write.vgtest \
30 annotate_ignore_write2.stderr.exp \
31 annotate_ignore_write2.vgtest \
bartd45d9952009-05-31 18:53:54 +000032 annotate_trace_memory.stderr.exp \
33 annotate_trace_memory.vgtest \
bart2ffad9c2009-06-03 09:30:19 +000034 atomic_var.stderr.exp \
bartcca440b2008-07-10 11:58:08 +000035 atomic_var.vgtest \
bartc4a9e0f2008-11-17 17:38:28 +000036 bar_bad.stderr.exp \
37 bar_bad.vgtest \
38 bar_trivial.stderr.exp \
bart7f08c732009-05-16 06:24:40 +000039 bar_trivial.stdout.exp \
bartc4a9e0f2008-11-17 17:38:28 +000040 bar_trivial.vgtest \
41 boost_thread.stderr.exp \
42 boost_thread.vgtest \
bart2ffad9c2009-06-03 09:30:19 +000043 circular_buffer.stderr.exp \
bart6fd7d742008-12-17 19:21:17 +000044 circular_buffer.vgtest \
bart6c7c76e2009-05-01 12:23:47 +000045 custom_alloc.stderr.exp \
bart7f08c732009-05-16 06:24:40 +000046 custom_alloc.vgtest \
bart40605eb2008-03-04 18:37:20 +000047 fp_race.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000048 fp_race.vgtest \
49 fp_race2.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000050 fp_race2.vgtest \
51 hg01_all_ok.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000052 hg01_all_ok.vgtest \
53 hg02_deadlock.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000054 hg02_deadlock.vgtest \
55 hg03_inherit.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000056 hg03_inherit.vgtest \
57 hg04_race.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000058 hg04_race.vgtest \
59 hg05_race2.stderr.exp \
barte65b4c62008-07-04 11:47:06 +000060 hg05_race2.stderr.exp-powerpc \
bart40605eb2008-03-04 18:37:20 +000061 hg05_race2.vgtest \
62 hg06_readshared.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000063 hg06_readshared.vgtest \
bart1d4070d2008-05-14 12:22:15 +000064 hold_lock_1.stderr.exp \
65 hold_lock_1.vgtest \
66 hold_lock_2.stderr.exp \
67 hold_lock_2.vgtest \
bart96f892f2008-03-09 16:16:06 +000068 linuxthreads_det.stderr.exp \
69 linuxthreads_det.stderr.exp-linuxthreads \
70 linuxthreads_det.stdout.exp \
71 linuxthreads_det.stdout.exp-linuxthreads \
barte65b4c62008-07-04 11:47:06 +000072 linuxthreads_det.vgtest \
bart40605eb2008-03-04 18:37:20 +000073 matinv.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000074 matinv.stdout.exp \
bart40605eb2008-03-04 18:37:20 +000075 matinv.vgtest \
bart412efe52008-04-20 08:29:04 +000076 memory_allocation.stderr.exp \
77 memory_allocation.vgtest \
barte64f11d2008-10-05 17:37:06 +000078 monitor_example.stderr.exp \
79 monitor_example.vgtest \
bart3d4c3322008-05-10 08:48:14 +000080 new_delete.stderr.exp \
81 new_delete.vgtest \
bart805043e2008-03-12 17:49:57 +000082 omp_matinv.stderr.exp \
83 omp_matinv.stdout.exp \
84 omp_matinv.vgtest \
barte8acf492008-03-12 17:27:20 +000085 omp_matinv_racy.stderr.exp \
86 omp_matinv_racy.stdout.exp \
87 omp_matinv_racy.vgtest \
bart805043e2008-03-12 17:49:57 +000088 omp_prime_racy.stderr.exp \
bart805043e2008-03-12 17:49:57 +000089 omp_prime_racy.vgtest \
bartbbd3dcf2008-10-11 18:04:52 +000090 omp_printf.stderr.exp \
91 omp_printf.vgtest \
bart40605eb2008-03-04 18:37:20 +000092 pth_barrier.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000093 pth_barrier.vgtest \
94 pth_barrier2.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000095 pth_barrier2.vgtest \
96 pth_barrier3.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000097 pth_barrier3.vgtest \
bartb235a672009-02-22 09:26:22 +000098 pth_barrier_race.stderr.exp \
99 pth_barrier_race.vgtest \
bartd9e39ec2008-06-28 15:03:26 +0000100 pth_barrier_reinit.stderr.exp \
101 pth_barrier_reinit.vgtest \
bart40605eb2008-03-04 18:37:20 +0000102 pth_broadcast.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000103 pth_broadcast.vgtest \
bart032424f2008-09-27 12:26:17 +0000104 pth_cancel_locked.stderr.exp \
bartdbaced02009-07-31 18:49:29 +0000105 pth_cancel_locked.stderr.exp-darwin \
bart032424f2008-09-27 12:26:17 +0000106 pth_cancel_locked.vgtest \
bart505a4962009-07-04 12:20:04 +0000107 pth_cleanup_handler.stderr.exp \
108 pth_cleanup_handler.vgtest \
bart40605eb2008-03-04 18:37:20 +0000109 pth_cond_race.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000110 pth_cond_race.vgtest \
111 pth_cond_race2.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000112 pth_cond_race2.vgtest \
bart46b5fce2008-06-28 13:01:30 +0000113 pth_cond_race3.stderr.exp \
114 pth_cond_race3.vgtest \
bart40605eb2008-03-04 18:37:20 +0000115 pth_create_chain.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000116 pth_create_chain.vgtest \
bartfaec72f2009-04-26 07:14:15 +0000117 pth_create_glibc_2_0.stderr.exp \
118 pth_create_glibc_2_0.vgtest \
bart40605eb2008-03-04 18:37:20 +0000119 pth_detached.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000120 pth_detached.stdout.exp \
bart40605eb2008-03-04 18:37:20 +0000121 pth_detached.vgtest \
122 pth_detached2.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000123 pth_detached2.stdout.exp \
bart40605eb2008-03-04 18:37:20 +0000124 pth_detached2.vgtest \
bart3b9f3bf2008-03-16 07:48:07 +0000125 pth_detached_sem.stderr.exp \
bart178cc162008-05-10 12:52:02 +0000126 pth_detached_sem.stdout.exp \
bart3b9f3bf2008-03-16 07:48:07 +0000127 pth_detached_sem.vgtest \
bart5639ce12009-01-20 14:25:22 +0000128 pth_inconsistent_cond_wait.stderr.exp1 \
129 pth_inconsistent_cond_wait.stderr.exp2 \
barte65b4c62008-07-04 11:47:06 +0000130 pth_inconsistent_cond_wait.vgtest \
bart7f08c732009-05-16 06:24:40 +0000131 pth_mutex_reinit.stderr.exp \
132 pth_mutex_reinit.vgtest \
bart7caef852009-07-26 15:27:27 +0000133 pth_once.stderr.exp \
134 pth_once.vgtest \
njnff5bdd42009-05-18 23:24:26 +0000135 pth_process_shared_mutex.stderr.exp \
bartf1473ad2009-05-19 17:26:20 +0000136 pth_process_shared_mutex.vgtest \
bart19c42602008-07-07 08:04:08 +0000137 pth_spinlock.stderr.exp \
138 pth_spinlock.vgtest \
bart4c853992008-07-07 16:53:45 +0000139 qt4_mutex.stderr.exp \
140 qt4_mutex.vgtest \
bart4f578bf2008-07-07 18:35:13 +0000141 qt4_rwlock.stderr.exp \
142 qt4_rwlock.vgtest \
bartef9603e2008-07-07 17:22:41 +0000143 qt4_semaphore.stderr.exp \
144 qt4_semaphore.vgtest \
bart9e4efbf2009-07-22 19:04:23 +0000145 recursive_mutex.stderr.exp-linux \
146 recursive_mutex.stderr.exp-darwin \
bart40605eb2008-03-04 18:37:20 +0000147 recursive_mutex.vgtest \
148 rwlock_race.stderr.exp \
bartb920b662008-04-09 17:44:28 +0000149 rwlock_race.stderr.exp2 \
bart40605eb2008-03-04 18:37:20 +0000150 rwlock_race.vgtest \
bart178cc162008-05-10 12:52:02 +0000151 rwlock_test.stderr.exp \
152 rwlock_test.vgtest \
bartc8441502009-07-27 16:03:51 +0000153 rwlock_type_checking.stderr.exp \
154 rwlock_type_checking.vgtest \
bart40605eb2008-03-04 18:37:20 +0000155 sem_as_mutex.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000156 sem_as_mutex.vgtest \
157 sem_as_mutex2.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000158 sem_as_mutex2.vgtest \
bartb20f69b2009-05-03 17:43:55 +0000159 sem_as_mutex3.stderr.exp \
160 sem_as_mutex3.vgtest \
bart25f9f542009-07-23 16:31:39 +0000161 sem_open.stderr.exp \
162 sem_open.vgtest \
163 sem_open2.stderr.exp \
164 sem_open2.vgtest \
165 sem_open3.stderr.exp \
166 sem_open3.vgtest \
bart0f83d482009-07-26 09:16:56 +0000167 sem_open_traced.stderr.exp \
168 sem_open_traced.vgtest \
barte8acf492008-03-12 17:27:20 +0000169 sigalrm.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000170 sigalrm.vgtest \
171 tc01_simple_race.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000172 tc01_simple_race.vgtest \
173 tc02_simple_tls.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000174 tc02_simple_tls.vgtest \
175 tc03_re_excl.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000176 tc03_re_excl.vgtest \
177 tc04_free_lock.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000178 tc04_free_lock.vgtest \
179 tc05_simple_race.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000180 tc05_simple_race.vgtest \
181 tc06_two_races.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000182 tc06_two_races.vgtest \
bart8360df52008-03-07 17:34:22 +0000183 tc07_hbl1.stderr.exp \
184 tc07_hbl1.stdout.exp \
185 tc07_hbl1.vgtest \
186 tc08_hbl2.stderr.exp \
bart43409c92008-03-07 19:29:03 +0000187 tc08_hbl2.stdout.exp \
bart8360df52008-03-07 17:34:22 +0000188 tc08_hbl2.vgtest \
bart40605eb2008-03-04 18:37:20 +0000189 tc09_bad_unlock.stderr.exp \
bartdf961972008-04-28 16:51:24 +0000190 tc09_bad_unlock.stderr.exp-glibc2.8 \
bart40605eb2008-03-04 18:37:20 +0000191 tc09_bad_unlock.vgtest \
192 tc10_rec_lock.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000193 tc10_rec_lock.vgtest \
194 tc11_XCHG.stderr.exp tc11_XCHG.stdout.exp \
bart40605eb2008-03-04 18:37:20 +0000195 tc11_XCHG.vgtest \
196 tc12_rwl_trivial.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000197 tc12_rwl_trivial.vgtest \
198 tc13_laog1.stderr.exp \
199 tc13_laog1.vgtest \
200 tc15_laog_lockdel.stderr.exp \
201 tc15_laog_lockdel.vgtest \
202 tc16_byterace.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000203 tc16_byterace.vgtest \
204 tc17_sembar.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000205 tc17_sembar.vgtest \
206 tc18_semabuse.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000207 tc18_semabuse.vgtest \
bartf9d96e02009-05-03 17:54:47 +0000208 tc19_shadowmem.stderr.exp-32bit \
209 tc19_shadowmem.stderr.exp-64bit \
bart40605eb2008-03-04 18:37:20 +0000210 tc19_shadowmem.vgtest \
bart4ff230a2008-03-08 15:04:25 +0000211 tc20_verifywrap.stderr.exp-glibc2.3 \
bart02aed962008-07-06 07:48:35 +0000212 tc20_verifywrap.stderr.exp-glibc2.5 \
213 tc20_verifywrap.stderr.exp-glibc2.5-ppc \
barte65b4c62008-07-04 11:47:06 +0000214 tc20_verifywrap.stderr.exp-glibc2.8 \
bart40605eb2008-03-04 18:37:20 +0000215 tc20_verifywrap.vgtest \
bart4ff230a2008-03-08 15:04:25 +0000216 tc20_verifywrap2.stderr.exp-glibc2.3 \
bart3effeb92008-03-09 19:20:27 +0000217 tc20_verifywrap2.stderr.exp-glibc2.3-b \
bart02aed962008-07-06 07:48:35 +0000218 tc20_verifywrap2.stderr.exp-glibc2.5 \
219 tc20_verifywrap2.stderr.exp-glibc2.5-ppc \
barte65b4c62008-07-04 11:47:06 +0000220 tc20_verifywrap2.stderr.exp-glibc2.8 \
barta5225b82009-08-12 09:45:18 +0000221 tc20_verifywrap2.stderr.exp-glibc2.10 \
bart40605eb2008-03-04 18:37:20 +0000222 tc20_verifywrap2.vgtest \
223 tc21_pthonce.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000224 tc21_pthonce.stdout.exp \
bart40605eb2008-03-04 18:37:20 +0000225 tc21_pthonce.vgtest \
226 tc22_exit_w_lock.stderr.exp-32bit \
227 tc22_exit_w_lock.stderr.exp-64bit \
bart40605eb2008-03-04 18:37:20 +0000228 tc22_exit_w_lock.vgtest \
barta4121952009-07-23 08:16:25 +0000229 tc23_bogus_condwait.stderr.exp-linux-x86 \
230 tc23_bogus_condwait.stderr.exp-linux-ppc \
bartdfca61f2009-07-22 19:06:22 +0000231 tc23_bogus_condwait.stderr.exp-darwin \
bart40605eb2008-03-04 18:37:20 +0000232 tc23_bogus_condwait.vgtest \
233 tc24_nonzero_sem.stderr.exp \
234 tc24_nonzero_sem.vgtest \
bartd45d9952009-05-31 18:53:54 +0000235 thread_name.stderr.exp \
236 thread_name.vgtest \
barte65b4c62008-07-04 11:47:06 +0000237 trylock.stderr.exp \
bart8f822af2009-06-08 18:20:42 +0000238 trylock.vgtest \
239 unit_bitmap.stderr.exp \
240 unit_bitmap.vgtest \
241 unit_vc.stderr.exp \
242 unit_vc.vgtest
243
sewardjaf44c822007-11-25 14:01:38 +0000244
bartcca440b2008-07-10 11:58:08 +0000245check_PROGRAMS = \
bart5f3be752009-08-11 15:00:54 +0000246 annotate_ignore_rw \
barte6361362009-08-13 09:30:57 +0000247 annotate_ignore_write \
njn32f8d8c2009-07-15 02:31:45 +0000248 custom_alloc \
bart60389da2008-02-25 19:58:25 +0000249 fp_race \
bart1d4070d2008-05-14 12:22:15 +0000250 hold_lock \
bart96f892f2008-03-09 16:16:06 +0000251 linuxthreads_det \
bart412efe52008-04-20 08:29:04 +0000252 memory_allocation \
barte64f11d2008-10-05 17:37:06 +0000253 monitor_example \
bart3d4c3322008-05-10 08:48:14 +0000254 new_delete \
bart60389da2008-02-25 19:58:25 +0000255 pth_broadcast \
bart032424f2008-09-27 12:26:17 +0000256 pth_cancel_locked \
bart505a4962009-07-04 12:20:04 +0000257 pth_cleanup_handler \
bart60389da2008-02-25 19:58:25 +0000258 pth_cond_race \
259 pth_create_chain \
260 pth_detached \
bart3b9f3bf2008-03-16 07:48:07 +0000261 pth_detached_sem \
bart3bb1cec2008-06-28 16:01:43 +0000262 pth_inconsistent_cond_wait \
bart7f08c732009-05-16 06:24:40 +0000263 pth_mutex_reinit \
264 pth_process_shared_mutex \
bart5357fcb2008-02-27 15:46:00 +0000265 recursive_mutex \
njn6ab37c72009-02-23 01:33:40 +0000266 rwlock_race \
267 rwlock_test \
bartc8441502009-07-27 16:03:51 +0000268 rwlock_type_checking \
bart5bd9f2d2008-03-03 20:31:58 +0000269 sem_as_mutex \
bart25f9f542009-07-23 16:31:39 +0000270 sem_open \
bart60389da2008-02-25 19:58:25 +0000271 sigalrm \
bartd45d9952009-05-31 18:53:54 +0000272 thread_name \
bart8f822af2009-06-08 18:20:42 +0000273 trylock \
274 unit_bitmap \
275 unit_vc
sewardjaf44c822007-11-25 14:01:38 +0000276
bart61e34a12008-11-10 18:54:46 +0000277if HAVE_BOOST_1_35
bartc4a9e0f2008-11-17 17:38:28 +0000278check_PROGRAMS += boost_thread
bartda7c0982008-07-28 11:36:11 +0000279endif
bart29cc9db2008-03-09 15:59:30 +0000280
bartd45d9952009-05-31 18:53:54 +0000281if HAVE_BUILTIN_ATOMIC
bart0ae59c32009-06-03 06:25:04 +0000282check_PROGRAMS += annotate_rwlock atomic_var circular_buffer
bart0ae59c32009-06-03 06:25:04 +0000283check_PROGRAMS += tsan_unittest
284endif
bartd45d9952009-05-31 18:53:54 +0000285
bart4c853992008-07-07 16:53:45 +0000286if HAVE_OPENMP
bartbbd3dcf2008-10-11 18:04:52 +0000287check_PROGRAMS += omp_matinv omp_prime omp_printf
bart4c853992008-07-07 16:53:45 +0000288endif
sewardjaf44c822007-11-25 14:01:38 +0000289
bart5a8c67f2009-01-20 14:02:22 +0000290if HAVE_PTHREAD_BARRIER
bartb235a672009-02-22 09:26:22 +0000291check_PROGRAMS += matinv pth_barrier pth_barrier_race pth_barrier_reinit
bart5a8c67f2009-01-20 14:02:22 +0000292endif
293
bartfaec72f2009-04-26 07:14:15 +0000294if HAVE_PTHREAD_CREATE_GLIBC_2_0
295check_PROGRAMS += pth_create_glibc_2_0
296endif
297
bart5a8c67f2009-01-20 14:02:22 +0000298if HAVE_PTHREAD_SPINLOCK
299check_PROGRAMS += pth_spinlock
300endif
301
bart61e34a12008-11-10 18:54:46 +0000302if HAVE_QTCORE
303check_PROGRAMS += qt4_mutex qt4_rwlock qt4_semaphore
304endif
305
sewardjaf44c822007-11-25 14:01:38 +0000306
njn07891f92009-02-22 23:38:10 +0000307AM_CFLAGS += $(AM_FLAG_M3264_PRI) @FLAG_W_EXTRA@ -Wno-inline -Wno-unused-parameter
308AM_CXXFLAGS += $(AM_FLAG_M3264_PRI) @FLAG_W_EXTRA@ -Wno-inline -Wno-unused-parameter
309
njn53044572009-02-19 09:52:05 +0000310LDADD = -lpthread
bartcca440b2008-07-10 11:58:08 +0000311
bart6fd7d742008-12-17 19:21:17 +0000312
barte64f11d2008-10-05 17:37:06 +0000313monitor_example_SOURCES = monitor_example.cpp
bart3d4c3322008-05-10 08:48:14 +0000314new_delete_SOURCES = new_delete.cpp
bart412efe52008-04-20 08:29:04 +0000315
bart20009c12009-07-10 06:38:20 +0000316pth_cleanup_handler_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_EMPTY_BODY@
bart505a4962009-07-04 12:20:04 +0000317
bartd45d9952009-05-31 18:53:54 +0000318tsan_unittest_SOURCES = tsan_unittest.cpp
bartdf5a1e22009-06-03 08:11:02 +0000319tsan_unittest_CXXFLAGS = $(AM_CXXFLAGS) \
bart962c72c2009-06-04 09:11:28 +0000320 -DTHREAD_WRAPPERS='"tsan_thread_wrappers_pthread.h"'
bartd45d9952009-05-31 18:53:54 +0000321
bart8f822af2009-06-08 18:20:42 +0000322unit_bitmap_CFLAGS = $(AM_CFLAGS) -O2 \
323 -DENABLE_DRD_CONSISTENCY_CHECKS \
324 @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@
325unit_bitmap_LDADD = # nothing, i.e. not -lpthread
326
327unit_vc_CFLAGS = $(AM_CFLAGS) -DENABLE_DRD_CONSISTENCY_CHECKS
328unit_vc_LDADD = # nothing, i.e. not -lpthread
329
bart61e34a12008-11-10 18:54:46 +0000330if HAVE_BOOST_1_35
bartc4a9e0f2008-11-17 17:38:28 +0000331boost_thread_SOURCES = boost_thread.cpp
332boost_thread_CXXFLAGS = $(AM_CXXFLAGS) $(BOOST_CFLAGS)
333boost_thread_LDADD = $(BOOST_LIBS)
bart61e34a12008-11-10 18:54:46 +0000334endif
335
bart1f52b822008-03-12 17:11:48 +0000336if HAVE_OPENMP
bartf3b72852008-06-26 07:31:15 +0000337omp_matinv_CFLAGS = $(AM_CFLAGS) -fopenmp
bart805043e2008-03-12 17:49:57 +0000338omp_matinv_LDFLAGS = -fopenmp
njn53044572009-02-19 09:52:05 +0000339omp_matinv_LDADD = $(LDADD) -lm
bart0aeb1862008-03-10 19:26:42 +0000340
bartf3b72852008-06-26 07:31:15 +0000341omp_prime_CFLAGS = $(AM_CFLAGS) -fopenmp
bartbaa3c2d2008-03-12 16:50:09 +0000342omp_prime_LDFLAGS = -fopenmp
njn53044572009-02-19 09:52:05 +0000343omp_prime_LDADD = $(LDADD) -lm
bartbbd3dcf2008-10-11 18:04:52 +0000344
bartbbd3dcf2008-10-11 18:04:52 +0000345omp_printf_CFLAGS = $(AM_CFLAGS) -fopenmp
346omp_printf_LDFLAGS = -fopenmp
njn53044572009-02-19 09:52:05 +0000347omp_printf_LDADD = $(LDADD) -lm
bart0aeb1862008-03-10 19:26:42 +0000348endif
bart61e34a12008-11-10 18:54:46 +0000349
bart5a8c67f2009-01-20 14:02:22 +0000350if HAVE_PTHREAD_BARRIER
njn53044572009-02-19 09:52:05 +0000351matinv_LDADD = $(LDADD) -lm
bart5a8c67f2009-01-20 14:02:22 +0000352endif
353
bart61e34a12008-11-10 18:54:46 +0000354if HAVE_QTCORE
355qt4_mutex_SOURCES = qt4_mutex.cpp
356qt4_mutex_CXXFLAGS = $(AM_CXXFLAGS) $(QTCORE_CFLAGS)
njn53044572009-02-19 09:52:05 +0000357qt4_mutex_LDADD = $(LDADD) $(QTCORE_LIBS)
bart61e34a12008-11-10 18:54:46 +0000358
359qt4_rwlock_SOURCES = qt4_rwlock.cpp
360qt4_rwlock_CXXFLAGS = $(AM_CXXFLAGS) $(QTCORE_CFLAGS)
njn53044572009-02-19 09:52:05 +0000361qt4_rwlock_LDADD = $(LDADD) $(QTCORE_LIBS)
bart61e34a12008-11-10 18:54:46 +0000362
363qt4_semaphore_SOURCES = qt4_semaphore.cpp
364qt4_semaphore_CXXFLAGS = $(AM_CXXFLAGS) $(QTCORE_CFLAGS)
njn53044572009-02-19 09:52:05 +0000365qt4_semaphore_LDADD = $(LDADD) $(QTCORE_LIBS)
bart61e34a12008-11-10 18:54:46 +0000366endif