sewardj | af44c82 | 2007-11-25 14:01:38 +0000 | [diff] [blame] | 1 | # For AM_FLAG_M3264_PRI |
| 2 | include $(top_srcdir)/Makefile.flags.am |
| 3 | |
| 4 | SUBDIRS = . |
| 5 | |
| 6 | DIST_SUBDIRS = . |
| 7 | |
bart | 0cc09c9 | 2008-02-26 12:52:00 +0000 | [diff] [blame] | 8 | noinst_SCRIPTS = \ |
| 9 | filter_cmdline0 \ |
| 10 | filter_error_summary \ |
| 11 | filter_fdleak \ |
| 12 | filter_linenos \ |
| 13 | filter_none_discards \ |
bart | 3b9f3bf | 2008-03-16 07:48:07 +0000 | [diff] [blame] | 14 | filter_stderr \ |
bart | 80e3580 | 2008-03-19 17:02:26 +0000 | [diff] [blame] | 15 | run_openmp_test \ |
| 16 | supported_libpthread |
sewardj | af44c82 | 2007-11-25 14:01:38 +0000 | [diff] [blame] | 17 | |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 18 | EXTRA_DIST = \ |
| 19 | $(noinst_SCRIPTS) \ |
bart | 1d07a38 | 2008-07-29 15:27:48 +0000 | [diff] [blame] | 20 | atomic_var.stderr.exp-with-atomic-builtins \ |
| 21 | atomic_var.stderr.exp-without-atomic-builtins \ |
bart | cca440b | 2008-07-10 11:58:08 +0000 | [diff] [blame] | 22 | atomic_var.vgtest \ |
bart | 61e34a1 | 2008-11-10 18:54:46 +0000 | [diff] [blame^] | 23 | boost_threads.stderr.exp \ |
| 24 | boost_threads.vgtest \ |
bart | 34eff98 | 2008-05-01 13:50:20 +0000 | [diff] [blame] | 25 | drd_bitmap_test.stderr.exp \ |
bart | e65b4c6 | 2008-07-04 11:47:06 +0000 | [diff] [blame] | 26 | drd_bitmap_test.stdout.exp \ |
| 27 | drd_bitmap_test.vgtest \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 28 | fp_race.stderr.exp \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 29 | fp_race.vgtest \ |
| 30 | fp_race2.stderr.exp \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 31 | fp_race2.vgtest \ |
| 32 | hg01_all_ok.stderr.exp \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 33 | hg01_all_ok.vgtest \ |
| 34 | hg02_deadlock.stderr.exp \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 35 | hg02_deadlock.vgtest \ |
| 36 | hg03_inherit.stderr.exp \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 37 | hg03_inherit.vgtest \ |
| 38 | hg04_race.stderr.exp \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 39 | hg04_race.vgtest \ |
| 40 | hg05_race2.stderr.exp \ |
bart | e65b4c6 | 2008-07-04 11:47:06 +0000 | [diff] [blame] | 41 | hg05_race2.stderr.exp-powerpc \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 42 | hg05_race2.vgtest \ |
| 43 | hg06_readshared.stderr.exp \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 44 | hg06_readshared.vgtest \ |
bart | 1d4070d | 2008-05-14 12:22:15 +0000 | [diff] [blame] | 45 | hold_lock_1.stderr.exp \ |
| 46 | hold_lock_1.vgtest \ |
| 47 | hold_lock_2.stderr.exp \ |
| 48 | hold_lock_2.vgtest \ |
bart | 96f892f | 2008-03-09 16:16:06 +0000 | [diff] [blame] | 49 | linuxthreads_det.stderr.exp \ |
| 50 | linuxthreads_det.stderr.exp-linuxthreads \ |
| 51 | linuxthreads_det.stdout.exp \ |
| 52 | linuxthreads_det.stdout.exp-linuxthreads \ |
bart | e65b4c6 | 2008-07-04 11:47:06 +0000 | [diff] [blame] | 53 | linuxthreads_det.vgtest \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 54 | matinv.stderr.exp \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 55 | matinv.stdout.exp \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 56 | matinv.vgtest \ |
bart | 412efe5 | 2008-04-20 08:29:04 +0000 | [diff] [blame] | 57 | memory_allocation.stderr.exp \ |
| 58 | memory_allocation.vgtest \ |
bart | e64f11d | 2008-10-05 17:37:06 +0000 | [diff] [blame] | 59 | monitor_example.stderr.exp \ |
| 60 | monitor_example.vgtest \ |
bart | 3d4c332 | 2008-05-10 08:48:14 +0000 | [diff] [blame] | 61 | new_delete.stderr.exp \ |
| 62 | new_delete.vgtest \ |
bart | 805043e | 2008-03-12 17:49:57 +0000 | [diff] [blame] | 63 | omp_matinv.stderr.exp \ |
| 64 | omp_matinv.stdout.exp \ |
| 65 | omp_matinv.vgtest \ |
bart | e8acf49 | 2008-03-12 17:27:20 +0000 | [diff] [blame] | 66 | omp_matinv_racy.stderr.exp \ |
| 67 | omp_matinv_racy.stdout.exp \ |
| 68 | omp_matinv_racy.vgtest \ |
bart | 805043e | 2008-03-12 17:49:57 +0000 | [diff] [blame] | 69 | omp_prime_racy.stderr.exp \ |
bart | 805043e | 2008-03-12 17:49:57 +0000 | [diff] [blame] | 70 | omp_prime_racy.vgtest \ |
bart | bbd3dcf | 2008-10-11 18:04:52 +0000 | [diff] [blame] | 71 | omp_printf.stderr.exp \ |
| 72 | omp_printf.vgtest \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 73 | pth_barrier.stderr.exp \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 74 | pth_barrier.vgtest \ |
| 75 | pth_barrier2.stderr.exp \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 76 | pth_barrier2.vgtest \ |
| 77 | pth_barrier3.stderr.exp \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 78 | pth_barrier3.vgtest \ |
bart | d9e39ec | 2008-06-28 15:03:26 +0000 | [diff] [blame] | 79 | pth_barrier_reinit.stderr.exp \ |
| 80 | pth_barrier_reinit.vgtest \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 81 | pth_broadcast.stderr.exp \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 82 | pth_broadcast.vgtest \ |
bart | 032424f | 2008-09-27 12:26:17 +0000 | [diff] [blame] | 83 | pth_cancel_locked.stderr.exp \ |
| 84 | pth_cancel_locked.vgtest \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 85 | pth_cond_race.stderr.exp \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 86 | pth_cond_race.vgtest \ |
| 87 | pth_cond_race2.stderr.exp \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 88 | pth_cond_race2.vgtest \ |
bart | 46b5fce | 2008-06-28 13:01:30 +0000 | [diff] [blame] | 89 | pth_cond_race3.stderr.exp \ |
| 90 | pth_cond_race3.vgtest \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 91 | pth_create_chain.stderr.exp \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 92 | pth_create_chain.vgtest \ |
| 93 | pth_detached.stderr.exp \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 94 | pth_detached.stdout.exp \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 95 | pth_detached.vgtest \ |
| 96 | pth_detached2.stderr.exp \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 97 | pth_detached2.stdout.exp \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 98 | pth_detached2.vgtest \ |
bart | 3b9f3bf | 2008-03-16 07:48:07 +0000 | [diff] [blame] | 99 | pth_detached_sem.stderr.exp \ |
bart | 178cc16 | 2008-05-10 12:52:02 +0000 | [diff] [blame] | 100 | pth_detached_sem.stdout.exp \ |
bart | 3b9f3bf | 2008-03-16 07:48:07 +0000 | [diff] [blame] | 101 | pth_detached_sem.vgtest \ |
bart | e65b4c6 | 2008-07-04 11:47:06 +0000 | [diff] [blame] | 102 | pth_inconsistent_cond_wait.stderr.exp \ |
| 103 | pth_inconsistent_cond_wait.vgtest \ |
bart | 19c4260 | 2008-07-07 08:04:08 +0000 | [diff] [blame] | 104 | pth_spinlock.stderr.exp \ |
| 105 | pth_spinlock.vgtest \ |
bart | 4c85399 | 2008-07-07 16:53:45 +0000 | [diff] [blame] | 106 | qt4_mutex.stderr.exp \ |
| 107 | qt4_mutex.vgtest \ |
bart | 4f578bf | 2008-07-07 18:35:13 +0000 | [diff] [blame] | 108 | qt4_rwlock.stderr.exp \ |
| 109 | qt4_rwlock.vgtest \ |
bart | ef9603e | 2008-07-07 17:22:41 +0000 | [diff] [blame] | 110 | qt4_semaphore.stderr.exp \ |
| 111 | qt4_semaphore.vgtest \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 112 | recursive_mutex.stderr.exp \ |
bart | e8acf49 | 2008-03-12 17:27:20 +0000 | [diff] [blame] | 113 | recursive_mutex.stdout.exp \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 114 | recursive_mutex.vgtest \ |
| 115 | rwlock_race.stderr.exp \ |
bart | b920b66 | 2008-04-09 17:44:28 +0000 | [diff] [blame] | 116 | rwlock_race.stderr.exp2 \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 117 | rwlock_race.vgtest \ |
bart | 178cc16 | 2008-05-10 12:52:02 +0000 | [diff] [blame] | 118 | rwlock_test.stderr.exp \ |
| 119 | rwlock_test.vgtest \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 120 | sem_as_mutex.stderr.exp \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 121 | sem_as_mutex.vgtest \ |
| 122 | sem_as_mutex2.stderr.exp \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 123 | sem_as_mutex2.vgtest \ |
bart | e8acf49 | 2008-03-12 17:27:20 +0000 | [diff] [blame] | 124 | sigalrm.stderr.exp \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 125 | sigalrm.vgtest \ |
| 126 | tc01_simple_race.stderr.exp \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 127 | tc01_simple_race.vgtest \ |
| 128 | tc02_simple_tls.stderr.exp \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 129 | tc02_simple_tls.vgtest \ |
| 130 | tc03_re_excl.stderr.exp \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 131 | tc03_re_excl.vgtest \ |
| 132 | tc04_free_lock.stderr.exp \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 133 | tc04_free_lock.vgtest \ |
| 134 | tc05_simple_race.stderr.exp \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 135 | tc05_simple_race.vgtest \ |
| 136 | tc06_two_races.stderr.exp \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 137 | tc06_two_races.vgtest \ |
bart | 8360df5 | 2008-03-07 17:34:22 +0000 | [diff] [blame] | 138 | tc07_hbl1.stderr.exp \ |
| 139 | tc07_hbl1.stdout.exp \ |
| 140 | tc07_hbl1.vgtest \ |
| 141 | tc08_hbl2.stderr.exp \ |
bart | 43409c9 | 2008-03-07 19:29:03 +0000 | [diff] [blame] | 142 | tc08_hbl2.stdout.exp \ |
bart | 8360df5 | 2008-03-07 17:34:22 +0000 | [diff] [blame] | 143 | tc08_hbl2.vgtest \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 144 | tc09_bad_unlock.stderr.exp \ |
bart | df96197 | 2008-04-28 16:51:24 +0000 | [diff] [blame] | 145 | tc09_bad_unlock.stderr.exp-glibc2.8 \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 146 | tc09_bad_unlock.vgtest \ |
| 147 | tc10_rec_lock.stderr.exp \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 148 | tc10_rec_lock.vgtest \ |
| 149 | tc11_XCHG.stderr.exp tc11_XCHG.stdout.exp \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 150 | tc11_XCHG.vgtest \ |
| 151 | tc12_rwl_trivial.stderr.exp \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 152 | tc12_rwl_trivial.vgtest \ |
| 153 | tc13_laog1.stderr.exp \ |
| 154 | tc13_laog1.vgtest \ |
| 155 | tc15_laog_lockdel.stderr.exp \ |
| 156 | tc15_laog_lockdel.vgtest \ |
| 157 | tc16_byterace.stderr.exp \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 158 | tc16_byterace.vgtest \ |
| 159 | tc17_sembar.stderr.exp \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 160 | tc17_sembar.vgtest \ |
| 161 | tc18_semabuse.stderr.exp \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 162 | tc18_semabuse.vgtest \ |
| 163 | tc19_shadowmem.stderr.exp \ |
| 164 | tc19_shadowmem.vgtest \ |
bart | 4ff230a | 2008-03-08 15:04:25 +0000 | [diff] [blame] | 165 | tc20_verifywrap.stderr.exp-glibc2.3 \ |
bart | 02aed96 | 2008-07-06 07:48:35 +0000 | [diff] [blame] | 166 | tc20_verifywrap.stderr.exp-glibc2.5 \ |
| 167 | tc20_verifywrap.stderr.exp-glibc2.5-ppc \ |
bart | e65b4c6 | 2008-07-04 11:47:06 +0000 | [diff] [blame] | 168 | tc20_verifywrap.stderr.exp-glibc2.8 \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 169 | tc20_verifywrap.vgtest \ |
bart | 4ff230a | 2008-03-08 15:04:25 +0000 | [diff] [blame] | 170 | tc20_verifywrap2.stderr.exp-glibc2.3 \ |
bart | 3effeb9 | 2008-03-09 19:20:27 +0000 | [diff] [blame] | 171 | tc20_verifywrap2.stderr.exp-glibc2.3-b \ |
bart | 02aed96 | 2008-07-06 07:48:35 +0000 | [diff] [blame] | 172 | tc20_verifywrap2.stderr.exp-glibc2.5 \ |
| 173 | tc20_verifywrap2.stderr.exp-glibc2.5-ppc \ |
bart | e65b4c6 | 2008-07-04 11:47:06 +0000 | [diff] [blame] | 174 | tc20_verifywrap2.stderr.exp-glibc2.8 \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 175 | tc20_verifywrap2.vgtest \ |
| 176 | tc21_pthonce.stderr.exp \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 177 | tc21_pthonce.stdout.exp \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 178 | tc21_pthonce.vgtest \ |
| 179 | tc22_exit_w_lock.stderr.exp-32bit \ |
| 180 | tc22_exit_w_lock.stderr.exp-64bit \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 181 | tc22_exit_w_lock.vgtest \ |
| 182 | tc23_bogus_condwait.stderr.exp \ |
bart | 40605eb | 2008-03-04 18:37:20 +0000 | [diff] [blame] | 183 | tc23_bogus_condwait.vgtest \ |
| 184 | tc24_nonzero_sem.stderr.exp \ |
| 185 | tc24_nonzero_sem.vgtest \ |
bart | e65b4c6 | 2008-07-04 11:47:06 +0000 | [diff] [blame] | 186 | trylock.stderr.exp \ |
| 187 | trylock.vgtest |
sewardj | af44c82 | 2007-11-25 14:01:38 +0000 | [diff] [blame] | 188 | |
bart | 7bf86f3 | 2008-05-11 18:39:18 +0000 | [diff] [blame] | 189 | AM_CFLAGS = $(WERROR) -Wall @FLAG_W_EXTRA@ -Wno-inline -Wno-unused-parameter\ |
sewardj | e95d94f | 2008-09-19 09:02:19 +0000 | [diff] [blame] | 190 | -g $(AM_FLAG_M3264_PRI) -DVGA_$(VG_ARCH_PRI)=1 -DVGO_$(VG_OS)=1 \ |
| 191 | -DVGP_$(VG_ARCH_PRI)_$(VG_OS)=1 |
bart | ad292b5 | 2008-05-01 14:11:45 +0000 | [diff] [blame] | 192 | AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/include \ |
| 193 | -I$(top_builddir)/include -I$(top_srcdir)/VEX/pub |
sewardj | af44c82 | 2007-11-25 14:01:38 +0000 | [diff] [blame] | 194 | AM_CXXFLAGS = $(AM_CFLAGS) |
| 195 | |
bart | cca440b | 2008-07-10 11:58:08 +0000 | [diff] [blame] | 196 | check_PROGRAMS = \ |
| 197 | atomic_var \ |
bart | ad292b5 | 2008-05-01 14:11:45 +0000 | [diff] [blame] | 198 | drd_bitmap_test \ |
bart | 60389da | 2008-02-25 19:58:25 +0000 | [diff] [blame] | 199 | fp_race \ |
| 200 | hg01_all_ok \ |
| 201 | hg02_deadlock \ |
| 202 | hg03_inherit \ |
| 203 | hg04_race \ |
| 204 | hg05_race2 \ |
| 205 | hg06_readshared \ |
bart | 1d4070d | 2008-05-14 12:22:15 +0000 | [diff] [blame] | 206 | hold_lock \ |
bart | 96f892f | 2008-03-09 16:16:06 +0000 | [diff] [blame] | 207 | linuxthreads_det \ |
bart | 60389da | 2008-02-25 19:58:25 +0000 | [diff] [blame] | 208 | matinv \ |
bart | 412efe5 | 2008-04-20 08:29:04 +0000 | [diff] [blame] | 209 | memory_allocation \ |
bart | e64f11d | 2008-10-05 17:37:06 +0000 | [diff] [blame] | 210 | monitor_example \ |
bart | 3d4c332 | 2008-05-10 08:48:14 +0000 | [diff] [blame] | 211 | new_delete \ |
bart | 60389da | 2008-02-25 19:58:25 +0000 | [diff] [blame] | 212 | pth_barrier \ |
bart | d9e39ec | 2008-06-28 15:03:26 +0000 | [diff] [blame] | 213 | pth_barrier_reinit \ |
bart | 60389da | 2008-02-25 19:58:25 +0000 | [diff] [blame] | 214 | pth_broadcast \ |
bart | 032424f | 2008-09-27 12:26:17 +0000 | [diff] [blame] | 215 | pth_cancel_locked \ |
bart | 60389da | 2008-02-25 19:58:25 +0000 | [diff] [blame] | 216 | pth_cond_race \ |
| 217 | pth_create_chain \ |
| 218 | pth_detached \ |
bart | 3b9f3bf | 2008-03-16 07:48:07 +0000 | [diff] [blame] | 219 | pth_detached_sem \ |
bart | 3bb1cec | 2008-06-28 16:01:43 +0000 | [diff] [blame] | 220 | pth_inconsistent_cond_wait \ |
bart | 19c4260 | 2008-07-07 08:04:08 +0000 | [diff] [blame] | 221 | pth_spinlock \ |
bart | 5357fcb | 2008-02-27 15:46:00 +0000 | [diff] [blame] | 222 | recursive_mutex \ |
bart | 5bd9f2d | 2008-03-03 20:31:58 +0000 | [diff] [blame] | 223 | rwlock_race \ |
bart | 178cc16 | 2008-05-10 12:52:02 +0000 | [diff] [blame] | 224 | rwlock_test \ |
bart | 5bd9f2d | 2008-03-03 20:31:58 +0000 | [diff] [blame] | 225 | sem_as_mutex \ |
bart | 60389da | 2008-02-25 19:58:25 +0000 | [diff] [blame] | 226 | sigalrm \ |
| 227 | tc01_simple_race \ |
| 228 | tc02_simple_tls \ |
| 229 | tc03_re_excl \ |
| 230 | tc04_free_lock \ |
bart | 5976fdd | 2008-02-26 16:06:33 +0000 | [diff] [blame] | 231 | tc05_simple_race \ |
| 232 | tc06_two_races \ |
bart | 8360df5 | 2008-03-07 17:34:22 +0000 | [diff] [blame] | 233 | tc07_hbl1 \ |
| 234 | tc08_hbl2 \ |
bart | 60389da | 2008-02-25 19:58:25 +0000 | [diff] [blame] | 235 | tc09_bad_unlock \ |
| 236 | tc10_rec_lock \ |
| 237 | tc11_XCHG \ |
| 238 | tc12_rwl_trivial \ |
| 239 | tc13_laog1 \ |
| 240 | tc15_laog_lockdel \ |
| 241 | tc16_byterace \ |
| 242 | tc17_sembar \ |
| 243 | tc18_semabuse \ |
| 244 | tc19_shadowmem \ |
| 245 | tc20_verifywrap \ |
| 246 | tc21_pthonce \ |
| 247 | tc22_exit_w_lock \ |
| 248 | tc23_bogus_condwait \ |
bart | 848fdf8 | 2008-03-02 19:03:19 +0000 | [diff] [blame] | 249 | tc24_nonzero_sem \ |
| 250 | trylock |
sewardj | af44c82 | 2007-11-25 14:01:38 +0000 | [diff] [blame] | 251 | |
bart | 61e34a1 | 2008-11-10 18:54:46 +0000 | [diff] [blame^] | 252 | if HAVE_BOOST_1_35 |
| 253 | check_PROGRAMS += boost_threads |
bart | da7c098 | 2008-07-28 11:36:11 +0000 | [diff] [blame] | 254 | endif |
bart | 29cc9db | 2008-03-09 15:59:30 +0000 | [diff] [blame] | 255 | |
bart | 4c85399 | 2008-07-07 16:53:45 +0000 | [diff] [blame] | 256 | if HAVE_OPENMP |
bart | bbd3dcf | 2008-10-11 18:04:52 +0000 | [diff] [blame] | 257 | check_PROGRAMS += omp_matinv omp_prime omp_printf |
bart | 4c85399 | 2008-07-07 16:53:45 +0000 | [diff] [blame] | 258 | endif |
sewardj | af44c82 | 2007-11-25 14:01:38 +0000 | [diff] [blame] | 259 | |
bart | 61e34a1 | 2008-11-10 18:54:46 +0000 | [diff] [blame^] | 260 | if HAVE_QTCORE |
| 261 | check_PROGRAMS += qt4_mutex qt4_rwlock qt4_semaphore |
| 262 | endif |
| 263 | |
sewardj | af44c82 | 2007-11-25 14:01:38 +0000 | [diff] [blame] | 264 | |
bart | cca440b | 2008-07-10 11:58:08 +0000 | [diff] [blame] | 265 | atomic_var_SOURCES = atomic_var.c |
| 266 | atomic_var_LDADD = -lpthread |
| 267 | |
bart | 34eff98 | 2008-05-01 13:50:20 +0000 | [diff] [blame] | 268 | drd_bitmap_test_SOURCES = drd_bitmap_test.c |
bart | dc1e91c | 2008-05-11 06:44:30 +0000 | [diff] [blame] | 269 | drd_bitmap_test_CFLAGS = $(AM_CFLAGS) -O2 \ |
bart | 8b4b2ee | 2008-06-11 13:17:56 +0000 | [diff] [blame] | 270 | -DENABLE_DRD_CONSISTENCY_CHECKS\ |
bart | dc1e91c | 2008-05-11 06:44:30 +0000 | [diff] [blame] | 271 | @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@ |
bart | 34eff98 | 2008-05-01 13:50:20 +0000 | [diff] [blame] | 272 | |
bart | 60389da | 2008-02-25 19:58:25 +0000 | [diff] [blame] | 273 | fp_race_SOURCES = fp_race.c |
| 274 | fp_race_LDADD = -lpthread |
sewardj | 347eeba | 2008-01-21 14:19:07 +0000 | [diff] [blame] | 275 | |
bart | 60389da | 2008-02-25 19:58:25 +0000 | [diff] [blame] | 276 | hg01_all_ok_SOURCES = ../../helgrind/tests/hg01_all_ok.c |
| 277 | hg01_all_ok_LDADD = -lpthread |
sewardj | 8564292 | 2008-01-14 11:54:56 +0000 | [diff] [blame] | 278 | |
bart | 60389da | 2008-02-25 19:58:25 +0000 | [diff] [blame] | 279 | hg02_deadlock_SOURCES = ../../helgrind/tests/hg02_deadlock.c |
| 280 | hg02_deadlock_LDADD = -lpthread |
sewardj | af44c82 | 2007-11-25 14:01:38 +0000 | [diff] [blame] | 281 | |
bart | 60389da | 2008-02-25 19:58:25 +0000 | [diff] [blame] | 282 | hg03_inherit_SOURCES = ../../helgrind/tests/hg03_inherit.c |
| 283 | hg03_inherit_LDADD = -lpthread |
sewardj | af44c82 | 2007-11-25 14:01:38 +0000 | [diff] [blame] | 284 | |
bart | 60389da | 2008-02-25 19:58:25 +0000 | [diff] [blame] | 285 | hg04_race_SOURCES = ../../helgrind/tests/hg04_race.c |
| 286 | hg04_race_LDADD = -lpthread |
sewardj | af44c82 | 2007-11-25 14:01:38 +0000 | [diff] [blame] | 287 | |
bart | 60389da | 2008-02-25 19:58:25 +0000 | [diff] [blame] | 288 | hg05_race2_SOURCES = ../../helgrind/tests/hg05_race2.c |
| 289 | hg05_race2_LDADD = -lpthread |
sewardj | 8564292 | 2008-01-14 11:54:56 +0000 | [diff] [blame] | 290 | |
bart | 60389da | 2008-02-25 19:58:25 +0000 | [diff] [blame] | 291 | hg06_readshared_SOURCES = ../../helgrind/tests/hg06_readshared.c |
| 292 | hg06_readshared_LDADD = -lpthread |
sewardj | 8564292 | 2008-01-14 11:54:56 +0000 | [diff] [blame] | 293 | |
bart | 1d4070d | 2008-05-14 12:22:15 +0000 | [diff] [blame] | 294 | hold_lock_SOURCES = hold_lock.c |
| 295 | hold_lock_LDADD = -lpthread |
| 296 | |
bart | 96f892f | 2008-03-09 16:16:06 +0000 | [diff] [blame] | 297 | linuxthreads_det_SOURCES = linuxthreads_det.c |
| 298 | linuxthreads_det_LDADD = -lpthread |
| 299 | |
bart | 60389da | 2008-02-25 19:58:25 +0000 | [diff] [blame] | 300 | matinv_SOURCES = matinv.c |
| 301 | matinv_LDADD = -lpthread -lm |
sewardj | 8564292 | 2008-01-14 11:54:56 +0000 | [diff] [blame] | 302 | |
bart | 412efe5 | 2008-04-20 08:29:04 +0000 | [diff] [blame] | 303 | memory_allocation_SOURCES = memory_allocation.c |
bart | 3d4c332 | 2008-05-10 08:48:14 +0000 | [diff] [blame] | 304 | |
bart | e64f11d | 2008-10-05 17:37:06 +0000 | [diff] [blame] | 305 | monitor_example_SOURCES = monitor_example.cpp |
| 306 | monitor_example_LDADD = -lpthread |
| 307 | |
bart | 3d4c332 | 2008-05-10 08:48:14 +0000 | [diff] [blame] | 308 | new_delete_SOURCES = new_delete.cpp |
bart | 412efe5 | 2008-04-20 08:29:04 +0000 | [diff] [blame] | 309 | |
bart | 60389da | 2008-02-25 19:58:25 +0000 | [diff] [blame] | 310 | pth_barrier_SOURCES = pth_barrier.c |
| 311 | pth_barrier_LDADD = -lpthread |
| 312 | |
bart | d9e39ec | 2008-06-28 15:03:26 +0000 | [diff] [blame] | 313 | pth_barrier_reinit_SOURCES = pth_barrier_reinit.c |
| 314 | pth_barrier_reinit_LDADD = -lpthread |
| 315 | |
bart | 60389da | 2008-02-25 19:58:25 +0000 | [diff] [blame] | 316 | pth_broadcast_SOURCES = pth_broadcast.c |
| 317 | pth_broadcast_LDADD = -lpthread |
| 318 | |
bart | 032424f | 2008-09-27 12:26:17 +0000 | [diff] [blame] | 319 | pth_cancel_locked_SOURCES = pth_cancel_locked.c |
| 320 | pth_cancel_locked_LDADD = -lpthread |
| 321 | |
bart | 60389da | 2008-02-25 19:58:25 +0000 | [diff] [blame] | 322 | pth_cond_race_SOURCES = pth_cond_race.c |
| 323 | pth_cond_race_LDADD = -lpthread |
| 324 | |
| 325 | pth_create_chain_SOURCES = pth_create_chain.c |
| 326 | pth_create_chain_LDADD = -lpthread |
| 327 | |
| 328 | pth_detached_SOURCES = pth_detached.c |
| 329 | pth_detached_LDADD = -lpthread |
| 330 | |
bart | 3b9f3bf | 2008-03-16 07:48:07 +0000 | [diff] [blame] | 331 | pth_detached_sem_SOURCES = pth_detached_sem.c |
| 332 | pth_detached_sem_LDADD = -lpthread |
| 333 | |
bart | 3bb1cec | 2008-06-28 16:01:43 +0000 | [diff] [blame] | 334 | pth_inconsistent_cond_wait_SOURCES = pth_inconsistent_cond_wait.c |
| 335 | pth_inconsistent_cond_wait_LDADD = -lpthread |
| 336 | |
bart | 19c4260 | 2008-07-07 08:04:08 +0000 | [diff] [blame] | 337 | pth_spinlock_SOURCES = pth_spinlock.c |
| 338 | pth_spinlock_LDADD = -lpthread |
| 339 | |
bart | 5357fcb | 2008-02-27 15:46:00 +0000 | [diff] [blame] | 340 | recursive_mutex_SOURCES = recursive_mutex.c |
| 341 | recursive_mutex_LDADD = -lpthread |
| 342 | |
bart | 5bd9f2d | 2008-03-03 20:31:58 +0000 | [diff] [blame] | 343 | rwlock_race_SOURCES = rwlock_race.c |
| 344 | rwlock_race_LDADD = -lpthread |
| 345 | |
bart | 178cc16 | 2008-05-10 12:52:02 +0000 | [diff] [blame] | 346 | rwlock_test_SOURCES = rwlock_test.c |
| 347 | rwlock_test_LDADD = -lpthread |
| 348 | |
bart | 60389da | 2008-02-25 19:58:25 +0000 | [diff] [blame] | 349 | sem_as_mutex_SOURCES = sem_as_mutex.c |
| 350 | sem_as_mutex_LDADD = -lpthread |
| 351 | |
| 352 | sigalrm_SOURCES = sigalrm.c |
| 353 | sigalrm_LDADD = -lpthread |
| 354 | |
| 355 | tc01_simple_race_SOURCES = ../../helgrind/tests/tc01_simple_race.c |
| 356 | tc01_simple_race_LDADD = -lpthread |
| 357 | |
| 358 | tc02_simple_tls_SOURCES = ../../helgrind/tests/tc02_simple_tls.c |
| 359 | tc02_simple_tls_LDADD = -lpthread |
| 360 | |
| 361 | tc03_re_excl_SOURCES = ../../helgrind/tests/tc03_re_excl.c |
| 362 | tc03_re_excl_LDADD = -lpthread |
| 363 | |
| 364 | tc04_free_lock_SOURCES = ../../helgrind/tests/tc04_free_lock.c |
| 365 | tc04_free_lock_LDADD = -lpthread |
| 366 | |
bart | 5976fdd | 2008-02-26 16:06:33 +0000 | [diff] [blame] | 367 | tc05_simple_race_SOURCES = ../../helgrind/tests/tc05_simple_race.c |
| 368 | tc05_simple_race_LDADD = -lpthread |
| 369 | |
| 370 | tc06_two_races_SOURCES = ../../helgrind/tests/tc06_two_races.c |
| 371 | tc06_two_races_LDADD = -lpthread |
| 372 | |
bart | 8360df5 | 2008-03-07 17:34:22 +0000 | [diff] [blame] | 373 | tc07_hbl1_SOURCES = ../../helgrind/tests/tc07_hbl1.c |
| 374 | tc07_hbl1_LDADD = -lpthread |
bart | 60389da | 2008-02-25 19:58:25 +0000 | [diff] [blame] | 375 | |
bart | 8360df5 | 2008-03-07 17:34:22 +0000 | [diff] [blame] | 376 | tc08_hbl2_SOURCES = ../../helgrind/tests/tc08_hbl2.c |
| 377 | tc08_hbl2_LDADD = -lpthread |
bart | 5976fdd | 2008-02-26 16:06:33 +0000 | [diff] [blame] | 378 | |
bart | 60389da | 2008-02-25 19:58:25 +0000 | [diff] [blame] | 379 | tc09_bad_unlock_SOURCES = ../../helgrind/tests/tc09_bad_unlock.c |
| 380 | tc09_bad_unlock_LDADD = -lpthread |
| 381 | |
| 382 | tc10_rec_lock_SOURCES = ../../helgrind/tests/tc10_rec_lock.c |
| 383 | tc10_rec_lock_LDADD = -lpthread |
| 384 | |
| 385 | tc11_XCHG_SOURCES = ../../helgrind/tests/tc11_XCHG.c |
| 386 | tc11_XCHG_LDADD = -lpthread |
| 387 | |
| 388 | tc12_rwl_trivial_SOURCES = ../../helgrind/tests/tc12_rwl_trivial.c |
| 389 | tc12_rwl_trivial_LDADD = -lpthread |
| 390 | |
| 391 | tc13_laog1_SOURCES = ../../helgrind/tests/tc13_laog1.c |
| 392 | tc13_laog1_LDADD = -lpthread |
| 393 | |
| 394 | tc15_laog_lockdel_SOURCES = ../../helgrind/tests/tc15_laog_lockdel.c |
| 395 | tc15_laog_lockdel_LDADD = -lpthread |
| 396 | |
| 397 | tc16_byterace_SOURCES = ../../helgrind/tests/tc16_byterace.c |
| 398 | tc16_byterace_LDADD = -lpthread |
| 399 | |
| 400 | tc17_sembar_SOURCES = ../../helgrind/tests/tc17_sembar.c |
| 401 | tc17_sembar_LDADD = -lpthread |
| 402 | |
| 403 | tc18_semabuse_SOURCES = ../../helgrind/tests/tc18_semabuse.c |
| 404 | tc18_semabuse_LDADD = -lpthread |
| 405 | |
| 406 | tc19_shadowmem_SOURCES = ../../helgrind/tests/tc19_shadowmem.c |
| 407 | tc19_shadowmem_LDADD = -lpthread |
| 408 | |
| 409 | tc20_verifywrap_SOURCES = ../../helgrind/tests/tc20_verifywrap.c |
| 410 | tc20_verifywrap_LDADD = -lpthread |
| 411 | |
| 412 | tc21_pthonce_SOURCES = ../../helgrind/tests/tc21_pthonce.c |
| 413 | tc21_pthonce_LDADD = -lpthread |
| 414 | |
| 415 | tc22_exit_w_lock_SOURCES = ../../helgrind/tests/tc22_exit_w_lock.c |
| 416 | tc22_exit_w_lock_LDADD = -lpthread |
| 417 | |
| 418 | tc23_bogus_condwait_SOURCES = ../../helgrind/tests/tc23_bogus_condwait.c |
| 419 | tc23_bogus_condwait_LDADD = -lpthread |
| 420 | |
| 421 | tc24_nonzero_sem_SOURCES = ../../helgrind/tests/tc24_nonzero_sem.c |
| 422 | tc24_nonzero_sem_LDADD = -lpthread |
bart | 848fdf8 | 2008-03-02 19:03:19 +0000 | [diff] [blame] | 423 | |
| 424 | trylock_SOURCES = trylock.c |
| 425 | trylock_LDADD = -lpthread -lrt |
bart | 0aeb186 | 2008-03-10 19:26:42 +0000 | [diff] [blame] | 426 | |
bart | 61e34a1 | 2008-11-10 18:54:46 +0000 | [diff] [blame^] | 427 | if HAVE_BOOST_1_35 |
| 428 | boost_threads_SOURCES = boost_threads.cpp |
| 429 | boost_threads_CXXFLAGS = $(AM_CXXFLAGS) $(BOOST_CFLAGS) |
| 430 | boost_threads_LDADD = $(BOOST_LIBS) |
| 431 | endif |
| 432 | |
bart | 1f52b82 | 2008-03-12 17:11:48 +0000 | [diff] [blame] | 433 | if HAVE_OPENMP |
bart | 805043e | 2008-03-12 17:49:57 +0000 | [diff] [blame] | 434 | omp_matinv_SOURCES = omp_matinv.c |
bart | f3b7285 | 2008-06-26 07:31:15 +0000 | [diff] [blame] | 435 | omp_matinv_CFLAGS = $(AM_CFLAGS) -fopenmp |
bart | 805043e | 2008-03-12 17:49:57 +0000 | [diff] [blame] | 436 | omp_matinv_LDFLAGS = -fopenmp |
| 437 | omp_matinv_LDADD = -lm |
bart | 0aeb186 | 2008-03-10 19:26:42 +0000 | [diff] [blame] | 438 | |
| 439 | omp_prime_SOURCES = omp_prime.c |
bart | f3b7285 | 2008-06-26 07:31:15 +0000 | [diff] [blame] | 440 | omp_prime_CFLAGS = $(AM_CFLAGS) -fopenmp |
bart | baa3c2d | 2008-03-12 16:50:09 +0000 | [diff] [blame] | 441 | omp_prime_LDFLAGS = -fopenmp |
bart | 0aeb186 | 2008-03-10 19:26:42 +0000 | [diff] [blame] | 442 | omp_prime_LDADD = -lm |
bart | bbd3dcf | 2008-10-11 18:04:52 +0000 | [diff] [blame] | 443 | |
| 444 | omp_printf_SOURCES = omp_printf.c |
| 445 | omp_printf_CFLAGS = $(AM_CFLAGS) -fopenmp |
| 446 | omp_printf_LDFLAGS = -fopenmp |
| 447 | omp_printf_LDADD = -lm |
bart | 0aeb186 | 2008-03-10 19:26:42 +0000 | [diff] [blame] | 448 | endif |
bart | 61e34a1 | 2008-11-10 18:54:46 +0000 | [diff] [blame^] | 449 | |
| 450 | if HAVE_QTCORE |
| 451 | qt4_mutex_SOURCES = qt4_mutex.cpp |
| 452 | qt4_mutex_CXXFLAGS = $(AM_CXXFLAGS) $(QTCORE_CFLAGS) |
| 453 | qt4_mutex_LDADD = $(QTCORE_LIBS) |
| 454 | |
| 455 | qt4_rwlock_SOURCES = qt4_rwlock.cpp |
| 456 | qt4_rwlock_CXXFLAGS = $(AM_CXXFLAGS) $(QTCORE_CFLAGS) |
| 457 | qt4_rwlock_LDADD = $(QTCORE_LIBS) |
| 458 | |
| 459 | qt4_semaphore_SOURCES = qt4_semaphore.cpp |
| 460 | qt4_semaphore_CXXFLAGS = $(AM_CXXFLAGS) $(QTCORE_CFLAGS) |
| 461 | qt4_semaphore_LDADD = $(QTCORE_LIBS) |
| 462 | endif |