Make urcu/config.h work.
[urcu.git] / tests / Makefile.am
CommitLineData
48d848c7 1AM_LDFLAGS=-lpthread
c96a3726 2AM_CFLAGS=-I$(top_srcdir) -I$(top_builddir)
48d848c7
PMF
3
4noinst_PROGRAMS = test_urcu test_urcu_dynamic_link test_urcu_timing \
5 test_rwlock_timing test_rwlock test_perthreadlock_timing \
6 test_perthreadlock test_urcu_yield test_urcu_mb \
7 test_qsbr_timing test_qsbr urcutorture \
8 urcutorture-yield test_mutex test_looplen test_urcu_gc \
9 test_urcu_gc_mb test_qsbr_gc test_qsbr_lgc test_urcu_lgc \
10 test_urcu_lgc_mb test_qsbr_dynamic_link test_urcu_mb_defer \
11 test_uatomic test_urcu_assign test_urcu_assign_dynamic_link \
12 test_urcu_bp test_urcu_bp_dynamic_link
13
14noinst_HEADERS = rcutorture.h
15
7d413817 16if COMPAT_ARCH
0854ccff 17COMPAT=$(top_srcdir)/compat_arch_@ARCHTYPE@.c
7d413817
MD
18else
19COMPAT=
20endif
21
0854ccff
MD
22if COMPAT_FUTEX
23COMPAT+=$(top_srcdir)/compat_futex.c
24endif
25
7d413817 26URCU_SIGNAL=$(top_builddir)/urcu.c $(top_builddir)/urcu-pointer.c $(COMPAT)
48d848c7 27# URCU_SIGNAL_YIELD uses urcu.c but -DDEBUG_YIELD must be defined
7d413817 28URCU_SIGNAL_YIELD=$(top_builddir)/urcu.c $(top_builddir)/urcu-pointer.c $(COMPAT)
48d848c7 29# URCU_MB uses urcu.c but -DURCU_MB must be defined
7d413817
MD
30URCU_MB=$(top_builddir)/urcu.c $(top_builddir)/urcu-pointer.c $(COMPAT)
31URCU_BP=$(top_builddir)/urcu-bp.c $(top_builddir)/urcu-pointer.c $(COMPAT)
32URCU_QSBR=$(top_builddir)/urcu-qsbr.c $(top_builddir)/urcu-pointer.c $(COMPAT)
48d848c7 33# -DURCU_MB must be defined
7d413817 34URCU_MB_DEFER=$(top_builddir)/urcu.c $(top_builddir)/urcu-defer.c $(top_builddir)/urcu-pointer.c $(COMPAT)
48d848c7
PMF
35
36
37if GCC_API
38APIHEADER=api_gcc.h
39else
40APIHEADER=api_@ARCHTYPE@.h
41endif
42
43EXTRA_DIST = $(top_srcdir)/tests/api_*.h
44
45
46test_urcu_SOURCES = test_urcu.c $(URCU_SIGNAL)
47
48test_urcu_dynamic_link_SOURCES = test_urcu.c $(URCU_SIGNAL)
49test_urcu_dynamic_link_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS)
50
51test_urcu_timing_SOURCES = test_urcu_timing.c $(URCU_SIGNAL)
52
53test_rwlock_timing_SOURCES = test_rwlock_timing.c $(URCU_SIGNAL)
54
55test_rwlock_SOURCES = test_rwlock.c $(URCU_SIGNAL)
56
57test_perthreadlock_timing_SOURCES = test_perthreadlock_timing.c $(URCU_SIGNAL)
58
59test_perthreadlock_SOURCES = test_perthreadlock.c $(URCU_SIGNAL)
60
61test_urcu_yield_SOURCES = test_urcu.c $(URCU_SIGNAL_YIELD)
62test_urcu_yield_CFLAGS = -DDEBUG_YIELD $(AM_CFLAGS)
63
64test_urcu_mb_SOURCES = test_urcu.c $(URCU_MB)
65test_urcu_mb_CFLAGS = -DURCU_MB $(AM_CFLAGS)
66
67test_qsbr_timing_SOURCES = test_qsbr_timing.c $(URCU_QSBR)
68
69test_qsbr_SOURCES = test_qsbr.c $(URCU_QSBR)
70
71urcutorture_SOURCES = api.h urcutorture.c $(URCU_SIGNAL)
72
73urcutorture_yield_SOURCES = api.h urcutorture.c $(URCU_SIGNAL_YIELD)
74urcutorture_yield_CFLAGS = -DDEBUG_YIELD $(AM_CFLAGS)
75
76test_mutex_SOURCES = test_mutex.c $(URCU_SIGNAL)
77
78test_looplen_SOURCES = test_looplen.c
79
80test_urcu_gc_SOURCES = test_urcu_gc.c $(URCU_SIGNAL)
81
82test_urcu_gc_mb_SOURCES = test_urcu_gc.c $(URCU_MB)
83test_urcu_gc_mb_CFLAGS = -DURCU_MB $(AM_CFLAGS)
84
85test_qsbr_gc_SOURCES = test_qsbr_gc.c $(URCU_QSBR)
86
87test_qsbr_lgc_SOURCES = test_qsbr_gc.c $(URCU_QSBR)
88test_qsbr_lgc_CFLAGS = -DTEST_LOCAL_GC $(AM_CFLAGS)
89
90test_urcu_lgc_SOURCES = test_urcu_gc.c $(URCU_SIGNAL)
91test_urcu_lgc_CFLAGS = -DTEST_LOCAL_GC $(AM_CFLAGS)
92
93test_urcu_lgc_mb_SOURCES = test_urcu_gc.c $(URCU_MB)
94test_urcu_lgc_mb_CFLAGS = -DTEST_LOCAL_GC -DURCU_MB $(AM_CFLAGS)
95
96test_qsbr_dynamic_link_SOURCES = test_qsbr.c $(URCU_QSBR)
97test_qsbr_dynamic_link_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS)
98
99test_urcu_mb_defer_SOURCES = test_urcu_defer.c $(URCU_MB_DEFER)
100test_urcu_mb_defer_CFLAGS = -DURCU_MB $(AM_CFLAGS)
101
102test_uatomic_SOURCES = test_uatomic.c
103
104test_urcu_assign_SOURCES = test_urcu_assign.c $(URCU_SIGNAL)
105
106test_urcu_assign_dynamic_link_SOURCES = test_urcu_assign.c $(URCU_SIGNAL)
107test_urcu_assign_dynamic_link_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS)
108
109test_urcu_bp_SOURCES = test_urcu_bp.c $(URCU_BP)
110
111test_urcu_bp_dynamic_link_SOURCES = test_urcu_bp.c $(URCU_BP)
112test_urcu_bp_dynamic_link_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS)
113
114urcutorture.o: api.h
115
116api.h: $(APIHEADER)
117 cp -f $(srcdir)/$(APIHEADER) api.h
118
119clean-local:
120 rm -f api.h
This page took 0.036925 seconds and 4 git commands to generate.