test multiflavor single compile unit
[urcu.git] / tests / unit / Makefile.am
CommitLineData
fed2db62 1AM_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
3LOG_DRIVER_FLAGS = --merge --comments
4LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) \
5 $(top_srcdir)/config/tap-driver.sh
f5ab766e
MD
6
7noinst_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 13TESTS = $(noinst_PROGRAMS)
1b387491 14
f5ab766e
MD
15noinst_HEADERS = test_urcu_multiflavor.h
16
6893800a
MJ
17URCU_COMMON_LIB=$(top_builddir)/src/liburcu-common.la
18URCU_LIB=$(top_builddir)/src/liburcu.la
19URCU_QSBR_LIB=$(top_builddir)/src/liburcu-qsbr.la
20URCU_MB_LIB=$(top_builddir)/src/liburcu-mb.la
21URCU_SIGNAL_LIB=$(top_builddir)/src/liburcu-signal.la
22URCU_BP_LIB=$(top_builddir)/src/liburcu-bp.la
23URCU_CDS_LIB=$(top_builddir)/src/liburcu-cds.la
1b387491 24TAP_LIB=$(top_builddir)/tests/utils/libtap.a
f5ab766e 25
c14384c0 26test_uatomic_SOURCES = test_uatomic.c
1b387491 27test_uatomic_LDADD = $(URCU_COMMON_LIB) $(TAP_LIB)
f5ab766e
MD
28
29test_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
35test_urcu_multiflavor_LDADD = $(URCU_LIB) $(URCU_MB_LIB) \
1b387491 36 $(URCU_SIGNAL_LIB) $(URCU_QSBR_LIB) $(URCU_BP_LIB) $(TAP_LIB)
f5ab766e
MD
37
38test_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
44test_urcu_multiflavor_dynlink_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS)
45test_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
48test_urcu_multiflavor_single_unit_SOURCES = test_urcu_multiflavor_single_unit.c
49test_urcu_multiflavor_single_unit_LDADD = $(URCU_LIB) $(URCU_MB_LIB) \
50 $(URCU_SIGNAL_LIB) $(URCU_QSBR_LIB) $(URCU_BP_LIB) $(TAP_LIB)
51
52test_urcu_multiflavor_single_unit_dynlink_SOURCES = test_urcu_multiflavor_single_unit.c
53test_urcu_multiflavor_single_unit_dynlink_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS)
54test_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
57all-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
64clean-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
This page took 0.046062 seconds and 4 git commands to generate.