Version 0.11.4
[userspace-rcu.git] / tests / unit / Makefile.am
1 AM_CFLAGS += -I$(top_srcdir)/include -I$(top_builddir)/include -I$(top_srcdir)/src -I$(top_srcdir)/tests/utils -I$(top_srcdir)/tests/common -g
2
3 LOG_DRIVER_FLAGS = --merge --comments
4 LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) \
5 $(top_srcdir)/config/tap-driver.sh
6
7 noinst_PROGRAMS = test_uatomic \
8 test_urcu_multiflavor \
9 test_urcu_multiflavor_dynlink \
10 test_urcu_multiflavor_single_unit \
11 test_urcu_multiflavor_single_unit_dynlink
12
13 TESTS = $(noinst_PROGRAMS)
14
15 noinst_HEADERS = test_urcu_multiflavor.h
16
17 URCU_COMMON_LIB=$(top_builddir)/src/liburcu-common.la
18 URCU_LIB=$(top_builddir)/src/liburcu.la
19 URCU_QSBR_LIB=$(top_builddir)/src/liburcu-qsbr.la
20 URCU_MB_LIB=$(top_builddir)/src/liburcu-mb.la
21 URCU_SIGNAL_LIB=$(top_builddir)/src/liburcu-signal.la
22 URCU_BP_LIB=$(top_builddir)/src/liburcu-bp.la
23 URCU_CDS_LIB=$(top_builddir)/src/liburcu-cds.la
24 TAP_LIB=$(top_builddir)/tests/utils/libtap.a
25
26 test_uatomic_SOURCES = test_uatomic.c
27 test_uatomic_LDADD = $(URCU_COMMON_LIB) $(TAP_LIB)
28
29 test_urcu_multiflavor_SOURCES = test_urcu_multiflavor.c \
30 test_urcu_multiflavor-memb.c \
31 test_urcu_multiflavor-mb.c \
32 test_urcu_multiflavor-signal.c \
33 test_urcu_multiflavor-qsbr.c \
34 test_urcu_multiflavor-bp.c
35 test_urcu_multiflavor_LDADD = $(URCU_LIB) $(URCU_MB_LIB) \
36 $(URCU_SIGNAL_LIB) $(URCU_QSBR_LIB) $(URCU_BP_LIB) $(TAP_LIB)
37
38 test_urcu_multiflavor_dynlink_SOURCES = test_urcu_multiflavor.c \
39 test_urcu_multiflavor-memb.c \
40 test_urcu_multiflavor-mb.c \
41 test_urcu_multiflavor-signal.c \
42 test_urcu_multiflavor-qsbr.c \
43 test_urcu_multiflavor-bp.c
44 test_urcu_multiflavor_dynlink_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS)
45 test_urcu_multiflavor_dynlink_LDADD = $(URCU_LIB) $(URCU_MB_LIB) \
46 $(URCU_SIGNAL_LIB) $(URCU_QSBR_LIB) $(URCU_BP_LIB) $(TAP_LIB)
47
48 test_urcu_multiflavor_single_unit_SOURCES = test_urcu_multiflavor_single_unit.c
49 test_urcu_multiflavor_single_unit_LDADD = $(URCU_LIB) $(URCU_MB_LIB) \
50 $(URCU_SIGNAL_LIB) $(URCU_QSBR_LIB) $(URCU_BP_LIB) $(TAP_LIB)
51
52 test_urcu_multiflavor_single_unit_dynlink_SOURCES = test_urcu_multiflavor_single_unit.c
53 test_urcu_multiflavor_single_unit_dynlink_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS)
54 test_urcu_multiflavor_single_unit_dynlink_LDADD = $(URCU_LIB) $(URCU_MB_LIB) \
55 $(URCU_SIGNAL_LIB) $(URCU_QSBR_LIB) $(URCU_BP_LIB) $(TAP_LIB)
56
57 all-local:
58 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
59 for script in $(SCRIPT_LIST); do \
60 cp -f $(srcdir)/$$script $(builddir); \
61 done; \
62 fi
63
64 clean-local:
65 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
66 for script in $(SCRIPT_LIST); do \
67 rm -f $(builddir)/$$script; \
68 done; \
69 fi
70
This page took 0.031315 seconds and 4 git commands to generate.