Commit | Line | Data |
---|---|---|
0e1efa0e | 1 | if !LIBC_INCLUDES_PTHREAD |
f5ab766e | 2 | AM_LDFLAGS=-lpthread |
58a052ef | 3 | endif |
5d70f61e | 4 | AM_CFLAGS+=-I$(top_srcdir) -I$(top_builddir) -I$(top_srcdir)/tests/utils -I$(top_srcdir)/tests/common -g |
f5ab766e | 5 | |
074c3a1b MJ |
6 | SCRIPT_LIST = run.sh |
7 | ||
8 | dist_noinst_SCRIPTS = $(SCRIPT_LIST) | |
9 | ||
3b20b953 | 10 | dist_noinst_DATA = regression_tests.in |
074c3a1b | 11 | |
f5ab766e MD |
12 | noinst_PROGRAMS = test_urcu_fork \ |
13 | rcutorture_urcu \ | |
14 | rcutorture_urcu_signal \ | |
15 | rcutorture_urcu_mb \ | |
16 | rcutorture_urcu_bp \ | |
17 | rcutorture_urcu_qsbr | |
18 | ||
19 | noinst_HEADERS = rcutorture.h | |
20 | ||
f5ab766e MD |
21 | URCU_COMMON_LIB=$(top_builddir)/liburcu-common.la |
22 | URCU_LIB=$(top_builddir)/liburcu.la | |
23 | URCU_QSBR_LIB=$(top_builddir)/liburcu-qsbr.la | |
24 | URCU_MB_LIB=$(top_builddir)/liburcu-mb.la | |
25 | URCU_SIGNAL_LIB=$(top_builddir)/liburcu-signal.la | |
26 | URCU_BP_LIB=$(top_builddir)/liburcu-bp.la | |
27 | URCU_CDS_LIB=$(top_builddir)/liburcu-cds.la | |
ad460058 | 28 | TAP_LIB=$(top_builddir)/tests/utils/libtap.a |
f5ab766e | 29 | |
b783aea4 | 30 | test_urcu_fork_SOURCES = test_urcu_fork.c |
ad460058 | 31 | test_urcu_fork_LDADD = $(URCU_LIB) $(TAP_LIB) |
f5ab766e MD |
32 | |
33 | rcutorture_urcu_SOURCES = urcutorture.c | |
34 | rcutorture_urcu_CFLAGS = -DRCU_MEMBARRIER $(AM_CFLAGS) | |
ad460058 | 35 | rcutorture_urcu_LDADD = $(URCU_LIB) $(TAP_LIB) |
f5ab766e MD |
36 | |
37 | rcutorture_urcu_mb_SOURCES = urcutorture.c | |
38 | rcutorture_urcu_mb_CFLAGS = -DRCU_MB $(AM_CFLAGS) | |
ad460058 | 39 | rcutorture_urcu_mb_LDADD = $(URCU_MB_LIB) $(TAP_LIB) |
f5ab766e MD |
40 | |
41 | rcutorture_urcu_qsbr_SOURCES = urcutorture.c | |
42 | rcutorture_urcu_qsbr_CFLAGS = -DTORTURE_QSBR -DRCU_QSBR $(AM_CFLAGS) | |
ad460058 | 43 | rcutorture_urcu_qsbr_LDADD = $(URCU_QSBR_LIB) $(TAP_LIB) |
f5ab766e MD |
44 | |
45 | rcutorture_urcu_signal_SOURCES = urcutorture.c | |
46 | rcutorture_urcu_signal_CFLAGS = -DRCU_SIGNAL $(AM_CFLAGS) | |
ad460058 | 47 | rcutorture_urcu_signal_LDADD = $(URCU_SIGNAL_LIB) $(TAP_LIB) |
f5ab766e MD |
48 | |
49 | rcutorture_urcu_bp_SOURCES = urcutorture.c | |
50 | rcutorture_urcu_bp_CFLAGS = -DRCU_BP $(AM_CFLAGS) | |
ad460058 | 51 | rcutorture_urcu_bp_LDADD = $(URCU_BP_LIB) $(TAP_LIB) |
f5ab766e MD |
52 | |
53 | urcutorture.c: ../common/api.h | |
54 | ||
ad460058 MD |
55 | all-local: |
56 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ | |
57 | for script in $(SCRIPT_LIST); do \ | |
58 | cp -f $(srcdir)/$$script $(builddir); \ | |
59 | done; \ | |
60 | fi | |
61 | ||
62 | clean-local: | |
63 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ | |
64 | for script in $(SCRIPT_LIST); do \ | |
65 | rm -f $(builddir)/$$script; \ | |
66 | done; \ | |
67 | fi | |
68 | ||
f5ab766e MD |
69 | .PHONY: regtest |
70 | ||
f5ab766e | 71 | regtest: |
ad460058 | 72 | ./run.sh regression_tests |