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