blob: 168daebb285ae4495edc91aa859e06129d141e25 [file] [log] [blame]
sewardjaf44c822007-11-25 14:01:38 +00001# For AM_FLAG_M3264_PRI
2include $(top_srcdir)/Makefile.flags.am
3
4SUBDIRS = .
5
6DIST_SUBDIRS = .
7
bart0cc09c92008-02-26 12:52:00 +00008noinst_SCRIPTS = \
9 filter_cmdline0 \
10 filter_error_summary \
11 filter_fdleak \
12 filter_linenos \
13 filter_none_discards \
bart3b9f3bf2008-03-16 07:48:07 +000014 filter_stderr \
bart80e35802008-03-19 17:02:26 +000015 run_openmp_test \
16 supported_libpthread
sewardjaf44c822007-11-25 14:01:38 +000017
bart40605eb2008-03-04 18:37:20 +000018EXTRA_DIST = \
19 $(noinst_SCRIPTS) \
bart1d07a382008-07-29 15:27:48 +000020 atomic_var.stderr.exp-with-atomic-builtins \
21 atomic_var.stderr.exp-without-atomic-builtins \
bartcca440b2008-07-10 11:58:08 +000022 atomic_var.vgtest \
bart61e34a12008-11-10 18:54:46 +000023 boost_threads.stderr.exp \
24 boost_threads.vgtest \
bart34eff982008-05-01 13:50:20 +000025 drd_bitmap_test.stderr.exp \
barte65b4c62008-07-04 11:47:06 +000026 drd_bitmap_test.stdout.exp \
27 drd_bitmap_test.vgtest \
bart40605eb2008-03-04 18:37:20 +000028 fp_race.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000029 fp_race.vgtest \
30 fp_race2.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000031 fp_race2.vgtest \
32 hg01_all_ok.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000033 hg01_all_ok.vgtest \
34 hg02_deadlock.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000035 hg02_deadlock.vgtest \
36 hg03_inherit.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000037 hg03_inherit.vgtest \
38 hg04_race.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000039 hg04_race.vgtest \
40 hg05_race2.stderr.exp \
barte65b4c62008-07-04 11:47:06 +000041 hg05_race2.stderr.exp-powerpc \
bart40605eb2008-03-04 18:37:20 +000042 hg05_race2.vgtest \
43 hg06_readshared.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000044 hg06_readshared.vgtest \
bart1d4070d2008-05-14 12:22:15 +000045 hold_lock_1.stderr.exp \
46 hold_lock_1.vgtest \
47 hold_lock_2.stderr.exp \
48 hold_lock_2.vgtest \
bart96f892f2008-03-09 16:16:06 +000049 linuxthreads_det.stderr.exp \
50 linuxthreads_det.stderr.exp-linuxthreads \
51 linuxthreads_det.stdout.exp \
52 linuxthreads_det.stdout.exp-linuxthreads \
barte65b4c62008-07-04 11:47:06 +000053 linuxthreads_det.vgtest \
bart40605eb2008-03-04 18:37:20 +000054 matinv.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000055 matinv.stdout.exp \
bart40605eb2008-03-04 18:37:20 +000056 matinv.vgtest \
bart412efe52008-04-20 08:29:04 +000057 memory_allocation.stderr.exp \
58 memory_allocation.vgtest \
barte64f11d2008-10-05 17:37:06 +000059 monitor_example.stderr.exp \
60 monitor_example.vgtest \
bart3d4c3322008-05-10 08:48:14 +000061 new_delete.stderr.exp \
62 new_delete.vgtest \
bart805043e2008-03-12 17:49:57 +000063 omp_matinv.stderr.exp \
64 omp_matinv.stdout.exp \
65 omp_matinv.vgtest \
barte8acf492008-03-12 17:27:20 +000066 omp_matinv_racy.stderr.exp \
67 omp_matinv_racy.stdout.exp \
68 omp_matinv_racy.vgtest \
bart805043e2008-03-12 17:49:57 +000069 omp_prime_racy.stderr.exp \
bart805043e2008-03-12 17:49:57 +000070 omp_prime_racy.vgtest \
bartbbd3dcf2008-10-11 18:04:52 +000071 omp_printf.stderr.exp \
72 omp_printf.vgtest \
bart40605eb2008-03-04 18:37:20 +000073 pth_barrier.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000074 pth_barrier.vgtest \
75 pth_barrier2.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000076 pth_barrier2.vgtest \
77 pth_barrier3.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000078 pth_barrier3.vgtest \
bartd9e39ec2008-06-28 15:03:26 +000079 pth_barrier_reinit.stderr.exp \
80 pth_barrier_reinit.vgtest \
bart40605eb2008-03-04 18:37:20 +000081 pth_broadcast.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000082 pth_broadcast.vgtest \
bart032424f2008-09-27 12:26:17 +000083 pth_cancel_locked.stderr.exp \
84 pth_cancel_locked.vgtest \
bart40605eb2008-03-04 18:37:20 +000085 pth_cond_race.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000086 pth_cond_race.vgtest \
87 pth_cond_race2.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000088 pth_cond_race2.vgtest \
bart46b5fce2008-06-28 13:01:30 +000089 pth_cond_race3.stderr.exp \
90 pth_cond_race3.vgtest \
bart40605eb2008-03-04 18:37:20 +000091 pth_create_chain.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000092 pth_create_chain.vgtest \
93 pth_detached.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000094 pth_detached.stdout.exp \
bart40605eb2008-03-04 18:37:20 +000095 pth_detached.vgtest \
96 pth_detached2.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000097 pth_detached2.stdout.exp \
bart40605eb2008-03-04 18:37:20 +000098 pth_detached2.vgtest \
bart3b9f3bf2008-03-16 07:48:07 +000099 pth_detached_sem.stderr.exp \
bart178cc162008-05-10 12:52:02 +0000100 pth_detached_sem.stdout.exp \
bart3b9f3bf2008-03-16 07:48:07 +0000101 pth_detached_sem.vgtest \
barte65b4c62008-07-04 11:47:06 +0000102 pth_inconsistent_cond_wait.stderr.exp \
103 pth_inconsistent_cond_wait.vgtest \
bart19c42602008-07-07 08:04:08 +0000104 pth_spinlock.stderr.exp \
105 pth_spinlock.vgtest \
bart4c853992008-07-07 16:53:45 +0000106 qt4_mutex.stderr.exp \
107 qt4_mutex.vgtest \
bart4f578bf2008-07-07 18:35:13 +0000108 qt4_rwlock.stderr.exp \
109 qt4_rwlock.vgtest \
bartef9603e2008-07-07 17:22:41 +0000110 qt4_semaphore.stderr.exp \
111 qt4_semaphore.vgtest \
bart40605eb2008-03-04 18:37:20 +0000112 recursive_mutex.stderr.exp \
barte8acf492008-03-12 17:27:20 +0000113 recursive_mutex.stdout.exp \
bart40605eb2008-03-04 18:37:20 +0000114 recursive_mutex.vgtest \
115 rwlock_race.stderr.exp \
bartb920b662008-04-09 17:44:28 +0000116 rwlock_race.stderr.exp2 \
bart40605eb2008-03-04 18:37:20 +0000117 rwlock_race.vgtest \
bart178cc162008-05-10 12:52:02 +0000118 rwlock_test.stderr.exp \
119 rwlock_test.vgtest \
bart40605eb2008-03-04 18:37:20 +0000120 sem_as_mutex.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000121 sem_as_mutex.vgtest \
122 sem_as_mutex2.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000123 sem_as_mutex2.vgtest \
barte8acf492008-03-12 17:27:20 +0000124 sigalrm.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000125 sigalrm.vgtest \
126 tc01_simple_race.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000127 tc01_simple_race.vgtest \
128 tc02_simple_tls.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000129 tc02_simple_tls.vgtest \
130 tc03_re_excl.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000131 tc03_re_excl.vgtest \
132 tc04_free_lock.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000133 tc04_free_lock.vgtest \
134 tc05_simple_race.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000135 tc05_simple_race.vgtest \
136 tc06_two_races.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000137 tc06_two_races.vgtest \
bart8360df52008-03-07 17:34:22 +0000138 tc07_hbl1.stderr.exp \
139 tc07_hbl1.stdout.exp \
140 tc07_hbl1.vgtest \
141 tc08_hbl2.stderr.exp \
bart43409c92008-03-07 19:29:03 +0000142 tc08_hbl2.stdout.exp \
bart8360df52008-03-07 17:34:22 +0000143 tc08_hbl2.vgtest \
bart40605eb2008-03-04 18:37:20 +0000144 tc09_bad_unlock.stderr.exp \
bartdf961972008-04-28 16:51:24 +0000145 tc09_bad_unlock.stderr.exp-glibc2.8 \
bart40605eb2008-03-04 18:37:20 +0000146 tc09_bad_unlock.vgtest \
147 tc10_rec_lock.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000148 tc10_rec_lock.vgtest \
149 tc11_XCHG.stderr.exp tc11_XCHG.stdout.exp \
bart40605eb2008-03-04 18:37:20 +0000150 tc11_XCHG.vgtest \
151 tc12_rwl_trivial.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000152 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 \
bart40605eb2008-03-04 18:37:20 +0000158 tc16_byterace.vgtest \
159 tc17_sembar.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000160 tc17_sembar.vgtest \
161 tc18_semabuse.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000162 tc18_semabuse.vgtest \
163 tc19_shadowmem.stderr.exp \
164 tc19_shadowmem.vgtest \
bart4ff230a2008-03-08 15:04:25 +0000165 tc20_verifywrap.stderr.exp-glibc2.3 \
bart02aed962008-07-06 07:48:35 +0000166 tc20_verifywrap.stderr.exp-glibc2.5 \
167 tc20_verifywrap.stderr.exp-glibc2.5-ppc \
barte65b4c62008-07-04 11:47:06 +0000168 tc20_verifywrap.stderr.exp-glibc2.8 \
bart40605eb2008-03-04 18:37:20 +0000169 tc20_verifywrap.vgtest \
bart4ff230a2008-03-08 15:04:25 +0000170 tc20_verifywrap2.stderr.exp-glibc2.3 \
bart3effeb92008-03-09 19:20:27 +0000171 tc20_verifywrap2.stderr.exp-glibc2.3-b \
bart02aed962008-07-06 07:48:35 +0000172 tc20_verifywrap2.stderr.exp-glibc2.5 \
173 tc20_verifywrap2.stderr.exp-glibc2.5-ppc \
barte65b4c62008-07-04 11:47:06 +0000174 tc20_verifywrap2.stderr.exp-glibc2.8 \
bart40605eb2008-03-04 18:37:20 +0000175 tc20_verifywrap2.vgtest \
176 tc21_pthonce.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000177 tc21_pthonce.stdout.exp \
bart40605eb2008-03-04 18:37:20 +0000178 tc21_pthonce.vgtest \
179 tc22_exit_w_lock.stderr.exp-32bit \
180 tc22_exit_w_lock.stderr.exp-64bit \
bart40605eb2008-03-04 18:37:20 +0000181 tc22_exit_w_lock.vgtest \
182 tc23_bogus_condwait.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000183 tc23_bogus_condwait.vgtest \
184 tc24_nonzero_sem.stderr.exp \
185 tc24_nonzero_sem.vgtest \
barte65b4c62008-07-04 11:47:06 +0000186 trylock.stderr.exp \
187 trylock.vgtest
sewardjaf44c822007-11-25 14:01:38 +0000188
bart7bf86f32008-05-11 18:39:18 +0000189AM_CFLAGS = $(WERROR) -Wall @FLAG_W_EXTRA@ -Wno-inline -Wno-unused-parameter\
sewardje95d94f2008-09-19 09:02:19 +0000190 -g $(AM_FLAG_M3264_PRI) -DVGA_$(VG_ARCH_PRI)=1 -DVGO_$(VG_OS)=1 \
191 -DVGP_$(VG_ARCH_PRI)_$(VG_OS)=1
bartad292b52008-05-01 14:11:45 +0000192AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/include \
193 -I$(top_builddir)/include -I$(top_srcdir)/VEX/pub
sewardjaf44c822007-11-25 14:01:38 +0000194AM_CXXFLAGS = $(AM_CFLAGS)
195
bartcca440b2008-07-10 11:58:08 +0000196check_PROGRAMS = \
197 atomic_var \
bartad292b52008-05-01 14:11:45 +0000198 drd_bitmap_test \
bart60389da2008-02-25 19:58:25 +0000199 fp_race \
200 hg01_all_ok \
201 hg02_deadlock \
202 hg03_inherit \
203 hg04_race \
204 hg05_race2 \
205 hg06_readshared \
bart1d4070d2008-05-14 12:22:15 +0000206 hold_lock \
bart96f892f2008-03-09 16:16:06 +0000207 linuxthreads_det \
bart60389da2008-02-25 19:58:25 +0000208 matinv \
bart412efe52008-04-20 08:29:04 +0000209 memory_allocation \
barte64f11d2008-10-05 17:37:06 +0000210 monitor_example \
bart3d4c3322008-05-10 08:48:14 +0000211 new_delete \
bart60389da2008-02-25 19:58:25 +0000212 pth_barrier \
bartd9e39ec2008-06-28 15:03:26 +0000213 pth_barrier_reinit \
bart60389da2008-02-25 19:58:25 +0000214 pth_broadcast \
bart032424f2008-09-27 12:26:17 +0000215 pth_cancel_locked \
bart60389da2008-02-25 19:58:25 +0000216 pth_cond_race \
217 pth_create_chain \
218 pth_detached \
bart3b9f3bf2008-03-16 07:48:07 +0000219 pth_detached_sem \
bart3bb1cec2008-06-28 16:01:43 +0000220 pth_inconsistent_cond_wait \
bart19c42602008-07-07 08:04:08 +0000221 pth_spinlock \
bart5357fcb2008-02-27 15:46:00 +0000222 recursive_mutex \
bart5bd9f2d2008-03-03 20:31:58 +0000223 rwlock_race \
bart178cc162008-05-10 12:52:02 +0000224 rwlock_test \
bart5bd9f2d2008-03-03 20:31:58 +0000225 sem_as_mutex \
bart60389da2008-02-25 19:58:25 +0000226 sigalrm \
227 tc01_simple_race \
228 tc02_simple_tls \
229 tc03_re_excl \
230 tc04_free_lock \
bart5976fdd2008-02-26 16:06:33 +0000231 tc05_simple_race \
232 tc06_two_races \
bart8360df52008-03-07 17:34:22 +0000233 tc07_hbl1 \
234 tc08_hbl2 \
bart60389da2008-02-25 19:58:25 +0000235 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 \
bart848fdf82008-03-02 19:03:19 +0000249 tc24_nonzero_sem \
250 trylock
sewardjaf44c822007-11-25 14:01:38 +0000251
bart61e34a12008-11-10 18:54:46 +0000252if HAVE_BOOST_1_35
253check_PROGRAMS += boost_threads
bartda7c0982008-07-28 11:36:11 +0000254endif
bart29cc9db2008-03-09 15:59:30 +0000255
bart4c853992008-07-07 16:53:45 +0000256if HAVE_OPENMP
bartbbd3dcf2008-10-11 18:04:52 +0000257check_PROGRAMS += omp_matinv omp_prime omp_printf
bart4c853992008-07-07 16:53:45 +0000258endif
sewardjaf44c822007-11-25 14:01:38 +0000259
bart61e34a12008-11-10 18:54:46 +0000260if HAVE_QTCORE
261check_PROGRAMS += qt4_mutex qt4_rwlock qt4_semaphore
262endif
263
sewardjaf44c822007-11-25 14:01:38 +0000264
bartcca440b2008-07-10 11:58:08 +0000265atomic_var_SOURCES = atomic_var.c
266atomic_var_LDADD = -lpthread
267
bart34eff982008-05-01 13:50:20 +0000268drd_bitmap_test_SOURCES = drd_bitmap_test.c
bartdc1e91c2008-05-11 06:44:30 +0000269drd_bitmap_test_CFLAGS = $(AM_CFLAGS) -O2 \
bart8b4b2ee2008-06-11 13:17:56 +0000270 -DENABLE_DRD_CONSISTENCY_CHECKS\
bartdc1e91c2008-05-11 06:44:30 +0000271 @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@
bart34eff982008-05-01 13:50:20 +0000272
bart60389da2008-02-25 19:58:25 +0000273fp_race_SOURCES = fp_race.c
274fp_race_LDADD = -lpthread
sewardj347eeba2008-01-21 14:19:07 +0000275
bart60389da2008-02-25 19:58:25 +0000276hg01_all_ok_SOURCES = ../../helgrind/tests/hg01_all_ok.c
277hg01_all_ok_LDADD = -lpthread
sewardj85642922008-01-14 11:54:56 +0000278
bart60389da2008-02-25 19:58:25 +0000279hg02_deadlock_SOURCES = ../../helgrind/tests/hg02_deadlock.c
280hg02_deadlock_LDADD = -lpthread
sewardjaf44c822007-11-25 14:01:38 +0000281
bart60389da2008-02-25 19:58:25 +0000282hg03_inherit_SOURCES = ../../helgrind/tests/hg03_inherit.c
283hg03_inherit_LDADD = -lpthread
sewardjaf44c822007-11-25 14:01:38 +0000284
bart60389da2008-02-25 19:58:25 +0000285hg04_race_SOURCES = ../../helgrind/tests/hg04_race.c
286hg04_race_LDADD = -lpthread
sewardjaf44c822007-11-25 14:01:38 +0000287
bart60389da2008-02-25 19:58:25 +0000288hg05_race2_SOURCES = ../../helgrind/tests/hg05_race2.c
289hg05_race2_LDADD = -lpthread
sewardj85642922008-01-14 11:54:56 +0000290
bart60389da2008-02-25 19:58:25 +0000291hg06_readshared_SOURCES = ../../helgrind/tests/hg06_readshared.c
292hg06_readshared_LDADD = -lpthread
sewardj85642922008-01-14 11:54:56 +0000293
bart1d4070d2008-05-14 12:22:15 +0000294hold_lock_SOURCES = hold_lock.c
295hold_lock_LDADD = -lpthread
296
bart96f892f2008-03-09 16:16:06 +0000297linuxthreads_det_SOURCES = linuxthreads_det.c
298linuxthreads_det_LDADD = -lpthread
299
bart60389da2008-02-25 19:58:25 +0000300matinv_SOURCES = matinv.c
301matinv_LDADD = -lpthread -lm
sewardj85642922008-01-14 11:54:56 +0000302
bart412efe52008-04-20 08:29:04 +0000303memory_allocation_SOURCES = memory_allocation.c
bart3d4c3322008-05-10 08:48:14 +0000304
barte64f11d2008-10-05 17:37:06 +0000305monitor_example_SOURCES = monitor_example.cpp
306monitor_example_LDADD = -lpthread
307
bart3d4c3322008-05-10 08:48:14 +0000308new_delete_SOURCES = new_delete.cpp
bart412efe52008-04-20 08:29:04 +0000309
bart60389da2008-02-25 19:58:25 +0000310pth_barrier_SOURCES = pth_barrier.c
311pth_barrier_LDADD = -lpthread
312
bartd9e39ec2008-06-28 15:03:26 +0000313pth_barrier_reinit_SOURCES = pth_barrier_reinit.c
314pth_barrier_reinit_LDADD = -lpthread
315
bart60389da2008-02-25 19:58:25 +0000316pth_broadcast_SOURCES = pth_broadcast.c
317pth_broadcast_LDADD = -lpthread
318
bart032424f2008-09-27 12:26:17 +0000319pth_cancel_locked_SOURCES = pth_cancel_locked.c
320pth_cancel_locked_LDADD = -lpthread
321
bart60389da2008-02-25 19:58:25 +0000322pth_cond_race_SOURCES = pth_cond_race.c
323pth_cond_race_LDADD = -lpthread
324
325pth_create_chain_SOURCES = pth_create_chain.c
326pth_create_chain_LDADD = -lpthread
327
328pth_detached_SOURCES = pth_detached.c
329pth_detached_LDADD = -lpthread
330
bart3b9f3bf2008-03-16 07:48:07 +0000331pth_detached_sem_SOURCES = pth_detached_sem.c
332pth_detached_sem_LDADD = -lpthread
333
bart3bb1cec2008-06-28 16:01:43 +0000334pth_inconsistent_cond_wait_SOURCES = pth_inconsistent_cond_wait.c
335pth_inconsistent_cond_wait_LDADD = -lpthread
336
bart19c42602008-07-07 08:04:08 +0000337pth_spinlock_SOURCES = pth_spinlock.c
338pth_spinlock_LDADD = -lpthread
339
bart5357fcb2008-02-27 15:46:00 +0000340recursive_mutex_SOURCES = recursive_mutex.c
341recursive_mutex_LDADD = -lpthread
342
bart5bd9f2d2008-03-03 20:31:58 +0000343rwlock_race_SOURCES = rwlock_race.c
344rwlock_race_LDADD = -lpthread
345
bart178cc162008-05-10 12:52:02 +0000346rwlock_test_SOURCES = rwlock_test.c
347rwlock_test_LDADD = -lpthread
348
bart60389da2008-02-25 19:58:25 +0000349sem_as_mutex_SOURCES = sem_as_mutex.c
350sem_as_mutex_LDADD = -lpthread
351
352sigalrm_SOURCES = sigalrm.c
353sigalrm_LDADD = -lpthread
354
355tc01_simple_race_SOURCES = ../../helgrind/tests/tc01_simple_race.c
356tc01_simple_race_LDADD = -lpthread
357
358tc02_simple_tls_SOURCES = ../../helgrind/tests/tc02_simple_tls.c
359tc02_simple_tls_LDADD = -lpthread
360
361tc03_re_excl_SOURCES = ../../helgrind/tests/tc03_re_excl.c
362tc03_re_excl_LDADD = -lpthread
363
364tc04_free_lock_SOURCES = ../../helgrind/tests/tc04_free_lock.c
365tc04_free_lock_LDADD = -lpthread
366
bart5976fdd2008-02-26 16:06:33 +0000367tc05_simple_race_SOURCES = ../../helgrind/tests/tc05_simple_race.c
368tc05_simple_race_LDADD = -lpthread
369
370tc06_two_races_SOURCES = ../../helgrind/tests/tc06_two_races.c
371tc06_two_races_LDADD = -lpthread
372
bart8360df52008-03-07 17:34:22 +0000373tc07_hbl1_SOURCES = ../../helgrind/tests/tc07_hbl1.c
374tc07_hbl1_LDADD = -lpthread
bart60389da2008-02-25 19:58:25 +0000375
bart8360df52008-03-07 17:34:22 +0000376tc08_hbl2_SOURCES = ../../helgrind/tests/tc08_hbl2.c
377tc08_hbl2_LDADD = -lpthread
bart5976fdd2008-02-26 16:06:33 +0000378
bart60389da2008-02-25 19:58:25 +0000379tc09_bad_unlock_SOURCES = ../../helgrind/tests/tc09_bad_unlock.c
380tc09_bad_unlock_LDADD = -lpthread
381
382tc10_rec_lock_SOURCES = ../../helgrind/tests/tc10_rec_lock.c
383tc10_rec_lock_LDADD = -lpthread
384
385tc11_XCHG_SOURCES = ../../helgrind/tests/tc11_XCHG.c
386tc11_XCHG_LDADD = -lpthread
387
388tc12_rwl_trivial_SOURCES = ../../helgrind/tests/tc12_rwl_trivial.c
389tc12_rwl_trivial_LDADD = -lpthread
390
391tc13_laog1_SOURCES = ../../helgrind/tests/tc13_laog1.c
392tc13_laog1_LDADD = -lpthread
393
394tc15_laog_lockdel_SOURCES = ../../helgrind/tests/tc15_laog_lockdel.c
395tc15_laog_lockdel_LDADD = -lpthread
396
397tc16_byterace_SOURCES = ../../helgrind/tests/tc16_byterace.c
398tc16_byterace_LDADD = -lpthread
399
400tc17_sembar_SOURCES = ../../helgrind/tests/tc17_sembar.c
401tc17_sembar_LDADD = -lpthread
402
403tc18_semabuse_SOURCES = ../../helgrind/tests/tc18_semabuse.c
404tc18_semabuse_LDADD = -lpthread
405
406tc19_shadowmem_SOURCES = ../../helgrind/tests/tc19_shadowmem.c
407tc19_shadowmem_LDADD = -lpthread
408
409tc20_verifywrap_SOURCES = ../../helgrind/tests/tc20_verifywrap.c
410tc20_verifywrap_LDADD = -lpthread
411
412tc21_pthonce_SOURCES = ../../helgrind/tests/tc21_pthonce.c
413tc21_pthonce_LDADD = -lpthread
414
415tc22_exit_w_lock_SOURCES = ../../helgrind/tests/tc22_exit_w_lock.c
416tc22_exit_w_lock_LDADD = -lpthread
417
418tc23_bogus_condwait_SOURCES = ../../helgrind/tests/tc23_bogus_condwait.c
419tc23_bogus_condwait_LDADD = -lpthread
420
421tc24_nonzero_sem_SOURCES = ../../helgrind/tests/tc24_nonzero_sem.c
422tc24_nonzero_sem_LDADD = -lpthread
bart848fdf82008-03-02 19:03:19 +0000423
424trylock_SOURCES = trylock.c
425trylock_LDADD = -lpthread -lrt
bart0aeb1862008-03-10 19:26:42 +0000426
bart61e34a12008-11-10 18:54:46 +0000427if HAVE_BOOST_1_35
428boost_threads_SOURCES = boost_threads.cpp
429boost_threads_CXXFLAGS = $(AM_CXXFLAGS) $(BOOST_CFLAGS)
430boost_threads_LDADD = $(BOOST_LIBS)
431endif
432
bart1f52b822008-03-12 17:11:48 +0000433if HAVE_OPENMP
bart805043e2008-03-12 17:49:57 +0000434omp_matinv_SOURCES = omp_matinv.c
bartf3b72852008-06-26 07:31:15 +0000435omp_matinv_CFLAGS = $(AM_CFLAGS) -fopenmp
bart805043e2008-03-12 17:49:57 +0000436omp_matinv_LDFLAGS = -fopenmp
437omp_matinv_LDADD = -lm
bart0aeb1862008-03-10 19:26:42 +0000438
439omp_prime_SOURCES = omp_prime.c
bartf3b72852008-06-26 07:31:15 +0000440omp_prime_CFLAGS = $(AM_CFLAGS) -fopenmp
bartbaa3c2d2008-03-12 16:50:09 +0000441omp_prime_LDFLAGS = -fopenmp
bart0aeb1862008-03-10 19:26:42 +0000442omp_prime_LDADD = -lm
bartbbd3dcf2008-10-11 18:04:52 +0000443
444omp_printf_SOURCES = omp_printf.c
445omp_printf_CFLAGS = $(AM_CFLAGS) -fopenmp
446omp_printf_LDFLAGS = -fopenmp
447omp_printf_LDADD = -lm
bart0aeb1862008-03-10 19:26:42 +0000448endif
bart61e34a12008-11-10 18:54:46 +0000449
450if HAVE_QTCORE
451qt4_mutex_SOURCES = qt4_mutex.cpp
452qt4_mutex_CXXFLAGS = $(AM_CXXFLAGS) $(QTCORE_CFLAGS)
453qt4_mutex_LDADD = $(QTCORE_LIBS)
454
455qt4_rwlock_SOURCES = qt4_rwlock.cpp
456qt4_rwlock_CXXFLAGS = $(AM_CXXFLAGS) $(QTCORE_CFLAGS)
457qt4_rwlock_LDADD = $(QTCORE_LIBS)
458
459qt4_semaphore_SOURCES = qt4_semaphore.cpp
460qt4_semaphore_CXXFLAGS = $(AM_CXXFLAGS) $(QTCORE_CFLAGS)
461qt4_semaphore_LDADD = $(QTCORE_LIBS)
462endif