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