2c89ca6d11c33a263081f7ed803c59eeb04bcbb5
[urcu.git] / tests / unit / Makefile.am
1 if !TARGET_IS_ANDROID
2 AM_LDFLAGS=-lpthread
3 endif
4 AM_CFLAGS=-I$(top_srcdir) -I$(top_builddir) -I$(top_srcdir)/tests/common -g
5
6 noinst_PROGRAMS = test_uatomic \
7 test_urcu_multiflavor \
8 test_urcu_multiflavor_dynlink
9
10 noinst_HEADERS = test_urcu_multiflavor.h
11
12 if COMPAT_ARCH
13 COMPAT=$(top_srcdir)/compat_arch_@ARCHTYPE@.c
14 else
15 COMPAT=
16 endif
17
18 if COMPAT_FUTEX
19 COMPAT+=$(top_srcdir)/compat_futex.c
20 endif
21
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)
30
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
38
39 test_uatomic_SOURCES = test_uatomic.c $(COMPAT)
40
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)
49
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)
59
60 check-am:
61 ./test_uatomic
62 ./test_urcu_multiflavor
63 ./test_urcu_multiflavor_dynlink
This page took 0.040315 seconds and 3 git commands to generate.