Commit | Line | Data |
---|---|---|
01956342 | 1 | AM_CPPFLAGS += -I$(top_srcdir)/src -I$(top_srcdir)/tests/utils -I$(top_srcdir)/tests/common |
1b387491 | 2 | |
03c5782e MJ |
3 | LOG_DRIVER_FLAGS = --merge --comments |
4 | LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) \ | |
78d75878 | 5 | $(top_srcdir)/tests/utils/tap-driver.sh |
f5ab766e | 6 | |
bbc9abdc MJ |
7 | noinst_PROGRAMS = \ |
8 | test_arch \ | |
9 | test_uatomic \ | |
f5ab766e | 10 | test_urcu_multiflavor \ |
042e8cfe MD |
11 | test_urcu_multiflavor_dynlink \ |
12 | test_urcu_multiflavor_single_unit \ | |
13 | test_urcu_multiflavor_single_unit_dynlink | |
f5ab766e | 14 | |
03c5782e | 15 | TESTS = $(noinst_PROGRAMS) |
1b387491 | 16 | |
f5ab766e MD |
17 | noinst_HEADERS = test_urcu_multiflavor.h |
18 | ||
6893800a MJ |
19 | URCU_COMMON_LIB=$(top_builddir)/src/liburcu-common.la |
20 | URCU_LIB=$(top_builddir)/src/liburcu.la | |
21 | URCU_QSBR_LIB=$(top_builddir)/src/liburcu-qsbr.la | |
22 | URCU_MB_LIB=$(top_builddir)/src/liburcu-mb.la | |
23 | URCU_SIGNAL_LIB=$(top_builddir)/src/liburcu-signal.la | |
24 | URCU_BP_LIB=$(top_builddir)/src/liburcu-bp.la | |
25 | URCU_CDS_LIB=$(top_builddir)/src/liburcu-cds.la | |
1b387491 | 26 | TAP_LIB=$(top_builddir)/tests/utils/libtap.a |
f5ab766e | 27 | |
bbc9abdc MJ |
28 | test_arch_SOURCES = test_arch.c |
29 | test_arch_LDADD = $(URCU_COMMON_LIB) $(TAP_LIB) | |
30 | ||
c14384c0 | 31 | test_uatomic_SOURCES = test_uatomic.c |
1b387491 | 32 | test_uatomic_LDADD = $(URCU_COMMON_LIB) $(TAP_LIB) |
f5ab766e MD |
33 | |
34 | test_urcu_multiflavor_SOURCES = test_urcu_multiflavor.c \ | |
35 | test_urcu_multiflavor-memb.c \ | |
36 | test_urcu_multiflavor-mb.c \ | |
37 | test_urcu_multiflavor-signal.c \ | |
38 | test_urcu_multiflavor-qsbr.c \ | |
39 | test_urcu_multiflavor-bp.c | |
40 | test_urcu_multiflavor_LDADD = $(URCU_LIB) $(URCU_MB_LIB) \ | |
1b387491 | 41 | $(URCU_SIGNAL_LIB) $(URCU_QSBR_LIB) $(URCU_BP_LIB) $(TAP_LIB) |
f5ab766e MD |
42 | |
43 | test_urcu_multiflavor_dynlink_SOURCES = test_urcu_multiflavor.c \ | |
44 | test_urcu_multiflavor-memb.c \ | |
45 | test_urcu_multiflavor-mb.c \ | |
46 | test_urcu_multiflavor-signal.c \ | |
47 | test_urcu_multiflavor-qsbr.c \ | |
48 | test_urcu_multiflavor-bp.c | |
49 | test_urcu_multiflavor_dynlink_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS) | |
50 | test_urcu_multiflavor_dynlink_LDADD = $(URCU_LIB) $(URCU_MB_LIB) \ | |
1b387491 MJ |
51 | $(URCU_SIGNAL_LIB) $(URCU_QSBR_LIB) $(URCU_BP_LIB) $(TAP_LIB) |
52 | ||
042e8cfe MD |
53 | test_urcu_multiflavor_single_unit_SOURCES = test_urcu_multiflavor_single_unit.c |
54 | test_urcu_multiflavor_single_unit_LDADD = $(URCU_LIB) $(URCU_MB_LIB) \ | |
55 | $(URCU_SIGNAL_LIB) $(URCU_QSBR_LIB) $(URCU_BP_LIB) $(TAP_LIB) | |
56 | ||
57 | test_urcu_multiflavor_single_unit_dynlink_SOURCES = test_urcu_multiflavor_single_unit.c | |
58 | test_urcu_multiflavor_single_unit_dynlink_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS) | |
59 | test_urcu_multiflavor_single_unit_dynlink_LDADD = $(URCU_LIB) $(URCU_MB_LIB) \ | |
60 | $(URCU_SIGNAL_LIB) $(URCU_QSBR_LIB) $(URCU_BP_LIB) $(TAP_LIB) | |
61 | ||
1b387491 MJ |
62 | all-local: |
63 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ | |
64 | for script in $(SCRIPT_LIST); do \ | |
65 | cp -f $(srcdir)/$$script $(builddir); \ | |
66 | done; \ | |
67 | fi | |
68 | ||
69 | clean-local: | |
70 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ | |
71 | for script in $(SCRIPT_LIST); do \ | |
72 | rm -f $(builddir)/$$script; \ | |
73 | done; \ | |
74 | fi | |
f5ab766e | 75 |