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