Fix: Don't override user variables within the build system
[deliverable/userspace-rcu.git] / tests / regression / Makefile.am
CommitLineData
0e1efa0e 1if !LIBC_INCLUDES_PTHREAD
f5ab766e 2AM_LDFLAGS=-lpthread
58a052ef 3endif
5d70f61e 4AM_CFLAGS+=-I$(top_srcdir) -I$(top_builddir) -I$(top_srcdir)/tests/utils -I$(top_srcdir)/tests/common -g
f5ab766e 5
074c3a1b
MJ
6SCRIPT_LIST = run.sh
7
8dist_noinst_SCRIPTS = $(SCRIPT_LIST)
9
3b20b953 10dist_noinst_DATA = regression_tests.in
074c3a1b 11
f5ab766e
MD
12noinst_PROGRAMS = test_urcu_fork \
13 rcutorture_urcu \
14 rcutorture_urcu_signal \
15 rcutorture_urcu_mb \
16 rcutorture_urcu_bp \
17 rcutorture_urcu_qsbr
18
19noinst_HEADERS = rcutorture.h
20
f5ab766e
MD
21URCU_COMMON_LIB=$(top_builddir)/liburcu-common.la
22URCU_LIB=$(top_builddir)/liburcu.la
23URCU_QSBR_LIB=$(top_builddir)/liburcu-qsbr.la
24URCU_MB_LIB=$(top_builddir)/liburcu-mb.la
25URCU_SIGNAL_LIB=$(top_builddir)/liburcu-signal.la
26URCU_BP_LIB=$(top_builddir)/liburcu-bp.la
27URCU_CDS_LIB=$(top_builddir)/liburcu-cds.la
ad460058 28TAP_LIB=$(top_builddir)/tests/utils/libtap.a
f5ab766e 29
b783aea4 30test_urcu_fork_SOURCES = test_urcu_fork.c
ad460058 31test_urcu_fork_LDADD = $(URCU_LIB) $(TAP_LIB)
f5ab766e
MD
32
33rcutorture_urcu_SOURCES = urcutorture.c
34rcutorture_urcu_CFLAGS = -DRCU_MEMBARRIER $(AM_CFLAGS)
ad460058 35rcutorture_urcu_LDADD = $(URCU_LIB) $(TAP_LIB)
f5ab766e
MD
36
37rcutorture_urcu_mb_SOURCES = urcutorture.c
38rcutorture_urcu_mb_CFLAGS = -DRCU_MB $(AM_CFLAGS)
ad460058 39rcutorture_urcu_mb_LDADD = $(URCU_MB_LIB) $(TAP_LIB)
f5ab766e
MD
40
41rcutorture_urcu_qsbr_SOURCES = urcutorture.c
42rcutorture_urcu_qsbr_CFLAGS = -DTORTURE_QSBR -DRCU_QSBR $(AM_CFLAGS)
ad460058 43rcutorture_urcu_qsbr_LDADD = $(URCU_QSBR_LIB) $(TAP_LIB)
f5ab766e
MD
44
45rcutorture_urcu_signal_SOURCES = urcutorture.c
46rcutorture_urcu_signal_CFLAGS = -DRCU_SIGNAL $(AM_CFLAGS)
ad460058 47rcutorture_urcu_signal_LDADD = $(URCU_SIGNAL_LIB) $(TAP_LIB)
f5ab766e
MD
48
49rcutorture_urcu_bp_SOURCES = urcutorture.c
50rcutorture_urcu_bp_CFLAGS = -DRCU_BP $(AM_CFLAGS)
ad460058 51rcutorture_urcu_bp_LDADD = $(URCU_BP_LIB) $(TAP_LIB)
f5ab766e
MD
52
53urcutorture.c: ../common/api.h
54
ad460058
MD
55all-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
62clean-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 71regtest:
ad460058 72 ./run.sh regression_tests
This page took 0.029306 seconds and 4 git commands to generate.