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 MJ |
2 | |
3 | SCRIPT_LIST = test_loop run.sh unit_tests | |
f5ab766e MD |
4 | |
5 | noinst_PROGRAMS = test_uatomic \ | |
6 | test_urcu_multiflavor \ | |
7 | test_urcu_multiflavor_dynlink | |
8 | ||
1b387491 MJ |
9 | dist_noinst_SCRIPTS = $(SCRIPT_LIST) |
10 | ||
f5ab766e MD |
11 | noinst_HEADERS = test_urcu_multiflavor.h |
12 | ||
6893800a MJ |
13 | URCU_COMMON_LIB=$(top_builddir)/src/liburcu-common.la |
14 | URCU_LIB=$(top_builddir)/src/liburcu.la | |
15 | URCU_QSBR_LIB=$(top_builddir)/src/liburcu-qsbr.la | |
16 | URCU_MB_LIB=$(top_builddir)/src/liburcu-mb.la | |
17 | URCU_SIGNAL_LIB=$(top_builddir)/src/liburcu-signal.la | |
18 | URCU_BP_LIB=$(top_builddir)/src/liburcu-bp.la | |
19 | URCU_CDS_LIB=$(top_builddir)/src/liburcu-cds.la | |
1b387491 | 20 | TAP_LIB=$(top_builddir)/tests/utils/libtap.a |
f5ab766e | 21 | |
c14384c0 | 22 | test_uatomic_SOURCES = test_uatomic.c |
1b387491 | 23 | test_uatomic_LDADD = $(URCU_COMMON_LIB) $(TAP_LIB) |
f5ab766e MD |
24 | |
25 | test_urcu_multiflavor_SOURCES = test_urcu_multiflavor.c \ | |
26 | test_urcu_multiflavor-memb.c \ | |
27 | test_urcu_multiflavor-mb.c \ | |
28 | test_urcu_multiflavor-signal.c \ | |
29 | test_urcu_multiflavor-qsbr.c \ | |
30 | test_urcu_multiflavor-bp.c | |
31 | test_urcu_multiflavor_LDADD = $(URCU_LIB) $(URCU_MB_LIB) \ | |
1b387491 | 32 | $(URCU_SIGNAL_LIB) $(URCU_QSBR_LIB) $(URCU_BP_LIB) $(TAP_LIB) |
f5ab766e MD |
33 | |
34 | test_urcu_multiflavor_dynlink_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_dynlink_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS) | |
41 | test_urcu_multiflavor_dynlink_LDADD = $(URCU_LIB) $(URCU_MB_LIB) \ | |
1b387491 MJ |
42 | $(URCU_SIGNAL_LIB) $(URCU_QSBR_LIB) $(URCU_BP_LIB) $(TAP_LIB) |
43 | ||
44 | all-local: | |
45 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ | |
46 | for script in $(SCRIPT_LIST); do \ | |
47 | cp -f $(srcdir)/$$script $(builddir); \ | |
48 | done; \ | |
49 | fi | |
50 | ||
51 | clean-local: | |
52 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ | |
53 | for script in $(SCRIPT_LIST); do \ | |
54 | rm -f $(builddir)/$$script; \ | |
55 | done; \ | |
56 | fi | |
f5ab766e MD |
57 | |
58 | check-am: | |
1b387491 | 59 | ./run.sh unit_tests |