Commit | Line | Data |
---|---|---|
ad460058 | 1 | AM_CFLAGS=-I$(top_srcdir) -I$(top_builddir) -I$(top_srcdir)/tests/utils -I$(top_srcdir)/tests/common -g |
f5ab766e | 2 | |
074c3a1b MJ |
3 | SCRIPT_LIST = run.sh |
4 | ||
5 | dist_noinst_SCRIPTS = $(SCRIPT_LIST) | |
6 | ||
67c10597 | 7 | dist_noinst_DATA = regression_tests.in |
074c3a1b | 8 | |
f5ab766e MD |
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 | ||
f5ab766e MD |
18 | URCU_COMMON_LIB=$(top_builddir)/liburcu-common.la |
19 | URCU_LIB=$(top_builddir)/liburcu.la | |
20 | URCU_QSBR_LIB=$(top_builddir)/liburcu-qsbr.la | |
21 | URCU_MB_LIB=$(top_builddir)/liburcu-mb.la | |
22 | URCU_SIGNAL_LIB=$(top_builddir)/liburcu-signal.la | |
23 | URCU_BP_LIB=$(top_builddir)/liburcu-bp.la | |
24 | URCU_CDS_LIB=$(top_builddir)/liburcu-cds.la | |
ad460058 | 25 | TAP_LIB=$(top_builddir)/tests/utils/libtap.a |
f5ab766e | 26 | |
b783aea4 | 27 | test_urcu_fork_SOURCES = test_urcu_fork.c |
ad460058 | 28 | test_urcu_fork_LDADD = $(URCU_LIB) $(TAP_LIB) |
f5ab766e MD |
29 | |
30 | rcutorture_urcu_SOURCES = urcutorture.c | |
31 | rcutorture_urcu_CFLAGS = -DRCU_MEMBARRIER $(AM_CFLAGS) | |
ad460058 | 32 | rcutorture_urcu_LDADD = $(URCU_LIB) $(TAP_LIB) |
f5ab766e MD |
33 | |
34 | rcutorture_urcu_mb_SOURCES = urcutorture.c | |
35 | rcutorture_urcu_mb_CFLAGS = -DRCU_MB $(AM_CFLAGS) | |
ad460058 | 36 | rcutorture_urcu_mb_LDADD = $(URCU_MB_LIB) $(TAP_LIB) |
f5ab766e MD |
37 | |
38 | rcutorture_urcu_qsbr_SOURCES = urcutorture.c | |
39 | rcutorture_urcu_qsbr_CFLAGS = -DTORTURE_QSBR -DRCU_QSBR $(AM_CFLAGS) | |
ad460058 | 40 | rcutorture_urcu_qsbr_LDADD = $(URCU_QSBR_LIB) $(TAP_LIB) |
f5ab766e MD |
41 | |
42 | rcutorture_urcu_signal_SOURCES = urcutorture.c | |
43 | rcutorture_urcu_signal_CFLAGS = -DRCU_SIGNAL $(AM_CFLAGS) | |
ad460058 | 44 | rcutorture_urcu_signal_LDADD = $(URCU_SIGNAL_LIB) $(TAP_LIB) |
f5ab766e MD |
45 | |
46 | rcutorture_urcu_bp_SOURCES = urcutorture.c | |
47 | rcutorture_urcu_bp_CFLAGS = -DRCU_BP $(AM_CFLAGS) | |
ad460058 | 48 | rcutorture_urcu_bp_LDADD = $(URCU_BP_LIB) $(TAP_LIB) |
f5ab766e MD |
49 | |
50 | urcutorture.c: ../common/api.h | |
51 | ||
ad460058 MD |
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 | ||
f5ab766e MD |
66 | .PHONY: regtest |
67 | ||
f5ab766e | 68 | regtest: |
ad460058 | 69 | ./run.sh regression_tests |