Commit | Line | Data |
---|---|---|
fed2db62 | 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 |
1b387491 | 2 | |
03c5782e MJ |
3 | LOG_DRIVER_FLAGS = --merge --comments |
4 | LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) \ | |
5 | $(top_srcdir)/config/tap-driver.sh | |
f5ab766e MD |
6 | |
7 | noinst_PROGRAMS = test_uatomic \ | |
8 | test_urcu_multiflavor \ | |
042e8cfe MD |
9 | test_urcu_multiflavor_dynlink \ |
10 | test_urcu_multiflavor_single_unit \ | |
11 | test_urcu_multiflavor_single_unit_dynlink | |
f5ab766e | 12 | |
03c5782e | 13 | TESTS = $(noinst_PROGRAMS) |
1b387491 | 14 | |
f5ab766e MD |
15 | noinst_HEADERS = test_urcu_multiflavor.h |
16 | ||
6893800a MJ |
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 | |
1b387491 | 24 | TAP_LIB=$(top_builddir)/tests/utils/libtap.a |
f5ab766e | 25 | |
c14384c0 | 26 | test_uatomic_SOURCES = test_uatomic.c |
1b387491 | 27 | test_uatomic_LDADD = $(URCU_COMMON_LIB) $(TAP_LIB) |
f5ab766e MD |
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) \ | |
1b387491 | 36 | $(URCU_SIGNAL_LIB) $(URCU_QSBR_LIB) $(URCU_BP_LIB) $(TAP_LIB) |
f5ab766e MD |
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) \ | |
1b387491 MJ |
46 | $(URCU_SIGNAL_LIB) $(URCU_QSBR_LIB) $(URCU_BP_LIB) $(TAP_LIB) |
47 | ||
042e8cfe MD |
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 | ||
1b387491 MJ |
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 | |
f5ab766e | 70 |