1 if !LIBC_INCLUDES_PTHREAD
4 AM_CFLAGS=-I$(top_srcdir) -I$(top_builddir) -I$(top_srcdir)/tests/utils -I$(top_srcdir)/tests/common -g
8 dist_noinst_SCRIPTS = $(SCRIPT_LIST)
10 noinst_DATA = regression_tests.in
12 noinst_PROGRAMS = test_urcu_fork \
14 rcutorture_urcu_signal \
19 noinst_HEADERS = rcutorture.h
21 URCU_COMMON_LIB=$(top_builddir)/liburcu-common.la
22 URCU_LIB=$(top_builddir)/liburcu.la
23 URCU_QSBR_LIB=$(top_builddir)/liburcu-qsbr.la
24 URCU_MB_LIB=$(top_builddir)/liburcu-mb.la
25 URCU_SIGNAL_LIB=$(top_builddir)/liburcu-signal.la
26 URCU_BP_LIB=$(top_builddir)/liburcu-bp.la
27 URCU_CDS_LIB=$(top_builddir)/liburcu-cds.la
28 TAP_LIB=$(top_builddir)/tests/utils/libtap.a
30 test_urcu_fork_SOURCES = test_urcu_fork.c
31 test_urcu_fork_LDADD = $(URCU_LIB) $(TAP_LIB)
33 rcutorture_urcu_SOURCES = urcutorture.c
34 rcutorture_urcu_CFLAGS = -DRCU_MEMBARRIER $(AM_CFLAGS)
35 rcutorture_urcu_LDADD = $(URCU_LIB) $(TAP_LIB)
37 rcutorture_urcu_mb_SOURCES = urcutorture.c
38 rcutorture_urcu_mb_CFLAGS = -DRCU_MB $(AM_CFLAGS)
39 rcutorture_urcu_mb_LDADD = $(URCU_MB_LIB) $(TAP_LIB)
41 rcutorture_urcu_qsbr_SOURCES = urcutorture.c
42 rcutorture_urcu_qsbr_CFLAGS = -DTORTURE_QSBR -DRCU_QSBR $(AM_CFLAGS)
43 rcutorture_urcu_qsbr_LDADD = $(URCU_QSBR_LIB) $(TAP_LIB)
45 rcutorture_urcu_signal_SOURCES = urcutorture.c
46 rcutorture_urcu_signal_CFLAGS = -DRCU_SIGNAL $(AM_CFLAGS)
47 rcutorture_urcu_signal_LDADD = $(URCU_SIGNAL_LIB) $(TAP_LIB)
49 rcutorture_urcu_bp_SOURCES = urcutorture.c
50 rcutorture_urcu_bp_CFLAGS = -DRCU_BP $(AM_CFLAGS)
51 rcutorture_urcu_bp_LDADD = $(URCU_BP_LIB) $(TAP_LIB)
53 urcutorture.c: ../common/api.h
56 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
57 for script in $(SCRIPT_LIST); do \
58 cp -f $(srcdir)/$$script $(builddir); \
63 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
64 for script in $(SCRIPT_LIST); do \
65 rm -f $(builddir)/$$script; \
72 ./run.sh regression_tests