njn | 5304457 | 2009-02-19 09:52:05 +0000 | [diff] [blame] | 1 | |
2 | include $(top_srcdir)/Makefile.tool-tests.am | ||||
sewardj | af44c82 | 2007-11-25 14:01:38 +0000 | [diff] [blame] | 3 | |
4 | SUBDIRS = . | ||||
5 | |||||
6 | DIST_SUBDIRS = . | ||||
7 | |||||
bart | 0cc09c9 | 2008-02-26 12:52:00 +0000 | [diff] [blame] | 8 | noinst_SCRIPTS = \ |
bart | 0cc09c9 | 2008-02-26 12:52:00 +0000 | [diff] [blame] | 9 | filter_error_summary \ |
bart | 3b9f3bf | 2008-03-16 07:48:07 +0000 | [diff] [blame] | 10 | filter_stderr \ |
bart | 80e3580 | 2008-03-19 17:02:26 +0000 | [diff] [blame] | 11 | run_openmp_test \ |
12 | supported_libpthread | ||||
sewardj | af44c82 | 2007-11-25 14:01:38 +0000 | [diff] [blame] | 13 | |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 14 | EXTRA_DIST = \ |
15 | $(noinst_SCRIPTS) \ | ||||
bart | a2aa68e | 2009-01-20 14:29:52 +0000 | [diff] [blame] | 16 | atomic_var.stderr.exp-with-atomic-builtins-1 \ |
17 | atomic_var.stderr.exp-with-atomic-builtins-2 \ | ||||
bart | 1d07a38 | 2008-07-29 15:27:48 +0000 | [diff] [blame] | 18 | atomic_var.stderr.exp-without-atomic-builtins \ |
bart | cca440b | 2008-07-10 11:58:08 +0000 | [diff] [blame] | 19 | atomic_var.vgtest \ |
bart | c4a9e0f | 2008-11-17 17:38:28 +0000 | [diff] [blame] | 20 | bar_bad.stderr.exp \ |
21 | bar_bad.vgtest \ | ||||
bart | dc35ec0 | 2008-12-25 09:09:59 +0000 | [diff] [blame] | 22 | bar_trivial.stdout.exp \ |
bart | c4a9e0f | 2008-11-17 17:38:28 +0000 | [diff] [blame] | 23 | bar_trivial.stderr.exp \ |
24 | bar_trivial.vgtest \ | ||||
25 | boost_thread.stderr.exp \ | ||||
26 | boost_thread.vgtest \ | ||||
sewardj | 8244481 | 2008-12-23 20:46:12 +0000 | [diff] [blame] | 27 | circular_buffer.stderr.exp-with-atomic-builtins \ |
28 | circular_buffer.stderr.exp-without-atomic-builtins \ | ||||
bart | 6fd7d74 | 2008-12-17 19:21:17 +0000 | [diff] [blame] | 29 | circular_buffer.vgtest \ |
bart | 34eff98 | 2008-05-01 13:50:20 +0000 | [diff] [blame] | 30 | drd_bitmap_test.stderr.exp \ |
bart | e65b4c6 | 2008-07-04 11:47:06 +0000 | [diff] [blame] | 31 | drd_bitmap_test.stdout.exp \ |
32 | drd_bitmap_test.vgtest \ | ||||
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 33 | fp_race.stderr.exp \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 34 | fp_race.vgtest \ |
35 | fp_race2.stderr.exp \ | ||||
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 36 | fp_race2.vgtest \ |
37 | hg01_all_ok.stderr.exp \ | ||||
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 38 | hg01_all_ok.vgtest \ |
39 | hg02_deadlock.stderr.exp \ | ||||
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 40 | hg02_deadlock.vgtest \ |
41 | hg03_inherit.stderr.exp \ | ||||
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 42 | hg03_inherit.vgtest \ |
43 | hg04_race.stderr.exp \ | ||||
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 44 | hg04_race.vgtest \ |
45 | hg05_race2.stderr.exp \ | ||||
bart | e65b4c6 | 2008-07-04 11:47:06 +0000 | [diff] [blame] | 46 | hg05_race2.stderr.exp-powerpc \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 47 | hg05_race2.vgtest \ |
48 | hg06_readshared.stderr.exp \ | ||||
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 49 | hg06_readshared.vgtest \ |
bart | 1d4070d | 2008-05-14 12:22:15 +0000 | [diff] [blame] | 50 | hold_lock_1.stderr.exp \ |
51 | hold_lock_1.vgtest \ | ||||
52 | hold_lock_2.stderr.exp \ | ||||
53 | hold_lock_2.vgtest \ | ||||
bart | 96f892f | 2008-03-09 16:16:06 +0000 | [diff] [blame] | 54 | linuxthreads_det.stderr.exp \ |
55 | linuxthreads_det.stderr.exp-linuxthreads \ | ||||
56 | linuxthreads_det.stdout.exp \ | ||||
57 | linuxthreads_det.stdout.exp-linuxthreads \ | ||||
bart | e65b4c6 | 2008-07-04 11:47:06 +0000 | [diff] [blame] | 58 | linuxthreads_det.vgtest \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 59 | matinv.stderr.exp \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 60 | matinv.stdout.exp \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 61 | matinv.vgtest \ |
bart | 412efe5 | 2008-04-20 08:29:04 +0000 | [diff] [blame] | 62 | memory_allocation.stderr.exp \ |
63 | memory_allocation.vgtest \ | ||||
bart | e64f11d | 2008-10-05 17:37:06 +0000 | [diff] [blame] | 64 | monitor_example.stderr.exp \ |
65 | monitor_example.vgtest \ | ||||
bart | 3d4c332 | 2008-05-10 08:48:14 +0000 | [diff] [blame] | 66 | new_delete.stderr.exp \ |
67 | new_delete.vgtest \ | ||||
bart | 805043e | 2008-03-12 17:49:57 +0000 | [diff] [blame] | 68 | omp_matinv.stderr.exp \ |
69 | omp_matinv.stdout.exp \ | ||||
70 | omp_matinv.vgtest \ | ||||
bart | e8acf49 | 2008-03-12 17:27:20 +0000 | [diff] [blame] | 71 | omp_matinv_racy.stderr.exp \ |
72 | omp_matinv_racy.stdout.exp \ | ||||
73 | omp_matinv_racy.vgtest \ | ||||
bart | 805043e | 2008-03-12 17:49:57 +0000 | [diff] [blame] | 74 | omp_prime_racy.stderr.exp \ |
bart | 805043e | 2008-03-12 17:49:57 +0000 | [diff] [blame] | 75 | omp_prime_racy.vgtest \ |
bart | bbd3dcf | 2008-10-11 18:04:52 +0000 | [diff] [blame] | 76 | omp_printf.stderr.exp \ |
77 | omp_printf.vgtest \ | ||||
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 78 | pth_barrier.stderr.exp \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 79 | pth_barrier.vgtest \ |
80 | pth_barrier2.stderr.exp \ | ||||
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 81 | pth_barrier2.vgtest \ |
82 | pth_barrier3.stderr.exp \ | ||||
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 83 | pth_barrier3.vgtest \ |
bart | b235a67 | 2009-02-22 09:26:22 +0000 | [diff] [blame] | 84 | pth_barrier_race.stderr.exp \ |
85 | pth_barrier_race.vgtest \ | ||||
bart | d9e39ec | 2008-06-28 15:03:26 +0000 | [diff] [blame] | 86 | pth_barrier_reinit.stderr.exp \ |
87 | pth_barrier_reinit.vgtest \ | ||||
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 88 | pth_broadcast.stderr.exp \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 89 | pth_broadcast.vgtest \ |
bart | 032424f | 2008-09-27 12:26:17 +0000 | [diff] [blame] | 90 | pth_cancel_locked.stderr.exp \ |
91 | pth_cancel_locked.vgtest \ | ||||
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 92 | pth_cond_race.stderr.exp \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 93 | pth_cond_race.vgtest \ |
94 | pth_cond_race2.stderr.exp \ | ||||
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 95 | pth_cond_race2.vgtest \ |
bart | 46b5fce | 2008-06-28 13:01:30 +0000 | [diff] [blame] | 96 | pth_cond_race3.stderr.exp \ |
97 | pth_cond_race3.vgtest \ | ||||
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 98 | pth_create_chain.stderr.exp \ |
bart | 7f8cd30 | 2009-01-13 08:22:05 +0000 | [diff] [blame] | 99 | pth_create_chain.stderr.exp-ppc \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 100 | pth_create_chain.vgtest \ |
101 | pth_detached.stderr.exp \ | ||||
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 102 | pth_detached.stdout.exp \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 103 | pth_detached.vgtest \ |
104 | pth_detached2.stderr.exp \ | ||||
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 105 | pth_detached2.stdout.exp \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 106 | pth_detached2.vgtest \ |
bart | 3b9f3bf | 2008-03-16 07:48:07 +0000 | [diff] [blame] | 107 | pth_detached_sem.stderr.exp \ |
bart | 178cc16 | 2008-05-10 12:52:02 +0000 | [diff] [blame] | 108 | pth_detached_sem.stdout.exp \ |
bart | 3b9f3bf | 2008-03-16 07:48:07 +0000 | [diff] [blame] | 109 | pth_detached_sem.vgtest \ |
bart | 5639ce1 | 2009-01-20 14:25:22 +0000 | [diff] [blame] | 110 | pth_inconsistent_cond_wait.stderr.exp1 \ |
111 | pth_inconsistent_cond_wait.stderr.exp2 \ | ||||
bart | e65b4c6 | 2008-07-04 11:47:06 +0000 | [diff] [blame] | 112 | pth_inconsistent_cond_wait.vgtest \ |
bart | 19c4260 | 2008-07-07 08:04:08 +0000 | [diff] [blame] | 113 | pth_spinlock.stderr.exp \ |
114 | pth_spinlock.vgtest \ | ||||
bart | 4c85399 | 2008-07-07 16:53:45 +0000 | [diff] [blame] | 115 | qt4_mutex.stderr.exp \ |
116 | qt4_mutex.vgtest \ | ||||
bart | 4f578bf | 2008-07-07 18:35:13 +0000 | [diff] [blame] | 117 | qt4_rwlock.stderr.exp \ |
118 | qt4_rwlock.vgtest \ | ||||
bart | ef9603e | 2008-07-07 17:22:41 +0000 | [diff] [blame] | 119 | qt4_semaphore.stderr.exp \ |
120 | qt4_semaphore.vgtest \ | ||||
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 121 | recursive_mutex.stderr.exp \ |
bart | e8acf49 | 2008-03-12 17:27:20 +0000 | [diff] [blame] | 122 | recursive_mutex.stdout.exp \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 123 | recursive_mutex.vgtest \ |
124 | rwlock_race.stderr.exp \ | ||||
bart | b920b66 | 2008-04-09 17:44:28 +0000 | [diff] [blame] | 125 | rwlock_race.stderr.exp2 \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 126 | rwlock_race.vgtest \ |
bart | 178cc16 | 2008-05-10 12:52:02 +0000 | [diff] [blame] | 127 | rwlock_test.stderr.exp \ |
128 | rwlock_test.vgtest \ | ||||
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 129 | sem_as_mutex.stderr.exp \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 130 | sem_as_mutex.vgtest \ |
131 | sem_as_mutex2.stderr.exp \ | ||||
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 132 | sem_as_mutex2.vgtest \ |
bart | e8acf49 | 2008-03-12 17:27:20 +0000 | [diff] [blame] | 133 | sigalrm.stderr.exp \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 134 | sigalrm.vgtest \ |
135 | tc01_simple_race.stderr.exp \ | ||||
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 136 | tc01_simple_race.vgtest \ |
137 | tc02_simple_tls.stderr.exp \ | ||||
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 138 | tc02_simple_tls.vgtest \ |
139 | tc03_re_excl.stderr.exp \ | ||||
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 140 | tc03_re_excl.vgtest \ |
141 | tc04_free_lock.stderr.exp \ | ||||
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 142 | tc04_free_lock.vgtest \ |
143 | tc05_simple_race.stderr.exp \ | ||||
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 144 | tc05_simple_race.vgtest \ |
145 | tc06_two_races.stderr.exp \ | ||||
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 146 | tc06_two_races.vgtest \ |
bart | 8360df5 | 2008-03-07 17:34:22 +0000 | [diff] [blame] | 147 | tc07_hbl1.stderr.exp \ |
148 | tc07_hbl1.stdout.exp \ | ||||
149 | tc07_hbl1.vgtest \ | ||||
150 | tc08_hbl2.stderr.exp \ | ||||
bart | 43409c9 | 2008-03-07 19:29:03 +0000 | [diff] [blame] | 151 | tc08_hbl2.stdout.exp \ |
bart | 8360df5 | 2008-03-07 17:34:22 +0000 | [diff] [blame] | 152 | tc08_hbl2.vgtest \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 153 | tc09_bad_unlock.stderr.exp \ |
bart | df96197 | 2008-04-28 16:51:24 +0000 | [diff] [blame] | 154 | tc09_bad_unlock.stderr.exp-glibc2.8 \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 155 | tc09_bad_unlock.vgtest \ |
156 | tc10_rec_lock.stderr.exp \ | ||||
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 157 | tc10_rec_lock.vgtest \ |
158 | tc11_XCHG.stderr.exp tc11_XCHG.stdout.exp \ | ||||
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 159 | tc11_XCHG.vgtest \ |
160 | tc12_rwl_trivial.stderr.exp \ | ||||
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 161 | tc12_rwl_trivial.vgtest \ |
162 | tc13_laog1.stderr.exp \ | ||||
163 | tc13_laog1.vgtest \ | ||||
164 | tc15_laog_lockdel.stderr.exp \ | ||||
165 | tc15_laog_lockdel.vgtest \ | ||||
166 | tc16_byterace.stderr.exp \ | ||||
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 167 | tc16_byterace.vgtest \ |
168 | tc17_sembar.stderr.exp \ | ||||
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 169 | tc17_sembar.vgtest \ |
170 | tc18_semabuse.stderr.exp \ | ||||
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 171 | tc18_semabuse.vgtest \ |
172 | tc19_shadowmem.stderr.exp \ | ||||
173 | tc19_shadowmem.vgtest \ | ||||
bart | 4ff230a | 2008-03-08 15:04:25 +0000 | [diff] [blame] | 174 | tc20_verifywrap.stderr.exp-glibc2.3 \ |
bart | 02aed96 | 2008-07-06 07:48:35 +0000 | [diff] [blame] | 175 | tc20_verifywrap.stderr.exp-glibc2.5 \ |
176 | tc20_verifywrap.stderr.exp-glibc2.5-ppc \ | ||||
bart | e65b4c6 | 2008-07-04 11:47:06 +0000 | [diff] [blame] | 177 | tc20_verifywrap.stderr.exp-glibc2.8 \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 178 | tc20_verifywrap.vgtest \ |
bart | 4ff230a | 2008-03-08 15:04:25 +0000 | [diff] [blame] | 179 | tc20_verifywrap2.stderr.exp-glibc2.3 \ |
bart | 3effeb9 | 2008-03-09 19:20:27 +0000 | [diff] [blame] | 180 | tc20_verifywrap2.stderr.exp-glibc2.3-b \ |
bart | 02aed96 | 2008-07-06 07:48:35 +0000 | [diff] [blame] | 181 | tc20_verifywrap2.stderr.exp-glibc2.5 \ |
182 | tc20_verifywrap2.stderr.exp-glibc2.5-ppc \ | ||||
bart | e65b4c6 | 2008-07-04 11:47:06 +0000 | [diff] [blame] | 183 | tc20_verifywrap2.stderr.exp-glibc2.8 \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 184 | tc20_verifywrap2.vgtest \ |
185 | tc21_pthonce.stderr.exp \ | ||||
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 186 | tc21_pthonce.stdout.exp \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 187 | tc21_pthonce.vgtest \ |
188 | tc22_exit_w_lock.stderr.exp-32bit \ | ||||
189 | tc22_exit_w_lock.stderr.exp-64bit \ | ||||
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 190 | tc22_exit_w_lock.vgtest \ |
191 | tc23_bogus_condwait.stderr.exp \ | ||||
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 192 | tc23_bogus_condwait.vgtest \ |
193 | tc24_nonzero_sem.stderr.exp \ | ||||
194 | tc24_nonzero_sem.vgtest \ | ||||
bart | e65b4c6 | 2008-07-04 11:47:06 +0000 | [diff] [blame] | 195 | trylock.stderr.exp \ |
196 | trylock.vgtest | ||||
sewardj | af44c82 | 2007-11-25 14:01:38 +0000 | [diff] [blame] | 197 | |
bart | cca440b | 2008-07-10 11:58:08 +0000 | [diff] [blame] | 198 | check_PROGRAMS = \ |
199 | atomic_var \ | ||||
bart | 6fd7d74 | 2008-12-17 19:21:17 +0000 | [diff] [blame] | 200 | circular_buffer \ |
bart | ad292b5 | 2008-05-01 14:11:45 +0000 | [diff] [blame] | 201 | drd_bitmap_test \ |
bart | 60389da | 2008-02-25 19:58:25 +0000 | [diff] [blame] | 202 | fp_race \ |
bart | 1d4070d | 2008-05-14 12:22:15 +0000 | [diff] [blame] | 203 | hold_lock \ |
bart | 96f892f | 2008-03-09 16:16:06 +0000 | [diff] [blame] | 204 | linuxthreads_det \ |
bart | 412efe5 | 2008-04-20 08:29:04 +0000 | [diff] [blame] | 205 | memory_allocation \ |
bart | e64f11d | 2008-10-05 17:37:06 +0000 | [diff] [blame] | 206 | monitor_example \ |
bart | 3d4c332 | 2008-05-10 08:48:14 +0000 | [diff] [blame] | 207 | new_delete \ |
bart | b5d3abd | 2009-02-20 19:00:18 +0000 | [diff] [blame] | 208 | rwlock_race \ |
209 | rwlock_test \ | ||||
bart | 60389da | 2008-02-25 19:58:25 +0000 | [diff] [blame] | 210 | pth_broadcast \ |
bart | 032424f | 2008-09-27 12:26:17 +0000 | [diff] [blame] | 211 | pth_cancel_locked \ |
bart | 60389da | 2008-02-25 19:58:25 +0000 | [diff] [blame] | 212 | pth_cond_race \ |
213 | pth_create_chain \ | ||||
214 | pth_detached \ | ||||
bart | 3b9f3bf | 2008-03-16 07:48:07 +0000 | [diff] [blame] | 215 | pth_detached_sem \ |
bart | 3bb1cec | 2008-06-28 16:01:43 +0000 | [diff] [blame] | 216 | pth_inconsistent_cond_wait \ |
bart | 5357fcb | 2008-02-27 15:46:00 +0000 | [diff] [blame] | 217 | recursive_mutex \ |
bart | 5bd9f2d | 2008-03-03 20:31:58 +0000 | [diff] [blame] | 218 | sem_as_mutex \ |
bart | 60389da | 2008-02-25 19:58:25 +0000 | [diff] [blame] | 219 | sigalrm \ |
bart | 848fdf8 | 2008-03-02 19:03:19 +0000 | [diff] [blame] | 220 | trylock |
sewardj | af44c82 | 2007-11-25 14:01:38 +0000 | [diff] [blame] | 221 | |
bart | 61e34a1 | 2008-11-10 18:54:46 +0000 | [diff] [blame] | 222 | if HAVE_BOOST_1_35 |
bart | c4a9e0f | 2008-11-17 17:38:28 +0000 | [diff] [blame] | 223 | check_PROGRAMS += boost_thread |
bart | da7c098 | 2008-07-28 11:36:11 +0000 | [diff] [blame] | 224 | endif |
bart | 29cc9db | 2008-03-09 15:59:30 +0000 | [diff] [blame] | 225 | |
bart | 4c85399 | 2008-07-07 16:53:45 +0000 | [diff] [blame] | 226 | if HAVE_OPENMP |
bart | bbd3dcf | 2008-10-11 18:04:52 +0000 | [diff] [blame] | 227 | check_PROGRAMS += omp_matinv omp_prime omp_printf |
bart | 4c85399 | 2008-07-07 16:53:45 +0000 | [diff] [blame] | 228 | endif |
sewardj | af44c82 | 2007-11-25 14:01:38 +0000 | [diff] [blame] | 229 | |
bart | 5a8c67f | 2009-01-20 14:02:22 +0000 | [diff] [blame] | 230 | if HAVE_PTHREAD_BARRIER |
bart | b235a67 | 2009-02-22 09:26:22 +0000 | [diff] [blame] | 231 | check_PROGRAMS += matinv pth_barrier pth_barrier_race pth_barrier_reinit |
bart | 5a8c67f | 2009-01-20 14:02:22 +0000 | [diff] [blame] | 232 | endif |
233 | |||||
234 | if HAVE_PTHREAD_SPINLOCK | ||||
235 | check_PROGRAMS += pth_spinlock | ||||
236 | endif | ||||
237 | |||||
bart | 61e34a1 | 2008-11-10 18:54:46 +0000 | [diff] [blame] | 238 | if HAVE_QTCORE |
239 | check_PROGRAMS += qt4_mutex qt4_rwlock qt4_semaphore | ||||
240 | endif | ||||
241 | |||||
sewardj | af44c82 | 2007-11-25 14:01:38 +0000 | [diff] [blame] | 242 | |
njn | 07891f9 | 2009-02-22 23:38:10 +0000 | [diff] [blame^] | 243 | AM_CFLAGS += $(AM_FLAG_M3264_PRI) @FLAG_W_EXTRA@ -Wno-inline -Wno-unused-parameter |
244 | AM_CXXFLAGS += $(AM_FLAG_M3264_PRI) @FLAG_W_EXTRA@ -Wno-inline -Wno-unused-parameter | ||||
245 | |||||
njn | 5304457 | 2009-02-19 09:52:05 +0000 | [diff] [blame] | 246 | LDADD = -lpthread |
bart | cca440b | 2008-07-10 11:58:08 +0000 | [diff] [blame] | 247 | |
bart | 6fd7d74 | 2008-12-17 19:21:17 +0000 | [diff] [blame] | 248 | |
bart | dc1e91c | 2008-05-11 06:44:30 +0000 | [diff] [blame] | 249 | drd_bitmap_test_CFLAGS = $(AM_CFLAGS) -O2 \ |
bart | 8b4b2ee | 2008-06-11 13:17:56 +0000 | [diff] [blame] | 250 | -DENABLE_DRD_CONSISTENCY_CHECKS\ |
bart | dc1e91c | 2008-05-11 06:44:30 +0000 | [diff] [blame] | 251 | @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@ |
njn | 5304457 | 2009-02-19 09:52:05 +0000 | [diff] [blame] | 252 | drd_bitmap_test_LDADD = # nothing, ie. not -lpthread |
bart | 3d4c332 | 2008-05-10 08:48:14 +0000 | [diff] [blame] | 253 | |
bart | e64f11d | 2008-10-05 17:37:06 +0000 | [diff] [blame] | 254 | monitor_example_SOURCES = monitor_example.cpp |
bart | 3d4c332 | 2008-05-10 08:48:14 +0000 | [diff] [blame] | 255 | new_delete_SOURCES = new_delete.cpp |
bart | 412efe5 | 2008-04-20 08:29:04 +0000 | [diff] [blame] | 256 | |
bart | 61e34a1 | 2008-11-10 18:54:46 +0000 | [diff] [blame] | 257 | if HAVE_BOOST_1_35 |
bart | c4a9e0f | 2008-11-17 17:38:28 +0000 | [diff] [blame] | 258 | boost_thread_SOURCES = boost_thread.cpp |
259 | boost_thread_CXXFLAGS = $(AM_CXXFLAGS) $(BOOST_CFLAGS) | ||||
260 | boost_thread_LDADD = $(BOOST_LIBS) | ||||
bart | 61e34a1 | 2008-11-10 18:54:46 +0000 | [diff] [blame] | 261 | endif |
262 | |||||
bart | 1f52b82 | 2008-03-12 17:11:48 +0000 | [diff] [blame] | 263 | if HAVE_OPENMP |
bart | f3b7285 | 2008-06-26 07:31:15 +0000 | [diff] [blame] | 264 | omp_matinv_CFLAGS = $(AM_CFLAGS) -fopenmp |
bart | 805043e | 2008-03-12 17:49:57 +0000 | [diff] [blame] | 265 | omp_matinv_LDFLAGS = -fopenmp |
njn | 5304457 | 2009-02-19 09:52:05 +0000 | [diff] [blame] | 266 | omp_matinv_LDADD = $(LDADD) -lm |
bart | 0aeb186 | 2008-03-10 19:26:42 +0000 | [diff] [blame] | 267 | |
bart | f3b7285 | 2008-06-26 07:31:15 +0000 | [diff] [blame] | 268 | omp_prime_CFLAGS = $(AM_CFLAGS) -fopenmp |
bart | baa3c2d | 2008-03-12 16:50:09 +0000 | [diff] [blame] | 269 | omp_prime_LDFLAGS = -fopenmp |
njn | 5304457 | 2009-02-19 09:52:05 +0000 | [diff] [blame] | 270 | omp_prime_LDADD = $(LDADD) -lm |
bart | bbd3dcf | 2008-10-11 18:04:52 +0000 | [diff] [blame] | 271 | |
bart | bbd3dcf | 2008-10-11 18:04:52 +0000 | [diff] [blame] | 272 | omp_printf_CFLAGS = $(AM_CFLAGS) -fopenmp |
273 | omp_printf_LDFLAGS = -fopenmp | ||||
njn | 5304457 | 2009-02-19 09:52:05 +0000 | [diff] [blame] | 274 | omp_printf_LDADD = $(LDADD) -lm |
bart | 0aeb186 | 2008-03-10 19:26:42 +0000 | [diff] [blame] | 275 | endif |
bart | 61e34a1 | 2008-11-10 18:54:46 +0000 | [diff] [blame] | 276 | |
bart | 5a8c67f | 2009-01-20 14:02:22 +0000 | [diff] [blame] | 277 | if HAVE_PTHREAD_BARRIER |
njn | 5304457 | 2009-02-19 09:52:05 +0000 | [diff] [blame] | 278 | matinv_LDADD = $(LDADD) -lm |
bart | 5a8c67f | 2009-01-20 14:02:22 +0000 | [diff] [blame] | 279 | endif |
280 | |||||
bart | 61e34a1 | 2008-11-10 18:54:46 +0000 | [diff] [blame] | 281 | if HAVE_QTCORE |
282 | qt4_mutex_SOURCES = qt4_mutex.cpp | ||||
283 | qt4_mutex_CXXFLAGS = $(AM_CXXFLAGS) $(QTCORE_CFLAGS) | ||||
njn | 5304457 | 2009-02-19 09:52:05 +0000 | [diff] [blame] | 284 | qt4_mutex_LDADD = $(LDADD) $(QTCORE_LIBS) |
bart | 61e34a1 | 2008-11-10 18:54:46 +0000 | [diff] [blame] | 285 | |
286 | qt4_rwlock_SOURCES = qt4_rwlock.cpp | ||||
287 | qt4_rwlock_CXXFLAGS = $(AM_CXXFLAGS) $(QTCORE_CFLAGS) | ||||
njn | 5304457 | 2009-02-19 09:52:05 +0000 | [diff] [blame] | 288 | qt4_rwlock_LDADD = $(LDADD) $(QTCORE_LIBS) |
bart | 61e34a1 | 2008-11-10 18:54:46 +0000 | [diff] [blame] | 289 | |
290 | qt4_semaphore_SOURCES = qt4_semaphore.cpp | ||||
291 | qt4_semaphore_CXXFLAGS = $(AM_CXXFLAGS) $(QTCORE_CFLAGS) | ||||
njn | 5304457 | 2009-02-19 09:52:05 +0000 | [diff] [blame] | 292 | qt4_semaphore_LDADD = $(LDADD) $(QTCORE_LIBS) |
bart | 61e34a1 | 2008-11-10 18:54:46 +0000 | [diff] [blame] | 293 | endif |