Add test for rcu_assign_pointer()
[urcu.git] / tests / Makefile.inc
CommitLineData
833dbdb6
MD
1
2include ../Makefile.build.inc
3
4ifeq ($(findstring ${ARCHTYPE},"x86 ppc"),)
5APIHEADER=api_gcc.h
6else
7APIHEADER=api_${ARCHTYPE}.h
8endif
9
10LIBDIR=..
11
ec4e58a3 12CFLAGS+=-I${LIBDIR}
833dbdb6
MD
13
14URCU_SIGNAL=${LIBDIR}/urcu.o ${LIBDIR}/urcu.h
15URCU_SIGNAL_YIELD=${LIBDIR}/urcu-yield.o ${LIBDIR}/urcu.h
16URCU_MB=${LIBDIR}/urcu-mb.o ${LIBDIR}/urcu.h
17URCU_QSBR=${LIBDIR}/urcu-qsbr.o ${LIBDIR}/urcu-qsbr.h
786ee85b 18URCU_MB_DEFER=${LIBDIR}/urcu-mb.o ${LIBDIR}/urcu-defer.o ${LIBDIR}/urcu.h
833dbdb6
MD
19
20all: test_urcu test_urcu_dynamic_link test_urcu_timing \
21 test_rwlock_timing test_rwlock test_perthreadlock_timing \
22 test_perthreadlock test_urcu_yield test_urcu_mb \
23 urcu-asm.S test_qsbr_timing test_qsbr urcu-asm.o urcutorture \
24 urcutorture-yield test_mutex test_looplen test_urcu_gc \
25 test_urcu_gc_mb test_qsbr_gc test_qsbr_lgc test_urcu_lgc \
b55487c7 26 test_urcu_lgc_mb test_qsbr_dynamic_link test_urcu_mb_defer \
074d8438 27 test_uatomic test_urcu_assign test_urcu_assign_dynamic_link
833dbdb6
MD
28
29api.h: ${APIHEADER}
30 cp -f ${APIHEADER} api.h
31
32test_looplen: test_looplen.c ${LIBDIR}/urcu.h
33 $(CC) ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
34
35
36test_urcu: test_urcu.c ${URCU_SIGNAL}
37 $(CC) ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
38
39test_urcu_gc: test_urcu_gc.c ${URCU_SIGNAL}
40 $(CC) ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
41
42test_urcu_lgc: test_urcu_gc.c ${URCU_SIGNAL}
43 $(CC) -DTEST_LOCAL_GC ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
44
074d8438
MD
45test_urcu_assign: test_urcu_assign.c ${URCU_SIGNAL}
46 $(CC) ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
47
48test_urcu_assign_dynamic_link: test_urcu.c ${URCU_SIGNAL}
49 $(CC) ${CFLAGS} -DDYNAMIC_LINK_TEST $(LDFLAGS) -o $@ $(SRC_DEP)
50
833dbdb6
MD
51
52test_urcu_mb: test_urcu.c ${URCU_MB}
0a1d290b 53 $(CC) -DURCU_MB ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
833dbdb6
MD
54
55test_urcu_gc_mb: test_urcu_gc.c ${URCU_MB}
0a1d290b 56 $(CC) -DURCU_MB ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
833dbdb6
MD
57
58test_urcu_lgc_mb: test_urcu_gc.c ${URCU_MB}
0a1d290b 59 $(CC) -DTEST_LOCAL_GC -DURCU_MB ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
833dbdb6 60
786ee85b 61test_urcu_mb_defer: test_urcu_defer.c ${URCU_MB_DEFER}
90075a50
MD
62 $(CC) -DURCU_MB ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
63
833dbdb6
MD
64
65test_qsbr: test_qsbr.c ${URCU_QSBR}
66 $(CC) ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
67
68test_qsbr_gc: test_qsbr_gc.c ${URCU_QSBR}
69 $(CC) ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
70
71test_qsbr_lgc: test_qsbr_gc.c ${URCU_QSBR}
72 $(CC) -DTEST_LOCAL_GC ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
73
7ac06cef
MD
74test_qsbr_dynamic_link: test_qsbr.c ${URCU_QSBR}
75 $(CC) ${CFLAGS} -DDYNAMIC_LINK_TEST $(LDFLAGS) -o $@ $(SRC_DEP)
76
833dbdb6
MD
77
78test_rwlock: test_rwlock.c ${URCU_SIGNAL}
79 $(CC) ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
80
81test_perthreadlock: test_perthreadlock.c ${URCU_SIGNAL}
82 $(CC) ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
83
84test_mutex: test_mutex.c ${URCU_SIGNAL}
85 $(CC) ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
86
87test_urcu_dynamic_link: test_urcu.c ${URCU_SIGNAL}
88 $(CC) ${CFLAGS} -DDYNAMIC_LINK_TEST $(LDFLAGS) -o $@ $(SRC_DEP)
89
90
91test_urcu_yield: test_urcu.c ${URCU_SIGNAL_YIELD}
92 $(CC) -DDEBUG_YIELD ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
93
94test_urcu_timing: test_urcu_timing.c ${URCU_SIGNAL}
95 $(CC) ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
96
97test_qsbr_timing: test_qsbr_timing.c ${URCU_QSBR}
98 $(CC) ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
99
100test_rwlock_timing: test_rwlock_timing.c ${URCU_SIGNAL}
101 $(CC) ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
102
103test_perthreadlock_timing: test_perthreadlock_timing.c ${URCU_SIGNAL}
104 $(CC) ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
105
106urcu-asm.S: urcu-asm.c ${LIBDIR}/urcu.h
107 $(CC) ${CFLAGS} -S -o $@ $(SRC_DEP)
108
109urcu-asm.o: urcu-asm.c ${LIBDIR}/urcu.h
110 $(CC) ${CFLAGS} -c -o $@ $(SRC_DEP)
111
112urcutorture: urcutorture.c rcutorture.h api.h ${URCU_SIGNAL}
113 $(CC) ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
114
115urcutorture-yield: urcutorture.c ${URCU_SIGNAL_YIELD} rcutorture.h api.h
116 $(CC) -DDEBUG_YIELD ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
117
ec4e58a3 118test_uatomic: test_uatomic.c ../urcu/arch_uatomic.h
a81b8e5e
MD
119 $(CC) ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
120
833dbdb6
MD
121,PHONY: clean
122
123clean:
124 rm -f *.o test_urcu test_urcu_dynamic_link test_urcu_timing \
125 test_rwlock_timing test_rwlock test_perthreadlock_timing \
126 test_perthreadlock test_urcu_yield test_urcu_mb \
127 urcu-asm.S test_qsbr_timing test_qsbr urcutorture \
128 urcutorture-yield liburcu.so api.h \
129 test_mutex test_urcu_gc test_urcu_gc_mb urcu-asm-1.S \
130 test_qsbr_lgc test_qsbr_gc test_looplen test_urcu_lgc \
ec4e58a3
MD
131 test_urcu_lgc_mb test_qsbr_dynamic_link test_urcu_mb_defer \
132 test_uatomic
This page took 0.038218 seconds and 4 git commands to generate.