blob: 14a6241f8a2fb54b63d222ebd1e80dc207e9eb80 [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 \
14 filter_stderr
sewardjaf44c822007-11-25 14:01:38 +000015
bart40605eb2008-03-04 18:37:20 +000016EXTRA_DIST = \
17 $(noinst_SCRIPTS) \
18 fp_race.stderr.exp \
19 fp_race.stderr.exp-linuxthreads \
20 fp_race.stdout.exp \
21 fp_race.vgtest \
22 fp_race2.stderr.exp \
23 fp_race2.stderr.exp-linuxthreads \
24 fp_race2.stdout.exp \
25 fp_race2.vgtest \
26 hg01_all_ok.stderr.exp \
27 hg01_all_ok.stderr.exp-linuxthreads \
28 hg01_all_ok.vgtest \
29 hg02_deadlock.stderr.exp \
30 hg02_deadlock.stderr.exp-linuxthreads \
31 hg02_deadlock.vgtest \
32 hg03_inherit.stderr.exp \
33 hg03_inherit.stderr.exp-linuxthreads \
bart0aeb1862008-03-10 19:26:42 +000034 hg03_inherit.stderr.exp2 \
bart40605eb2008-03-04 18:37:20 +000035 hg03_inherit.vgtest \
36 hg04_race.stderr.exp \
37 hg04_race.stderr.exp-linuxthreads \
38 hg04_race.vgtest \
39 hg05_race2.stderr.exp \
40 hg05_race2.stderr.exp-linuxthreads \
41 hg05_race2.vgtest \
42 hg06_readshared.stderr.exp \
43 hg06_readshared.stderr.exp-linuxthreads \
44 hg06_readshared.vgtest \
bart96f892f2008-03-09 16:16:06 +000045 linuxthreads_det.stderr.exp \
46 linuxthreads_det.stderr.exp-linuxthreads \
47 linuxthreads_det.stdout.exp \
48 linuxthreads_det.stdout.exp-linuxthreads \
bart40605eb2008-03-04 18:37:20 +000049 matinv.stderr.exp \
50 matinv.stderr.exp-linuxthreads \
51 matinv.stdout.exp \
52 matinv.stdout.exp-linuxthreads \
bart40605eb2008-03-04 18:37:20 +000053 matinv.vgtest \
bart0aeb1862008-03-10 19:26:42 +000054 matinv_openmp.stderr.exp \
55 matinv_openmp.stdout.exp \
56 matinv_openmp.vgtest \
bart40605eb2008-03-04 18:37:20 +000057 pth_barrier.stderr.exp \
58 pth_barrier.stderr.exp-linuxthreads \
59 pth_barrier.vgtest \
60 pth_barrier2.stderr.exp \
61 pth_barrier2.stderr.exp-linuxthreads \
62 pth_barrier2.vgtest \
63 pth_barrier3.stderr.exp \
64 pth_barrier3.stderr.exp-linuxthreads \
65 pth_barrier3.vgtest \
66 pth_broadcast.stderr.exp \
67 pth_broadcast.stderr.exp-linuxthreads \
68 pth_broadcast.stdout.exp \
69 pth_broadcast.vgtest \
70 pth_cond_race.stderr.exp \
71 pth_cond_race.stderr.exp-linuxthreads \
72 pth_cond_race.stdout.exp \
73 pth_cond_race.vgtest \
74 pth_cond_race2.stderr.exp \
75 pth_cond_race2.stderr.exp-linuxthreads \
76 pth_cond_race2.stdout.exp \
77 pth_cond_race2.vgtest \
78 pth_create_chain.stderr.exp \
79 pth_create_chain.stderr.exp-linuxthreads \
80 pth_create_chain.stdout.exp \
81 pth_create_chain.vgtest \
82 pth_detached.stderr.exp \
83 pth_detached.stderr.exp-linuxthreads \
84 pth_detached.stdout.exp \
85 pth_detached.stdout.exp-linuxthreads \
86 pth_detached.stdout.exp-linuxthreads \
87 pth_detached.vgtest \
88 pth_detached2.stderr.exp \
89 pth_detached2.stderr.exp-linuxthreads \
90 pth_detached2.stdout.exp \
91 pth_detached2.stdout.exp-linuxthreads \
92 pth_detached2.stdout.exp-linuxthreads \
93 pth_detached2.vgtest \
94 recursive_mutex.stderr.exp \
95 recursive_mutex.vgtest \
96 rwlock_race.stderr.exp \
97 rwlock_race.stderr.exp-linuxthreads \
98 rwlock_race.vgtest \
99 sem_as_mutex.stderr.exp \
100 sem_as_mutex.stderr.exp-linuxthreads \
101 sem_as_mutex.vgtest \
102 sem_as_mutex2.stderr.exp \
103 sem_as_mutex2.stderr.exp-linuxthreads \
104 sem_as_mutex2.vgtest \
105 sigalrm.stderr.exp-linuxthreads \
106 sigalrm.stdout.exp sigalrm.stderr.exp \
107 sigalrm.vgtest \
108 tc01_simple_race.stderr.exp \
109 tc01_simple_race.stderr.exp-linuxthreads \
110 tc01_simple_race.vgtest \
111 tc02_simple_tls.stderr.exp \
112 tc02_simple_tls.stderr.exp-linuxthreads \
113 tc02_simple_tls.vgtest \
114 tc03_re_excl.stderr.exp \
115 tc03_re_excl.stderr.exp-linuxthreads \
116 tc03_re_excl.vgtest \
117 tc04_free_lock.stderr.exp \
118 tc04_free_lock.stderr.exp-linuxthreads \
119 tc04_free_lock.vgtest \
120 tc05_simple_race.stderr.exp \
121 tc05_simple_race.stderr.exp-linuxthreads \
122 tc05_simple_race.vgtest \
123 tc06_two_races.stderr.exp \
124 tc06_two_races.stderr.exp-linuxthreads \
125 tc06_two_races.vgtest \
bart8360df52008-03-07 17:34:22 +0000126 tc07_hbl1.stderr.exp \
bart43409c92008-03-07 19:29:03 +0000127 tc07_hbl1.stderr.exp-linuxthreads \
bart8360df52008-03-07 17:34:22 +0000128 tc07_hbl1.stdout.exp \
bart43409c92008-03-07 19:29:03 +0000129 tc07_hbl1.stdout.exp-linuxthreads \
bart8360df52008-03-07 17:34:22 +0000130 tc07_hbl1.vgtest \
131 tc08_hbl2.stderr.exp \
bart43409c92008-03-07 19:29:03 +0000132 tc08_hbl2.stderr.exp-linuxthreads \
133 tc08_hbl2.stdout.exp \
134 tc08_hbl2.stdout.exp-linuxthreads \
bart8360df52008-03-07 17:34:22 +0000135 tc08_hbl2.vgtest \
bart40605eb2008-03-04 18:37:20 +0000136 tc09_bad_unlock.stderr.exp \
137 tc09_bad_unlock.stderr.exp-linuxthreads \
138 tc09_bad_unlock.vgtest \
139 tc10_rec_lock.stderr.exp \
140 tc10_rec_lock.stderr.exp-linuxthreads \
141 tc10_rec_lock.vgtest \
142 tc11_XCHG.stderr.exp tc11_XCHG.stdout.exp \
143 tc11_XCHG.stderr.exp-linuxthreads \
144 tc11_XCHG.stdout.exp-linuxthreads \
145 tc11_XCHG.stdout.exp-linuxthreads \
146 tc11_XCHG.vgtest \
147 tc12_rwl_trivial.stderr.exp \
148 tc12_rwl_trivial.stderr.exp-linuxthreads \
149 tc12_rwl_trivial.vgtest \
150 tc13_laog1.stderr.exp \
151 tc13_laog1.vgtest \
152 tc15_laog_lockdel.stderr.exp \
153 tc15_laog_lockdel.vgtest \
154 tc16_byterace.stderr.exp \
155 tc16_byterace.stderr.exp-linuxthreads \
156 tc16_byterace.vgtest \
157 tc17_sembar.stderr.exp \
158 tc17_sembar.stderr.exp-linuxthreads \
159 tc17_sembar.vgtest \
160 tc18_semabuse.stderr.exp \
161 tc18_semabuse.stderr.exp-linuxthreads \
162 tc18_semabuse.vgtest \
163 tc19_shadowmem.stderr.exp \
164 tc19_shadowmem.vgtest \
165 tc20_verifywrap.stderr.exp \
bart4ff230a2008-03-08 15:04:25 +0000166 tc20_verifywrap.stderr.exp-glibc2.3 \
bart40605eb2008-03-04 18:37:20 +0000167 tc20_verifywrap.stderr.exp-linuxthreads \
168 tc20_verifywrap.vgtest \
169 tc20_verifywrap2.stderr.exp \
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 \
bart40605eb2008-03-04 18:37:20 +0000172 tc20_verifywrap2.stderr.exp-linuxthreads \
173 tc20_verifywrap2.vgtest \
174 tc21_pthonce.stderr.exp \
175 tc21_pthonce.stderr.exp-linuxthreads \
176 tc21_pthonce.stdout.exp \
177 tc21_pthonce.stdout.exp-linuxthreads \
178 tc21_pthonce.stdout.exp-linuxthreads \
179 tc21_pthonce.vgtest \
180 tc22_exit_w_lock.stderr.exp-32bit \
181 tc22_exit_w_lock.stderr.exp-64bit \
182 tc22_exit_w_lock.stderr.exp-linuxthreads \
183 tc22_exit_w_lock.vgtest \
184 tc23_bogus_condwait.stderr.exp \
185 tc23_bogus_condwait.stderr.exp-linuxthreads \
186 tc23_bogus_condwait.vgtest \
187 tc24_nonzero_sem.stderr.exp \
188 tc24_nonzero_sem.vgtest \
189 trylock.c trylock.stderr.exp \
190 trylock.stderr.exp-linuxthreads
sewardjaf44c822007-11-25 14:01:38 +0000191
192AM_CFLAGS = $(WERROR) -Winline -Wall -Wshadow -g $(AM_FLAG_M3264_PRI)
193AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/include -I$(top_builddir)/include
194AM_CXXFLAGS = $(AM_CFLAGS)
195
bart29cc9db2008-03-09 15:59:30 +0000196check_PROGRAMS_COMMON = \
bart60389da2008-02-25 19:58:25 +0000197 fp_race \
198 hg01_all_ok \
199 hg02_deadlock \
200 hg03_inherit \
201 hg04_race \
202 hg05_race2 \
203 hg06_readshared \
bart96f892f2008-03-09 16:16:06 +0000204 linuxthreads_det \
bart60389da2008-02-25 19:58:25 +0000205 matinv \
206 pth_barrier \
207 pth_broadcast \
208 pth_cond_race \
209 pth_create_chain \
210 pth_detached \
bart5357fcb2008-02-27 15:46:00 +0000211 recursive_mutex \
bart5bd9f2d2008-03-03 20:31:58 +0000212 rwlock_race \
213 sem_as_mutex \
bart60389da2008-02-25 19:58:25 +0000214 sigalrm \
215 tc01_simple_race \
216 tc02_simple_tls \
217 tc03_re_excl \
218 tc04_free_lock \
bart5976fdd2008-02-26 16:06:33 +0000219 tc05_simple_race \
220 tc06_two_races \
bart8360df52008-03-07 17:34:22 +0000221 tc07_hbl1 \
222 tc08_hbl2 \
bart60389da2008-02-25 19:58:25 +0000223 tc09_bad_unlock \
224 tc10_rec_lock \
225 tc11_XCHG \
226 tc12_rwl_trivial \
227 tc13_laog1 \
228 tc15_laog_lockdel \
229 tc16_byterace \
230 tc17_sembar \
231 tc18_semabuse \
232 tc19_shadowmem \
233 tc20_verifywrap \
234 tc21_pthonce \
235 tc22_exit_w_lock \
236 tc23_bogus_condwait \
bart848fdf82008-03-02 19:03:19 +0000237 tc24_nonzero_sem \
238 trylock
sewardjaf44c822007-11-25 14:01:38 +0000239
bart0aeb1862008-03-10 19:26:42 +0000240check_PROGRAMS_OPENMP = omp_prime matinv_openmp
bart29cc9db2008-03-09 15:59:30 +0000241
bart1f52b822008-03-12 17:11:48 +0000242if HAVE_OPENMP
bart29cc9db2008-03-09 15:59:30 +0000243check_PROGRAMS = $(check_PROGRAMS_COMMON) $(check_PROGRAMS_OPENMP)
244else
245check_PROGRAMS = $(check_PROGRAMS_COMMON)
246endif
247
bart60389da2008-02-25 19:58:25 +0000248# tc14_laog_dinphils -- hangs.
sewardjaf44c822007-11-25 14:01:38 +0000249
sewardjaf44c822007-11-25 14:01:38 +0000250
bart60389da2008-02-25 19:58:25 +0000251fp_race_SOURCES = fp_race.c
252fp_race_LDADD = -lpthread
sewardj347eeba2008-01-21 14:19:07 +0000253
bart60389da2008-02-25 19:58:25 +0000254hg01_all_ok_SOURCES = ../../helgrind/tests/hg01_all_ok.c
255hg01_all_ok_LDADD = -lpthread
sewardj85642922008-01-14 11:54:56 +0000256
bart60389da2008-02-25 19:58:25 +0000257hg02_deadlock_SOURCES = ../../helgrind/tests/hg02_deadlock.c
258hg02_deadlock_LDADD = -lpthread
sewardjaf44c822007-11-25 14:01:38 +0000259
bart60389da2008-02-25 19:58:25 +0000260hg03_inherit_SOURCES = ../../helgrind/tests/hg03_inherit.c
261hg03_inherit_LDADD = -lpthread
sewardjaf44c822007-11-25 14:01:38 +0000262
bart60389da2008-02-25 19:58:25 +0000263hg04_race_SOURCES = ../../helgrind/tests/hg04_race.c
264hg04_race_LDADD = -lpthread
sewardjaf44c822007-11-25 14:01:38 +0000265
bart60389da2008-02-25 19:58:25 +0000266hg05_race2_SOURCES = ../../helgrind/tests/hg05_race2.c
267hg05_race2_LDADD = -lpthread
sewardj85642922008-01-14 11:54:56 +0000268
bart60389da2008-02-25 19:58:25 +0000269hg06_readshared_SOURCES = ../../helgrind/tests/hg06_readshared.c
270hg06_readshared_LDADD = -lpthread
sewardj85642922008-01-14 11:54:56 +0000271
bart96f892f2008-03-09 16:16:06 +0000272linuxthreads_det_SOURCES = linuxthreads_det.c
273linuxthreads_det_LDADD = -lpthread
274
bart60389da2008-02-25 19:58:25 +0000275matinv_SOURCES = matinv.c
276matinv_LDADD = -lpthread -lm
sewardj85642922008-01-14 11:54:56 +0000277
bart60389da2008-02-25 19:58:25 +0000278pth_barrier_SOURCES = pth_barrier.c
279pth_barrier_LDADD = -lpthread
280
281pth_broadcast_SOURCES = pth_broadcast.c
282pth_broadcast_LDADD = -lpthread
283
284pth_cond_race_SOURCES = pth_cond_race.c
285pth_cond_race_LDADD = -lpthread
286
287pth_create_chain_SOURCES = pth_create_chain.c
288pth_create_chain_LDADD = -lpthread
289
290pth_detached_SOURCES = pth_detached.c
291pth_detached_LDADD = -lpthread
292
bart5357fcb2008-02-27 15:46:00 +0000293recursive_mutex_SOURCES = recursive_mutex.c
294recursive_mutex_LDADD = -lpthread
295
bart5bd9f2d2008-03-03 20:31:58 +0000296rwlock_race_SOURCES = rwlock_race.c
297rwlock_race_LDADD = -lpthread
298
bart60389da2008-02-25 19:58:25 +0000299sem_as_mutex_SOURCES = sem_as_mutex.c
300sem_as_mutex_LDADD = -lpthread
301
302sigalrm_SOURCES = sigalrm.c
303sigalrm_LDADD = -lpthread
304
305tc01_simple_race_SOURCES = ../../helgrind/tests/tc01_simple_race.c
306tc01_simple_race_LDADD = -lpthread
307
308tc02_simple_tls_SOURCES = ../../helgrind/tests/tc02_simple_tls.c
309tc02_simple_tls_LDADD = -lpthread
310
311tc03_re_excl_SOURCES = ../../helgrind/tests/tc03_re_excl.c
312tc03_re_excl_LDADD = -lpthread
313
314tc04_free_lock_SOURCES = ../../helgrind/tests/tc04_free_lock.c
315tc04_free_lock_LDADD = -lpthread
316
bart5976fdd2008-02-26 16:06:33 +0000317tc05_simple_race_SOURCES = ../../helgrind/tests/tc05_simple_race.c
318tc05_simple_race_LDADD = -lpthread
319
320tc06_two_races_SOURCES = ../../helgrind/tests/tc06_two_races.c
321tc06_two_races_LDADD = -lpthread
322
bart8360df52008-03-07 17:34:22 +0000323tc07_hbl1_SOURCES = ../../helgrind/tests/tc07_hbl1.c
324tc07_hbl1_LDADD = -lpthread
bart60389da2008-02-25 19:58:25 +0000325
bart8360df52008-03-07 17:34:22 +0000326tc08_hbl2_SOURCES = ../../helgrind/tests/tc08_hbl2.c
327tc08_hbl2_LDADD = -lpthread
bart5976fdd2008-02-26 16:06:33 +0000328
bart60389da2008-02-25 19:58:25 +0000329tc09_bad_unlock_SOURCES = ../../helgrind/tests/tc09_bad_unlock.c
330tc09_bad_unlock_LDADD = -lpthread
331
332tc10_rec_lock_SOURCES = ../../helgrind/tests/tc10_rec_lock.c
333tc10_rec_lock_LDADD = -lpthread
334
335tc11_XCHG_SOURCES = ../../helgrind/tests/tc11_XCHG.c
336tc11_XCHG_LDADD = -lpthread
337
338tc12_rwl_trivial_SOURCES = ../../helgrind/tests/tc12_rwl_trivial.c
339tc12_rwl_trivial_LDADD = -lpthread
340
341tc13_laog1_SOURCES = ../../helgrind/tests/tc13_laog1.c
342tc13_laog1_LDADD = -lpthread
343
344tc15_laog_lockdel_SOURCES = ../../helgrind/tests/tc15_laog_lockdel.c
345tc15_laog_lockdel_LDADD = -lpthread
346
347tc16_byterace_SOURCES = ../../helgrind/tests/tc16_byterace.c
348tc16_byterace_LDADD = -lpthread
349
350tc17_sembar_SOURCES = ../../helgrind/tests/tc17_sembar.c
351tc17_sembar_LDADD = -lpthread
352
353tc18_semabuse_SOURCES = ../../helgrind/tests/tc18_semabuse.c
354tc18_semabuse_LDADD = -lpthread
355
356tc19_shadowmem_SOURCES = ../../helgrind/tests/tc19_shadowmem.c
357tc19_shadowmem_LDADD = -lpthread
358
359tc20_verifywrap_SOURCES = ../../helgrind/tests/tc20_verifywrap.c
360tc20_verifywrap_LDADD = -lpthread
361
362tc21_pthonce_SOURCES = ../../helgrind/tests/tc21_pthonce.c
363tc21_pthonce_LDADD = -lpthread
364
365tc22_exit_w_lock_SOURCES = ../../helgrind/tests/tc22_exit_w_lock.c
366tc22_exit_w_lock_LDADD = -lpthread
367
368tc23_bogus_condwait_SOURCES = ../../helgrind/tests/tc23_bogus_condwait.c
369tc23_bogus_condwait_LDADD = -lpthread
370
371tc24_nonzero_sem_SOURCES = ../../helgrind/tests/tc24_nonzero_sem.c
372tc24_nonzero_sem_LDADD = -lpthread
bart848fdf82008-03-02 19:03:19 +0000373
374trylock_SOURCES = trylock.c
375trylock_LDADD = -lpthread -lrt
bart0aeb1862008-03-10 19:26:42 +0000376
bart1f52b822008-03-12 17:11:48 +0000377if HAVE_OPENMP
bart0aeb1862008-03-10 19:26:42 +0000378matinv_openmp_SOURCES = matinv_openmp.c
379matinv_openmp_CFLAGS = -fopenmp
bartbaa3c2d2008-03-12 16:50:09 +0000380matinv_openmp_LDFLAGS = -fopenmp
bart0aeb1862008-03-10 19:26:42 +0000381matinv_openmp_LDADD = -lm
382
383omp_prime_SOURCES = omp_prime.c
384omp_prime_CFLAGS = -fopenmp
bartbaa3c2d2008-03-12 16:50:09 +0000385omp_prime_LDFLAGS = -fopenmp
bart0aeb1862008-03-10 19:26:42 +0000386omp_prime_LDADD = -lm
387endif