Tests fix: add missing Cygwin thread id
[userspace-rcu.git] / tests / benchmark / Makefile.am
CommitLineData
f5ab766e 1AM_LDFLAGS=-lpthread
d1094601 2AM_CFLAGS+=-I$(top_srcdir) -I$(top_builddir) -I$(top_srcdir)/tests/common -g
f5ab766e 3
54497f3f
MJ
4SCRIPT_LIST = common.sh \
5 runall.sh \
6 runhash.sh \
7 runtests.sh \
8 runpaul-phase1.sh \
9 runpaul-phase2.sh \
10 runpaul-phase3.sh \
11 runpaul-phase4.sh \
12 runpaul-phase5.sh \
13 runpaul-phase6.sh \
14 runpaul-phase7.sh \
15 runtests-batch.sh \
16 subphase4.sh
17
18dist_noinst_SCRIPTS = $(SCRIPT_LIST)
19
f5ab766e
MD
20noinst_PROGRAMS = test_urcu test_urcu_dynamic_link test_urcu_timing \
21 test_urcu_signal test_urcu_signal_dynamic_link test_urcu_signal_timing \
22 test_rwlock_timing test_rwlock test_perthreadlock_timing \
23 test_perthreadlock test_urcu_yield test_urcu_signal_yield test_urcu_mb \
24 test_urcu_qsbr_timing test_urcu_qsbr \
25 test_mutex test_looplen test_urcu_gc test_urcu_signal_gc \
26 test_urcu_lgc \
27 test_urcu_mb_gc test_urcu_qsbr_gc test_urcu_qsbr_lgc test_urcu_signal_lgc \
28 test_urcu_mb_lgc test_urcu_qsbr_dynamic_link test_urcu_defer \
29 test_urcu_assign test_urcu_assign_dynamic_link \
30 test_urcu_bp test_urcu_bp_dynamic_link test_cycles_per_loop \
31 test_urcu_lfq test_urcu_wfq test_urcu_lfs test_urcu_wfs \
32 test_urcu_lfs_rcu \
33 test_urcu_wfcq \
34 test_urcu_wfq_dynlink test_urcu_wfs_dynlink \
35 test_urcu_wfcq_dynlink \
36 test_urcu_lfq_dynlink test_urcu_lfs_dynlink test_urcu_hash \
37 test_urcu_lfs_rcu_dynlink
38
f5ab766e
MD
39URCU_COMMON_LIB=$(top_builddir)/liburcu-common.la
40URCU_LIB=$(top_builddir)/liburcu.la
41URCU_QSBR_LIB=$(top_builddir)/liburcu-qsbr.la
42URCU_MB_LIB=$(top_builddir)/liburcu-mb.la
43URCU_SIGNAL_LIB=$(top_builddir)/liburcu-signal.la
44URCU_BP_LIB=$(top_builddir)/liburcu-bp.la
45URCU_CDS_LIB=$(top_builddir)/liburcu-cds.la
46
b14ebbc5
MD
47DEBUG_YIELD_LIB=$(builddir)/../common/libdebug-yield.la
48
f7ba37f1
MD
49test_urcu_SOURCES = test_urcu.c
50test_urcu_LDADD = $(URCU_LIB)
f5ab766e 51
f7ba37f1
MD
52test_urcu_dynamic_link_SOURCES = test_urcu.c
53test_urcu_dynamic_link_LDADD = $(URCU_LIB)
f5ab766e
MD
54test_urcu_dynamic_link_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS)
55
f7ba37f1
MD
56test_urcu_timing_SOURCES = test_urcu_timing.c
57test_urcu_timing_LDADD = $(URCU_LIB)
f5ab766e 58
f7ba37f1
MD
59test_urcu_yield_SOURCES = test_urcu.c
60test_urcu_yield_LDADD = $(URCU_LIB) $(DEBUG_YIELD_LIB)
f5ab766e
MD
61test_urcu_yield_CFLAGS = -DDEBUG_YIELD $(AM_CFLAGS)
62
63
6ae37a4e
MD
64test_urcu_qsbr_SOURCES = test_urcu_qsbr.c
65test_urcu_qsbr_LDADD = $(URCU_QSBR_LIB)
f5ab766e 66
6ae37a4e
MD
67test_urcu_qsbr_timing_SOURCES = test_urcu_qsbr_timing.c
68test_urcu_qsbr_timing_LDADD = $(URCU_QSBR_LIB)
f5ab766e
MD
69
70
f4ac6e95
MD
71test_urcu_mb_SOURCES = test_urcu.c
72test_urcu_mb_LDADD = $(URCU_MB_LIB)
f5ab766e
MD
73test_urcu_mb_CFLAGS = -DRCU_MB $(AM_CFLAGS)
74
75
747a0fa5
MD
76test_urcu_signal_SOURCES = test_urcu.c
77test_urcu_signal_LDADD = $(URCU_SIGNAL_LIB)
f5ab766e
MD
78test_urcu_signal_CFLAGS = -DRCU_SIGNAL $(AM_CFLAGS)
79
747a0fa5
MD
80test_urcu_signal_dynamic_link_SOURCES = test_urcu.c
81test_urcu_signal_dynamic_link_LDADD = $(URCU_SIGNAL_LIB)
f5ab766e
MD
82test_urcu_signal_dynamic_link_CFLAGS = -DRCU_SIGNAL -DDYNAMIC_LINK_TEST \
83 $(AM_CFLAGS)
84
747a0fa5
MD
85test_urcu_signal_timing_SOURCES = test_urcu_timing.c
86test_urcu_signal_timing_LDADD = $(URCU_SIGNAL_LIB)
f5ab766e
MD
87test_urcu_signal_timing_CFLAGS= -DRCU_SIGNAL $(AM_CFLAGS)
88
747a0fa5
MD
89test_urcu_signal_yield_SOURCES = test_urcu.c
90test_urcu_signal_yield_LDADD = $(URCU_SIGNAL_LIB) $(DEBUG_YIELD_LIB)
f5ab766e
MD
91test_urcu_signal_yield_CFLAGS = -DRCU_SIGNAL -DDEBUG_YIELD $(AM_CFLAGS)
92
747a0fa5
MD
93test_rwlock_timing_SOURCES = test_rwlock_timing.c
94test_rwlock_timing_LDADD = $(URCU_SIGNAL_LIB)
f5ab766e 95
747a0fa5
MD
96test_rwlock_SOURCES = test_rwlock.c
97test_rwlock_LDADD = $(URCU_SIGNAL_LIB)
f5ab766e 98
747a0fa5
MD
99test_perthreadlock_timing_SOURCES = test_perthreadlock_timing.c
100test_perthreadlock_timing_LDADD = $(URCU_SIGNAL_LIB)
f5ab766e 101
747a0fa5
MD
102test_perthreadlock_SOURCES = test_perthreadlock.c
103test_perthreadlock_LDADD = $(URCU_SIGNAL_LIB)
f5ab766e 104
f7ba37f1 105test_mutex_SOURCES = test_mutex.c
f5ab766e
MD
106
107test_looplen_SOURCES = test_looplen.c
108
f7ba37f1
MD
109test_urcu_gc_SOURCES = test_urcu_gc.c
110test_urcu_gc_LDADD = $(URCU_LIB)
f5ab766e 111
747a0fa5
MD
112test_urcu_signal_gc_SOURCES = test_urcu_gc.c
113test_urcu_signal_gc_LDADD = $(URCU_SIGNAL_LIB)
f5ab766e
MD
114test_urcu_signal_gc_CFLAGS = -DRCU_SIGNAL $(AM_CFLAGS)
115
f4ac6e95
MD
116test_urcu_mb_gc_SOURCES = test_urcu_gc.c
117test_urcu_mb_gc_LDADD = $(URCU_MB_LIB)
f5ab766e
MD
118test_urcu_mb_gc_CFLAGS = -DRCU_MB $(AM_CFLAGS)
119
6ae37a4e
MD
120test_urcu_qsbr_gc_SOURCES = test_urcu_qsbr_gc.c
121test_urcu_qsbr_gc_LDADD = $(URCU_QSBR_LIB)
f5ab766e 122
6ae37a4e
MD
123test_urcu_qsbr_lgc_SOURCES = test_urcu_qsbr_gc.c
124test_urcu_qsbr_lgc_LDADD = $(URCU_QSBR_LIB)
f5ab766e
MD
125test_urcu_qsbr_lgc_CFLAGS = -DTEST_LOCAL_GC $(AM_CFLAGS)
126
f7ba37f1
MD
127test_urcu_lgc_SOURCES = test_urcu_gc.c
128test_urcu_lgc_LDADD = $(URCU_LIB)
f5ab766e
MD
129test_urcu_lgc_CFLAGS = -DTEST_LOCAL_GC $(AM_CFLAGS)
130
747a0fa5
MD
131test_urcu_signal_lgc_SOURCES = test_urcu_gc.c
132test_urcu_signal_lgc_LDADD = $(URCU_SIGNAL_LIB)
f5ab766e
MD
133test_urcu_signal_lgc_CFLAGS = -DRCU_SIGNAL -DTEST_LOCAL_GC $(AM_CFLAGS)
134
f4ac6e95
MD
135test_urcu_mb_lgc_SOURCES = test_urcu_gc.c
136test_urcu_mb_lgc_LDADD = $(URCU_MB_LIB)
f5ab766e
MD
137test_urcu_mb_lgc_CFLAGS = -DTEST_LOCAL_GC -DRCU_MB $(AM_CFLAGS)
138
6ae37a4e
MD
139test_urcu_qsbr_dynamic_link_SOURCES = test_urcu_qsbr.c
140test_urcu_qsbr_dynamic_link_LDADD = $(URCU_QSBR_LIB)
f5ab766e
MD
141test_urcu_qsbr_dynamic_link_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS)
142
817d4fb2
MD
143test_urcu_defer_SOURCES = test_urcu_defer.c
144test_urcu_defer_LDADD = $(URCU_LIB)
f5ab766e
MD
145
146test_cycles_per_loop_SOURCES = test_cycles_per_loop.c
147
f7ba37f1
MD
148test_urcu_assign_SOURCES = test_urcu_assign.c
149test_urcu_assign_LDADD = $(URCU_LIB)
f5ab766e 150
f7ba37f1
MD
151test_urcu_assign_dynamic_link_SOURCES = test_urcu_assign.c
152test_urcu_assign_dynamic_link_LDADD = $(URCU_LIB)
f5ab766e
MD
153test_urcu_assign_dynamic_link_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS)
154
3283bbe3
MD
155test_urcu_bp_SOURCES = test_urcu_bp.c
156test_urcu_bp_LDADD = $(URCU_BP_LIB)
f5ab766e 157
3283bbe3
MD
158test_urcu_bp_dynamic_link_SOURCES = test_urcu_bp.c
159test_urcu_bp_dynamic_link_LDADD = $(URCU_BP_LIB)
f5ab766e
MD
160test_urcu_bp_dynamic_link_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS)
161
f7ba37f1
MD
162test_urcu_lfq_SOURCES = test_urcu_lfq.c
163test_urcu_lfq_LDADD = $(URCU_LIB) $(URCU_CDS_LIB)
f5ab766e 164
f7ba37f1 165test_urcu_lfq_dynlink_SOURCES = test_urcu_lfq.c
f5ab766e 166test_urcu_lfq_dynlink_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS)
f7ba37f1 167test_urcu_lfq_dynlink_LDADD = $(URCU_LIB) $(URCU_CDS_LIB)
f5ab766e 168
f21aa7d9 169test_urcu_wfq_SOURCES = test_urcu_wfq.c
f5ab766e
MD
170test_urcu_wfq_LDADD = $(URCU_COMMON_LIB)
171
172test_urcu_wfq_dynlink_SOURCES = test_urcu_wfq.c
173test_urcu_wfq_dynlink_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS)
174test_urcu_wfq_dynlink_LDADD = $(URCU_COMMON_LIB)
175
f21aa7d9 176test_urcu_wfcq_SOURCES = test_urcu_wfcq.c
f5ab766e
MD
177test_urcu_wfcq_LDADD = $(URCU_COMMON_LIB)
178
179test_urcu_wfcq_dynlink_SOURCES = test_urcu_wfcq.c
180test_urcu_wfcq_dynlink_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS)
181test_urcu_wfcq_dynlink_LDADD = $(URCU_COMMON_LIB)
182
f7ba37f1
MD
183test_urcu_lfs_SOURCES = test_urcu_lfs.c
184test_urcu_lfs_LDADD = $(URCU_LIB) $(URCU_CDS_LIB)
f5ab766e 185
f7ba37f1
MD
186test_urcu_lfs_rcu_SOURCES = test_urcu_lfs_rcu.c
187test_urcu_lfs_rcu_LDADD = $(URCU_LIB) $(URCU_CDS_LIB)
f5ab766e 188
f7ba37f1 189test_urcu_lfs_dynlink_SOURCES = test_urcu_lfs.c
f5ab766e 190test_urcu_lfs_dynlink_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS)
f7ba37f1 191test_urcu_lfs_dynlink_LDADD = $(URCU_LIB) $(URCU_CDS_LIB)
f5ab766e 192
f7ba37f1 193test_urcu_lfs_rcu_dynlink_SOURCES = test_urcu_lfs_rcu.c
f5ab766e 194test_urcu_lfs_rcu_dynlink_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS)
f7ba37f1 195test_urcu_lfs_rcu_dynlink_LDADD = $(URCU_LIB) $(URCU_CDS_LIB)
f5ab766e 196
f21aa7d9 197test_urcu_wfs_SOURCES = test_urcu_wfs.c
f5ab766e
MD
198test_urcu_wfs_LDADD = $(URCU_COMMON_LIB)
199
200test_urcu_wfs_dynlink_SOURCES = test_urcu_wfs.c
201test_urcu_wfs_dynlink_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS)
202test_urcu_wfs_dynlink_LDADD = $(URCU_COMMON_LIB)
203
204test_urcu_hash_SOURCES = test_urcu_hash.c test_urcu_hash.h \
f21aa7d9 205 test_urcu_hash_rw.c test_urcu_hash_unique.c
f5ab766e 206test_urcu_hash_CFLAGS = -DRCU_QSBR $(AM_CFLAGS)
f21aa7d9 207test_urcu_hash_LDADD = $(URCU_QSBR_LIB) $(URCU_COMMON_LIB) $(URCU_CDS_LIB)
f5ab766e 208
54497f3f
MJ
209all-local:
210 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
211 for script in $(SCRIPT_LIST); do \
212 cp -f $(srcdir)/$$script $(builddir); \
213 done; \
214 fi
215
216clean-local:
217 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
218 for script in $(SCRIPT_LIST); do \
219 rm -f $(builddir)/$$script; \
220 done; \
221 fi
222
f5ab766e
MD
223.PHONY: bench
224
225bench:
226 ./runall.sh
This page took 0.049202 seconds and 4 git commands to generate.