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