aa7a00c2171262fe324c1a4169f9b605018225d0
[urcu.git] / tests / regression / Makefile.am
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
2
3 SCRIPT_LIST = run.sh
4
5 dist_noinst_SCRIPTS = $(SCRIPT_LIST)
6
7 dist_noinst_DATA = regression_tests.in
8
9 noinst_PROGRAMS = test_urcu_fork \
10 rcutorture_urcu \
11 rcutorture_urcu_signal \
12 rcutorture_urcu_mb \
13 rcutorture_urcu_bp \
14 rcutorture_urcu_qsbr
15
16 noinst_HEADERS = rcutorture.h
17
18 URCU_COMMON_LIB=$(top_builddir)/src/liburcu-common.la
19 URCU_LIB=$(top_builddir)/src/liburcu.la
20 URCU_QSBR_LIB=$(top_builddir)/src/liburcu-qsbr.la
21 URCU_MB_LIB=$(top_builddir)/src/liburcu-mb.la
22 URCU_SIGNAL_LIB=$(top_builddir)/src/liburcu-signal.la
23 URCU_BP_LIB=$(top_builddir)/src/liburcu-bp.la
24 URCU_CDS_LIB=$(top_builddir)/src/liburcu-cds.la
25 TAP_LIB=$(top_builddir)/tests/utils/libtap.a
26
27 test_urcu_fork_SOURCES = test_urcu_fork.c
28 test_urcu_fork_LDADD = $(URCU_LIB) $(TAP_LIB)
29
30 rcutorture_urcu_SOURCES = urcutorture.c
31 rcutorture_urcu_CFLAGS = -DRCU_MEMBARRIER $(AM_CFLAGS)
32 rcutorture_urcu_LDADD = $(URCU_LIB) $(TAP_LIB)
33
34 rcutorture_urcu_mb_SOURCES = urcutorture.c
35 rcutorture_urcu_mb_CFLAGS = -DRCU_MB $(AM_CFLAGS)
36 rcutorture_urcu_mb_LDADD = $(URCU_MB_LIB) $(TAP_LIB)
37
38 rcutorture_urcu_qsbr_SOURCES = urcutorture.c
39 rcutorture_urcu_qsbr_CFLAGS = -DTORTURE_QSBR -DRCU_QSBR $(AM_CFLAGS)
40 rcutorture_urcu_qsbr_LDADD = $(URCU_QSBR_LIB) $(TAP_LIB)
41
42 rcutorture_urcu_signal_SOURCES = urcutorture.c
43 rcutorture_urcu_signal_CFLAGS = -DRCU_SIGNAL $(AM_CFLAGS)
44 rcutorture_urcu_signal_LDADD = $(URCU_SIGNAL_LIB) $(TAP_LIB)
45
46 rcutorture_urcu_bp_SOURCES = urcutorture.c
47 rcutorture_urcu_bp_CFLAGS = -DRCU_BP $(AM_CFLAGS)
48 rcutorture_urcu_bp_LDADD = $(URCU_BP_LIB) $(TAP_LIB)
49
50 urcutorture.c: ../common/api.h
51
52 all-local:
53 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
54 for script in $(SCRIPT_LIST); do \
55 cp -f $(srcdir)/$$script $(builddir); \
56 done; \
57 fi
58
59 clean-local:
60 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
61 for script in $(SCRIPT_LIST); do \
62 rm -f $(builddir)/$$script; \
63 done; \
64 fi
65
66 .PHONY: regtest
67
68 regtest:
69 ./run.sh regression_tests
This page took 0.033963 seconds and 3 git commands to generate.