Fix typo
[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 \
153b081a 9 test_arch_cxx \
bbc9abdc 10 test_uatomic \
153b081a 11 test_uatomic_cxx \
f5ab766e 12 test_urcu_multiflavor \
153b081a 13 test_urcu_multiflavor_cxx \
042e8cfe 14 test_urcu_multiflavor_dynlink \
153b081a 15 test_urcu_multiflavor_dynlink_cxx \
042e8cfe 16 test_urcu_multiflavor_single_unit \
153b081a
SM
17 test_urcu_multiflavor_single_unit_cxx \
18 test_urcu_multiflavor_single_unit_dynlink \
28757437
SM
19 test_urcu_multiflavor_single_unit_dynlink_cxx \
20 test_build \
21 test_build_cxx \
22 test_build_dynlink \
23 test_build_dynlink_cxx
f5ab766e 24
03c5782e 25TESTS = $(noinst_PROGRAMS)
1b387491 26
f5ab766e
MD
27noinst_HEADERS = test_urcu_multiflavor.h
28
6893800a
MJ
29URCU_COMMON_LIB=$(top_builddir)/src/liburcu-common.la
30URCU_LIB=$(top_builddir)/src/liburcu.la
31URCU_QSBR_LIB=$(top_builddir)/src/liburcu-qsbr.la
32URCU_MB_LIB=$(top_builddir)/src/liburcu-mb.la
33URCU_SIGNAL_LIB=$(top_builddir)/src/liburcu-signal.la
34URCU_BP_LIB=$(top_builddir)/src/liburcu-bp.la
35URCU_CDS_LIB=$(top_builddir)/src/liburcu-cds.la
1b387491 36TAP_LIB=$(top_builddir)/tests/utils/libtap.a
f5ab766e 37
bbc9abdc
MJ
38test_arch_SOURCES = test_arch.c
39test_arch_LDADD = $(URCU_COMMON_LIB) $(TAP_LIB)
40
153b081a
SM
41test_arch_cxx_SOURCES = test_arch_cxx.cpp
42test_arch_cxx_LDADD = $(URCU_COMMO_LIB) $(TAP_LIB)
43
c14384c0 44test_uatomic_SOURCES = test_uatomic.c
1b387491 45test_uatomic_LDADD = $(URCU_COMMON_LIB) $(TAP_LIB)
f5ab766e 46
153b081a
SM
47test_uatomic_cxx_SOURCES = test_uatomic_cxx.cpp
48test_uatomic_cxx_LDADD = $(URCU_COMMON_LIB) $(TAP_LIB)
49
f5ab766e
MD
50test_urcu_multiflavor_SOURCES = test_urcu_multiflavor.c \
51 test_urcu_multiflavor-memb.c \
52 test_urcu_multiflavor-mb.c \
53 test_urcu_multiflavor-signal.c \
54 test_urcu_multiflavor-qsbr.c \
55 test_urcu_multiflavor-bp.c
56test_urcu_multiflavor_LDADD = $(URCU_LIB) $(URCU_MB_LIB) \
1b387491 57 $(URCU_SIGNAL_LIB) $(URCU_QSBR_LIB) $(URCU_BP_LIB) $(TAP_LIB)
f5ab766e 58
153b081a
SM
59test_urcu_multiflavor_cxx_SOURCES = test_urcu_multiflavor_cxx.cpp \
60 test_urcu_multiflavor-memb_cxx.cpp \
61 test_urcu_multiflavor-mb_cxx.cpp \
62 test_urcu_multiflavor-signal_cxx.cpp \
63 test_urcu_multiflavor-qsbr_cxx.cpp \
64 test_urcu_multiflavor-bp_cxx.cpp
65test_urcu_multiflavor_cxx_LDADD = $(URCU_LIB) $(URCU_MB_LIB) \
66 $(URCU_SIGNAL_LIB) $(URCU_QSBR_LIB) $(URCU_BP_LIB) $(TAP_LIB)
67
f5ab766e
MD
68test_urcu_multiflavor_dynlink_SOURCES = test_urcu_multiflavor.c \
69 test_urcu_multiflavor-memb.c \
70 test_urcu_multiflavor-mb.c \
71 test_urcu_multiflavor-signal.c \
72 test_urcu_multiflavor-qsbr.c \
73 test_urcu_multiflavor-bp.c
74test_urcu_multiflavor_dynlink_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS)
75test_urcu_multiflavor_dynlink_LDADD = $(URCU_LIB) $(URCU_MB_LIB) \
1b387491
MJ
76 $(URCU_SIGNAL_LIB) $(URCU_QSBR_LIB) $(URCU_BP_LIB) $(TAP_LIB)
77
153b081a
SM
78test_urcu_multiflavor_dynlink_cxx_SOURCES = test_urcu_multiflavor_cxx.cpp \
79 test_urcu_multiflavor-memb_cxx.cpp \
80 test_urcu_multiflavor-mb_cxx.cpp \
81 test_urcu_multiflavor-signal_cxx.cpp \
82 test_urcu_multiflavor-qsbr_cxx.cpp \
83 test_urcu_multiflavor-bp_cxx.cpp
84test_urcu_multiflavor_dynlink_cxx_CXXFLAGS = -DDYNAMIC_LINK_TEST $(AM_CXXFLAGS)
85test_urcu_multiflavor_dynlink_cxx_LDADD = $(URCU_LIB) $(URCU_MB_LIB) \
86 $(URCU_SIGNAL_LIB) $(URCU_QSBR_LIB) $(URCU_BP_LIB) $(TAP_LIB)
87
042e8cfe
MD
88test_urcu_multiflavor_single_unit_SOURCES = test_urcu_multiflavor_single_unit.c
89test_urcu_multiflavor_single_unit_LDADD = $(URCU_LIB) $(URCU_MB_LIB) \
90 $(URCU_SIGNAL_LIB) $(URCU_QSBR_LIB) $(URCU_BP_LIB) $(TAP_LIB)
91
153b081a
SM
92test_urcu_multiflavor_single_unit_cxx_SOURCES = test_urcu_multiflavor_single_unit_cxx.cpp
93test_urcu_multiflavor_single_unit_cxx_LDADD = $(URCU_LIB) $(URCU_MB_LIB) \
94 $(URCU_SIGNAL_LIB) $(URCU_QSBR_LIB) $(URCU_BP_LIB) $(TAP_LIB)
95
042e8cfe
MD
96test_urcu_multiflavor_single_unit_dynlink_SOURCES = test_urcu_multiflavor_single_unit.c
97test_urcu_multiflavor_single_unit_dynlink_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS)
98test_urcu_multiflavor_single_unit_dynlink_LDADD = $(URCU_LIB) $(URCU_MB_LIB) \
99 $(URCU_SIGNAL_LIB) $(URCU_QSBR_LIB) $(URCU_BP_LIB) $(TAP_LIB)
100
153b081a
SM
101test_urcu_multiflavor_single_unit_dynlink_cxx_SOURCES = test_urcu_multiflavor_single_unit_cxx.cpp
102test_urcu_multiflavor_single_unit_dynlink_cxx_CXXFLAGS = -DDYNAMIC_LINK_TEST $(AM_CXXFLAGS)
103test_urcu_multiflavor_single_unit_dynlink_cxx_LDADD = $(URCU_LIB) $(URCU_MB_LIB) \
104 $(URCU_SIGNAL_LIB) $(URCU_QSBR_LIB) $(URCU_BP_LIB) $(TAP_LIB)
105
28757437
SM
106test_build_SOURCES = \
107 test_build.c
6faece30 108test_build_LDADD = $(URCU_COMMON_LIB) $(URCU_CDS_LIB) $(TAP_LIB)
28757437
SM
109
110test_build_cxx_SOURCES = \
111 test_build_cxx.cpp
6faece30 112test_build_cxx_LDADD = $(URCU_COMMON_LIB) $(URCU_CDS_LIB) $(TAP_LIB)
28757437
SM
113
114test_build_dynlink_SOURCES = \
115 test_build.c
116test_build_dynlink_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS)
6faece30 117test_build_dynlink_LDADD = $(URCU_COMMON_LIB) $(URCU_CDS_LIB) $(TAP_LIB)
28757437
SM
118
119test_build_dynlink_cxx_SOURCES = \
120 test_build_cxx.cpp
121test_build_dynlink_cxx_CXXFLAGS = -DDYNAMIC_LINK_TEST $(AM_CXXFLAGS)
6faece30 122test_build_dynlink_cxx_LDADD = $(URCU_COMMON_LIB) $(URCU_CDS_LIB) $(TAP_LIB)
28757437 123
1b387491
MJ
124all-local:
125 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
126 for script in $(SCRIPT_LIST); do \
127 cp -f $(srcdir)/$$script $(builddir); \
128 done; \
129 fi
130
131clean-local:
132 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
133 for script in $(SCRIPT_LIST); do \
134 rm -f $(builddir)/$$script; \
135 done; \
136 fi
f5ab766e 137
This page took 0.041816 seconds and 4 git commands to generate.