Commit | Line | Data |
---|---|---|
f5ab766e MD |
1 | AM_LDFLAGS=-lpthread |
2 | AM_CFLAGS=-I$(top_srcdir) -I$(top_builddir) -I$(top_srcdir)/tests/common -g | |
3 | ||
4 | noinst_PROGRAMS = test_urcu_fork \ | |
5 | rcutorture_urcu \ | |
6 | rcutorture_urcu_signal \ | |
7 | rcutorture_urcu_mb \ | |
8 | rcutorture_urcu_bp \ | |
9 | rcutorture_urcu_qsbr | |
10 | ||
11 | noinst_HEADERS = rcutorture.h | |
12 | ||
f5ab766e MD |
13 | URCU_COMMON_LIB=$(top_builddir)/liburcu-common.la |
14 | URCU_LIB=$(top_builddir)/liburcu.la | |
15 | URCU_QSBR_LIB=$(top_builddir)/liburcu-qsbr.la | |
16 | URCU_MB_LIB=$(top_builddir)/liburcu-mb.la | |
17 | URCU_SIGNAL_LIB=$(top_builddir)/liburcu-signal.la | |
18 | URCU_BP_LIB=$(top_builddir)/liburcu-bp.la | |
19 | URCU_CDS_LIB=$(top_builddir)/liburcu-cds.la | |
20 | ||
46d18a40 MD |
21 | test_urcu_fork_SOURCES = test_urcu_fork.c |
22 | test_urcu_fork_LDADD = $(URCU_LIB) | |
f5ab766e MD |
23 | |
24 | rcutorture_urcu_SOURCES = urcutorture.c | |
25 | rcutorture_urcu_CFLAGS = -DRCU_MEMBARRIER $(AM_CFLAGS) | |
46d18a40 | 26 | rcutorture_urcu_LDADD = $(URCU_LIB) |
f5ab766e MD |
27 | |
28 | rcutorture_urcu_mb_SOURCES = urcutorture.c | |
29 | rcutorture_urcu_mb_CFLAGS = -DRCU_MB $(AM_CFLAGS) | |
30 | rcutorture_urcu_mb_LDADD = $(URCU_MB_LIB) | |
31 | ||
32 | rcutorture_urcu_qsbr_SOURCES = urcutorture.c | |
33 | rcutorture_urcu_qsbr_CFLAGS = -DTORTURE_QSBR -DRCU_QSBR $(AM_CFLAGS) | |
34 | rcutorture_urcu_qsbr_LDADD = $(URCU_QSBR_LIB) | |
35 | ||
36 | rcutorture_urcu_signal_SOURCES = urcutorture.c | |
37 | rcutorture_urcu_signal_CFLAGS = -DRCU_SIGNAL $(AM_CFLAGS) | |
38 | rcutorture_urcu_signal_LDADD = $(URCU_SIGNAL_LIB) | |
39 | ||
40 | rcutorture_urcu_bp_SOURCES = urcutorture.c | |
41 | rcutorture_urcu_bp_CFLAGS = -DRCU_BP $(AM_CFLAGS) | |
42 | rcutorture_urcu_bp_LDADD = $(URCU_BP_LIB) | |
43 | ||
44 | urcutorture.c: ../common/api.h | |
45 | ||
46 | .PHONY: regtest | |
47 | ||
48 | # For now, run the benchmarks too as regression tests. | |
49 | # TODO: split benchmarks from regression tests | |
50 | regtest: | |
51 | ./test_urcu_fork | |
52 | ./rcutorture_urcu | |
53 | ./rcutorture_urcu_signal | |
54 | ./rcutorture_urcu_mb | |
55 | ./rcutorture_urcu_bp | |
56 | ./rcutorture_urcu_qsbr | |
57 | cd ../benchmark && ./runall.sh && cd .. |