8cc4acbd9e217c3e70486dfb58334a86a45cd1a9
[urcu.git] / tests / unit / Makefile.am
1 if !LIBC_INCLUDES_PTHREAD
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 URCU_COMMON_LIB=$(top_builddir)/liburcu-common.la
13 URCU_LIB=$(top_builddir)/liburcu.la
14 URCU_QSBR_LIB=$(top_builddir)/liburcu-qsbr.la
15 URCU_MB_LIB=$(top_builddir)/liburcu-mb.la
16 URCU_SIGNAL_LIB=$(top_builddir)/liburcu-signal.la
17 URCU_BP_LIB=$(top_builddir)/liburcu-bp.la
18 URCU_CDS_LIB=$(top_builddir)/liburcu-cds.la
19
20 test_uatomic_SOURCES = test_uatomic.c
21 test_uatomic_LDADD = $(URCU_COMMON_LIB)
22
23 test_urcu_multiflavor_SOURCES = test_urcu_multiflavor.c \
24 test_urcu_multiflavor-memb.c \
25 test_urcu_multiflavor-mb.c \
26 test_urcu_multiflavor-signal.c \
27 test_urcu_multiflavor-qsbr.c \
28 test_urcu_multiflavor-bp.c
29 test_urcu_multiflavor_LDADD = $(URCU_LIB) $(URCU_MB_LIB) \
30 $(URCU_SIGNAL_LIB) $(URCU_QSBR_LIB) $(URCU_BP_LIB)
31
32 test_urcu_multiflavor_dynlink_SOURCES = test_urcu_multiflavor.c \
33 test_urcu_multiflavor-memb.c \
34 test_urcu_multiflavor-mb.c \
35 test_urcu_multiflavor-signal.c \
36 test_urcu_multiflavor-qsbr.c \
37 test_urcu_multiflavor-bp.c
38 test_urcu_multiflavor_dynlink_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS)
39 test_urcu_multiflavor_dynlink_LDADD = $(URCU_LIB) $(URCU_MB_LIB) \
40 $(URCU_SIGNAL_LIB) $(URCU_QSBR_LIB) $(URCU_BP_LIB)
41
42 check-am:
43 ./test_uatomic
44 ./test_urcu_multiflavor
45 ./test_urcu_multiflavor_dynlink
This page took 0.038867 seconds and 3 git commands to generate.