Cleanup: Check for pthread in Libc
[urcu.git] / tests / unit / Makefile.am
CommitLineData
0e1efa0e 1if !LIBC_INCLUDES_PTHREAD
f5ab766e 2AM_LDFLAGS=-lpthread
58a052ef 3endif
f5ab766e
MD
4AM_CFLAGS=-I$(top_srcdir) -I$(top_builddir) -I$(top_srcdir)/tests/common -g
5
6noinst_PROGRAMS = test_uatomic \
7 test_urcu_multiflavor \
8 test_urcu_multiflavor_dynlink
9
10noinst_HEADERS = test_urcu_multiflavor.h
11
12if COMPAT_ARCH
13COMPAT=$(top_srcdir)/compat_arch_@ARCHTYPE@.c
14else
15COMPAT=
16endif
17
18if COMPAT_FUTEX
19COMPAT+=$(top_srcdir)/compat_futex.c
20endif
21
22URCU=$(top_srcdir)/urcu.c $(top_srcdir)/urcu-pointer.c $(top_srcdir)/wfcqueue.c $(COMPAT)
23URCU_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
25URCU_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
27URCU_SIGNAL=$(top_srcdir)/urcu.c $(top_srcdir)/urcu-pointer.c $(top_srcdir)/wfcqueue.c $(COMPAT)
28URCU_BP=$(top_srcdir)/urcu-bp.c $(top_srcdir)/urcu-pointer.c $(top_srcdir)/wfcqueue.c $(COMPAT)
29URCU_DEFER=$(top_srcdir)/urcu.c $(top_srcdir)/urcu-pointer.c $(top_srcdir)/wfcqueue.c $(COMPAT)
30
31URCU_COMMON_LIB=$(top_builddir)/liburcu-common.la
32URCU_LIB=$(top_builddir)/liburcu.la
33URCU_QSBR_LIB=$(top_builddir)/liburcu-qsbr.la
34URCU_MB_LIB=$(top_builddir)/liburcu-mb.la
35URCU_SIGNAL_LIB=$(top_builddir)/liburcu-signal.la
36URCU_BP_LIB=$(top_builddir)/liburcu-bp.la
37URCU_CDS_LIB=$(top_builddir)/liburcu-cds.la
38
39test_uatomic_SOURCES = test_uatomic.c $(COMPAT)
40
41test_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
47test_urcu_multiflavor_LDADD = $(URCU_LIB) $(URCU_MB_LIB) \
48 $(URCU_SIGNAL_LIB) $(URCU_QSBR_LIB) $(URCU_BP_LIB)
49
50test_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
56test_urcu_multiflavor_dynlink_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS)
57test_urcu_multiflavor_dynlink_LDADD = $(URCU_LIB) $(URCU_MB_LIB) \
58 $(URCU_SIGNAL_LIB) $(URCU_QSBR_LIB) $(URCU_BP_LIB)
59
60check-am:
61 ./test_uatomic
62 ./test_urcu_multiflavor
63 ./test_urcu_multiflavor_dynlink
This page took 0.03284 seconds and 4 git commands to generate.