Port: Fixes to build system for portability
[urcu.git] / tests / regression / Makefile.am
... / ...
CommitLineData
1if !LIBC_INCLUDES_PTHREAD
2AM_LDFLAGS=-lpthread
3endif
4AM_CFLAGS=-I$(top_srcdir) -I$(top_builddir) -I$(top_srcdir)/tests/utils -I$(top_srcdir)/tests/common -g
5
6SCRIPT_LIST = run.sh
7
8dist_noinst_SCRIPTS = $(SCRIPT_LIST)
9
10noinst_DATA = regression_tests.in
11
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
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
28TAP_LIB=$(top_builddir)/tests/utils/libtap.a
29
30test_urcu_fork_SOURCES = test_urcu_fork.c
31test_urcu_fork_LDADD = $(URCU_LIB) $(TAP_LIB)
32
33rcutorture_urcu_SOURCES = urcutorture.c
34rcutorture_urcu_CFLAGS = -DRCU_MEMBARRIER $(AM_CFLAGS)
35rcutorture_urcu_LDADD = $(URCU_LIB) $(TAP_LIB)
36
37rcutorture_urcu_mb_SOURCES = urcutorture.c
38rcutorture_urcu_mb_CFLAGS = -DRCU_MB $(AM_CFLAGS)
39rcutorture_urcu_mb_LDADD = $(URCU_MB_LIB) $(TAP_LIB)
40
41rcutorture_urcu_qsbr_SOURCES = urcutorture.c
42rcutorture_urcu_qsbr_CFLAGS = -DTORTURE_QSBR -DRCU_QSBR $(AM_CFLAGS)
43rcutorture_urcu_qsbr_LDADD = $(URCU_QSBR_LIB) $(TAP_LIB)
44
45rcutorture_urcu_signal_SOURCES = urcutorture.c
46rcutorture_urcu_signal_CFLAGS = -DRCU_SIGNAL $(AM_CFLAGS)
47rcutorture_urcu_signal_LDADD = $(URCU_SIGNAL_LIB) $(TAP_LIB)
48
49rcutorture_urcu_bp_SOURCES = urcutorture.c
50rcutorture_urcu_bp_CFLAGS = -DRCU_BP $(AM_CFLAGS)
51rcutorture_urcu_bp_LDADD = $(URCU_BP_LIB) $(TAP_LIB)
52
53urcutorture.c: ../common/api.h
54
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
69.PHONY: regtest
70
71regtest:
72 ./run.sh regression_tests
This page took 0.022023 seconds and 4 git commands to generate.