Bump version to 0.11-pre
[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
MJ
2
3SCRIPT_LIST = test_loop run.sh unit_tests
f5ab766e
MD
4
5noinst_PROGRAMS = test_uatomic \
6 test_urcu_multiflavor \
7 test_urcu_multiflavor_dynlink
8
1b387491
MJ
9dist_noinst_SCRIPTS = $(SCRIPT_LIST)
10
f5ab766e
MD
11noinst_HEADERS = test_urcu_multiflavor.h
12
6893800a
MJ
13URCU_COMMON_LIB=$(top_builddir)/src/liburcu-common.la
14URCU_LIB=$(top_builddir)/src/liburcu.la
15URCU_QSBR_LIB=$(top_builddir)/src/liburcu-qsbr.la
16URCU_MB_LIB=$(top_builddir)/src/liburcu-mb.la
17URCU_SIGNAL_LIB=$(top_builddir)/src/liburcu-signal.la
18URCU_BP_LIB=$(top_builddir)/src/liburcu-bp.la
19URCU_CDS_LIB=$(top_builddir)/src/liburcu-cds.la
1b387491 20TAP_LIB=$(top_builddir)/tests/utils/libtap.a
f5ab766e 21
c14384c0 22test_uatomic_SOURCES = test_uatomic.c
1b387491 23test_uatomic_LDADD = $(URCU_COMMON_LIB) $(TAP_LIB)
f5ab766e
MD
24
25test_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
31test_urcu_multiflavor_LDADD = $(URCU_LIB) $(URCU_MB_LIB) \
1b387491 32 $(URCU_SIGNAL_LIB) $(URCU_QSBR_LIB) $(URCU_BP_LIB) $(TAP_LIB)
f5ab766e
MD
33
34test_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
40test_urcu_multiflavor_dynlink_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS)
41test_urcu_multiflavor_dynlink_LDADD = $(URCU_LIB) $(URCU_MB_LIB) \
1b387491
MJ
42 $(URCU_SIGNAL_LIB) $(URCU_QSBR_LIB) $(URCU_BP_LIB) $(TAP_LIB)
43
44all-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
51clean-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
58check-am:
1b387491 59 ./run.sh unit_tests
This page took 0.038369 seconds and 4 git commands to generate.