Tests fix: unused variable warnings
[userspace-rcu.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 SCRIPT_LIST = run.sh
7
8 dist_noinst_SCRIPTS = $(SCRIPT_LIST)
9
10 dist_noinst_DATA = regression_tests.in
11
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
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
28 TAP_LIB=$(top_builddir)/tests/utils/libtap.a
29
30 test_urcu_fork_SOURCES = test_urcu_fork.c
31 test_urcu_fork_LDADD = $(URCU_LIB) $(TAP_LIB)
32
33 rcutorture_urcu_SOURCES = urcutorture.c
34 rcutorture_urcu_CFLAGS = -DRCU_MEMBARRIER $(AM_CFLAGS)
35 rcutorture_urcu_LDADD = $(URCU_LIB) $(TAP_LIB)
36
37 rcutorture_urcu_mb_SOURCES = urcutorture.c
38 rcutorture_urcu_mb_CFLAGS = -DRCU_MB $(AM_CFLAGS)
39 rcutorture_urcu_mb_LDADD = $(URCU_MB_LIB) $(TAP_LIB)
40
41 rcutorture_urcu_qsbr_SOURCES = urcutorture.c
42 rcutorture_urcu_qsbr_CFLAGS = -DTORTURE_QSBR -DRCU_QSBR $(AM_CFLAGS)
43 rcutorture_urcu_qsbr_LDADD = $(URCU_QSBR_LIB) $(TAP_LIB)
44
45 rcutorture_urcu_signal_SOURCES = urcutorture.c
46 rcutorture_urcu_signal_CFLAGS = -DRCU_SIGNAL $(AM_CFLAGS)
47 rcutorture_urcu_signal_LDADD = $(URCU_SIGNAL_LIB) $(TAP_LIB)
48
49 rcutorture_urcu_bp_SOURCES = urcutorture.c
50 rcutorture_urcu_bp_CFLAGS = -DRCU_BP $(AM_CFLAGS)
51 rcutorture_urcu_bp_LDADD = $(URCU_BP_LIB) $(TAP_LIB)
52
53 urcutorture.c: ../common/api.h
54
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
69 .PHONY: regtest
70
71 regtest:
72 ./run.sh regression_tests
This page took 0.03134 seconds and 4 git commands to generate.