1 if !LIBC_INCLUDES_PTHREAD
4 AM_CFLAGS=-I$(top_srcdir) -I$(top_builddir) -I$(top_srcdir)/tests/common -g
6 noinst_PROGRAMS = test_uatomic \
7 test_urcu_multiflavor \
8 test_urcu_multiflavor_dynlink
10 noinst_HEADERS = test_urcu_multiflavor.h
13 COMPAT=$(top_srcdir)/compat_arch_@ARCHTYPE@.c
19 COMPAT+=$(top_srcdir)/compat_futex.c
22 URCU=$(top_srcdir)/urcu.c $(top_srcdir)/urcu-pointer.c $(top_srcdir)/wfcqueue.c $(COMPAT)
23 URCU_QSBR=$(top_srcdir)/urcu-qsbr.c $(top_srcdir)/urcu-pointer.c $(top_srcdir)/wfcqueue.c $(COMPAT)
24 # URCU_MB uses urcu.c but -DRCU_MB must be defined
25 URCU_MB=$(top_srcdir)/urcu.c $(top_srcdir)/urcu-pointer.c $(top_srcdir)/wfcqueue.c $(COMPAT)
26 # URCU_SIGNAL uses urcu.c but -DRCU_SIGNAL must be defined
27 URCU_SIGNAL=$(top_srcdir)/urcu.c $(top_srcdir)/urcu-pointer.c $(top_srcdir)/wfcqueue.c $(COMPAT)
28 URCU_BP=$(top_srcdir)/urcu-bp.c $(top_srcdir)/urcu-pointer.c $(top_srcdir)/wfcqueue.c $(COMPAT)
29 URCU_DEFER=$(top_srcdir)/urcu.c $(top_srcdir)/urcu-pointer.c $(top_srcdir)/wfcqueue.c $(COMPAT)
31 URCU_COMMON_LIB=$(top_builddir)/liburcu-common.la
32 URCU_LIB=$(top_builddir)/liburcu.la
33 URCU_QSBR_LIB=$(top_builddir)/liburcu-qsbr.la
34 URCU_MB_LIB=$(top_builddir)/liburcu-mb.la
35 URCU_SIGNAL_LIB=$(top_builddir)/liburcu-signal.la
36 URCU_BP_LIB=$(top_builddir)/liburcu-bp.la
37 URCU_CDS_LIB=$(top_builddir)/liburcu-cds.la
39 test_uatomic_SOURCES = test_uatomic.c $(COMPAT)
41 test_urcu_multiflavor_SOURCES = test_urcu_multiflavor.c \
42 test_urcu_multiflavor-memb.c \
43 test_urcu_multiflavor-mb.c \
44 test_urcu_multiflavor-signal.c \
45 test_urcu_multiflavor-qsbr.c \
46 test_urcu_multiflavor-bp.c
47 test_urcu_multiflavor_LDADD = $(URCU_LIB) $(URCU_MB_LIB) \
48 $(URCU_SIGNAL_LIB) $(URCU_QSBR_LIB) $(URCU_BP_LIB)
50 test_urcu_multiflavor_dynlink_SOURCES = test_urcu_multiflavor.c \
51 test_urcu_multiflavor-memb.c \
52 test_urcu_multiflavor-mb.c \
53 test_urcu_multiflavor-signal.c \
54 test_urcu_multiflavor-qsbr.c \
55 test_urcu_multiflavor-bp.c
56 test_urcu_multiflavor_dynlink_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS)
57 test_urcu_multiflavor_dynlink_LDADD = $(URCU_LIB) $(URCU_MB_LIB) \
58 $(URCU_SIGNAL_LIB) $(URCU_QSBR_LIB) $(URCU_BP_LIB)
62 ./test_urcu_multiflavor
63 ./test_urcu_multiflavor_dynlink