Add --enable-Werror configure switch
[urcu.git] / tests / unit / Makefile.am
CommitLineData
01956342 1AM_CPPFLAGS += -I$(top_srcdir)/src -I$(top_srcdir)/tests/utils -I$(top_srcdir)/tests/common
1b387491 2
03c5782e
MJ
3LOG_DRIVER_FLAGS = --merge --comments
4LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) \
78d75878 5 $(top_srcdir)/tests/utils/tap-driver.sh
f5ab766e 6
bbc9abdc
MJ
7noinst_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 15TESTS = $(noinst_PROGRAMS)
1b387491 16
f5ab766e
MD
17noinst_HEADERS = test_urcu_multiflavor.h
18
6893800a
MJ
19URCU_COMMON_LIB=$(top_builddir)/src/liburcu-common.la
20URCU_LIB=$(top_builddir)/src/liburcu.la
21URCU_QSBR_LIB=$(top_builddir)/src/liburcu-qsbr.la
22URCU_MB_LIB=$(top_builddir)/src/liburcu-mb.la
23URCU_SIGNAL_LIB=$(top_builddir)/src/liburcu-signal.la
24URCU_BP_LIB=$(top_builddir)/src/liburcu-bp.la
25URCU_CDS_LIB=$(top_builddir)/src/liburcu-cds.la
1b387491 26TAP_LIB=$(top_builddir)/tests/utils/libtap.a
f5ab766e 27
bbc9abdc
MJ
28test_arch_SOURCES = test_arch.c
29test_arch_LDADD = $(URCU_COMMON_LIB) $(TAP_LIB)
30
c14384c0 31test_uatomic_SOURCES = test_uatomic.c
1b387491 32test_uatomic_LDADD = $(URCU_COMMON_LIB) $(TAP_LIB)
f5ab766e
MD
33
34test_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
40test_urcu_multiflavor_LDADD = $(URCU_LIB) $(URCU_MB_LIB) \
1b387491 41 $(URCU_SIGNAL_LIB) $(URCU_QSBR_LIB) $(URCU_BP_LIB) $(TAP_LIB)
f5ab766e
MD
42
43test_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
49test_urcu_multiflavor_dynlink_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS)
50test_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
53test_urcu_multiflavor_single_unit_SOURCES = test_urcu_multiflavor_single_unit.c
54test_urcu_multiflavor_single_unit_LDADD = $(URCU_LIB) $(URCU_MB_LIB) \
55 $(URCU_SIGNAL_LIB) $(URCU_QSBR_LIB) $(URCU_BP_LIB) $(TAP_LIB)
56
57test_urcu_multiflavor_single_unit_dynlink_SOURCES = test_urcu_multiflavor_single_unit.c
58test_urcu_multiflavor_single_unit_dynlink_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS)
59test_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
62all-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
69clean-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
This page took 0.040222 seconds and 4 git commands to generate.