blob: b747e22e030c39830b6f757da60e5794652f3899 [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 \
bartc4a9e0f2008-11-17 17:38:28 +000023 bar_bad.stderr.exp \
24 bar_bad.vgtest \
25 bar_trivial.stderr.exp \
26 bar_trivial.vgtest \
27 boost_thread.stderr.exp \
28 boost_thread.vgtest \
bart34eff982008-05-01 13:50:20 +000029 drd_bitmap_test.stderr.exp \
barte65b4c62008-07-04 11:47:06 +000030 drd_bitmap_test.stdout.exp \
31 drd_bitmap_test.vgtest \
bart40605eb2008-03-04 18:37:20 +000032 fp_race.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000033 fp_race.vgtest \
34 fp_race2.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000035 fp_race2.vgtest \
36 hg01_all_ok.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000037 hg01_all_ok.vgtest \
38 hg02_deadlock.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000039 hg02_deadlock.vgtest \
40 hg03_inherit.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000041 hg03_inherit.vgtest \
42 hg04_race.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000043 hg04_race.vgtest \
44 hg05_race2.stderr.exp \
barte65b4c62008-07-04 11:47:06 +000045 hg05_race2.stderr.exp-powerpc \
bart40605eb2008-03-04 18:37:20 +000046 hg05_race2.vgtest \
47 hg06_readshared.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000048 hg06_readshared.vgtest \
bart1d4070d2008-05-14 12:22:15 +000049 hold_lock_1.stderr.exp \
50 hold_lock_1.vgtest \
51 hold_lock_2.stderr.exp \
52 hold_lock_2.vgtest \
bart96f892f2008-03-09 16:16:06 +000053 linuxthreads_det.stderr.exp \
54 linuxthreads_det.stderr.exp-linuxthreads \
55 linuxthreads_det.stdout.exp \
56 linuxthreads_det.stdout.exp-linuxthreads \
barte65b4c62008-07-04 11:47:06 +000057 linuxthreads_det.vgtest \
bart40605eb2008-03-04 18:37:20 +000058 matinv.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000059 matinv.stdout.exp \
bart40605eb2008-03-04 18:37:20 +000060 matinv.vgtest \
bart412efe52008-04-20 08:29:04 +000061 memory_allocation.stderr.exp \
62 memory_allocation.vgtest \
barte64f11d2008-10-05 17:37:06 +000063 monitor_example.stderr.exp \
64 monitor_example.vgtest \
bart3d4c3322008-05-10 08:48:14 +000065 new_delete.stderr.exp \
66 new_delete.vgtest \
bart805043e2008-03-12 17:49:57 +000067 omp_matinv.stderr.exp \
68 omp_matinv.stdout.exp \
69 omp_matinv.vgtest \
barte8acf492008-03-12 17:27:20 +000070 omp_matinv_racy.stderr.exp \
71 omp_matinv_racy.stdout.exp \
72 omp_matinv_racy.vgtest \
bart805043e2008-03-12 17:49:57 +000073 omp_prime_racy.stderr.exp \
bart805043e2008-03-12 17:49:57 +000074 omp_prime_racy.vgtest \
bartbbd3dcf2008-10-11 18:04:52 +000075 omp_printf.stderr.exp \
76 omp_printf.vgtest \
bart40605eb2008-03-04 18:37:20 +000077 pth_barrier.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000078 pth_barrier.vgtest \
79 pth_barrier2.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000080 pth_barrier2.vgtest \
81 pth_barrier3.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000082 pth_barrier3.vgtest \
bartd9e39ec2008-06-28 15:03:26 +000083 pth_barrier_reinit.stderr.exp \
84 pth_barrier_reinit.vgtest \
bart40605eb2008-03-04 18:37:20 +000085 pth_broadcast.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000086 pth_broadcast.vgtest \
bart032424f2008-09-27 12:26:17 +000087 pth_cancel_locked.stderr.exp \
88 pth_cancel_locked.vgtest \
bart40605eb2008-03-04 18:37:20 +000089 pth_cond_race.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000090 pth_cond_race.vgtest \
91 pth_cond_race2.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000092 pth_cond_race2.vgtest \
bart46b5fce2008-06-28 13:01:30 +000093 pth_cond_race3.stderr.exp \
94 pth_cond_race3.vgtest \
bart40605eb2008-03-04 18:37:20 +000095 pth_create_chain.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000096 pth_create_chain.vgtest \
97 pth_detached.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000098 pth_detached.stdout.exp \
bart40605eb2008-03-04 18:37:20 +000099 pth_detached.vgtest \
100 pth_detached2.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000101 pth_detached2.stdout.exp \
bart40605eb2008-03-04 18:37:20 +0000102 pth_detached2.vgtest \
bart3b9f3bf2008-03-16 07:48:07 +0000103 pth_detached_sem.stderr.exp \
bart178cc162008-05-10 12:52:02 +0000104 pth_detached_sem.stdout.exp \
bart3b9f3bf2008-03-16 07:48:07 +0000105 pth_detached_sem.vgtest \
barte65b4c62008-07-04 11:47:06 +0000106 pth_inconsistent_cond_wait.stderr.exp \
107 pth_inconsistent_cond_wait.vgtest \
bart19c42602008-07-07 08:04:08 +0000108 pth_spinlock.stderr.exp \
109 pth_spinlock.vgtest \
bart4c853992008-07-07 16:53:45 +0000110 qt4_mutex.stderr.exp \
111 qt4_mutex.vgtest \
bart4f578bf2008-07-07 18:35:13 +0000112 qt4_rwlock.stderr.exp \
113 qt4_rwlock.vgtest \
bartef9603e2008-07-07 17:22:41 +0000114 qt4_semaphore.stderr.exp \
115 qt4_semaphore.vgtest \
bart40605eb2008-03-04 18:37:20 +0000116 recursive_mutex.stderr.exp \
barte8acf492008-03-12 17:27:20 +0000117 recursive_mutex.stdout.exp \
bart40605eb2008-03-04 18:37:20 +0000118 recursive_mutex.vgtest \
119 rwlock_race.stderr.exp \
bartb920b662008-04-09 17:44:28 +0000120 rwlock_race.stderr.exp2 \
bart40605eb2008-03-04 18:37:20 +0000121 rwlock_race.vgtest \
bart178cc162008-05-10 12:52:02 +0000122 rwlock_test.stderr.exp \
123 rwlock_test.vgtest \
bart40605eb2008-03-04 18:37:20 +0000124 sem_as_mutex.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000125 sem_as_mutex.vgtest \
126 sem_as_mutex2.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000127 sem_as_mutex2.vgtest \
barte8acf492008-03-12 17:27:20 +0000128 sigalrm.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000129 sigalrm.vgtest \
130 tc01_simple_race.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000131 tc01_simple_race.vgtest \
132 tc02_simple_tls.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000133 tc02_simple_tls.vgtest \
134 tc03_re_excl.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000135 tc03_re_excl.vgtest \
136 tc04_free_lock.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000137 tc04_free_lock.vgtest \
138 tc05_simple_race.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000139 tc05_simple_race.vgtest \
140 tc06_two_races.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000141 tc06_two_races.vgtest \
bart8360df52008-03-07 17:34:22 +0000142 tc07_hbl1.stderr.exp \
143 tc07_hbl1.stdout.exp \
144 tc07_hbl1.vgtest \
145 tc08_hbl2.stderr.exp \
bart43409c92008-03-07 19:29:03 +0000146 tc08_hbl2.stdout.exp \
bart8360df52008-03-07 17:34:22 +0000147 tc08_hbl2.vgtest \
bart40605eb2008-03-04 18:37:20 +0000148 tc09_bad_unlock.stderr.exp \
bartdf961972008-04-28 16:51:24 +0000149 tc09_bad_unlock.stderr.exp-glibc2.8 \
bart40605eb2008-03-04 18:37:20 +0000150 tc09_bad_unlock.vgtest \
151 tc10_rec_lock.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000152 tc10_rec_lock.vgtest \
153 tc11_XCHG.stderr.exp tc11_XCHG.stdout.exp \
bart40605eb2008-03-04 18:37:20 +0000154 tc11_XCHG.vgtest \
155 tc12_rwl_trivial.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000156 tc12_rwl_trivial.vgtest \
157 tc13_laog1.stderr.exp \
158 tc13_laog1.vgtest \
159 tc15_laog_lockdel.stderr.exp \
160 tc15_laog_lockdel.vgtest \
161 tc16_byterace.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000162 tc16_byterace.vgtest \
163 tc17_sembar.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000164 tc17_sembar.vgtest \
165 tc18_semabuse.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000166 tc18_semabuse.vgtest \
167 tc19_shadowmem.stderr.exp \
168 tc19_shadowmem.vgtest \
bart4ff230a2008-03-08 15:04:25 +0000169 tc20_verifywrap.stderr.exp-glibc2.3 \
bart02aed962008-07-06 07:48:35 +0000170 tc20_verifywrap.stderr.exp-glibc2.5 \
171 tc20_verifywrap.stderr.exp-glibc2.5-ppc \
barte65b4c62008-07-04 11:47:06 +0000172 tc20_verifywrap.stderr.exp-glibc2.8 \
bart40605eb2008-03-04 18:37:20 +0000173 tc20_verifywrap.vgtest \
bart4ff230a2008-03-08 15:04:25 +0000174 tc20_verifywrap2.stderr.exp-glibc2.3 \
bart3effeb92008-03-09 19:20:27 +0000175 tc20_verifywrap2.stderr.exp-glibc2.3-b \
bart02aed962008-07-06 07:48:35 +0000176 tc20_verifywrap2.stderr.exp-glibc2.5 \
177 tc20_verifywrap2.stderr.exp-glibc2.5-ppc \
barte65b4c62008-07-04 11:47:06 +0000178 tc20_verifywrap2.stderr.exp-glibc2.8 \
bart40605eb2008-03-04 18:37:20 +0000179 tc20_verifywrap2.vgtest \
180 tc21_pthonce.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000181 tc21_pthonce.stdout.exp \
bart40605eb2008-03-04 18:37:20 +0000182 tc21_pthonce.vgtest \
183 tc22_exit_w_lock.stderr.exp-32bit \
184 tc22_exit_w_lock.stderr.exp-64bit \
bart40605eb2008-03-04 18:37:20 +0000185 tc22_exit_w_lock.vgtest \
186 tc23_bogus_condwait.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000187 tc23_bogus_condwait.vgtest \
188 tc24_nonzero_sem.stderr.exp \
189 tc24_nonzero_sem.vgtest \
barte65b4c62008-07-04 11:47:06 +0000190 trylock.stderr.exp \
191 trylock.vgtest
sewardjaf44c822007-11-25 14:01:38 +0000192
bart7bf86f32008-05-11 18:39:18 +0000193AM_CFLAGS = $(WERROR) -Wall @FLAG_W_EXTRA@ -Wno-inline -Wno-unused-parameter\
sewardje95d94f2008-09-19 09:02:19 +0000194 -g $(AM_FLAG_M3264_PRI) -DVGA_$(VG_ARCH_PRI)=1 -DVGO_$(VG_OS)=1 \
195 -DVGP_$(VG_ARCH_PRI)_$(VG_OS)=1
bartad292b52008-05-01 14:11:45 +0000196AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/include \
197 -I$(top_builddir)/include -I$(top_srcdir)/VEX/pub
sewardjaf44c822007-11-25 14:01:38 +0000198AM_CXXFLAGS = $(AM_CFLAGS)
199
bartcca440b2008-07-10 11:58:08 +0000200check_PROGRAMS = \
201 atomic_var \
bartc4a9e0f2008-11-17 17:38:28 +0000202 bar_bad \
203 bar_trivial \
bartad292b52008-05-01 14:11:45 +0000204 drd_bitmap_test \
bart60389da2008-02-25 19:58:25 +0000205 fp_race \
206 hg01_all_ok \
207 hg02_deadlock \
208 hg03_inherit \
209 hg04_race \
210 hg05_race2 \
211 hg06_readshared \
bart1d4070d2008-05-14 12:22:15 +0000212 hold_lock \
bart96f892f2008-03-09 16:16:06 +0000213 linuxthreads_det \
bart60389da2008-02-25 19:58:25 +0000214 matinv \
bart412efe52008-04-20 08:29:04 +0000215 memory_allocation \
barte64f11d2008-10-05 17:37:06 +0000216 monitor_example \
bart3d4c3322008-05-10 08:48:14 +0000217 new_delete \
bart60389da2008-02-25 19:58:25 +0000218 pth_barrier \
bartd9e39ec2008-06-28 15:03:26 +0000219 pth_barrier_reinit \
bart60389da2008-02-25 19:58:25 +0000220 pth_broadcast \
bart032424f2008-09-27 12:26:17 +0000221 pth_cancel_locked \
bart60389da2008-02-25 19:58:25 +0000222 pth_cond_race \
223 pth_create_chain \
224 pth_detached \
bart3b9f3bf2008-03-16 07:48:07 +0000225 pth_detached_sem \
bart3bb1cec2008-06-28 16:01:43 +0000226 pth_inconsistent_cond_wait \
bart19c42602008-07-07 08:04:08 +0000227 pth_spinlock \
bart5357fcb2008-02-27 15:46:00 +0000228 recursive_mutex \
bart5bd9f2d2008-03-03 20:31:58 +0000229 rwlock_race \
bart178cc162008-05-10 12:52:02 +0000230 rwlock_test \
bart5bd9f2d2008-03-03 20:31:58 +0000231 sem_as_mutex \
bart60389da2008-02-25 19:58:25 +0000232 sigalrm \
233 tc01_simple_race \
234 tc02_simple_tls \
235 tc03_re_excl \
236 tc04_free_lock \
bart5976fdd2008-02-26 16:06:33 +0000237 tc05_simple_race \
238 tc06_two_races \
bart8360df52008-03-07 17:34:22 +0000239 tc07_hbl1 \
240 tc08_hbl2 \
bart60389da2008-02-25 19:58:25 +0000241 tc09_bad_unlock \
242 tc10_rec_lock \
243 tc11_XCHG \
244 tc12_rwl_trivial \
245 tc13_laog1 \
246 tc15_laog_lockdel \
247 tc16_byterace \
248 tc17_sembar \
249 tc18_semabuse \
250 tc19_shadowmem \
251 tc20_verifywrap \
252 tc21_pthonce \
253 tc22_exit_w_lock \
254 tc23_bogus_condwait \
bart848fdf82008-03-02 19:03:19 +0000255 tc24_nonzero_sem \
256 trylock
sewardjaf44c822007-11-25 14:01:38 +0000257
bart61e34a12008-11-10 18:54:46 +0000258if HAVE_BOOST_1_35
bartc4a9e0f2008-11-17 17:38:28 +0000259check_PROGRAMS += boost_thread
bartda7c0982008-07-28 11:36:11 +0000260endif
bart29cc9db2008-03-09 15:59:30 +0000261
bart4c853992008-07-07 16:53:45 +0000262if HAVE_OPENMP
bartbbd3dcf2008-10-11 18:04:52 +0000263check_PROGRAMS += omp_matinv omp_prime omp_printf
bart4c853992008-07-07 16:53:45 +0000264endif
sewardjaf44c822007-11-25 14:01:38 +0000265
bart61e34a12008-11-10 18:54:46 +0000266if HAVE_QTCORE
267check_PROGRAMS += qt4_mutex qt4_rwlock qt4_semaphore
268endif
269
sewardjaf44c822007-11-25 14:01:38 +0000270
bartcca440b2008-07-10 11:58:08 +0000271atomic_var_SOURCES = atomic_var.c
272atomic_var_LDADD = -lpthread
273
bartc4a9e0f2008-11-17 17:38:28 +0000274bar_bad_SOURCES = ../../helgrind/tests/bar_bad.c
275bar_bad_LDADD = -lpthread
276
277bar_trivial_SOURCES = ../../helgrind/tests/bar_trivial.c
278bar_trivial_LDADD = -lpthread
279
bart34eff982008-05-01 13:50:20 +0000280drd_bitmap_test_SOURCES = drd_bitmap_test.c
bartdc1e91c2008-05-11 06:44:30 +0000281drd_bitmap_test_CFLAGS = $(AM_CFLAGS) -O2 \
bart8b4b2ee2008-06-11 13:17:56 +0000282 -DENABLE_DRD_CONSISTENCY_CHECKS\
bartdc1e91c2008-05-11 06:44:30 +0000283 @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@
bart34eff982008-05-01 13:50:20 +0000284
bart60389da2008-02-25 19:58:25 +0000285fp_race_SOURCES = fp_race.c
286fp_race_LDADD = -lpthread
sewardj347eeba2008-01-21 14:19:07 +0000287
bart60389da2008-02-25 19:58:25 +0000288hg01_all_ok_SOURCES = ../../helgrind/tests/hg01_all_ok.c
289hg01_all_ok_LDADD = -lpthread
sewardj85642922008-01-14 11:54:56 +0000290
bart60389da2008-02-25 19:58:25 +0000291hg02_deadlock_SOURCES = ../../helgrind/tests/hg02_deadlock.c
292hg02_deadlock_LDADD = -lpthread
sewardjaf44c822007-11-25 14:01:38 +0000293
bart60389da2008-02-25 19:58:25 +0000294hg03_inherit_SOURCES = ../../helgrind/tests/hg03_inherit.c
295hg03_inherit_LDADD = -lpthread
sewardjaf44c822007-11-25 14:01:38 +0000296
bart60389da2008-02-25 19:58:25 +0000297hg04_race_SOURCES = ../../helgrind/tests/hg04_race.c
298hg04_race_LDADD = -lpthread
sewardjaf44c822007-11-25 14:01:38 +0000299
bart60389da2008-02-25 19:58:25 +0000300hg05_race2_SOURCES = ../../helgrind/tests/hg05_race2.c
301hg05_race2_LDADD = -lpthread
sewardj85642922008-01-14 11:54:56 +0000302
bart60389da2008-02-25 19:58:25 +0000303hg06_readshared_SOURCES = ../../helgrind/tests/hg06_readshared.c
304hg06_readshared_LDADD = -lpthread
sewardj85642922008-01-14 11:54:56 +0000305
bart1d4070d2008-05-14 12:22:15 +0000306hold_lock_SOURCES = hold_lock.c
307hold_lock_LDADD = -lpthread
308
bart96f892f2008-03-09 16:16:06 +0000309linuxthreads_det_SOURCES = linuxthreads_det.c
310linuxthreads_det_LDADD = -lpthread
311
bart60389da2008-02-25 19:58:25 +0000312matinv_SOURCES = matinv.c
313matinv_LDADD = -lpthread -lm
sewardj85642922008-01-14 11:54:56 +0000314
bart412efe52008-04-20 08:29:04 +0000315memory_allocation_SOURCES = memory_allocation.c
bart3d4c3322008-05-10 08:48:14 +0000316
barte64f11d2008-10-05 17:37:06 +0000317monitor_example_SOURCES = monitor_example.cpp
318monitor_example_LDADD = -lpthread
319
bart3d4c3322008-05-10 08:48:14 +0000320new_delete_SOURCES = new_delete.cpp
bart412efe52008-04-20 08:29:04 +0000321
bart60389da2008-02-25 19:58:25 +0000322pth_barrier_SOURCES = pth_barrier.c
323pth_barrier_LDADD = -lpthread
324
bartd9e39ec2008-06-28 15:03:26 +0000325pth_barrier_reinit_SOURCES = pth_barrier_reinit.c
326pth_barrier_reinit_LDADD = -lpthread
327
bart60389da2008-02-25 19:58:25 +0000328pth_broadcast_SOURCES = pth_broadcast.c
329pth_broadcast_LDADD = -lpthread
330
bart032424f2008-09-27 12:26:17 +0000331pth_cancel_locked_SOURCES = pth_cancel_locked.c
332pth_cancel_locked_LDADD = -lpthread
333
bart60389da2008-02-25 19:58:25 +0000334pth_cond_race_SOURCES = pth_cond_race.c
335pth_cond_race_LDADD = -lpthread
336
337pth_create_chain_SOURCES = pth_create_chain.c
338pth_create_chain_LDADD = -lpthread
339
340pth_detached_SOURCES = pth_detached.c
341pth_detached_LDADD = -lpthread
342
bart3b9f3bf2008-03-16 07:48:07 +0000343pth_detached_sem_SOURCES = pth_detached_sem.c
344pth_detached_sem_LDADD = -lpthread
345
bart3bb1cec2008-06-28 16:01:43 +0000346pth_inconsistent_cond_wait_SOURCES = pth_inconsistent_cond_wait.c
347pth_inconsistent_cond_wait_LDADD = -lpthread
348
bart19c42602008-07-07 08:04:08 +0000349pth_spinlock_SOURCES = pth_spinlock.c
350pth_spinlock_LDADD = -lpthread
351
bart5357fcb2008-02-27 15:46:00 +0000352recursive_mutex_SOURCES = recursive_mutex.c
353recursive_mutex_LDADD = -lpthread
354
bart5bd9f2d2008-03-03 20:31:58 +0000355rwlock_race_SOURCES = rwlock_race.c
356rwlock_race_LDADD = -lpthread
357
bart178cc162008-05-10 12:52:02 +0000358rwlock_test_SOURCES = rwlock_test.c
359rwlock_test_LDADD = -lpthread
360
bart60389da2008-02-25 19:58:25 +0000361sem_as_mutex_SOURCES = sem_as_mutex.c
362sem_as_mutex_LDADD = -lpthread
363
364sigalrm_SOURCES = sigalrm.c
365sigalrm_LDADD = -lpthread
366
367tc01_simple_race_SOURCES = ../../helgrind/tests/tc01_simple_race.c
368tc01_simple_race_LDADD = -lpthread
369
370tc02_simple_tls_SOURCES = ../../helgrind/tests/tc02_simple_tls.c
371tc02_simple_tls_LDADD = -lpthread
372
373tc03_re_excl_SOURCES = ../../helgrind/tests/tc03_re_excl.c
374tc03_re_excl_LDADD = -lpthread
375
376tc04_free_lock_SOURCES = ../../helgrind/tests/tc04_free_lock.c
377tc04_free_lock_LDADD = -lpthread
378
bart5976fdd2008-02-26 16:06:33 +0000379tc05_simple_race_SOURCES = ../../helgrind/tests/tc05_simple_race.c
380tc05_simple_race_LDADD = -lpthread
381
382tc06_two_races_SOURCES = ../../helgrind/tests/tc06_two_races.c
383tc06_two_races_LDADD = -lpthread
384
bart8360df52008-03-07 17:34:22 +0000385tc07_hbl1_SOURCES = ../../helgrind/tests/tc07_hbl1.c
386tc07_hbl1_LDADD = -lpthread
bart60389da2008-02-25 19:58:25 +0000387
bart8360df52008-03-07 17:34:22 +0000388tc08_hbl2_SOURCES = ../../helgrind/tests/tc08_hbl2.c
389tc08_hbl2_LDADD = -lpthread
bart5976fdd2008-02-26 16:06:33 +0000390
bart60389da2008-02-25 19:58:25 +0000391tc09_bad_unlock_SOURCES = ../../helgrind/tests/tc09_bad_unlock.c
392tc09_bad_unlock_LDADD = -lpthread
393
394tc10_rec_lock_SOURCES = ../../helgrind/tests/tc10_rec_lock.c
395tc10_rec_lock_LDADD = -lpthread
396
397tc11_XCHG_SOURCES = ../../helgrind/tests/tc11_XCHG.c
398tc11_XCHG_LDADD = -lpthread
399
400tc12_rwl_trivial_SOURCES = ../../helgrind/tests/tc12_rwl_trivial.c
401tc12_rwl_trivial_LDADD = -lpthread
402
403tc13_laog1_SOURCES = ../../helgrind/tests/tc13_laog1.c
404tc13_laog1_LDADD = -lpthread
405
406tc15_laog_lockdel_SOURCES = ../../helgrind/tests/tc15_laog_lockdel.c
407tc15_laog_lockdel_LDADD = -lpthread
408
409tc16_byterace_SOURCES = ../../helgrind/tests/tc16_byterace.c
410tc16_byterace_LDADD = -lpthread
411
412tc17_sembar_SOURCES = ../../helgrind/tests/tc17_sembar.c
413tc17_sembar_LDADD = -lpthread
414
415tc18_semabuse_SOURCES = ../../helgrind/tests/tc18_semabuse.c
416tc18_semabuse_LDADD = -lpthread
417
418tc19_shadowmem_SOURCES = ../../helgrind/tests/tc19_shadowmem.c
419tc19_shadowmem_LDADD = -lpthread
420
421tc20_verifywrap_SOURCES = ../../helgrind/tests/tc20_verifywrap.c
422tc20_verifywrap_LDADD = -lpthread
423
424tc21_pthonce_SOURCES = ../../helgrind/tests/tc21_pthonce.c
425tc21_pthonce_LDADD = -lpthread
426
427tc22_exit_w_lock_SOURCES = ../../helgrind/tests/tc22_exit_w_lock.c
428tc22_exit_w_lock_LDADD = -lpthread
429
430tc23_bogus_condwait_SOURCES = ../../helgrind/tests/tc23_bogus_condwait.c
431tc23_bogus_condwait_LDADD = -lpthread
432
433tc24_nonzero_sem_SOURCES = ../../helgrind/tests/tc24_nonzero_sem.c
434tc24_nonzero_sem_LDADD = -lpthread
bart848fdf82008-03-02 19:03:19 +0000435
436trylock_SOURCES = trylock.c
437trylock_LDADD = -lpthread -lrt
bart0aeb1862008-03-10 19:26:42 +0000438
bart61e34a12008-11-10 18:54:46 +0000439if HAVE_BOOST_1_35
bartc4a9e0f2008-11-17 17:38:28 +0000440boost_thread_SOURCES = boost_thread.cpp
441boost_thread_CXXFLAGS = $(AM_CXXFLAGS) $(BOOST_CFLAGS)
442boost_thread_LDADD = $(BOOST_LIBS)
bart61e34a12008-11-10 18:54:46 +0000443endif
444
bart1f52b822008-03-12 17:11:48 +0000445if HAVE_OPENMP
bart805043e2008-03-12 17:49:57 +0000446omp_matinv_SOURCES = omp_matinv.c
bartf3b72852008-06-26 07:31:15 +0000447omp_matinv_CFLAGS = $(AM_CFLAGS) -fopenmp
bart805043e2008-03-12 17:49:57 +0000448omp_matinv_LDFLAGS = -fopenmp
449omp_matinv_LDADD = -lm
bart0aeb1862008-03-10 19:26:42 +0000450
451omp_prime_SOURCES = omp_prime.c
bartf3b72852008-06-26 07:31:15 +0000452omp_prime_CFLAGS = $(AM_CFLAGS) -fopenmp
bartbaa3c2d2008-03-12 16:50:09 +0000453omp_prime_LDFLAGS = -fopenmp
bart0aeb1862008-03-10 19:26:42 +0000454omp_prime_LDADD = -lm
bartbbd3dcf2008-10-11 18:04:52 +0000455
456omp_printf_SOURCES = omp_printf.c
457omp_printf_CFLAGS = $(AM_CFLAGS) -fopenmp
458omp_printf_LDFLAGS = -fopenmp
459omp_printf_LDADD = -lm
bart0aeb1862008-03-10 19:26:42 +0000460endif
bart61e34a12008-11-10 18:54:46 +0000461
462if HAVE_QTCORE
463qt4_mutex_SOURCES = qt4_mutex.cpp
464qt4_mutex_CXXFLAGS = $(AM_CXXFLAGS) $(QTCORE_CFLAGS)
465qt4_mutex_LDADD = $(QTCORE_LIBS)
466
467qt4_rwlock_SOURCES = qt4_rwlock.cpp
468qt4_rwlock_CXXFLAGS = $(AM_CXXFLAGS) $(QTCORE_CFLAGS)
469qt4_rwlock_LDADD = $(QTCORE_LIBS)
470
471qt4_semaphore_SOURCES = qt4_semaphore.cpp
472qt4_semaphore_CXXFLAGS = $(AM_CXXFLAGS) $(QTCORE_CFLAGS)
473qt4_semaphore_LDADD = $(QTCORE_LIBS)
474endif