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